/* ==========================================================================
   MAGUDAM · CONTACT PAGE  (contact.html)
   Loads AFTER style.css – re-uses its tokens, buttons, header, footer.
   Requires : Bootstrap 5.3 · Bootstrap Icons · AOS

   TABLE OF CONTENTS
   C1. Banner + breadcrumb
   C2. Intro + details cards
   C3. Map
   C4. Enquiry form section
   C5. Form card, floating labels, validation states
   C6. Success panel + toast
   C7. Responsive
   ========================================================================== */

/* C1. BANNER -------------------------------------------------------------- */
.ct-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding: calc(var(--header-h) + 3.5rem + 42px) 0 clamp(3.5rem, 7vw, 6rem);
  background: var(--charcoal-dk);
  color: rgba(255, 255, 255, 0.8);
}
.ct-banner__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.ct-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transform: scale(1.12);
  animation: kenburns 18s ease-out forwards;
}
.ct-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(34, 24, 17, 0.82) 0%,
    rgba(58, 40, 25, 0.6) 60%,
    rgba(34, 24, 17, 0.85) 100%
  );
}
.ct-banner__ring {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  border: 1px solid rgba(227, 195, 154, 0.25);
  animation: float 10s ease-in-out infinite;
}
.ct-banner__ring--1 {
  width: 440px;
  height: 440px;
  left: -140px;
  top: -120px;
}
.ct-banner__ring--2 {
  width: 300px;
  height: 300px;
  right: -80px;
  bottom: -150px;
  animation-direction: reverse;
}

.ct-banner .crumbs {
  margin-bottom: 1.4rem;
}
.ct-banner .breadcrumb {
  justify-content: center;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  --bs-breadcrumb-divider: "›";
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.4);
}
.ct-banner .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
}
.ct-banner .breadcrumb-item a:hover {
  color: var(--gold-light);
}
.ct-banner .breadcrumb-item.active {
  color: var(--gold-light);
}
.ct-banner .breadcrumb-item a i {
  margin-right: 0.25rem;
}
.ct-banner__eyebrow {
  justify-content: center;
}
.ct-banner__eyebrow::after {
  content: "";
  width: 38px;
  height: 1.5px;
  background: currentColor;
}
.ct-banner__title {
  color: #fff;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  margin: 0.8rem 0 1rem;
}
.ct-banner__title em {
  color: var(--gold-light);
}
.ct-banner__text {
  max-width: 560px;
  margin: 0 auto 1.8rem;
  font-size: 1.12rem;
}
.ct-banner__chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.ct-banner__chips a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, color 0.3s ease, transform 0.35s var(--ease),
    border-color 0.3s ease;
}
.ct-banner__chips a:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--charcoal-dk);
  transform: translateY(-3px);
}

/* entrance (starts once the preloader is gone) */
.ct-banner .crumbs,
.ct-banner__eyebrow,
.ct-banner__title,
.ct-banner__text,
.ct-banner__chips {
  opacity: 0;
  transform: translateY(24px);
}
body.is-loaded .ct-banner .crumbs {
  animation: rise 0.8s 0.05s var(--ease) forwards;
}
body.is-loaded .ct-banner__eyebrow {
  animation: rise 0.8s 0.15s var(--ease) forwards;
}
body.is-loaded .ct-banner__title {
  animation: rise 0.9s 0.25s var(--ease) forwards;
}
body.is-loaded .ct-banner__text {
  animation: rise 0.9s 0.4s var(--ease) forwards;
}
body.is-loaded .ct-banner__chips {
  animation: rise 0.9s 0.55s var(--ease) forwards;
}

/* C2. INTRO + DETAILS ----------------------------------------------------- */
.ct-lead {
  max-width: 920px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.ct-lead .eyebrow {
  justify-content: center;
}
.ct-lead .eyebrow::after {
  content: "";
  width: 38px;
  height: 1.5px;
  background: currentColor;
}
.ct-lead p {
  margin: 1rem 0 0;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.7;
  color: var(--ink);
  font-weight: 500;
}

.ct-cards {
  display: grid;
  gap: 1rem;
  height: 100%;
}
.ct-card {
  position: relative;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.3rem 1.4rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
    border-color 0.3s ease;
}
.ct-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-bronze);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.ct-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(168, 113, 63, 0.35);
}
.ct-card:hover::before {
  transform: scaleY(1);
}
.ct-card__icon {
  flex: 0 0 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 1.35rem;
  color: #fff;
  background: var(--grad-bronze);
  box-shadow: 0 10px 22px rgba(168, 113, 63, 0.3);
  transition: transform 0.6s var(--ease);
}
.ct-card:hover .ct-card__icon {
  transform: rotate(-8deg) scale(1.08);
}
.ct-card__body {
  min-width: 0;
  flex: 1;
}
.ct-card h2 {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--bronze);
  margin: 0 0 0.5rem;
}
.ct-card ul {
  margin: 0;
}
.ct-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.12rem 0;
}
.ct-card li a {
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.ct-card li a:hover,
.ct-card__link:hover {
  color: var(--bronze);
}
.ct-card address {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.55;
  font-style: normal;
}
.ct-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--bronze);
}
.ct-card__link i {
  transition: transform 0.3s var(--ease);
}
.ct-card__link:hover i {
  transform: translate(3px, -3px);
}
.ct-card p {
  color: var(--ink);
  font-weight: 600;
}

.ct-copy {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.ct-card li:hover .ct-copy,
.ct-copy:focus-visible {
  opacity: 1;
}
.ct-copy:hover {
  background: var(--cream-200);
  color: var(--bronze-dk);
}
.ct-copy:focus-visible {
  outline: 2px solid rgba(168, 113, 63, 0.5);
}

.ct-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.8rem 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--cream-200);
  color: var(--muted);
}
.ct-status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}
.ct-status.is-open {
  background: rgba(37, 160, 90, 0.12);
  color: #1b7a45;
}
.ct-status.is-open i {
  background: #25a05a;
  box-shadow: 0 0 0 0 rgba(37, 160, 90, 0.6);
  animation: ctPulse 1.8s infinite;
}
.ct-status.is-closed {
  background: rgba(179, 38, 30, 0.09);
  color: #a3281f;
}
.ct-status.is-closed i {
  background: #c0392b;
}
@keyframes ctPulse {
  to {
    box-shadow: 0 0 0 9px rgba(37, 160, 90, 0);
  }
}

/* C3. MAP ----------------------------------------------------------------- */
.ct-map {
  position: relative;
  height: 100%;
  min-height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-300);
  box-shadow: var(--shadow);
  border: 6px solid #fff;
}
.ct-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.55) sepia(0.25) contrast(1.02);
  transition: filter 0.6s ease;
}
.ct-map:hover iframe {
  filter: none;
}
.ct-map__pin {
  position: absolute;
  z-index: 2;
  left: 1rem;
  top: 1rem;
  max-width: min(340px, calc(100% - 2rem));
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.ct-map__badge {
  flex: 0 0 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--grad-bronze);
}
.ct-map__pin strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.3;
}
.ct-map__pin small {
  display: block;
  margin: 0.15rem 0 0.7rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

/* C4. ENQUIRY SECTION ----------------------------------------------------- */
.ct-form {
  overflow: hidden;
}
.ct-form::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -200px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 152, 95, 0.2), transparent 65%);
  pointer-events: none;
}
.ct-form .container {
  position: relative;
}

.ct-side {
  position: relative;
  margin: 2rem 0 1.4rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--cream-300);
  box-shadow: var(--shadow);
}
.ct-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.ct-side:hover img {
  transform: scale(1.07);
}
.ct-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(34, 24, 17, 0.85));
}
.ct-side figcaption {
  position: absolute;
  z-index: 2;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.1rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  color: #fff;
}
.ct-side figcaption b {
  display: block;
  font-size: 1.02rem;
}
.ct-side figcaption small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}
.ct-side__dot {
  flex: 0 0 12px;
  height: 12px;
  border-radius: 50%;
  background: #3ddc84;
  animation: ctPulse 1.8s infinite;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
}

.ct-promises {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.ct-promises li {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-weight: 600;
  color: var(--ink);
}
.ct-promises i {
  color: var(--bronze);
  font-size: 1.15rem;
}

/* C5. FORM CARD + VALIDATION ---------------------------------------------- */
.ct-formcard {
  position: relative;
  padding: clamp(1.6rem, 3.5vw, 2.8rem);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.ct-formcard::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 5px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--grad-bronze);
}
.ct-formcard__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.ct-formcard__head h3 {
  margin: 0;
  padding-left: 0.9rem;
  border-left: 4px solid var(--bronze);
  font-size: 1.55rem;
}
.ct-formcard__req {
  font-size: 0.8rem;
  font-weight: 600;
}
.ct-formcard__req b,
.form-floating > label span,
.ct-consent label span {
  color: #c0392b;
}

.ct-formcard .form-control,
.ct-formcard .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--cream-300);
  background-color: var(--cream-50);
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    background-color 0.25s ease;
}
.ct-formcard .form-floating > label {
  color: var(--muted);
  font-weight: 500;
}
.ct-formcard .form-floating > .form-control:focus ~ label,
.ct-formcard .form-floating > .form-control:not(:placeholder-shown) ~ label,
.ct-formcard .form-floating > .form-select ~ label {
  color: var(--bronze-dk);
}
.ct-formcard .form-control:focus,
.ct-formcard .form-select:focus {
  border-color: var(--bronze);
  background-color: #fff;
  box-shadow: 0 0 0 0.25rem rgba(168, 113, 63, 0.15);
}
.ct-formcard textarea.form-control {
  min-height: 150px;
  resize: vertical;
}
.ct-count {
  text-align: right;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ct-count.is-near {
  color: var(--bronze-dk);
}
.ct-count.is-max {
  color: #c0392b;
}

/* validation states (classes added by contact.js – no reliance on :invalid before touch) */
.ct-formcard .form-control.is-valid,
.ct-formcard .form-select.is-valid {
  border-color: #25a05a;
  background-image: none;
  padding-right: 2.6rem;
}
.ct-formcard .form-control.is-invalid,
.ct-formcard .form-select.is-invalid {
  border-color: #c0392b;
  background-image: none;
  background-color: #fff8f7;
}
.ct-formcard .form-control.is-valid:focus,
.ct-formcard .form-select.is-valid:focus {
  box-shadow: 0 0 0 0.25rem rgba(37, 160, 90, 0.15);
}
.ct-formcard .form-control.is-invalid:focus,
.ct-formcard .form-select.is-invalid:focus {
  box-shadow: 0 0 0 0.25rem rgba(192, 57, 43, 0.14);
}
.form-floating {
  position: relative;
}
.form-floating::after {
  /* ✓ / ! status glyph */
  font-family: "bootstrap-icons";
  position: absolute;
  right: 1rem;
  top: 1.15rem;
  font-size: 1.1rem;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
  pointer-events: none;
}
.form-floating:has(.is-valid)::after {
  content: "\f26a";
  color: #25a05a;
  opacity: 1;
  transform: none;
}
.form-floating:has(.is-invalid)::after {
  content: "\f33a";
  color: #c0392b;
  opacity: 1;
  transform: none;
}
.form-floating:has(select)::after {
  right: 2.6rem;
}
.form-floating:has(textarea)::after {
  top: 1.1rem;
}
.ct-formcard .invalid-feedback {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c0392b;
  margin-top: 0.35rem;
}
.ct-formcard .form-control.is-invalid ~ .invalid-feedback,
.ct-formcard .form-select.is-invalid ~ .invalid-feedback {
  display: block;
  animation: ctFade 0.3s ease;
}
@keyframes ctFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.ct-consent {
  padding-left: 1.9rem;
}
.ct-consent .form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  margin-left: -1.9rem;
  margin-top: 0.22rem;
  border: 1.5px solid var(--sand);
  cursor: pointer;
}
.ct-consent .form-check-input:checked {
  background-color: var(--bronze);
  border-color: var(--bronze);
}
.ct-consent .form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(168, 113, 63, 0.15);
  border-color: var(--bronze);
}
.ct-consent .form-check-input.is-invalid {
  border-color: #c0392b;
}
.ct-consent .form-check-input.is-invalid ~ .invalid-feedback {
  display: block;
}
.ct-consent .form-check-label {
  font-size: 0.9rem;
  cursor: pointer;
}

.ct-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ct-submit {
  min-width: 170px;
  position: relative;
}
.ct-submit__busy {
  display: none;
  align-items: center;
  gap: 0.55rem;
}
.ct-submit.is-busy {
  pointer-events: none;
  opacity: 0.85;
}
.ct-submit.is-busy .ct-submit__label {
  display: none;
}
.ct-submit.is-busy .ct-submit__busy {
  display: inline-flex;
}
.ct-reset {
  border: 0;
  background: none;
  padding: 0.5rem 0.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.25s ease;
}
.ct-reset:hover {
  color: var(--bronze-dk);
}
.ct-status-msg {
  margin: 0.2rem 0 0;
  min-height: 1.4em;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bronze-dk);
}
.ct-status-msg.is-error {
  color: #c0392b;
}

.js-validate.is-shaking .form-control.is-invalid,
.js-validate.is-shaking .form-select.is-invalid {
  animation: ctShake 0.45s;
}
@keyframes ctShake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

/* C6. SUCCESS PANEL + TOAST ----------------------------------------------- */
.ct-done {
  text-align: center;
  padding: 2rem 0 1rem;
}
.ct-done[hidden] {
  display: none;
}
.ct-done h3 {
  font-size: 1.7rem;
  margin: 1rem 0 0.5rem;
}
.ct-done p {
  max-width: 380px;
  margin: 0 auto 1.5rem;
}
.ct-done__tick {
  width: 92px;
  height: 92px;
}
.ct-done__tick circle {
  fill: none;
  stroke: #25a05a;
  stroke-width: 2.5;
  stroke-dasharray: 152;
  stroke-dashoffset: 152;
  animation: ctDraw 0.8s ease forwards;
}
.ct-done__tick path {
  fill: none;
  stroke: #25a05a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: ctDraw 0.5s 0.6s ease forwards;
}
@keyframes ctDraw {
  to {
    stroke-dashoffset: 0;
  }
}
.ct-formcard.is-sent #contactForm,
.ct-formcard.is-sent .ct-formcard__head {
  display: none;
}

.ct-toast {
  position: fixed;
  z-index: 1300;
  left: 50%;
  bottom: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--charcoal-dk);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}
.ct-toast i {
  color: var(--gold-light);
}
.ct-toast.is-on {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* C7. RESPONSIVE ---------------------------------------------------------- */
@media (max-width: 991.98px) {
  .ct-banner {
    padding-top: calc(var(--header-h) + 2.5rem);
  }
  .ct-map {
    min-height: 380px;
  }
  .ct-card:hover {
    transform: none;
  }
  .ct-side {
    aspect-ratio: 16 / 9;
  }
}
@media (max-width: 767.98px) {
  .ct-banner__ring {
    display: none;
  }
  .ct-banner__chips a {
    padding: 0.5rem 1rem;
  }
  .ct-card {
    padding: 1.1rem;
    gap: 0.9rem;
  }
  .ct-card__icon {
    flex-basis: 46px;
    height: 46px;
    font-size: 1.15rem;
    border-radius: 14px;
  }
  .ct-copy {
    opacity: 1;
  }
  .ct-map {
    min-height: 340px;
    border-width: 4px;
  }
  .ct-map__pin {
    position: relative;
    left: auto;
    top: auto;
    max-width: none;
    margin: 0.8rem;
  }
  .ct-map iframe {
    position: static;
    height: 260px;
  }
  .ct-map {
    display: flex;
    flex-direction: column-reverse;
    min-height: 0;
  }
  .ct-formcard__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .ct-submit {
    width: 100%;
  }
}
@media (hover: none) {
  .ct-copy {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ct-banner__bg img {
    animation: none;
    transform: none;
  }
  .ct-banner .crumbs,
  .ct-banner__eyebrow,
  .ct-banner__title,
  .ct-banner__text,
  .ct-banner__chips {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
  .ct-status.is-open i,
  .ct-side__dot {
    animation: none;
  }
}
