/* Consultation page -- Ankush's redesign (14 Oct): project/Main.dc.html for
   desktop, project/Mobile.dc.html for phones. Form behaviour styles (errors,
   suggestions, bot trap) are ours; the design doesn't show them. */

:root {
  --ink: #1B1F4B;
  --night: #262B66;
  --sky: #F4F5FF;
  --paper: #FFFFFF;
  --sun: #FFC857;
  --mint: #3DCBB1;
  --rose: #FF7A8A;
  --text: #23264D;
  --muted: #575B84;
  --line: #DCDFF5;
  --whatsapp: #25D366;
  --error: #B42318;       /* darker red + icon for errors (copy doc, build notes) */
  --error-bg: #FEF3F2;
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mobile-bar-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sky);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--display); margin: 0; letter-spacing: -.02em;
  font-variation-settings: "wdth" 88; color: inherit;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.02; font-weight: 750; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.9rem); line-height: 1.08; font-weight: 700; }
h3 { font-size: 1.3rem; line-height: 1.2; font-weight: 650; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }
.section { padding: clamp(56px, 8vw, 104px) 0; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--body); padding: 16px 26px; min-height: 48px;
  border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--sun); color: var(--ink);
}
.btn-ink { background: var(--ink); color: #FFFFFF; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ── Header ──────────────────────────────────────────────── */
.topbar { background: var(--paper); border-bottom: 1.5px solid var(--line); }
.bar { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.bar .brand { display: inline-flex; align-items: center; min-height: 44px; }
.logo { height: 31px; width: auto; display: block; }
.bar .tel {
  margin-left: auto; font-weight: 600; text-decoration: none; white-space: nowrap;
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
}
.bar .tel svg { display: none; } /* desktop shows the number; phones show only the icon */
.bar .btn { padding: 12px 20px; font-size: .95rem; }

/* ── Hero + form ─────────────────────────────────────────── */
.hero-zone { background: var(--ink); color: #FFFFFF; border-radius: 0 0 40px 40px; }
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr;
  grid-template-areas: "copy book" "photo book";
  grid-template-rows: auto 1fr;
  column-gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(56px, 7vw, 88px);
}
.hero-copy { grid-area: copy; }
.hero h1 { max-width: 14ch; }
.hero .sub { margin-top: 20px; max-width: 46ch; font-size: 1.15rem; color: #D5D8F6; }
.hero .sub-mobile { display: none; }
.hero-photo {
  grid-area: photo; display: block; width: 100%; max-width: 560px; height: auto;
  margin-top: 36px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 28px; background: var(--night);
}

.book {
  grid-area: book;
  background: var(--paper); color: var(--text); border-radius: 28px;
  padding: clamp(22px, 3vw, 34px); box-shadow: 0 24px 60px rgba(8, 10, 40, .45);
  scroll-margin-top: 16px;
}
.book h2 { font-size: 1.7rem; margin-bottom: 20px; }
#consult-form { position: relative; }

.field { margin-bottom: 14px; }
.field[hidden] { display: none; }
.field > label, .legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #FFFFFF; color: var(--text);
}
.field input::placeholder { color: #767A9E; }
.field input:focus, .field select:focus { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.opt { font-weight: 400; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row2 .field { min-width: 0; }

fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.tiers { display: grid; gap: 8px; }
.tier { position: relative; display: block; cursor: pointer; }
.tier input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tier .box {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #FFFFFF;
}
.tier b { font: 700 1.05rem/1.2 var(--display); white-space: nowrap; color: var(--ink); }
.tier small { font-size: .85rem; color: var(--muted); text-align: right; }
.tier input:checked + .box { border-color: var(--ink); background: #FFF6DC; box-shadow: inset 0 0 0 1px var(--ink); }
.tier input:focus-visible + .box { outline: 3px solid var(--sun); outline-offset: 2px; }
fieldset[aria-invalid="true"] .tier .box { border-color: var(--error); }

.check { display: flex; gap: 10px; align-items: center; font-size: .95rem; margin: 4px 0 18px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: 0 0 auto; }
.fine { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.fine a { color: var(--ink); }

.field-error {
  display: flex; align-items: center; gap: 6px; margin-top: 6px;
  color: var(--error); font-size: .86rem; font-weight: 500;
}
.field-error[hidden] { display: none; }
.field-error::before {
  content: ""; flex: 0 0 16px; height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.suggest {
  border: 0; background: none; padding: 0; font: inherit; font-weight: 600;
  color: var(--error); text-decoration: underline; cursor: pointer;
}

/* Society/area suggestions */
.combo { position: relative; }
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
  margin: 0; padding: 6px 0; list-style: none;
  background: #FFFFFF; border: 1.5px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 18, 56, .16); max-height: 280px; overflow-y: auto;
}
.combo-list[hidden] { display: none; }
.combo-list li { padding: 10px 14px; cursor: pointer; font-size: .92rem; line-height: 1.4; }
.combo-list li .sub { display: block; font-size: .8rem; color: var(--muted); }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--sky); }
.combo-list .powered { padding: 6px 14px 2px; font-size: 11px; color: var(--muted); cursor: default; text-align: right; }
.combo-list .powered:hover { background: none; }

/* Bot trap field: off-screen rather than display:none, which some bots detect. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.turnstile { margin-bottom: 14px; }
.turnstile:empty { display: none; }

.form-alert {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 14px;
  background: var(--error-bg); color: var(--error); border: 1px solid #FDA29B;
  border-radius: 12px; padding: 12px 14px; font-size: .9rem; line-height: 1.5;
}
.form-alert[hidden] { display: none; }
.form-alert svg { flex: 0 0 20px; margin-top: 1px; }
.form-alert a { color: var(--error); font-weight: 600; }

/* ── Facts strip ─────────────────────────────────────────── */
.strip { padding: 48px 0; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; margin: 0; padding: 0; list-style: none; }
.facts li { border-left: 3px solid var(--sun); padding-left: 16px; }
.facts strong { display: block; font: 750 2rem/1.1 var(--display); font-variation-settings: "wdth" 88; color: var(--ink); }
.facts span { font-size: .97rem; color: var(--muted); }

/* ── Why cards ───────────────────────────────────────────── */
.section-why { padding-top: 48px; } /* sits right under the facts strip, as in the design */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.card { background: var(--paper); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card p { color: var(--muted); font-size: .98rem; }
.ico { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ico svg { width: 26px; height: 26px; }
.c-ink { background: var(--ink); color: #FFFFFF; }
.c-rose { background: var(--rose); color: var(--ink); }
.c-mint { background: var(--mint); color: var(--ink); }
.c-sun { background: var(--sun); color: var(--ink); }

/* ── Process ─────────────────────────────────────────────── */
.process { background: var(--paper); }
.timeline { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.timeline::before { content: ""; position: absolute; top: 27px; left: 5%; right: 5%; border-top: 3px dashed var(--line); }
.timeline li { position: relative; padding: 0 14px; }
.timeline .n { position: relative; width: 56px; height: 56px; border-radius: 50%; font: 700 1.35rem/56px var(--display); text-align: center; margin-bottom: 18px; }
.timeline h3 { font-size: 1.15rem; margin-bottom: 6px; }
.timeline p { font-size: .97rem; color: var(--muted); }
.after { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 44px; }
.when { display: inline-block; font-weight: 600; font-size: .95rem; background: var(--sky); padding: 8px 16px; border-radius: 999px; }

/* ── Gallery ─────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.room-photo {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; border-radius: 20px; background: #E6E8FA;
}
.gallery figcaption { font-size: .95rem; color: var(--muted); }

/* ── Testimonials ────────────────────────────────────────── */
.voices { background: var(--ink); color: #FFFFFF; border-radius: 40px; margin: 0 16px; }
.quotes { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: 44px; align-items: start; }
.quote { margin: 0; }
.quote p { font: 600 clamp(1.15rem, 1.9vw, 1.4rem)/1.25 var(--display); letter-spacing: -.015em; font-variation-settings: "wdth" 90; }
.q-main p { font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.18; }
.quote footer { margin-top: 14px; color: #C9CCF0; font-size: .97rem; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.quote footer b { color: #FFFFFF; font-weight: 600; }
.watch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid #5A5F9E; background: transparent; color: #FFFFFF;
  font: 600 .9rem/1 var(--body); cursor: pointer;
}
.watch:hover { border-color: #FFFFFF; }
.watch svg { width: 12px; height: 12px; }
.q-side { display: grid; gap: 36px; padding-top: 6px; }
.q-side .quote { padding-left: 20px; border-left: 3px solid var(--sun); }
.q-side .quote.mint { border-left-color: var(--mint); }
.q-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: 48px; }
.q-row .quote { padding-left: 20px; border-left: 3px solid var(--rose); }
.q-row .quote.sun { border-left-color: var(--sun); }

/* Video pop-up: the player loads only when "Watch" is pressed. */
/* Height-capped too, so on a phone in landscape the close button above the
   player stays on screen. */
.video-modal {
  width: min(960px, 92vw, calc((100vh - 150px) * 16 / 9)); max-width: none; padding: 0; border: 0; border-radius: 20px;
  background: #000000; overflow: visible;
}
.video-modal::backdrop { background: rgba(8, 10, 40, .82); }
.video-frame { aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-close {
  position: absolute; top: -56px; right: 0; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #FFFFFF; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ── Comparison ──────────────────────────────────────────── */
.cmp { margin-top: 40px; background: var(--paper); border-radius: 28px; overflow: hidden; border: 1.5px solid var(--line); }
.cmp-head, .cmp-row { display: grid; grid-template-columns: 170px 1fr 1fr; }
.cmp-head { background: var(--ink); color: #FFFFFF; font: 700 1.05rem/1.2 var(--display); }
.cmp-head div { padding: 16px 22px; }
.cmp-head .us { background: var(--night); }
.cmp-row { border-top: 1.5px solid var(--line); }
.cmp-row > div { padding: 18px 22px; }
.cmp-row .k { font-weight: 600; color: var(--muted); font-size: .95rem; }
.cmp-row .us { background: #FFF8E3; font-weight: 500; position: relative; padding-left: 46px; }
.cmp-row .us::before {
  content: ""; position: absolute; left: 22px; top: 1.45em; width: 12px; height: 7px;
  border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg);
}
.cmp-row .them { color: var(--muted); position: relative; padding-left: 46px; }
.cmp-row .them::before { content: ""; position: absolute; left: 24px; top: 1.62em; width: 10px; border-top: 3px solid #A7AACB; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { max-width: 820px; margin-top: 36px; }
.faq details { border-top: 1.5px solid var(--ink); }
.faq details:last-child { border-bottom: 1.5px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 20px 4px; font: 650 1.2rem/1.3 var(--display); font-variation-settings: "wdth" 90; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.7rem; line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.ans { padding: 0 4px 22px; color: var(--muted); max-width: 68ch; }
.ans p + p, .ans ul + p { margin-top: 10px; }
.ans ul { margin: 8px 0 0; padding-left: 20px; }

/* ── Closing CTA ─────────────────────────────────────────── */
.final { background: var(--sun); color: var(--ink); border-radius: 40px; margin: 0 16px; }
.final .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.final h2 { max-width: 16ch; }

/* ── Footer ──────────────────────────────────────────────── */
footer.site { padding: 56px 0 110px; font-size: .97rem; }
.fgrid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.fgrid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fgrid a { text-decoration: none; }
.fgrid a:hover { text-decoration: underline; }
.logo-footer { height: 28px; width: auto; display: block; }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1.5px solid var(--line); color: var(--muted); font-size: .88rem; }

.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 30;
  width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(15, 18, 56, .25);
}
.mobile-bar { display: none; }

/* ── Tablet ──────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "book" "photo"; }
  .hero-copy { margin-bottom: 28px; }
  .hero-photo { max-width: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline::before { top: 0; bottom: 0; left: 27px; right: auto; border-top: 0; border-left: 3px dashed var(--line); }
  .timeline li { padding: 0 0 0 76px; min-height: 56px; }
  .timeline .n { position: absolute; left: 0; top: 0; margin: 0; }
  .quotes, .q-row { grid-template-columns: 1fr; }
}

/* ── Mobile (Mobile.dc.html) ─────────────────────────────── */
@media (max-width: 720px) {
  body { font-size: 16px; line-height: 1.55; padding-bottom: var(--mobile-bar-h); }
  .wrap { padding: 0 18px; }

  .bar { height: 58.5px; padding-top: 0; padding-bottom: 0; } /* + 1.5px border = 60px, as in the design */
  .logo { height: 26px; }
  .bar .btn, .tel-text { display: none; }
  .bar .tel { width: 44px; justify-content: center; }
  .bar .tel { color: var(--ink); }
  .bar .tel svg { display: block; }

  /* Navy only behind the heading; the form card overlaps its bottom edge. */
  .hero-zone { background: none; border-radius: 0; color: var(--text); }
  .hero { padding-top: 0; padding-bottom: 40px; }
  .hero-copy {
    margin: 0 -18px; padding: 22px 18px 96px;
    background: var(--ink); color: #FFFFFF; border-radius: 0 0 28px 28px;
  }
  h1 { font-size: 32px; line-height: 1.05; }
  .hero h1 { max-width: none; }
  .hero .sub { margin-top: 12px; font-size: 15.5px; }
  .hero .sub-desktop { display: none; }
  .hero .sub-mobile { display: block; }
  .book { margin: -76px -4px 0; border-radius: 24px; padding: 20px; box-shadow: 0 20px 50px rgba(8, 10, 40, .35); }
  .book h2 { font-size: 23px; line-height: 1.55; margin-bottom: 14px; color: var(--ink); }
  .field { margin-bottom: 12px; }
  .field > label, .legend { font-size: 14px; margin-bottom: 5px; }
  /* 16px text: under 16px iPhones zoom into the form on tap. */
  .field input[type=text], .field input[type=email], .field input[type=tel], .field select { font-size: 16px; padding: 12px 14px; }
  .hero-photo { margin-top: 24px; border-radius: 20px; }

  .row2, .cards, .gallery { grid-template-columns: 1fr; }
  .row2 { row-gap: 0; } /* stacked fields keep their own 12px spacing */
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: 1fr; }
  .cmp-row .k { background: var(--sky); }
  .voices, .final { border-radius: 28px; margin: 0 8px; }
  .video-close { top: -52px; }

  .wa-float { display: none; }
  .mobile-bar {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 12px 18px calc(16px + env(safe-area-inset-bottom));
    background: rgba(244, 245, 255, .94); border-top: 1.5px solid var(--line);
  }
  .mobile-bar-book { flex: 1; min-height: 50px; padding: 0 16px; font-size: 16px; }
  .mobile-bar-wa {
    flex: 0 0 50px; height: 50px; border-radius: 50%; background: var(--whatsapp);
    display: flex; align-items: center; justify-content: center;
  }
}
