/* ===========================================================================
   Menas Homes Builder Co: the homepage (site/index.html) and the site layer of
   the client portal pages (header, footer, buttons and the tokens portal.css
   reads). Brand (brand/Mena Homes Bran Brief.jpg): #222222, #03315C, #DFCCA8,
   #EDEBE7 and #FFFFFF; Cormorant Garamond Bold for headings, Raleway for body
   text, DM Sans for navigation and subtitles.
   =========================================================================== */
:root {
    --navy: #03315C;
    --navy-deep: #022749;
    --sand: #DFCCA8;
    --sand-soft: #E9DCC3;
    --light: #EDEBE7;
    --white: #FFFFFF;
    --charcoal: #222222;
    --ink: var(--charcoal);
    --muted: #5B5F66;
    --line: rgba(3, 49, 92, .14);
    --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-body: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-ui: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --wrap: 1200px;
    --radius: 6px;
    --shadow: 0 22px 48px rgba(3, 49, 92, .14);
    /* Tokens the client portal stylesheet (/portal/portal.css) reads. */
    --cream: var(--light);
    --paper: #F6F5F2;
    --gold: var(--sand);
    --gold-hover: var(--sand-soft);
    --green: var(--navy);
    --sage: #2C5B87;
    --head: var(--font-head);
    --body: var(--font-body);
    --radius-sm: 4px;
    --shadow-md: 0 10px 28px rgba(3, 49, 92, .10);
    /* The header is sticky, so portal pages need no room for it. */
    --header-h: 0px;
    /* Portal text accents: the sand is too light for small text on the light background. */
    --portal-accent: var(--navy);
    --portal-accent-hover: var(--navy-deep);
}

*, *::before, *::after { box-sizing: border-box }
/* Section links land below the sticky header (84px; 68px on phones). */
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100% }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--light);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility
}
img { display: block; max-width: 100%; height: auto }
a { color: inherit }
h1, h2, h3, h4 {
    margin: 0 0 .5em;
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.08;
    color: var(--navy)
}
h1, h2, h3 { text-wrap: balance }
h2 { font-size: clamp(2.15rem, 4.2vw, 3.45rem); letter-spacing: -.005em }
h3 { font-size: 1.55rem; line-height: 1.15 }
p { margin: 0 0 1em }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden }
.ic {
    width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -.2em;
    fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
    transition: transform .25s ease
}
.ic-lg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round }
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 3000;
    padding: 12px 18px; background: var(--navy); color: #fff; font-family: var(--font-ui)
}
.skip-link:focus { left: 16px; top: 16px }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px }
.site-header :focus-visible, .hero :focus-visible, .story :focus-visible, .start-copy :focus-visible,
.site-footer :focus-visible, .planner-result :focus-visible { outline-color: var(--sand) }

/* ----- Eyebrows and buttons ----- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    margin: 0 0 18px;
    font-family: var(--font-ui); font-size: .74rem; font-weight: 600; line-height: 1.4;
    letter-spacing: .3em; text-transform: uppercase; color: var(--navy)
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .55 }
.eyebrow-light { color: var(--sand) }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 28px;
    border: 1px solid transparent; border-radius: 2px; cursor: pointer;
    font-family: var(--font-ui); font-size: .8rem; font-weight: 600; line-height: 1.1;
    letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
    transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s
}
.btn:hover { transform: translateY(-2px) }
.btn:hover .ic { transform: translateX(3px) }
/* .btn-gold is the shared portal code's primary button: navy on this site. */
.btn-gold { background: var(--navy); color: #fff; box-shadow: 0 10px 24px rgba(3, 49, 92, .2) }
.btn-gold:hover { background: var(--navy-deep); color: #fff }
.btn-sand { background: var(--sand); color: var(--navy) }
.btn-sand:hover { background: var(--sand-soft); color: var(--navy) }
.btn-ghost { background: transparent; color: var(--light); border-color: rgba(237, 235, 231, .45) }
.btn-ghost:hover { border-color: var(--sand); color: var(--sand) }
.btn-sm { padding: 11px 18px; font-size: .72rem; letter-spacing: .14em }
.btn.full { width: 100%; white-space: normal; text-align: center; line-height: 1.35 }
.mt-12 { margin-top: 12px }
.text-link {
    display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
    padding-bottom: 6px; border-bottom: 1px solid var(--sand);
    font-family: var(--font-ui); font-size: .74rem; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--navy)
}
.text-link:hover .ic { transform: translateX(4px) }

/* ===========================================================================
   HEADER: one navy bar on the homepage and on the portal pages. Its nav is also
   the burger menu; the portal's own links (.nav-portal) appear only there.
   =========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--navy); color: var(--light);
    border-bottom: 1px solid rgba(223, 204, 168, .16);
    transition: box-shadow .3s ease
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(2, 24, 46, .28) }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; transition: min-height .3s ease }
.site-header.scrolled .header-inner { min-height: 70px }
/* The logo is one composite piece, the mark over MENAS HOMES and BUILDER CO:
   always the whole site/logo-menas-homes.svg, never the mark or the name alone. */
.brand { display: inline-flex; align-items: center; color: inherit; text-decoration: none }
.brand-logo { display: block; flex: 0 0 auto; width: auto; height: 62px; aspect-ratio: 2636 / 1222; color: var(--light); transition: height .3s ease }
.site-header.scrolled .brand-logo { height: 52px }
.nav { display: flex; align-items: center; gap: 28px }
.nav a {
    font-family: var(--font-ui); font-size: .78rem; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
    color: rgba(237, 235, 231, .86); transition: color .2s
}
.nav a:not(.btn):hover { color: var(--sand) }
.nav .nav-account { padding-left: 24px; border-left: 1px solid rgba(223, 204, 168, .3) }
.nav .btn { color: var(--navy) }
.nav .nav-portal { display: none }
.burger { display: none }
/* With the nav tabs showing, the logo sits centred between the bar's left edge
   and the first tab: the bar spans the whole width, its right padding keeps the
   nav on the page's right edge (.wrap), and the logo's auto margins share the
   space to its left. With the burger menu (1180px and under) it stays left. */
@media (min-width: 1181px) {
    .header-inner { width: auto; margin-inline: 0; padding-right: calc((100% - min(var(--wrap), 100% - 48px)) / 2); gap: 0 }
    .brand { margin-inline: auto }
}

/* ===========================================================================
   HERO: the copy on navy, the photos on the right (on top on phones).
   =========================================================================== */
.hero {
    display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    min-height: min(calc(100vh - 84px), 880px);
    background: var(--navy)
}
.hero-copy {
    display: flex; align-items: center;
    padding: clamp(56px, 7vw, 104px) clamp(28px, 5vw, 80px) clamp(56px, 7vw, 96px) max(24px, calc((100vw - var(--wrap)) / 2))
}
.hero-copy-inner { max-width: 560px }
.hero-copy-inner > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both }
.hero-copy-inner > :nth-child(2) { animation-delay: .08s }
.hero-copy-inner > :nth-child(3) { animation-delay: .16s }
.hero-copy-inner > :nth-child(4) { animation-delay: .24s }
.hero-copy-inner > :nth-child(5) { animation-delay: .32s }
@keyframes rise { from { opacity: 0; transform: translateY(22px) } to { opacity: 1; transform: none } }
.hero h1 { margin: 0 0 28px; font-size: clamp(3.2rem, 6.3vw, 6rem); font-weight: 600; line-height: .98; letter-spacing: -.01em; color: var(--light) }
.hero h1 span { font-style: italic; font-weight: 500; color: var(--sand) }
.hero-lead { max-width: 30em; margin-bottom: 36px; font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: rgba(237, 235, 231, .84) }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px }
.hero-points { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 0; padding: 26px 0 0; list-style: none; border-top: 1px solid rgba(223, 204, 168, .22) }
.hero-points li { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-ui); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--light) }
.hero-points .ic { width: 20px; height: 20px; color: var(--sand) }
.hero-media { position: relative; min-height: 420px; overflow: hidden; background: #0B2A47 }
.hero-slide {
    position: absolute; inset: 0;
    background-position: center; background-size: cover;
    opacity: 0; transform: scale(1.05);
    transition: opacity 1.4s ease, transform 7s ease
}
.hero-slide.is-active { opacity: 1; transform: scale(1) }
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(3, 49, 92, .38), rgba(3, 49, 92, 0) 30%) }
.hero-card {
    position: absolute; left: clamp(20px, 4vw, 48px); bottom: clamp(20px, 4vw, 48px); z-index: 2;
    display: grid; gap: 8px; width: min(330px, calc(100% - 40px)); padding: 18px 20px;
    background: rgba(255, 255, 255, .96); border-radius: var(--radius);
    box-shadow: 0 24px 50px rgba(2, 24, 46, .3)
}
.hc-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--navy) }
.hc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 4px rgba(223, 204, 168, .8); animation: pulse 2.4s ease-in-out infinite }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(223, 204, 168, .25) } }
.hero-card strong { font-family: var(--font-head); font-size: 1.32rem; line-height: 1.1; color: var(--navy) }
.hc-bar { height: 6px; overflow: hidden; border-radius: 6px; background: var(--light) }
.hc-bar span { display: block; width: 62%; height: 100%; background: linear-gradient(90deg, var(--sand), var(--navy)) }
.hc-meta { font-family: var(--font-ui); font-size: .76rem; color: var(--muted) }

/* ----- Values strip ----- */
.values { background: var(--white); border-bottom: 1px solid var(--line) }
.values-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 44px }
.value { position: relative; padding: 46px 0 44px }
.value::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 2px; background: var(--sand) }
.value .ic-lg { margin-bottom: 18px; color: var(--navy) }
.value h3 { margin-bottom: 10px; font-size: 1.45rem }
.value p { margin: 0; font-size: .97rem; color: var(--muted) }

/* ----- Brand story (navy) ----- */
.story { position: relative; overflow: hidden; padding: clamp(84px, 10vw, 140px) 0; background: var(--navy); color: var(--light) }
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 110px); align-items: center }
.home-letters {
    position: relative; justify-self: center;
    width: 1.3em; height: 1.98em;
    font-family: var(--font-head); font-size: clamp(7.5rem, 13.5vw, 12.5rem); font-weight: 500; line-height: 1;
    color: var(--sand); user-select: none
}
.home-letters span { position: absolute }
.home-letters span:nth-child(1) { left: 0; top: 0 }
.home-letters span:nth-child(2) { left: .5em; top: .33em }
.home-letters span:nth-child(3) { left: .03em; top: .68em }
.home-letters span:nth-child(4) { left: .66em; top: 1em }
.story-copy { padding-left: clamp(28px, 4vw, 64px); border-left: 1px solid rgba(223, 204, 168, .35) }
.story h2 { font-size: clamp(2.2rem, 4.3vw, 3.55rem); font-weight: 600; color: var(--light) }
.story-lead { max-width: 36em; margin-bottom: 34px; font-size: 1.12rem; color: rgba(237, 235, 231, .84) }
.story-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none }
.story-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: baseline; padding-top: 18px; border-top: 1px solid rgba(223, 204, 168, .18) }
.story-list strong { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--sand) }
.story-list span { color: rgba(237, 235, 231, .82) }

/* ----- Sections ----- */
.section { padding: clamp(84px, 9vw, 130px) 0 }
.section-head { max-width: 760px; margin: 0 auto clamp(44px, 5vw, 64px); text-align: center }
.section-head .eyebrow { justify-content: center }
.section-head .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .55 }
.section-head > p:not(.eyebrow) { margin: 0; font-size: 1.08rem; color: var(--muted) }
.section-head-left { margin-left: 0; text-align: left }
.section-head-left .eyebrow { justify-content: flex-start }
.section-head-left .eyebrow::after { display: none }
.footnote { margin: 20px 0 0; font-family: var(--font-ui); font-size: .74rem; letter-spacing: .05em; text-align: center; color: var(--muted) }

/* ----- Homes ----- */
.homes-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px }
.home-card { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line); transition: transform .35s ease, box-shadow .35s ease }
.home-card:hover { transform: translateY(-6px); box-shadow: var(--shadow) }
.home-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover }
.home-card-body { display: flex; flex: 1; flex-direction: column; padding: 26px 24px 28px }
.home-card h3 { font-size: 1.5rem }
.home-card p { flex: 1; font-size: .97rem; color: var(--muted) }
.interiors { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 24px }
.interiors figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius) }
.interiors img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s ease }
.interiors figure:hover img { transform: scale(1.05) }
.interiors figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 22px 18px;
    background: linear-gradient(transparent, rgba(2, 24, 46, .8));
    font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; line-height: 1.2; color: var(--light)
}

/* ----- Your lot ----- */
/* Remodeling: three cards, then the same kitchen before and after. */
.remodel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px }
.interiors.before-after { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.lot { background: var(--white) }
.lot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(44px, 6vw, 96px); align-items: center }
.lot-media { position: relative; margin: 0 22px 22px 0 }
.lot-media::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--sand); border-radius: var(--radius) }
.lot-media img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius) }
.lot-tag {
    position: absolute; left: 22px; bottom: 22px;
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px;
    background: var(--navy); color: var(--light); border-radius: 2px;
    font-family: var(--font-ui); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase
}
.lot-tag .ic { color: var(--sand) }
.lot-copy > p:not(.eyebrow) { font-size: 1.08rem; color: var(--muted) }
.lot-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 30px; margin: 30px 0 38px; padding: 0; list-style: none }
.lot-list li { display: flex; gap: 14px }
.lot-list .ic { width: 24px; height: 24px; margin-top: 2px; color: var(--navy) }
.lot-list li > span { font-size: .93rem; line-height: 1.55; color: var(--muted) }
.lot-list strong { display: block; margin-bottom: 2px; font-family: var(--font-ui); font-size: .95rem; font-weight: 600; color: var(--navy) }

/* ----- Quote banner ----- */
.banner { padding: clamp(54px, 6vw, 80px) 0; background: var(--navy); text-align: center }
.banner p { margin: 0; font-family: var(--font-ui); font-size: clamp(.92rem, 1.7vw, 1.28rem); font-weight: 600; line-height: 1.7; letter-spacing: .3em; text-transform: uppercase; color: var(--light) }

/* ----- Process ----- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none }
.step { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border-radius: var(--radius) }
.step-media { margin: 0; aspect-ratio: 3 / 2; overflow: hidden }
.step-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease }
.step:hover .step-media img { transform: scale(1.04) }
.step-body { position: relative; display: flex; flex: 1; flex-direction: column; padding: 28px 26px }
.step-no {
    position: absolute; top: -38px; right: 22px; padding: 10px 14px 0;
    background: var(--white); border-radius: 4px 4px 0 0;
    font-family: var(--font-head); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--sand)
}
.step h3 { font-size: 1.5rem }
.step-body > p { font-size: .97rem; color: var(--muted) }
.step-body > .step-portal {
    display: flex; gap: 10px; align-items: flex-start; margin: auto 0 0; padding-top: 16px;
    border-top: 1px solid var(--line);
    font-family: var(--font-ui); font-size: .8rem; line-height: 1.45; color: var(--navy)
}

/* ----- Transparency and the portal example ----- */
.transparency { background: var(--white) }
.transparency-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(44px, 6vw, 90px); align-items: center }
.lead { font-size: 1.12rem; color: var(--muted) }
.feature-list { display: grid; gap: 16px; margin: 30px 0 38px; padding: 0; list-style: none }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted) }
.feature-list .ic { width: 24px; height: 24px; margin-top: 3px; color: var(--navy) }
.feature-list strong { font-weight: 600; color: var(--ink) }
.transparency-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px }
.transparency-cta span { font-size: .92rem; color: var(--muted) }
.portal-mock { padding: 16px; background: var(--light); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); font-family: var(--font-ui) }
.pm-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--navy); color: var(--light); border-radius: 8px; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase }
.pm-logo { display: block; flex: 0 0 auto; width: auto; height: 30px; aspect-ratio: 2636 / 1222; color: var(--sand) }
.pm-avatar { display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto; border-radius: 50%; background: var(--sand); color: var(--navy); font-size: .72rem; font-weight: 700; letter-spacing: 0 }
.pm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 16px 18px; background: var(--white); border-radius: 8px }
.pm-ref { display: block; font-size: .72rem; letter-spacing: .14em; color: var(--muted) }
.pm-head strong { font-family: var(--font-head); font-size: 1.35rem; color: var(--navy) }
.pm-chip { padding: 6px 12px; border-radius: 999px; background: rgba(3, 49, 92, .08); font-size: .72rem; font-weight: 600; white-space: nowrap; color: var(--navy) }
.pm-rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; padding: 16px 14px; list-style: none; background: var(--white); border-radius: 8px }
.pm-rail li { position: relative; padding-top: 24px; font-size: .66rem; line-height: 1.3; text-align: center; color: var(--muted) }
.pm-rail li::before { content: ""; position: absolute; z-index: 1; top: 4px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border: 2px solid rgba(3, 49, 92, .22); border-radius: 50%; background: var(--white) }
.pm-rail li::after { content: ""; position: absolute; top: 9px; left: calc(-50% + 3px); right: calc(50% + 9px); height: 2px; background: rgba(3, 49, 92, .14) }
.pm-rail li:first-child::after { display: none }
.pm-rail li.done::before { border-color: var(--navy); background: var(--navy) }
.pm-rail li.done::after, .pm-rail li.now::after { background: var(--navy) }
.pm-rail li.now { font-weight: 700; color: var(--navy) }
.pm-rail li.now::before { border-color: var(--navy); background: var(--sand); box-shadow: 0 0 0 4px rgba(223, 204, 168, .5) }
.pm-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; margin-top: 12px }
.pm-messages, .pm-files { padding: 16px 18px; background: var(--white); border-radius: 8px }
.pm-label { display: block; margin-bottom: 10px; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted) }
.pm-msg { margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; font-family: var(--font-body); font-size: .84rem; line-height: 1.5 }
.pm-msg b { display: block; margin-bottom: 2px; font-family: var(--font-ui); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase }
.pm-msg.team { background: var(--light); color: var(--ink) }
.pm-msg.you { margin-left: 18px; background: var(--navy); color: var(--light) }
.pm-msg.you b { color: var(--sand) }
.pm-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px }
.pm-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px }
.pm-file { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .76rem; font-weight: 600; color: var(--navy) }

/* ----- Budget planner ----- */
.planner { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start }
.planner-copy > p:not(.eyebrow) { font-size: 1.08rem; color: var(--muted) }
.planner-card { display: grid; gap: 26px; margin-top: 30px; padding: clamp(22px, 3vw, 32px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius) }
.field-label {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px;
    font-family: var(--font-ui); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--navy)
}
.field-label output { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; letter-spacing: 0; text-transform: none }
.range-field { display: block }
.range-field input[type="range"] { width: 100%; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer }
.range-field input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--navy) var(--fill, 29%), rgba(3, 49, 92, .15) var(--fill, 29%)) }
.range-field input[type="range"]::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -10px; border: 2px solid var(--navy); border-radius: 50%; background: var(--white); box-shadow: 0 4px 10px rgba(3, 49, 92, .25); -webkit-appearance: none; appearance: none }
.range-field input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(3, 49, 92, .15) }
.range-field input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--navy) }
.range-field input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 2px solid var(--navy); border-radius: 50%; background: var(--white) }
.range-scale { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--font-ui); font-size: .72rem; color: var(--muted) }
.seg { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0 }
.seg legend { width: 100%; padding: 0; float: left }
.seg label { position: relative; flex: 1 1 0; min-width: 100px }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer }
.seg span {
    display: block; padding: 13px 10px; text-align: center;
    background: var(--white); border: 1px solid rgba(3, 49, 92, .2); border-radius: 2px;
    font-family: var(--font-ui); font-size: .86rem; font-weight: 500; color: var(--ink);
    transition: background .2s, border-color .2s, color .2s
}
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff }
.seg input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px }
.planner-result { position: sticky; top: 110px; padding: clamp(28px, 4vw, 44px); background: var(--navy); color: var(--light); border-radius: var(--radius); box-shadow: var(--shadow) }
.pr-label { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sand) }
.pr-range { display: block; margin: 12px 0 24px; font-family: var(--font-head); font-size: clamp(2.2rem, 3.9vw, 3.15rem); font-weight: 600; line-height: 1.05; color: #fff }
.pr-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 20px; padding: 20px 0; border-top: 1px solid rgba(223, 204, 168, .25); border-bottom: 1px solid rgba(223, 204, 168, .25) }
.pr-facts dt { font-family: var(--font-ui); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(237, 235, 231, .7) }
.pr-facts dd { margin: 4px 0 0; font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--light) }
.pr-note { font-size: .95rem; color: rgba(237, 235, 231, .84) }
.pr-fine { margin: 18px 0 0; font-size: .78rem; line-height: 1.55; color: rgba(237, 235, 231, .64) }

/* ----- FAQ ----- */
.faq { background: var(--white) }
.faq-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 90px); align-items: start }
.faq-list details { border-bottom: 1px solid var(--line) }
.faq-list details:first-child { border-top: 1px solid var(--line) }
.faq-list summary {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0;
    list-style: none; cursor: pointer;
    font-family: var(--font-head); font-size: 1.42rem; font-weight: 600; line-height: 1.25; color: var(--navy)
}
.faq-list summary::-webkit-details-marker { display: none }
.faq-list summary::after {
    content: ""; flex: 0 0 auto; width: 14px; height: 14px;
    background: linear-gradient(var(--navy), var(--navy)) center / 14px 1.5px no-repeat, linear-gradient(var(--navy), var(--navy)) center / 1.5px 14px no-repeat;
    transition: transform .3s ease
}
.faq-list details[open] summary::after { transform: rotate(45deg) }
.faq-list details p { max-width: 40em; margin: -6px 0 24px; color: var(--muted) }

/* ----- Start your home (navy, with the form) ----- */
.start { background: var(--navy); color: var(--light) }
.start-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 90px); align-items: start }
.start h2 { font-weight: 600; color: var(--light) }
.start-copy > p:not(.eyebrow) { font-size: 1.08rem; color: rgba(237, 235, 231, .84) }
.next-steps { display: grid; gap: 20px; margin: 32px 0; padding: 0; list-style: none }
.next-steps li { display: flex; gap: 18px }
.next-steps li > span { display: grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; border: 1px solid var(--sand); border-radius: 50%; font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; color: var(--sand) }
.next-steps div { font-size: .95rem; line-height: 1.55; color: rgba(237, 235, 231, .78) }
.next-steps strong { display: block; font-family: var(--font-ui); font-size: .98rem; font-weight: 600; color: var(--light) }
.contact-card { display: grid; gap: 6px; padding-top: 24px; border-top: 1px solid rgba(223, 204, 168, .25); font-family: var(--font-ui); font-size: .9rem; color: rgba(237, 235, 231, .82) }
.contact-card p { display: flex; align-items: center; gap: 10px; margin: 0 }
.contact-card .ic { color: var(--sand) }
.start-form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 42px); background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: 0 30px 60px rgba(2, 24, 46, .35) }
.start-form > *, .planner-card > *, .planner-result > * { min-width: 0 }
.start-form h3 { margin: 0 0 2px; font-size: 1.8rem }
.start-form label { display: block; min-width: 0 }
.start-form .field-label { margin-bottom: 8px }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: end }
.start-form input, .start-form select, .start-form textarea {
    width: 100%; padding: 13px 14px;
    font: inherit; font-size: 1rem; line-height: 1.4; color: var(--ink);
    background-color: var(--light); border: 1px solid transparent; border-radius: 2px;
    transition: border-color .2s, background-color .2s
}
.start-form input:focus, .start-form select:focus, .start-form textarea:focus { outline: none; border-color: var(--navy); background-color: var(--white) }
.start-form select {
    padding-right: 42px; -webkit-appearance: none; 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% - 20px) 50%, calc(100% - 15px) 50%;
    background-size: 5px 5px, 5px 5px; background-repeat: no-repeat
}
.start-form textarea { min-height: 110px; resize: vertical }
.start-form textarea::placeholder { color: #8A8D92 }
.form-fine { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .82rem; line-height: 1.5; color: var(--muted) }
.form-fine .ic { margin-top: 2px; color: var(--navy) }
.form-fine a { color: var(--navy) }

/* ===========================================================================
   FOOTER (also the portal pages' footer, .portal-footer)
   =========================================================================== */
.site-footer { padding: 80px 0 0; background: var(--navy-deep); color: rgba(237, 235, 231, .78); font-size: .95rem }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px }
.footer-logo { display: block; width: auto; height: 108px; aspect-ratio: 2636 / 1222; color: var(--light) }
.footer-slogan { max-width: 18em; margin: 22px 0 0; font-family: var(--font-head); font-size: 1.3rem; font-style: italic; line-height: 1.35; color: var(--sand) }
.site-footer h4 { margin: 6px 0 18px; font-family: var(--font-ui); font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--sand) }
.footer-grid > div > a, .footer-grid > div > span { display: block; margin-bottom: 10px; color: rgba(237, 235, 231, .8); text-decoration: none }
.footer-grid > div > a:hover { color: var(--sand) }
.footer-grid .btn { display: inline-flex; color: var(--navy) }
.footer-grid .btn:hover { color: var(--navy) }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 60px; padding: 26px 0 30px; border-top: 1px solid rgba(223, 204, 168, .18); font-family: var(--font-ui); font-size: .8rem; color: rgba(237, 235, 231, .6) }
.footer-base p { margin: 0 }
.footer-base a { color: rgba(237, 235, 231, .85) }
.dsn-endorse { letter-spacing: .08em }
.portal-footer.site-footer { padding: 28px 0 }
.portal-footer .footer-base { margin-top: 0; padding-top: 0; border-top: 0 }
.portal-footer .footer-base a { text-decoration: underline; text-underline-offset: 3px }

/* ----- Toast, scroll reveal ----- */
.toast {
    position: fixed; left: 50%; bottom: 28px; z-index: 2200; max-width: calc(100% - 32px);
    padding: 14px 22px; transform: translate(-50%, calc(100% + 140px));
    background: var(--navy); color: var(--light); border: 1px solid rgba(223, 204, 168, .4); border-radius: 4px;
    box-shadow: var(--shadow); font-family: var(--font-ui); font-size: .9rem;
    transition: transform .35s ease
}
.toast.show { transform: translate(-50%, 0) }
.toast:empty { visibility: hidden }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1) }
.reveal.in { opacity: 1; transform: none }

/* ===========================================================================
   COOKIE NOTICE
   /js/mockups.js (the DSN agent kit) appends #dsnCookieBar to <body>. Its own
   styles are in deck.css, which only the agent's shadow root loads, so the
   notice is styled here in navy and sand, under the chat launcher (2140).
   =========================================================================== */
.dsn-cookiebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2100; display: flex; justify-content: center; padding: 0 110px 20px; pointer-events: none; opacity: 0; transform: translateY(14px); transition: opacity .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1) }
.dsn-cookiebar.is-on { opacity: 1; transform: none }
.dsn-cookiebar-inner { display: flex; align-items: center; gap: 18px; width: min(920px, 100%); padding: 16px 20px; pointer-events: auto; background: var(--navy); color: var(--light); border: 1px solid rgba(223, 204, 168, .45); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(2, 24, 46, .35) }
.dsn-cookiebar-ic { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sand); font-size: 1.15rem }
.dsn-cookiebar-copy { flex: 1; min-width: 0 }
.dsn-cookiebar-copy strong { display: block; font-family: var(--font-ui); font-size: 1rem; font-weight: 700; color: #fff }
.dsn-cookiebar-copy p { margin: 4px 0 0; font-size: .84rem; line-height: 1.55; color: rgba(237, 235, 231, .86) }
.dsn-cookiebar-link { color: var(--sand); text-decoration: underline; text-underline-offset: 2px }
.dsn-cookiebar-link:hover { color: #fff }
.dsn-cookiebar-actions { display: flex; flex: 0 0 auto }
.dsn-cookiebar-btn { padding: 12px 24px; border: 0; border-radius: 2px; cursor: pointer; font-family: var(--font-ui); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: transform .2s ease, background .2s ease }
.dsn-cookiebar-accept { background: var(--sand); color: var(--navy) }
.dsn-cookiebar-accept:hover { background: var(--sand-soft); transform: translateY(-2px) }
.dsn-cookiebar-accept:focus-visible { outline: 2px solid #fff; outline-offset: 2px }

/* Portal dropdowns keep an arrow: portal.css sets their background with the shorthand. */
.portal-body .portal-form select, .portal-body .portal-filter select,
.portal-body .portal-form select:focus, .portal-body .portal-filter select:focus {
    padding-right: 42px;
    background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px; background-repeat: no-repeat
}

/* ===========================================================================
   SMALLER SCREENS
   =========================================================================== */
@media (max-width: 1180px) {
    .nav { gap: 22px }
    .homes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
/* The burger menu: the nav drops down under the header and scrolls when it is
   taller than the screen. The portal's own links join it. */
@media (max-width: 1180px) {
    .burger {
        display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 46px; height: 46px; padding: 0 11px;
        background: transparent; border: 1px solid rgba(223, 204, 168, .35); border-radius: 2px; cursor: pointer
    }
    .burger span { display: block; height: 1.5px; background: var(--light); transition: transform .3s ease, opacity .3s ease }
    .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg) }
    .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0 }
    .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg) }
    .nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        max-height: 0; padding: 0 24px; overflow: hidden; visibility: hidden;
        background: var(--navy); border-bottom: 1px solid rgba(223, 204, 168, .2);
        box-shadow: 0 24px 40px rgba(2, 24, 46, .35);
        transition: max-height .35s ease, padding .35s ease, visibility .35s
    }
    /* The open menu ends at the bottom of the screen: the header is 85px tall here (69px on phones). */
    .nav.open { max-height: calc(100vh - 85px); max-height: calc(100dvh - 85px); padding: 8px 24px 24px; overflow-y: auto; overscroll-behavior: contain; visibility: visible }
    .nav a { padding: 15px 0; border-bottom: 1px solid rgba(223, 204, 168, .14); font-size: .86rem }
    .nav .nav-account { padding-left: 0; border-left: 0 }
    .nav .btn { margin-top: 18px; padding: 16px; border-bottom: 0 }
    .nav .nav-portal { display: block }
    /* Fields are 16px, so iOS Safari doesn't zoom in when one is tapped. */
    input, select, textarea { font-size: 16px }
    html .portal-body .portal-form :is(input, select, textarea),
    html .portal-body .portal-filter :is(input, select) { font-size: 16px }
}
@media (max-width: 980px) {
    .hero { grid-template-columns: minmax(0, 1fr); min-height: 0 }
    .hero-media { order: -1; min-height: 0; height: min(64vw, 520px) }
    .hero-media::after { background: linear-gradient(0deg, rgba(3, 49, 92, .45), rgba(3, 49, 92, 0) 40%) }
    .hero-copy { padding: 52px 24px 60px }
    .hero-copy-inner { max-width: 640px; margin: 0 auto }
    .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
    .value { padding: 40px 0 36px }
    .story-grid { grid-template-columns: minmax(0, 1fr) }
    .home-letters { font-size: clamp(6rem, 24vw, 9rem) }
    .story-copy { padding-left: 0; padding-top: 34px; border-left: 0; border-top: 1px solid rgba(223, 204, 168, .35) }
    .lot-grid, .transparency-grid, .planner, .faq-grid, .start-grid { grid-template-columns: minmax(0, 1fr) }
    .lot-media img { aspect-ratio: 4 / 3 }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)) }
    .planner-result { position: static }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
    .footer-brand-col { grid-column: 1 / -1 }
    .dsn-cookiebar { padding: 0 16px 92px }
}
@media (max-width: 760px) {
    html { scroll-padding-top: 76px }
    .header-inner { min-height: 68px }
    .site-header.scrolled .header-inner { min-height: 64px }
    .brand-logo, .site-header.scrolled .brand-logo { height: 50px }
    .nav.open { max-height: calc(100vh - 69px); max-height: calc(100dvh - 69px) }
    .hero h1 { font-size: clamp(2.8rem, 13vw, 3.6rem) }
    .hero-cta .btn { flex: 1 1 auto }
    .hero-card { padding: 14px 16px; gap: 6px; width: min(290px, calc(100% - 32px)); left: 16px; bottom: 16px }
    .hero-card strong { font-size: 1.12rem }
    .hc-meta { display: none }
    .story-list li { grid-template-columns: minmax(0, 1fr); gap: 4px }
    .interiors { grid-template-columns: minmax(0, 1fr) }
    .remodel-grid { grid-template-columns: minmax(0, 1fr) }
    .lot-list { grid-template-columns: minmax(0, 1fr) }
    .lot-media { margin: 0 14px 14px 0 }
    .lot-media::before { inset: 14px -14px -14px 14px }
    .pm-cols { grid-template-columns: minmax(0, 1fr) }
    .pm-rail { padding: 14px 8px }
    .pm-rail li { font-size: .58rem }
    .field-row { grid-template-columns: minmax(0, 1fr) }
    .faq-list summary { font-size: 1.28rem }
    .footer-base { flex-direction: column }
    .toast { bottom: 96px }
}
/* The portal example's progress rail: the dots, and only the current step's label. */
@media (max-width: 480px) {
    .pm-rail li { font-size: 0 }
    .pm-rail li.now { font-size: .64rem; white-space: nowrap }
}
@media (max-width: 640px) {
    .wrap { width: min(var(--wrap), 100% - 40px) }
    .homes-grid, .steps, .values-grid { grid-template-columns: minmax(0, 1fr) }
    .value { padding: 34px 0 30px }
    .footer-grid { grid-template-columns: minmax(0, 1fr) }
    .banner p { letter-spacing: .2em }
    .dsn-cookiebar { padding: 0 12px 88px }
    .dsn-cookiebar-inner { flex-wrap: wrap; align-items: flex-start; gap: 12px 14px; padding: 14px 16px }
    .dsn-cookiebar-actions { width: 100% }
    .dsn-cookiebar-btn { flex: 1 }
    .transparency-cta .btn { width: 100% }
}
@media (max-width: 380px) {
    .hero-copy { padding: 44px 20px 52px }
    .pm-head { flex-direction: column; align-items: flex-start }
    .seg label { min-width: 84px }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto }
    .hero-copy-inner > *, .hc-dot { animation: none }
    .hero-slide, .reveal, .dsn-cookiebar { transition: none }
    .reveal { opacity: 1; transform: none }
}
