/* Myhna Vistara | layout.css — Page structure, grid, responsive
   Do not edit selectors — only values */

  /* -------- NAVIGATION -------- */
  .nav{
    position: fixed; top:0; left:0; right:0;
    height: 68px;
    z-index: 100;
    display:flex; align-items:center;
    padding: 0 80px;
    background: transparent;
    transition: background-color .35s ease, border-color .35s ease, backdrop-filter .35s ease;
    border-bottom: 1px solid transparent;
  }
  .nav.scrolled{
    background: rgba(12, 10, 8, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(197, 163, 89, 0.2);
  }

  .nav-inner{
    display:flex; align-items:center; justify-content:space-between;
    width:100%; gap: 32px;
  }

  .logo{
    display:flex; align-items:center; gap:12px;
  }
  .logo img{ height:56px; width:auto; display:block; }
  .logo-text{ display:flex; flex-direction:column; line-height:1; }
  .logo-text .top{
    font-family: var(--body);
    font-size: 9px;
    letter-spacing: 0.30em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255,255,255,0.70);
    margin-bottom: 3px;
  }
  .logo-text .bottom{
    font-family: var(--display);
    font-size: 20px;
    color: var(--white);
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1;
  }
  .nav.is-light .logo-text .top{ color: rgba(255,255,255,0.70); }
  .nav.is-light .logo-text .bottom{ color: var(--white); }
  .nav.is-light.scrolled .logo-text .top{ color: rgba(255,255,255,0.70); }
  .nav.is-light.scrolled .logo-text .bottom{ color: var(--white); }

  .nav-links{
    display:flex; align-items:center; gap:40px;
    list-style:none; margin:0; padding:0;
  }
  .nav-links a{
    font-family: var(--body);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
    font-weight: 600;
    transition: color .2s ease;
    position: relative;
    padding: 4px 0;
  }
  .nav.is-light .nav-links a{ color: rgba(255,255,255,0.75); }
  .nav.is-light.scrolled .nav-links a{ color: rgba(255,255,255,0.75); }
  .nav-links a:hover{ color: var(--gold); }
  /* Keep each item on one line — "Floor Plans" / "Configuration" were
     breaking mid-label at ~1100-1300px, which pushed the row to two lines. */
  .nav-links a{ white-space: nowrap; }
  .nav-links li{ display:flex; align-items:center; }
  .nav-links .dot{
    width: 3px; height: 3px;
    background: var(--gold);
    opacity: 0.6;
    margin-left: -22px; margin-right: 18px;
  }
  .nav-links li:first-child .dot{ display:none; }

  /* -------- NAV DROPDOWN (Configuration → 3 BHK / 4 BHK) -------- */
  .nav-links li.has-sub{ position: relative; }
  .nav-links li.has-sub > a{ display: inline-flex; align-items: center; gap: 6px; }
  .nav-links .caret{ font-size: 9px; line-height: 1; transition: transform .2s ease; }
  .nav-links li.has-sub:hover .caret,
  .nav-links li.has-sub:focus-within .caret{ transform: rotate(180deg); }
  .nav-sub{
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 150px;
    margin: 0; padding: 8px 0;
    list-style: none;
    background: rgba(28, 22, 10, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(175,129,46,0.28);
    box-shadow: 0 18px 40px -18px rgba(0,0,0,0.55);
    opacity: 0; visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    z-index: 101;
  }
  /* padding-top bridges the 6px gap so the menu doesn't close while the
     cursor travels from the parent link down into the submenu. */
  .nav-links li.has-sub::after{
    content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 10px;
  }
  .nav-links li.has-sub:hover .nav-sub,
  .nav-links li.has-sub:focus-within .nav-sub{
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .nav-sub li{ display: block; }
  .nav-sub a{
    display: block;
    padding: 9px 18px;
    font-family: var(--body);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255,255,255,0.82) !important;
    white-space: nowrap;
  }
  .nav-sub a:hover{ color: var(--gold) !important; background: rgba(175,129,46,0.10); }

  .nav-right{
    display:flex; align-items:center; gap:24px;
  }
  /* mobile-only nav control (hidden on desktop) */
  .nav-burger{
    display: none;
    width: 40px; height: 40px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    position: relative;
    flex: 0 0 40px;
  }
  .nav-burger span{
    position: absolute;
    left: 8px; right: 8px;
    height: 1.5px;
    background: var(--white);
    border-radius: 1px;
    transition: transform .3s ease, opacity .25s ease, top .3s ease;
  }
  .nav-burger span:nth-child(1){ top: 14px; }
  .nav-burger span:nth-child(2){ top: 20px; }
  .nav-burger span:nth-child(3){ top: 26px; }
  body.nav-open .nav-burger span:nth-child(1){ top: 20px; transform: rotate(45deg); }
  body.nav-open .nav-burger span:nth-child(2){ opacity: 0; }
  body.nav-open .nav-burger span:nth-child(3){ top: 20px; transform: rotate(-45deg); }

  /* slide-down full-screen mobile menu */
  .nav-menu{
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(43, 32, 12, 0.97);  /* dark brown, matches index.php — was leftover navy from the old palette */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 80px 32px 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    display: flex; flex-direction: column;
  }
  body.nav-open .nav-menu{ opacity: 1; visibility: visible; }
  .nav-menu ul{
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column;
    gap: 2px;
  }
  .nav-menu li a{
    display: block;
    padding: 18px 4px;
    font-family: var(--display);
    font-size: 28px;
    font-weight: 400;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    letter-spacing: -0.005em;
  }
  .nav-menu li a:hover{ color: var(--gold); }
  .nav-menu-foot{
    margin-top: auto;
    padding-top: 28px;
    display: flex; flex-direction: column;
    gap: 12px;
  }
  .nav-menu-foot .nav-menu-call{
    display: flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px;
    border: 1px solid var(--gold-border);
    color: var(--gold);
    font-family: var(--body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--btn-radius);
  }
  .nav-menu-foot .nav-menu-call svg{ width: 14px; height: 14px; }
  .nav-menu-foot .nav-menu-cta{
    /* No background/color — .btn-gold-primary owns the gold shimmer fill.
       This selector is 0-2-0 and would outrank it. Matches index.php. */
    height: 52px;
    font-family: var(--body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 0;
    border-radius: var(--btn-radius);
    cursor: pointer;
  }
  body.nav-open{ overflow: hidden; }

  .nav-phone{
    font-family: var(--body);
    font-size: 13px;
    color: rgba(255,255,255,0.70);
    font-weight: 400;
    display:flex; align-items:center; gap:8px;
  }
  .nav-phone svg{ width:13px; height:13px; opacity:.7; color: var(--gold); }
  .nav.is-light .nav-phone{ color: rgba(255,255,255,0.70); }
  .nav.is-light.scrolled .nav-phone{ color: rgba(255,255,255,0.70); }

  /* -------- NAV ON A LIGHT PAGE (no dark hero behind it) --------
     Pages built on bhk-locality-template.php open straight into a cream
     section, not a dark hero image — the white logo/links above are
     invisible until .scrolled adds the dark nav background. Swap to a
     dark logo + dark text for that pre-scroll state only; .scrolled
     already looks right (dark bg, white text) so it's left untouched. */
  /* ".logo img{display:block}" above (0-1-1) outranks a lone class
     selector (0-1-0) — scope through .logo so these actually win. */
  .logo img.logo-img--dark{ display: none; }
  .nav-on-light:not(.scrolled) .logo img.logo-img--white{ display: none; }
  .nav-on-light:not(.scrolled) .logo img.logo-img--dark{ display: block; }
  .nav-on-light:not(.scrolled) .logo-text .top{ color: rgba(45,46,45,0.60); }
  .nav-on-light:not(.scrolled) .logo-text .bottom{ color: var(--charcoal); }
  .nav-on-light:not(.scrolled) .nav-links a{ color: var(--charcoal); }
  .nav-on-light:not(.scrolled) .nav-links a:hover{ color: var(--gold-dark); }
  .nav-on-light:not(.scrolled) .nav-phone{ color: var(--charcoal); }
  .nav-on-light:not(.scrolled) .nav-burger span{ background: var(--charcoal); }

  .cta-gold{
    background: transparent;
    color: var(--gold);
    border: var(--btn-border-width) solid var(--gold);
    font-family: var(--body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    padding: 13px 26px;
    border-radius: 0;
    transition: background-color .2s ease, color .2s ease;
    cursor: pointer;
  }
  .cta-gold:hover{ background: var(--gold); color: var(--charcoal); }

  /* -------- SHARED SECTION ELEMENTS -------- */
  .section-eyebrow{
    font-family: var(--body);
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 700;
    display:flex; align-items:center; gap:16px;
    margin-bottom: 28px;
  }
  .section-eyebrow .rule{
    width: 36px; height: 1px;
    background: var(--gold);
    display: inline-block;
  }
  .section-eyebrow .navy{ color: var(--navy); }
  .section-eyebrow .gold{ color: var(--gold); }

  .section-h{
    font-family: var(--display);
    font-size: 64px;
    line-height: 1.05;
    font-weight: 300;
    color: var(--charcoal);
    margin: 0;
    letter-spacing: -0.01em;
  }
  .section-h .italic{ font-style: italic; color: var(--gold); font-weight: 300; }

  /* -------- FOOTER (matches index.html exactly — cream, ft-* classes) -------- */
  .footer{
    background: var(--cream);
    color: var(--text-faint);
    padding: 72px 72px 0;
    border-top: 1px solid rgba(175,129,46,0.3);
  }
  .footer-top{ display: grid; grid-template-columns: 1.2fr 1fr 1.1fr; gap: 56px; padding-bottom: 44px; }
  .ft-col{ min-width: 0; }
  .ft-logo{ display: inline-block; }
  .ft-logo img{ height: 60px; width: auto; display: block; }
  .ft-label{ font-family: var(--body); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 26px 0 10px; }
  .ft-name{ font-family: var(--body); font-weight: 700; font-size: 16px; color: var(--charcoal); margin: 0 0 6px; }
  .ft-addr{ font-family: var(--body); font-size: 14px; color: var(--text-faint); line-height: 1.7; margin: 0; max-width: 300px; }
  .ft-dir{ display: inline-block; margin-top: 12px; font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: 0.03em; color: var(--gold); text-decoration: none; }
  .ft-dir:hover{ text-decoration: underline; }
  .ft-parent{ font-family: var(--display); font-size: 24px; color: var(--charcoal); font-weight: 500; line-height: 1; }
  .ft-parent-logo{ height: 116px; width: auto; display: block; }
  .footer-social .social-icons{ display: flex; gap: 12px; flex-wrap: wrap; }
  .footer-social .social-icons a{ width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(210,171,103,0.5); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 18px; text-decoration: none; transition: transform .2s ease, background-color .2s ease, color .2s ease; }
  .footer-social .social-icons a i{ --ph-color: currentColor; --ph-secondary-color: rgba(210,171,103,0.35); }
  .footer-social .social-icons a:hover{ background: var(--gold); color: #fff; transform: translateY(-3px); }
  .ft-call{ font-family: var(--body); font-weight: 700; font-size: 18px; color: var(--charcoal); text-decoration: none; }
  .ft-links{ display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
  .ft-links a{ font-family: var(--body); font-size: 14px; color: var(--charcoal); text-decoration: none; transition: color .2s ease; }
  .ft-links a:hover{ color: var(--gold); }
  .ft-links a.rera{ color: var(--gold); font-size: 12px; letter-spacing: 0.03em; white-space: nowrap; }
  .ft-div{ height: 1px; background: rgba(175,129,46,0.3); }
  .ft-disclaimer{ padding: 30px 0; }
  .ft-disclaimer p{ font-family: var(--body); font-size: 12px; line-height: 1.7; color: var(--text-muted); margin: 0 0 14px; }
  .ft-disclaimer p:last-child{ margin-bottom: 0; }
  .ft-disclaimer strong{ color: var(--charcoal); font-weight: 700; }
  .ft-disclaimer a{ color: var(--gold); text-decoration: none; }
  .ft-disclaimer a:hover{ text-decoration: underline; }
  .footer-bottom{ display: flex; justify-content: space-between; gap: 20px; padding: 20px 0 28px; flex-wrap: wrap; }
  .footer-bottom p{ font-family: var(--body); font-size: 12px; color: var(--text-muted); margin: 0; }
  .ft-badges{ display: flex; align-items: center; gap: 22px; margin-top: 14px; flex-wrap: wrap; }
  .ft-badges img{ display: block; height: 48px; width: auto; opacity: 0.9; transition: opacity .2s ease; }
  .ft-badges img[alt="CREDAI Member"]{ height: 30px; }
  .ft-badges img:hover{ opacity: 1; }

  /* Hero form is removed by default — tweak re-enables it */
  .hero-form-card{ display: none; }
  body.show-hero-form .hero-form-card{ display: block; }
  /* Visually-hidden utility (for SEO h1 + a11y labels) */
  .visually-hidden{
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
  }
  /* Form field error message */
  .field-error{
    display: none;
    color: var(--color-error);
    font-family: var(--body);
    font-size: 12px;
    margin: 4px 2px 0;
    font-weight: 400;
  }
  .field-error.show{ display: block; }
  .field.has-error,
  .field-ic.has-error{ border-color: var(--color-error) !important; }
  /* When form is hidden, give the hero copy more room */
  body:not(.show-hero-form) .hero-left{
    width: 70%;
    max-width: 880px;
  }
  /* Hero overlay darkness — driven by --hero-overlay (0..1) */
  .hero{
    background-image:
      linear-gradient(
        to right,
        rgba(12, 10, 6, calc(var(--hero-overlay, 0.55) + 0.18)) 0%,
        rgba(12, 10, 6, calc(var(--hero-overlay, 0.55) - 0.10)) 42%,
        rgba(12, 10, 6, calc(var(--hero-overlay, 0.55) - 0.42)) 72%,
        rgba(12, 10, 6, calc(var(--hero-overlay, 0.55) - 0.48)) 100%),
      url('/vistara/assets/hero-bg.jpg');
  }
  /* Stats theme — cream variant */
  body.stats-cream .stats{ background: var(--cream-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  body.stats-cream .stat-value{ color: var(--navy); }
  body.stats-cream .stat-value sup{ color: var(--gold); }
  body.stats-cream .stat-label{ color: rgba(45,46,45,0.55); }
  body.stats-cream .stat + .stat::before{ background: var(--rule); }

