/* ============================================================
   SJNC modern design overlay (2026-06)
   Loaded AFTER styles.css to re-skin. Palette + fonts locked
   (navy / blue / white / gold · Cormorant Garamond + DM Sans).
   Style + layout only: no content, data, anchors, or form changes.
   styles.css stays untouched; this file wins by cascade order.
   ============================================================ */
:root{
  --s-navy:#0A1628; --s-navy-2:#13243f; --s-blue:#1B4D89; --s-blue-dk:#143b6b;
  --s-gold:#C9A84C; --s-gold-dk:#9a7d2e; --s-paper:#fff; --s-warm:#F6F4EF;
  --s-ink:#0A1628; --s-mut:#5b6473; --s-line:rgba(10,22,40,.1);
  --s-ease:cubic-bezier(.16,1,.3,1);
}
body{background:var(--s-warm);color:var(--s-ink)}

/* ---------- NAV (global) ----------
   Mechanics stay position:fixed at 96px (toolbar/sidebar/intro-band
   clearances depend on it). Only the LOOK changes: warm translucent
   blur bar, navy logo + links, no uppercase, blue pill CTA. */
nav#mainNav, nav#mainNav.light{background:rgba(246,244,239,.88);backdrop-filter:blur(12px);border-bottom:1px solid transparent;box-shadow:none;transition:.35s var(--s-ease)}
nav#mainNav.scrolled{background:rgba(246,244,239,.94);border-bottom-color:var(--s-line);box-shadow:0 4px 24px rgba(10,22,40,.07)}
nav#mainNav .nav-logo-top{color:var(--s-navy);letter-spacing:.02em}
nav#mainNav .nav-logo-sub{color:var(--s-gold-dk);letter-spacing:.3em}
nav#mainNav .nav-links{gap:40px}
nav#mainNav .nav-links a{color:var(--s-navy);font-size:18px;font-weight:500;letter-spacing:.01em;text-transform:none}
nav#mainNav .nav-links a:hover{color:var(--s-blue)}
nav#mainNav .nav-links a.active{color:var(--s-blue)}
nav#mainNav .nav-links a.nav-cta,nav#mainNav .nav-cta{background:var(--s-blue)!important;color:#fff!important;border-radius:100px!important;padding:13px 28px!important;font-size:16px!important;text-transform:none!important;letter-spacing:0!important}
nav#mainNav .nav-cta:hover{background:var(--s-blue-dk)!important}
nav#mainNav .hamburger span{background:var(--s-navy)}
@media(max-width:560px){
  nav#mainNav{padding:0 20px}
}

/* ---------- MOBILE MENU: full-screen overlay ---------- */
.mobile-menu{inset:0;top:0;height:100vh;height:100dvh;background:rgba(10,22,40,.98);backdrop-filter:blur(10px);padding:96px 32px 48px;z-index:1200;justify-content:flex-start;overflow-y:auto;border-top:none}
.mobile-menu a{font-size:19px}
.mobile-menu-close{position:absolute;top:24px;right:20px;border-radius:8px}
.mobile-menu-close:focus{outline:none}
.mobile-menu-close:focus-visible{outline:2px solid var(--s-gold);outline-offset:4px}

/* ---------- BUTTONS (pill family, global) ---------- */
.s-btn{display:inline-block;padding:15px 30px;border-radius:100px;font-size:15px;font-weight:600;font-family:'DM Sans',sans-serif;cursor:pointer;border:none;transition:.25s var(--s-ease);text-decoration:none}
.s-btn-blue{background:var(--s-blue);color:#fff}
.s-btn-blue:hover{background:var(--s-blue-dk);transform:translateY(-2px)}
.s-btn-gold{background:var(--s-gold);color:var(--s-navy)}
.s-btn-gold:hover{background:#dbbd6b;transform:translateY(-2px)}
.s-btn-line{background:transparent;border:1.5px solid var(--s-navy);color:var(--s-navy)}
.s-btn-line:hover{background:var(--s-navy);color:#fff}
.s-btn-line-light{background:transparent;border:1.5px solid rgba(255,255,255,.7);color:#fff}
.s-btn-line-light:hover{background:#fff;color:var(--s-navy);border-color:#fff;transform:translateY(-2px)}

/* ---------- HERO (homepage): centered composition ----------
   Markup, copy, video, stats values all unchanged. */
.hero-content{max-width:1000px;text-align:center;padding:120px 24px 80px}
.hero-eyebrow{gap:14px;font-size:13px;letter-spacing:.34em;margin-bottom:26px}
.hero-eyebrow::before,.hero-eyebrow::after{content:'';display:block;width:36px;height:1px;background:var(--gold)}
.hero h1{font-size:clamp(44px,6.2vw,84px);line-height:1.04;margin-bottom:0}
.hero-desc{font-size:21px;color:rgba(255,255,255,.9);max-width:620px;line-height:1.7;margin:22px auto 30px;font-weight:300}
.hero-actions{justify-content:center;margin-top:22px}
.hero-actions .btn-primary,.hero-actions .btn-outline{border-radius:100px;padding:15px 30px;font-size:15px;font-weight:600;letter-spacing:.01em;text-transform:none}
.hero-actions .btn-primary:hover{background:#dbbd6b;transform:translateY(-2px);box-shadow:none}
.hero-actions .btn-outline{border:1.5px solid rgba(255,255,255,.7);color:#fff}
.hero-actions .btn-outline:hover{background:#fff;color:var(--s-navy);border-color:#fff;transform:translateY(-2px)}
.hero-stats{width:auto;max-width:none;justify-content:center;margin-top:64px;padding-top:40px;border-top:1px solid rgba(255,255,255,.18)}
@media(max-width:960px){
  .hero-stats{display:none}
}

/* hero search (white pill over the video) */
.s-search{display:flex;gap:8px;background:#fff;padding:8px;border-radius:100px;max-width:560px;margin:30px auto 0;box-shadow:0 20px 50px rgba(10,22,40,.3)}
.s-search input{flex:1;min-width:0;border:none;outline:none;padding:0 22px;font-family:inherit;font-size:16px;color:var(--s-ink);background:transparent}
.s-search button{background:var(--s-blue);color:#fff;border:none;padding:14px 28px;border-radius:100px;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:.25s}
.s-search button:hover{background:var(--s-blue-dk)}

/* hero mobile: fill the viewport, compact controls, readable desc */
@media(max-width:640px){
  .hero-desc{font-size:16px;line-height:1.5;max-width:30ch;margin:18px auto 26px}
}
@media(max-width:560px){
  .hero{min-height:100vh;min-height:100svh}
  .hero-content{padding:100px 20px 60px}
  .hero h1{font-size:clamp(24px,7vw,40px)}
  .hero-eyebrow{font-size:11px;letter-spacing:.18em}
  .hero-actions .btn-primary,.hero-actions .btn-outline{padding:12px 22px;font-size:13.5px}
  .s-search{padding:5px;gap:6px}
  .s-search input{font-size:16px;padding:0 14px}
  .s-search button{padding:10px 16px;font-size:13px}
}

/* ---------- TRUST BAR (new element under the hero) ---------- */
.s-trust{width:min(1160px,100% - 64px);margin:24px auto 56px;display:flex;flex-wrap:wrap;justify-content:center;gap:0;background:#fff;border:1px solid var(--s-line);border-radius:18px;overflow:hidden}
.s-trust .item{flex:1 1 190px;display:flex;align-items:center;justify-content:center;gap:12px;padding:22px 20px;border-right:1px solid var(--s-line);text-align:left}
.s-trust .item:nth-child(2){flex-basis:250px}
.s-trust .item:last-child{border-right:none}
.s-trust svg{width:22px;height:22px;color:var(--s-gold-dk);flex-shrink:0}
.s-trust b{font-family:'Cormorant Garamond',serif;font-size:19px;font-weight:700;color:var(--s-navy);line-height:1.18}
@media(max-width:880px){
  .s-trust{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .s-trust .item{flex:none;border-right:1px solid var(--s-line);border-bottom:1px solid var(--s-line)}
  .s-trust .item:nth-child(2n){border-right:none}
  .s-trust .item:last-child:nth-child(odd){grid-column:1/-1;border-right:none}
  .s-trust .item:last-child{border-bottom:none}
}
@media(max-width:560px){
  .s-trust{grid-template-columns:1fr;border-radius:16px}
  .s-trust .item{justify-content:flex-start;gap:14px;padding:14px 20px;border-right:none;border-bottom:1px solid var(--s-line);text-align:left}
  .s-trust .item:last-child{border-bottom:none}
  .s-trust b{font-size:18px;line-height:1.15}
}

/* ---------- LISTING CARDS (homepage featured + homes-page grid) ---------- */
#featuredListings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
:is(#featuredListings,#homesCardListFull){grid-auto-rows:1fr}
:is(#featuredListings,#homesCardListFull) .listing-card{background:#fff;border-radius:22px;overflow:hidden;border:none;box-shadow:0 4px 24px rgba(10,22,40,.06);transition:.35s var(--s-ease);margin:0;display:flex;flex-direction:column;height:100%}
:is(#featuredListings,#homesCardListFull) .listing-card:hover{transform:translateY(-6px);box-shadow:0 28px 60px rgba(10,22,40,.14)}
:is(#featuredListings,#homesCardListFull) .listing-img{position:relative;aspect-ratio:4/3;height:auto;overflow:hidden;border-radius:0;margin:0}
:is(#featuredListings,#homesCardListFull) .listing-img img{width:calc(100% + 1px);max-width:none;transition:.7s var(--s-ease)}
:is(#featuredListings,#homesCardListFull) .listing-card:hover .listing-img img{transform:scale(1.07)}
:is(#featuredListings,#homesCardListFull) .listing-badge{top:14px;left:14px;right:auto;border-radius:100px;padding:6px 13px;font-size:11px;letter-spacing:.08em}
:is(#featuredListings,#homesCardListFull) .listing-body{padding:22px 24px 26px;display:flex;flex-direction:column;flex:1}
:is(#featuredListings,#homesCardListFull) .listing-address{font-family:'Cormorant Garamond',serif;font-size:25px;font-weight:700;color:var(--s-navy);line-height:1.1;margin-bottom:4px}
:is(#featuredListings,#homesCardListFull) .listing-city{font-size:13px;color:var(--s-mut);margin-bottom:14px}
:is(#featuredListings,#homesCardListFull) .listing-specs{border-top:1px solid var(--s-line);padding-top:14px;gap:16px}
:is(#featuredListings,#homesCardListFull) .listing-spec{font-size:13px;color:var(--s-mut)}
:is(#featuredListings,#homesCardListFull) .listing-price{color:var(--s-blue);margin-top:14px;min-height:54px;display:flex;align-items:center;font-size:24px!important;font-weight:600;line-height:1.1}
:is(#featuredListings,#homesCardListFull) .listing-model{margin-top:6px;margin-bottom:14px}
:is(#featuredListings,#homesCardListFull) .notify-btn{margin-top:auto;border-radius:100px;background:var(--s-blue);color:#fff;border:none;width:100%}
:is(#featuredListings,#homesCardListFull) .notify-btn:hover{background:var(--s-blue-dk);color:#fff}
/* two-button row: ghost View on Map + primary Notify/Request Info */
:is(#featuredListings,#homesCardListFull) .listing-cta-row{display:flex;gap:8px;margin-top:auto}
:is(#featuredListings,#homesCardListFull) .listing-cta-row .notify-btn{margin-top:0;width:auto;flex:1;white-space:nowrap;padding-left:10px;padding-right:10px}
:is(#featuredListings,#homesCardListFull) .notify-btn-ghost{background:transparent;color:var(--s-navy);border:1.5px solid var(--s-navy)}
:is(#featuredListings,#homesCardListFull) .notify-btn-ghost:hover{background:var(--s-navy);color:#fff;border-color:var(--s-navy)}
@media(max-width:880px){
  #featuredListings{grid-template-columns:1fr}
}
@media(max-width:560px){
  #featuredListings{gap:18px}
}

/* ---------- HOMES PAGE: mobile flows naturally ----------
   Drop the thumbnail sidebar + fixed-viewport split frame on phones:
   intro band, filters, map, then Full Listings in normal page flow.
   Desktop split untouched. */
@media(max-width:768px){
  .homes-split{display:block;height:auto;min-height:0;margin-top:0!important;overflow:visible}
  .homes-list-pane{display:none}
  .homes-toolbar{position:static!important;top:auto!important}
  .homes-toolbar-inner{height:auto;padding:8px 14px;gap:8px}
  .homes-toolbar-left{flex-wrap:wrap;gap:8px;width:100%}
  .homes-toolbar-right{flex-wrap:wrap;gap:8px;width:100%}
  .homes-toolbar-right .filter-select{flex:1 1 calc(50% - 6px);min-width:0}
  .homes-toolbar-right .filter-reset{flex:0 0 auto}
  /* intro band: compact on phones (clearance margin kept for the fixed nav) */
  #page-homes > div:first-of-type{padding:26px 20px 26px!important}
  #page-homes > div:first-of-type h2{font-size:24px!important;margin-bottom:4px!important}
  #page-homes > div:first-of-type p{font-size:17px!important}
}

/* ---------- MAP POPUP: responsive photo + phone-size card ---------- */
.map-popup-photo{height:clamp(110px,28vw,150px);overflow:hidden}
/* Mobile: keep the photo, scale the WHOLE card down ~35% (each value x0.65).
   Taller map + smaller card means it fits without autoPan; autoPan panned
   the map, which made markercluster recluster on moveend and silently
   closed the open popup (also fixed via autoPan:false in site.js). */
@media(max-width:768px){
  .homes-map-pane,.homes-map-pane #homesMap{height:70vh!important;min-height:560px!important}
  .leaflet-popup-content{width:170px!important}
  /* show the FULL photo (natural aspect at card width), not a cropped band */
  .map-popup-photo{display:block!important;height:auto!important}
  .map-popup-photo img{height:auto!important;object-fit:contain!important}
  .map-popup-header{padding:7px 12px 5px!important}
  .map-popup-address{font-size:13px!important;line-height:1.15!important;margin-bottom:1px!important}
  .map-popup-city{font-size:8px!important}
  .map-popup-body{padding:7px 12px 8px!important}
  .map-popup-badge{font-size:7px!important;padding:2px 6px!important;margin-bottom:4px!important}
  .map-popup-price{font-size:16px!important;margin-bottom:1px!important}
  .map-popup-model{font-size:8px!important}
  .map-popup-specs{font-size:9px!important;gap:8px!important;margin-bottom:4px!important}
  .map-popup-body button{padding:5px 8px!important;font-size:8px!important;margin-top:6px!important}
}

/* ---------- FOOTER (all pages) ----------
   License + Fair Housing blocks keep their base styling untouched. */
body footer{background:var(--s-navy);color:rgba(255,255,255,.78);padding:80px 0 0;margin-top:0;font-family:'DM Sans',sans-serif;font-size:15px;line-height:1.7}
body footer .footer-main{width:min(1160px,100% - 64px);margin:0 auto;display:grid;grid-template-columns:1.5fr .85fr .85fr .85fr .85fr;gap:48px;padding-bottom:56px;max-width:none;border-bottom:none}
body footer .footer-brand{background:rgba(255,255,255,.04);border-radius:24px;padding:32px 36px}
body footer .footer-brand h3{font-family:'Cormorant Garamond',serif;font-size:30px;font-weight:700;color:#fff;line-height:1.06;margin:0 0 14px;letter-spacing:.01em;white-space:nowrap}
body footer .footer-brand-sub{font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--s-gold);font-weight:600;margin-bottom:20px;display:block}
body footer .footer-brand-desc{color:rgba(255,255,255,.7);max-width:42ch;font-size:14px;line-height:1.7;margin:0}
body footer .footer-col h4{font-family:'Cormorant Garamond',serif;font-size:20px;font-weight:700;color:#fff;letter-spacing:0;text-transform:none;margin:0 0 18px;display:inline-flex;align-items:center;gap:10px}
body footer .footer-col h4::before{content:'';width:20px;height:1px;background:var(--s-gold)}
body footer .footer-col ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:11px}
body footer .footer-col ul li{margin-bottom:0}
body footer .footer-col ul a{color:rgba(255,255,255,.78);text-decoration:none;font-size:15px;font-weight:400;transition:color .2s var(--s-ease)}
body footer .footer-col ul a:hover{color:var(--s-gold)}
body footer .footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:30px 0 40px;max-width:none}
body footer .footer-bottom>*{width:min(1160px,100% - 64px);margin-left:auto;margin-right:auto}
body footer .footer-disclaimer{color:rgba(255,255,255,.55);font-size:12px;line-height:1.7;margin:0 auto 16px;max-width:none;border-top:none;padding-top:0}
body footer .footer-copy{color:rgba(255,255,255,.55);font-size:13px;margin:0 auto}
@media(max-width:980px){
  body footer .footer-main{grid-template-columns:1fr 1fr;gap:36px}
  body footer .footer-brand{grid-column:1 / -1}
}
@media(max-width:560px){
  body footer{padding-top:56px}
  body footer .footer-main{grid-template-columns:1fr;gap:30px}
  body footer .footer-brand{padding:24px 26px}
  body footer .footer-brand h3{font-size:26px}
}

/* ---------- SELL YOUR LAND: rounded form card + pill submit ---------- */
.land-right{border-radius:20px}
.land-right .btn-primary{border-radius:100px;padding:16px 30px;letter-spacing:.14em;margin-top:4px}
.land-right .form-group input,
.land-right .form-group textarea,
.land-right .form-group select{border-radius:12px;padding:14px 16px;transition:border-color .2s var(--s-ease),box-shadow .2s var(--s-ease),background .2s var(--s-ease)}
.land-right .form-group input:focus,
.land-right .form-group textarea:focus,
.land-right .form-group select:focus{border-color:var(--s-gold);background:rgba(255,255,255,.09);box-shadow:0 0 0 3px rgba(201,168,76,.15)}
@media(max-width:600px){
  .land-section{padding:56px 0}
  .land-inner{padding:0 20px}
  .land-right{padding:30px 22px;border-radius:18px}
  .land-right .form-row{grid-template-columns:1fr;gap:0}
  .land-form-title{font-size:30px}
}

/* ---------- COMMUNITY CARDS + NOTIFY FORM ---------- */
.community-card{border-radius:20px;overflow:hidden;box-shadow:0 4px 24px rgba(10,22,40,.08);transition:transform .35s var(--s-ease),box-shadow .35s}
.community-card:hover{transform:translateY(-6px);box-shadow:0 24px 56px rgba(10,22,40,.16)}
/* top padding clears the absolute status pill so centered text never
   slides under it (e.g. when a long name wraps) */
.community-card-header{padding-top:56px;box-sizing:border-box}
@media(max-width:640px){
  .community-card-header{align-items:flex-start}
}
.community-status-pill{border-radius:100px;padding:5px 14px}
.community-card-eyebrow{font-size:clamp(9px,2.6vw,12px);white-space:nowrap}
.community-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.community-stat-num{font-size:clamp(28px,4.2vw,36px);white-space:nowrap}
.community-stat-label{white-space:nowrap}
.model-pill{border-radius:100px;padding:5px 14px;min-width:60px;text-align:center}
.community-notify-form{border-radius:16px}
.community-notify-form input{border-radius:12px}
.community-notify-form input:focus{border-color:var(--s-gold-dk)}
.community-notify-form button{border-radius:100px}

/* ---------- COMMUNITY DETAIL PAGES: pill + card accents ---------- */
.comm-hero-badge{border-radius:100px;padding:7px 18px}
.comm-highlight{border-radius:14px}
.comm-model-chip{border-radius:100px}
.comm-stat-n{font-size:42px}

/* ---------- COUNTY CARDS ---------- */
.county-card{border-radius:16px}

/* ---------- SMALL STRUCTURAL FIXES ---------- */
/* let 1fr grid columns size equally instead of to content */
.process-step{min-width:0}
/* mobile contact page: grid items must be allowed to shrink and the
   long unbreakable email must wrap (fixes horizontal overflow) */
.contact-grid,.contact-grid>*{min-width:0}
.contact-info a{overflow-wrap:anywhere}

/* ---------- MOBILE SECTION RHYTHM (homepage, <=768px) ---------- */
/* Normalize every homepage band to 56px top/bottom so each section
   boundary reads as a uniform 112px on phones. Scoped to #page-home. */
@media(max-width:768px){
  #page-home .s-trust{margin-bottom:0}                                              /* trust bar reads as part of the hero; next section's 56px is the gap */
  #page-home>section{padding-top:56px;padding-bottom:56px}                          /* Featured Homes */
  #page-home .agent-section{padding:56px 0}                                         /* About */
  #page-home>section[style*="padding:48px 40px 72px"]{padding:56px 20px!important}  /* Process */
  #page-home>section[style*="padding:80px 40px"]{padding:56px 20px!important}       /* Upcoming + Counties */
  #page-home>div[style*="padding:80px 0"]{padding:56px 0!important}                 /* Why SJNC navy band */
  #page-home>section[style*="clamp(60px"]{padding:56px 20px!important}              /* FAQ */
}
