/* Myhna Vistara | components.css — Buttons, forms, cards, panels
   Do not edit selectors — only values */

  /* -------- STICKY BOTTOM NAV BAR -------- */
  .sticky-bar{
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    height: 56px;
    background: rgba(253,250,244,0.97);
    border-top: 1px solid rgba(175,129,46,0.35);
    display: flex;
    align-items: stretch;
    /* translateY(100% + 16px), not 110% — .sb-book protrudes above this
       bar's own box via a negative margin-top (8-9px depending on
       breakpoint), so 110% of the bar's own (shorter) height fell short
       of clearing it: a sliver of the gold button peeked in at the
       viewport's bottom edge even while "hidden". The flat +16px buffer
       covers that overhang at every breakpoint. */
    transform: translateY(calc(100% + 16px));
    transition: transform .45s cubic-bezier(.2,.7,.2,1);
    box-shadow: 0 -14px 36px -20px rgba(122,90,42,0.35);
  }
  .sticky-bar.show{ transform: translateY(0); }
  .sticky-bar a,
  .sticky-bar button:not(.sb-book){
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    gap: 12px;
    color: var(--text-strong);
    text-decoration: none;
    border: 0;
    background: transparent;
    font-family: var(--body);
    cursor: pointer;
    padding: 0 14px;
    transition: background-color .2s ease;
    min-width: 0;
  }
  .sticky-bar a:hover{ background: rgba(175,129,46,0.07); }
  .sticky-bar .ic{
    width: 22px; height: 22px;
    flex: 0 0 22px;
    color: var(--gold-dark);
    display: flex; align-items: center; justify-content: center;
  }
  .sticky-bar .ic.wa{ color: #25D366; }
  .sticky-bar .ic svg{ width: 100%; height: 100%; display: block; }
  .sticky-bar .lbl{
    display: flex; flex-direction: column;
    line-height: 1.15;
    text-align: left;
    min-width: 0;
  }
  .sticky-bar .lbl .title{
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--text-strong);
    text-transform: uppercase;
  }
  .sticky-bar .lbl .sub{
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 3px;
    letter-spacing: 0.02em;
    text-transform: none;
  }
  .sticky-bar .sb-book{
    flex: 0 0 auto;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    height: 64px;
    margin-top: -9px;
    padding: 0 32px;
    min-width: 220px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -10px 24px -10px rgba(201,168,76,0.55),
                inset 0 1px 0 rgba(255,255,255,0.20);
    transition: background-color .2s ease, box-shadow .25s ease;
    align-self: flex-end;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  }
  .sticky-bar .sb-book:hover{
    box-shadow: 0 -12px 30px -10px rgba(201,168,76,0.75),
                inset 0 1px 0 rgba(255,255,255,0.20);
  }
  .sticky-bar .sb-book .arrow{ display: inline-block; transition: transform .2s ease; }
  .sticky-bar .sb-book:hover .arrow{ transform: translateX(4px); }

  body.sticky-active .footer{ padding-bottom: 76px; }
  body.sticky-active .lead-tab{ display: none !important; }

  /* -------- LEAD SLIDE-IN PANEL -------- */
  .lead-panel{
    position: fixed;
    top: 0; right: 0;
    width: 420px;
    height: 100vh;
    background: var(--cream);
    border-left: 1px solid var(--rule-mid);
    box-shadow: -30px 0 80px -20px rgba(0,0,0,0.30);
    z-index: 200;
    transform: translateX(105%);
    transition: transform .55s cubic-bezier(.2,.7,.2,1);
    padding: 68px 36px 32px;
    overflow-y: auto;
    display: flex; flex-direction: column;
  }
  .lead-panel.open,
  .lead-panel.is-open{ transform: translateX(0); }
  .lead-close{
    position: absolute;
    top: 22px; right: 22px;
    width: 36px; height: 36px;
    background: var(--gold);
    color: var(--white);
    display:flex; align-items:center; justify-content:center;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
    border: none;
    z-index: 2;
  }
  .lead-close:hover{ background: var(--gold-dark); transform: rotate(90deg); }
  .lead-close svg{ width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; }

  /* re-open tab (after dismissal) */
  .lead-tab{
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%) translateX(100%);
    background: var(--navy);
    color: var(--gold);
    padding: 16px 14px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--body);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    z-index: 150;
    cursor: pointer;
    border: none;
    border-radius: 0;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .2s ease;
    box-shadow: -6px 0 24px -8px rgba(0,0,0,0.25);
    display: flex; align-items: center; gap: 10px;
  }
  .lead-tab.show{ transform: translateY(-50%) translateX(0); }
  .lead-tab:hover{ background: var(--navy-deep); }
  .lead-tab .dot{
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(210,171,103,0.7);
    animation: pulseDot 2.2s infinite;
  }

  .lead-backdrop{
    position: fixed; inset: 0;
    background: rgba(90, 70, 30, 0.25);  /* warm brown, matches index.php — was leftover navy */
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
  }
  .lead-backdrop.show{ opacity: 1; pointer-events: auto; }

  /* hero form (now lives in lead panel) */
  .hero-form{
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
  }
  .form-eyebrow{
    font-family: var(--body);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
  }
  .form-title{
    font-family: var(--display);
    font-size: 30px;
    font-weight: 500;
    color: var(--navy);
    margin: 8px 0 0;
    line-height: 1.1;
  }
  .form-rule{
    width: 32px; height: 2px;
    background: var(--gold);
    margin: 14px 0 8px;
  }
  .form-subtitle{
    font-size: 14px;
    color: var(--text-dim);
    font-weight: 400;
  }

  .form-fields{ margin-top: 20px; display:flex; flex-direction:column; gap:12px; }
  .row-2{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }

  .field{
    display:flex; align-items:stretch;
    border: 1px solid rgba(48,76,134,0.15);
    background: var(--white);
    transition: border-color .15s ease;
  }
  .field:focus-within{ border-color: var(--navy); }
  .field input{
    flex:1;
    border: none; outline: none;
    background: transparent;
    padding: 13px 14px;
    font-family: var(--body);
    font-size: 14px;
    color: var(--charcoal);
    min-width: 0;
  }
  .field input::placeholder{ color: var(--color-placeholder); }
  .prefix{
    display:flex; align-items:center;
    background: var(--cream);
    color: var(--navy);
    font-size: 14px;
    padding: 0 14px;
    border-right: 1px solid rgba(48,76,134,0.15);
    font-weight: 700;
  }

  /* country-code dropdown inside lead panel phone field */
  .field .country-code{
    flex: 0 0 auto;
    width: 72px;
    border: 0;
    outline: 0;
    background: var(--cream);
    color: var(--navy);
    font-family: var(--body);
    font-size: 14px;
    font-weight: 700;
    padding: 0 22px 0 12px;
    border-right: 1px solid rgba(48,76,134,0.15);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
    background-position: calc(100% - 10px) 50%, calc(100% - 6px) 50%;
    background-size: 4px 4px;
    background-repeat: no-repeat;
  }
  .field .country-code:focus{ background-color: var(--cream-soft); }

  .consent{
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 10px 0 18px;
  }
  .consent .navy-mark{ color: var(--navy); font-weight: 700; }

  .submit{
    width: 100%;
    background: var(--navy);
    color: var(--gold);
    font-family: var(--body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    padding: 16px;
    border-radius: 0;
    display:flex; align-items:center; justify-content:center; gap:10px;
    transition: background-color .2s ease;
  }
  .submit:hover{ background: var(--navy-deep); }
  .submit .arrow{
    display:inline-block;
    transition: transform .2s ease;
  }
  .submit:hover .arrow{ transform: translateX(4px); }

  .whatsapp{
    width: 100%;
    margin-top: 10px;
    background: transparent;
    border: 1px solid rgba(48,76,134,0.2);
    color: var(--charcoal);
    font-family: var(--body);
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 14px;
    border-radius: 0;
    display:flex; align-items:center; justify-content:center; gap:8px;
    transition: all .2s ease;
  }
  .whatsapp:hover{ border-color:var(--color-wa); color:var(--color-wa-dark); }
  .whatsapp svg{ width: 14px; height: 14px; }

  .trust-strip{
    display:flex; flex-wrap:wrap; gap:14px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(175,129,46,0.2);
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
  }
  .trust-strip span{ display:flex; align-items:center; gap:5px; }
  .trust-strip .tick{ color: var(--gold); }

  /* scroll cue keyframe (rules above use this) */
  /* -------- STATS BAR -------- */
  .stats{
    background: var(--navy);
    padding: 40px 80px;
    display:grid;
    grid-template-columns: repeat(5, 1fr);
  }
  .stat{
    text-align: center;
    padding: 6px 0;
    position: relative;
  }
  .stat + .stat::before{
    content:'';
    position:absolute; left:0; top: 18%; bottom: 18%;
    width: 1px;
    background: rgba(210,171,103,0.20);
  }
  .stat-value{
    font-family: var(--display);
    font-size: clamp(48px, 4.4vw, 56px);
    color: var(--gold);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
  }
  .stat-value sup{
    font-size: 0.45em;
    vertical-align: super;
    color: var(--gold);
    margin-left: 2px;
  }
  .stat-label{
    font-family: var(--body);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-top: 12px;
    font-weight: 700;
  }
  .stat-sublabel{
    font-family: var(--body);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 4px;
    font-weight: 400;
  }

  /* -------- TRUST BAR (social proof, below stats) -------- */
  .trust-bar{
    background: var(--trust-bar-bg);
    border-top: 1px solid var(--gold-accent);
    border-bottom: 1px solid var(--gold-accent);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 64px;
    position: relative;
  }
  .tb-item{
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 28px;
    border-left: 1px solid rgba(90, 70, 30, 0.08);
    position: relative;
    min-width: 0;
  }
  .tb-item:first-child{ border-left: 0; }
  .tb-ic{
    width: 24px; height: 24px;
    flex: 0 0 24px;
    color: var(--gold-accent);
    display: flex; align-items: center; justify-content: center;
  }
  .tb-ic svg{
    width: 100%; height: 100%;
    stroke: currentColor; stroke-width: 1.6; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
  }
  .tb-text{
    display: flex; flex-direction: column;
    line-height: 1.2;
    min-width: 0;
  }
  .tb-stat{
    font-family: var(--body);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy-dark);
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tb-stat .star{ color: var(--gold-accent); font-size: 13px; margin: 0 2px 0 1px; }
  .tb-sub{
    font-family: var(--body);
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 3px;
    font-weight: 400;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tb-live{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    background: var(--white);
    border: 1px solid var(--badge-border);
    color: var(--badge-text);
    font-family: var(--body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.02em;
    padding: 3px 10px;
    border-radius: 999px;
    margin-top: 5px;
    white-space: nowrap;
  }
  .tb-live .pulse{
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--badge-pulse);
    animation: tbPulseScale 2s ease-in-out infinite;
  }

  /* -------- FLOOR PLAN PERMANENT BLUR GATE -------- */
  /* Images and variant prices are ALWAYS blurred — no unlock, no JS needed */

  .floor-plan-img{
    display: block;
    width: 100%;
    height: auto;
    filter: blur(14px);
    transform: scale(1.05);
    user-select: none;
    pointer-events: none;
  }

  /* Lock overlay — always visible */
  .floor-plan-lock-overlay{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(90, 70, 30, 0.40);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 8px;
    gap: 12px;
    z-index: 2;
    padding: 20px;
    text-align: center;
  }
  .floor-plan-lock-overlay .lock-icon{
    font-size: 28px;
    color: var(--gold-accent);
    line-height: 1;
  }
  .floor-plan-lock-overlay .lock-title{
    font-family: var(--display);
    font-size: 22px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: -0.005em;
    margin: 0;
  }
  .floor-plan-lock-overlay .lock-sub{
    font-family: var(--body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    max-width: 220px;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
  }
  .floor-plan-lock-overlay .btn-unlock{
    background: var(--gold-accent);
    color: var(--navy-dark);
    font-family: var(--body);
    font-size: 12px;
    font-weight: 700;
    padding: 12px 24px;
    min-height: 44px;
    border-radius: var(--btn-radius);
    border: none;
    cursor: pointer;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin-top: 4px;
    transition: background-color .2s ease;
  }
  .floor-plan-lock-overlay .btn-unlock:hover{
    background: var(--gold-muted);
  }
  .floor-plan-lock-overlay .btn-unlock[disabled],
  .plans-cta-row .primary[disabled]{
    background: #A83A3A;
    color: #fff;
    cursor: not-allowed;
  }
  .floor-plan-lock-overlay .btn-unlock[disabled]:hover,
  .plans-cta-row .primary[disabled]:hover{
    background: #A83A3A;
  }

  /* -------- PRICE PERMANENT BLUR -------- */
  /* Variant prices only — starting price (first unit) stays visible */
  .price-variant{
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
  }

/* -------- RELATED-PAGES LINK ROW -------- */
/* Shared by bhk-locality-template.php (spoke/hub pages) and
   locality-template.php (near-*.php pages) — cross-links between the two
   page families per SEO brief §3 (mandatory internal linking, both ways). */
.bhk-related{
  display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 56px; padding-top: 28px;
  border-top: 1px solid rgba(175,129,46,0.2);
}
.bhk-related a{
  font-family: var(--body); font-size: 14px; font-weight: 700; color: var(--gold-dark); text-decoration: none;
}
.bhk-related a:hover{ text-decoration: underline; }

/* ============================================================
   FINAL CTA / BOOK A SITE VISIT — shared bottom band
   Matches index.html's #book-visit section exactly (.cta-final /
   .cta-grid / .cta-invite / .cta-card), so every page's closing CTA
   is the same component, form and all — see includes/forms.php's
   render_lead_form(['style' => 'invite', ...]) for the form half.
   ============================================================ */
.cta-final{ background: var(--cream); padding: 96px 72px; } /* top/bottom matches index.html's "unified section rhythm" override for this class */
.cta-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; max-width: 1320px; margin: 0 auto; }
.cta-invite{ min-width: 0; }
.cta-eyebrow{ display: flex; align-items: center; gap: 12px; font-family: var(--body); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 22px; }
.cta-eyebrow .rule{ width: 80px; height: 1px; flex: 0 0 80px; background: linear-gradient(90deg, transparent, var(--gold)); }
.cta-eyebrow .rule ~ .rule{ background: linear-gradient(90deg, var(--gold), transparent); }
.cta-h{ font-family: var(--display); font-weight: 400; font-size: clamp(48px, 5vw, 64px); line-height: 1.08; color: var(--charcoal); margin: 0; }
.cta-h .ln{ display: block; overflow: hidden; padding-bottom: 0.22em; margin-bottom: -0.22em; }
.cta-h .italic-gold{ font-style: italic; color: var(--gold); }
.cta-subh{ font-family: var(--display); font-style: italic; font-size: 22px; color: var(--text-body); margin: 20px 0 0; }
.cta-contacts{ margin: 34px 0 0; display: flex; flex-direction: column; gap: 20px; }
.cta-crow{ display: flex; align-items: center; gap: 16px; text-decoration: none; }
.cta-cic{ flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.cta-cic svg{ width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cta-ctext{ font-family: var(--body); font-size: 17px; color: var(--charcoal); line-height: 1.45; }
a.cta-crow .cta-ctext{ transition: color .2s ease; }
a.cta-crow:hover .cta-ctext{ color: var(--gold); }
.cta-rule{ height: 1px; background: rgba(175,129,46,0.3); margin: 32px 0 18px; }
.cta-trust{ font-family: var(--body); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 700; white-space: nowrap; }
.cta-card{ background: var(--white); box-shadow: 0 20px 50px -20px rgba(122,90,42,0.2); padding: 40px 36px; }
.cta-card .eyebrow{ font-family: var(--body); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.cta-card .card-head{ font-family: var(--display); font-size: 26px; color: var(--navy); font-weight: 500; margin: 8px 0 0; }
.cta-card .rule{ width: 48px; height: 2px; background: var(--gold); margin: 14px 0 26px; }
.cta-card .form-fields{ display: flex; flex-direction: column; gap: 14px; }
.cta-consent{ font-family: var(--body); font-size: 12px; color: var(--text-muted); line-height: 1.5; margin: 16px 0 0; }
.cta-submit{ width: 100%; margin-top: 18px; background: var(--gold); color: var(--charcoal); font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; padding: 18px; border: 0; border-radius: var(--radius-md); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background-color .2s ease, color .2s ease; }
.cta-submit:hover{ background: var(--gold-dark); color: var(--white); }
@media (max-width: 1199px){
  .cta-grid{ gap: 40px; }
}
@media (max-width: 767px){
  .cta-final{ padding: 56px 24px; }
  .cta-grid{ grid-template-columns: 1fr; gap: 32px; }
  .cta-h{ font-size: clamp(38px, 9vw, 52px); }
  .cta-trust{ white-space: normal; }
}

/* ============================================================
   PRIMARY CTA — single source of truth (.btn-gold-primary)
   Matches index.html's .btn-gold-primary exactly. Tag any main CTA
   with this class (alongside .cta-gold / .submit / .sb-book as
   needed) — never style a button one-off.
   ============================================================ */
.btn-gold-primary{
  background: var(--gold-dark);
  color: #fff;
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
  background-image: var(--gold-grad);
  background-size: 200% auto;
  animation: goldFlow var(--gold-shimmer-speed) linear infinite;
  will-change: background-position;
}
.btn-gold-primary:hover{
  background-image: var(--gold-grad);
  background-size: 200% auto;
  background-color: var(--gold-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(201,168,76,0.40),
    0 14px 36px -10px rgba(201,168,76,0.85),
    0 0 36px rgba(201,168,76,0.30);
}
/* component exceptions (shape only) */
.sticky-bar .sb-book.btn-gold-primary{ border-radius: 10px 10px 0 0; }
.sticky-bar .sb-book.btn-gold-primary:hover{ transform: none; }
@media (prefers-reduced-motion: reduce){
  .btn-gold-primary{ animation: none !important; transition: none; }
  .btn-gold-primary:hover{ transform: none; }
}
