/* ══════════════════════════════════════════════════════════════════════
   DIVYANSHI WELLNESS — desktop.css   (v4)
   Desktop mode for screens >= 1024px.

   HOW THIS FILE IS SCOPED
   • layout.ejs links it with media="(min-width: 1024px)". Phones and tablets
     never apply a single rule from here, so the mobile site is untouched.
   • Loaded after style.css + enhance.css, so equal-specificity rules win by
     order. `!important` appears only where the base layer already uses it
     (hero padding, bottom-nav) or where a view has inline styles.
   • Every colour is a theme variable from Admin → Appearance
     (--green-deep = primary, --g-core = gold, --earth, --ivory …), so a
     theme change restyles desktop and mobile together.
   • Desktop-only markup (.dt-nav, .dt-book, .dt-phone, .dt-footer) ships with
     the `hidden` attribute; this file reveals it.
   • Page scoping uses the body class set in layout.ejs: body.pg-<page>.
   ══════════════════════════════════════════════════════════════════════ */

/* ── 1 · Tokens ─────────────────────────────────────────────────────────── */
:root {
  --dt-box: 1400px;                                   /* boxed page width   */
  --dt-max: 1200px;                                   /* text/grid width    */
  --dt-gutter: max(40px, calc((100% - var(--dt-max)) / 2));
  --dt-card-w: min(var(--dt-max), calc(100% - 80px)); /* floating cards     */
  --dt-radius: 24px;
  --header-h: 76px;
  --nav-h: 0px;                  /* no bottom nav on desktop → no body gap  */
  --content-max: 100%;
}

/* ── 2 · Page frame ─────────────────────────────────────────────────────── */
body { padding-bottom: 0; }
/* Boxed layout: the page sits in a centred 1400px box on the ivory ground.
   Heroes, ticker and footer fill the box, not the window. */
.page-content {
  display: flow-root;       /* contain child margins so the box meets the footer */
  max-width: var(--dt-box);
  margin: 0 auto;
  min-height: calc(100vh - var(--header-h));
  background: var(--ivory);
  box-shadow: 0 0 0 1px rgba(196, 160, 82, 0.10), 0 0 60px rgba(27, 67, 50, 0.07);
}
.site-notice { max-width: var(--dt-box); margin-inline: auto; }
.bottom-nav { display: none !important; }

:where(.dt-link, .dt-book, .dt-footer a, .header-call, .hamburger-btn,
       .service-card, .therapy-list-card, .product-card, .blog-card,
       .contact-card, .btn-primary, .btn-outline, .btn-white):focus-visible {
  outline: 2px solid var(--g-core, #c4a052);
  outline-offset: 3px;
}

/* ── 3 · Header: brand · nav dock · actions ─────────────────────────────── */
.header-inner {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: 20px;
  max-width: var(--dt-box) !important;              /* aligns with the box */
  padding: 0 24px;
  overflow: visible;
}
.brand, .brand-text { flex: none; min-width: max-content; overflow: visible; }
.brand-name, .brand-sub { overflow: visible; text-overflow: clip; }
.brand-name { font-size: 24px; }
.brand-sub { font-size: 11px; }

/* The mobile bottom dock, moved to the top: same dark glass, gold ink,
   gold-tinted active pill. */
.dt-nav {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--glass-a, rgba(48,64,58,.86)), var(--glass-b, rgba(26,38,34,.92)));
  border: 1px solid rgba(201, 165, 92, 0.28);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.dt-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 13px;
  font-family: var(--font-nav);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(237, 231, 216, 0.87);
  transition: background 0.2s, color 0.2s;
}
.dt-link i {
  font-size: 15px;
  color: var(--nav-gold, #c9a55c);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
.dt-link:hover { background: rgba(201, 165, 92, 0.12); color: #fff; }
.dt-link.active {
  background: rgba(201, 165, 92, 0.16);
  box-shadow: inset 0 0 0 1px rgba(201, 165, 92, 0.3);
  color: var(--nav-gold-lt, #e4c983);
}
.dt-link.active i {
  color: var(--nav-gold-lt, #e4c983);
  filter: drop-shadow(0 0 6px rgba(201, 165, 92, 0.55));
}
/* Links that don't fit stay reachable through the menu drawer (☰), which
   remains on desktop, and through the footer. Widths were measured, not
   guessed: brand ≈240px, actions ≈380px, each link ≈70–125px. */
.dt-link-wide { display: none; }                         /* Testimonials, Blog, Find Us */
@media (min-width: 1280px) { .dt-link-wide:nth-child(4) { display: inline-flex; } }   /* + Testimonials */
@media (min-width: 1360px) { .dt-link-wide:nth-child(6) { display: inline-flex; } }   /* + Blog */
@media (min-width: 1600px) { .dt-link-wide:nth-child(7) { display: inline-flex; } }   /* + Find Us */

/* Actions: phone number (not "Call Now" — desktops rarely dial) + Book. */
.header-call {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--header-text, #1B4332) !important;
  padding: 10px 12px;
  font-size: 14px;
}
.header-call svg { stroke: var(--g-deep, #a87f2e) !important; color: var(--g-deep, #a87f2e) !important; }
.header-call::after { display: none; }
.header-call:hover { background: rgba(196, 160, 82, 0.12) !important; }
.header-call .hc-label { display: none; }
.header-call .dt-phone { display: inline; font-weight: 700; letter-spacing: 0.01em; }
/* Small laptops: phone becomes an icon-only button to make room for the nav. */
@media (max-width: 1279px) {
  .header-inner { padding: 0 28px; gap: 16px; }
  .brand-name { font-size: 21px; }
  .header-call {
    width: 42px; height: 42px; padding: 0; justify-content: center;
    border-radius: 12px;
    border: 1.5px solid var(--header-ham-border, rgba(27,67,50,0.25)) !important;
  }
  body .hero .hero-mandala { width: 300px; height: 300px; top: calc(50% - 150px); right: 24px; opacity: 0.13; }
  body .hero-sub { max-width: 500px; }
  .header-call .dt-phone {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;                /* kept for screen readers */
  }
  .dt-link { padding: 0 12px; }
}

.dt-book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 50px;
  font-family: var(--font-btn);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  color: #2a2418;
  background: linear-gradient(180deg, var(--g-lite, #e4c983) 0%, var(--g-core, #c4a052) 55%, var(--g-deep, #a87f2e) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 4px rgba(120,90,30,.3),
              0 4px 14px rgba(120,90,30,.32), 0 1px 3px rgba(120,90,30,.24);
  transition: transform 0.15s, box-shadow 0.15s;
}
.dt-book:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 8px 20px rgba(120,90,30,.36); }
.hamburger-btn { width: 42px; height: 42px; border-radius: 12px; }

/* ── 4 · Shared page heroes (inner pages) ───────────────────────────────── */
.contact-hero,
.book-hero,
.about-hero,
.service-detail-hero {
  padding: 72px var(--dt-gutter) 80px;
}
.about-hero { text-align: left; }
.about-hero p { margin: 0; }
.contact-hero h1, .book-hero h1, .about-hero h1, .service-detail-hero h1 {
  font-size: 48px;
  line-height: 1.12;
  margin-bottom: 12px;
}
.contact-hero p, .book-hero p, .about-hero p, .service-detail-hero > p {
  font-size: 17px;
  line-height: 1.6;
  max-width: 640px;
}

/* ── 5 · Shared blocks ──────────────────────────────────────────────────── */
.section { padding: 72px var(--dt-gutter); }
.section-header { max-width: 680px; margin-bottom: 32px; }
.section-title { font-size: 40px; line-height: 1.15; }
.section-desc { font-size: 16px; }
.divider { margin: 0 var(--dt-gutter); }
.site-notice { padding: 12px var(--dt-gutter); font-size: 14px; }

.stats-bar {
  width: var(--dt-card-w);
  margin: 32px auto 0;
  border-radius: var(--dt-radius);
  border: 1px solid rgba(196, 160, 82, 0.22);
  overflow: hidden;
}
.stat-item { padding: 26px 12px; }
.stat-number { font-size: 36px; }
.stat-label { font-size: 11px; letter-spacing: 0.12em; }

.cta-banner {
  width: var(--dt-card-w);
  margin: 24px auto 88px;
  padding: 48px 56px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "h btn" "p btn";
  column-gap: 40px;
  align-items: center;
  text-align: left;
}
.cta-banner h3 { grid-area: h; font-size: 32px; margin-bottom: 8px; }
.cta-banner p { grid-area: p; font-size: 16px; margin: 0; max-width: 560px; }
.cta-banner .btn-white { grid-area: btn; padding: 16px 30px; font-size: 15px; }

.map-embed { margin: 0 var(--dt-gutter) 24px; height: 440px; border-radius: var(--dt-radius); }

/* Hover lift for cards — pointer devices only. */
@media (hover: hover) and (pointer: fine) {
  .service-card, .therapy-list-card, .product-card, .blog-card, .contact-card, .value-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }
  .service-card:hover, .therapy-list-card:hover, .product-card:hover,
  .blog-card:hover, a.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--elev-3);
  }
}

/* ── 6 · HOME ───────────────────────────────────────────────────────────── */
.hero {
  padding: 96px var(--dt-gutter) 112px !important;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero h1 { font-size: 64px; line-height: 1.08; max-width: 760px; }
.hero-sub { font-size: 18px; line-height: 1.65; max-width: 580px; }
.hero-location { font-size: 14px; }
.hero-actions { flex-direction: row; gap: 14px; }
.hero-actions .btn-primary, .hero-actions .btn-outline { padding: 15px 28px; font-size: 15px; }
.hero .hero-mandala {
  width: 420px;
  height: 420px;
  top: calc(50% - 210px);
  right: max(24px, calc((100% - var(--dt-max)) / 2 - 20px));
  opacity: 0.16;
}
.ticker-wrap { height: 42px; }
.ticker-item { font-size: 14px; }

.services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.service-card { padding: 26px 22px 22px; }
.service-card h3 { font-size: 18px; }
.service-card p { font-size: 14px; line-height: 1.6; }

/* Testimonials: heading left, rotating card right. */
.pg-home .section:has(#tFadeWrap) {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
  padding-top: 24px !important;
}
.pg-home .section:has(#tFadeWrap) .section-header { margin: 0; }
.pg-home .section:has(#tFadeWrap) .section-title { font-size: 44px; }
body.pg-home .t-fade-wrap { max-width: none; width: 100%; min-height: 220px; margin: 0; }
body.pg-home .t-fade-card { padding: 40px 44px; }
body.pg-home .t-fade-card .testimonial-text { font-size: 19px; line-height: 1.6; }

/* ── 7 · SERVICES list + detail ─────────────────────────────────────────── */
.therapy-category { padding: 56px var(--dt-gutter) 0 !important; }
.therapy-category + .cta-banner { margin-top: 72px; }
.therapy-category-label { font-size: 14px; }
.therapy-category > p { font-size: 15px !important; max-width: 640px; }
.therapy-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.therapy-list-card { padding: 22px 22px; gap: 16px; align-items: center; }
.therapy-list-body h3 { font-size: 18px; }
.therapy-list-body p { font-size: 14px; line-height: 1.6; }
.therapy-price { font-size: 20px; }

.service-detail-hero .back-btn { margin-bottom: 28px; }
.service-icon-lg i { font-size: 56px; }
.hours-strip { padding: 16px var(--dt-gutter); }
.pg-services .section > p { font-size: 16px !important; max-width: 820px; }
.conditions-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 900px; }
.condition-chip { padding: 14px 18px; font-size: 14px; }

/* ── 8 · ABOUT ──────────────────────────────────────────────────────────── */
.expert-section { padding-bottom: 40px; }
.expert-card { padding: 36px 40px; gap: 36px; align-items: center; }
.expert-photo, .expert-photo-placeholder { width: 168px; height: 168px; }
.expert-name { font-size: 32px; }
.expert-bio { font-size: 16px; line-height: 1.8; max-width: 860px; }
.about-section { padding: 56px var(--dt-gutter); }
.about-section h2 { font-size: 34px; }
.about-section > p { font-size: 16px; line-height: 1.8; max-width: 820px; }
/* Story / Approach: editorial two-column — heading left, prose right. */
.about-section:not(:has(.value-cards, .map-embed)) {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: 64px;
  align-items: start;
}
.about-section:not(:has(.value-cards, .map-embed)) > h2 { grid-column: 1; grid-row: 1 / span 6; }
.about-section:not(:has(.value-cards, .map-embed)) > p { grid-column: 2; max-width: 720px; }
/* Find Us: details + buttons left, map right. */
.about-section:has(.map-embed) {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: 56px;
  align-content: start;
}
.about-section:has(.map-embed) > :not(.map-embed) { grid-column: 1; }
.about-section:has(.map-embed) > .section-eyebrow { justify-self: start; }
.about-section:has(.map-embed) > .map-embed {
  grid-column: 2;
  grid-row: 1 / span 6;
  margin: 0 !important;
  height: 100%;
  min-height: 380px;
}
.value-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.value-card { padding: 28px 22px; }

/* ── 9 · CONTACT ────────────────────────────────────────────────────────── */
/* Cards stacked on the left, map filling the right. */
body.pg-contact .page-content {
  display: grid;
  grid-template-columns: var(--dt-gutter) minmax(0, 5fr) minmax(0, 7fr) var(--dt-gutter);
  grid-template-rows: auto auto 1fr;
}
body.pg-contact .contact-hero { grid-column: 1 / -1; }
.contact-cards { gap: 14px; padding: 56px 28px 0 0; }
body.pg-contact .contact-cards { grid-column: 2; grid-row: 2; }
.contact-card { padding: 20px 22px; }
.contact-card-value { font-size: 15px; }
body.pg-contact .map-embed {
  grid-column: 3;
  grid-row: 2 / span 2;
  margin: 56px 0 88px 28px;
  height: auto;
  min-height: 520px;
}
body.pg-contact .page-content > div:last-child {
  grid-column: 2;
  grid-row: 3;
  padding: 18px 28px 88px 0 !important;
}

/* ── 10 · BOOK / CAREERS / CONFIRMATIONS ────────────────────────────────── */
.book-hero { padding-bottom: 128px; text-align: center; }
.book-hero p { margin: 0 auto; }
.book-form-wrap {
  width: min(780px, calc(100% - 80px));
  margin: -80px auto 88px;
  padding: 44px 56px 48px !important;
  position: relative;
  z-index: 5;            /* above the hero's gold hairline (z-index 3) */
  background: var(--card-surface, #fff);
  border: 1px solid rgba(196, 160, 82, 0.22);
  border-radius: 28px;
  box-shadow: var(--elev-3);
}
.booked-wrap {
  width: min(680px, calc(100% - 80px));
  margin: 56px auto 88px;
  padding: 48px 52px !important;
  background: var(--card-surface, #fff);
  border: 1px solid rgba(196, 160, 82, 0.22);
  border-radius: 28px;
  box-shadow: var(--elev-2);
}

/* ── 11 · SHOP + PRODUCT ────────────────────────────────────────────────── */
.shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 56px var(--dt-gutter) 40px; }
.product-name { font-size: 17px; }

/* Product page: image left (sticky), details right. */
body.pg-shop .page-content:has(> .product-detail-img-wrap) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 56px;
  align-items: start;
  padding: 0 var(--dt-gutter) 88px;
}
body.pg-shop .page-content:has(> .product-detail-img-wrap) > :first-child {
  grid-column: 1 / -1;
  padding: 32px 0 20px !important;
}
.product-detail-img-wrap {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  min-height: 460px;
  border-radius: 28px;
  box-shadow: var(--elev-2);
}
.product-detail-body { padding: 8px 0 0; }
.product-detail-name { font-size: 38px; line-height: 1.15; }
.product-detail-desc { font-size: 16px; line-height: 1.7; }

/* ── 12 · BLOG ──────────────────────────────────────────────────────────── */
.blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 56px var(--dt-gutter) 88px; }
.blog-card-title { font-size: 19px; }
body.pg-blog .page-content > div[style*="max-width:680px"] { max-width: 780px !important; padding-top: 16px !important; }
.blog-post-hero-img { border-radius: var(--dt-radius); overflow: hidden; }
.blog-post-title { font-size: 42px; line-height: 1.15; }
.blog-post-lead { font-size: 19px; }
.blog-post-content { font-size: 17px; line-height: 1.85; }

/* ── 13 · TESTIMONIALS + LEGAL ──────────────────────────────────────────── */
body .vt-wrap { max-width: none; padding: 48px var(--dt-gutter) 88px; }
body .vt-grid { gap: 24px; }
body .legal-wrap { max-width: 860px; padding: 48px 0 88px; }
body .legal-card { padding: 44px 52px; }

/* ── 14 · Footer ────────────────────────────────────────────────────────── */
.dt-footer {
  display: block;
  position: relative;
  max-width: var(--dt-box);
  margin: 0 auto;
  color: rgba(237, 231, 216, 0.78);
  background: linear-gradient(160deg, var(--glass-a, rgba(48,64,58,.96)), var(--glass-b, rgba(26,38,34,.98))), var(--green-deep);
}
.dt-footer::before {                                  /* gold hairline */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--g-core) 20%, var(--g-lite) 50%, var(--g-core) 80%, transparent);
  opacity: 0.8;
}
.dt-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding: 64px var(--dt-gutter) 48px;
}
.dt-footer-name {
  display: block;
  font-family: var(--font-brand);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.dt-footer-sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nav-gold, #c9a55c);
}
.dt-footer-addr { margin: 18px 0 22px; font-size: 14px; line-height: 1.7; max-width: 300px; }
.dt-footer-h {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nav-gold, #c9a55c);
}
.dt-footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.dt-footer-col a, .dt-footer-hours {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(237, 231, 216, 0.82);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.dt-footer-col a:hover { color: var(--nav-gold-lt, #e4c983); }
.dt-footer-col i { width: 16px; font-size: 13px; color: var(--nav-gold, #c9a55c); flex-shrink: 0; }
.dt-footer-hours { align-items: flex-start; font-size: 13px; }
.dt-footer-hours i { margin-top: 3px; }
.dt-footer-base {
  padding: 18px var(--dt-gutter) 22px;
  border-top: 1px solid rgba(201, 165, 92, 0.18);
  font-size: 12.5px;
  color: rgba(237, 231, 216, 0.6);
}

/* ── 15 · Large desktops ────────────────────────────────────────────────── */
@media (min-width: 1440px) {
  .hero h1 { font-size: 72px; }
  .hero .hero-mandala { width: 480px; height: 480px; top: calc(50% - 240px); }
}

@media (prefers-reduced-motion: reduce) {
  .dt-book, .dt-link { transition: none; }
  .service-card:hover, .therapy-list-card:hover, .product-card:hover,
  .blog-card:hover, a.contact-card:hover, .dt-book:hover { transform: none; }
}
