/* The Slope — layout mirrors visitthedistrict.com, styled with The Slope brand.
   Sections: nav bar · scrolling-image hero · stats + statement · map + card · stacked sticky slides ·
   split-heading reveal · image/text pairs · master plan · closing banner · footer */
:root {
  --snow: #f2f2f2;
  --white: #ffffff;
  --midnight: #1d393d;
  --slate: #446468;
  --juniper: #83a5b2;
  --evergreen: #4c683a;
  --bud: #a7ad2f;
  --warbler: #f2e755;

  /* Headlines: Saira Condensed (clean, modern, geometric). Text: Red Hat Display */
  --f-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --display-weight: 600;
  --display-stretch: 100%;
  --display-track: .01em;
  --f-sub: "Red Hat Display", system-ui, sans-serif;
  --f-body: "Red Hat Display", system-ui, sans-serif;

  --pad-x: 72px;
  --container: 1296px;
  color-scheme: light;
}
@media (max-width: 991px) { :root { --pad-x: 40px; } }
@media (max-width: 767px) { :root { --pad-x: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--snow); color: var(--midnight); font: 400 16px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 100; background: var(--midnight); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--warbler); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container {
  width: 100%; max-width: calc(var(--container) + 2 * var(--pad-x)); margin-inline: auto;
  padding-left: max(var(--pad-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad-x), env(safe-area-inset-right, 0px));
}

/* Type */
.h1, .h2, .h3 { font-family: var(--f-display); text-transform: uppercase; margin: 0; text-wrap: balance; }
.h1 { font-weight: 200; font-size: clamp(2.5rem, 1.6rem + 2.6vw, 4rem); line-height: 1; letter-spacing: -0.03em; }
.h2 { font-weight: 300; font-size: clamp(2.25rem, 1.8rem + 1.3vw, 3rem); line-height: 1.15; letter-spacing: -0.03em; }
.h3 { font-weight: 300; font-size: clamp(1.9rem, 1.5rem + 1vw, 2.5rem); line-height: 1.2; letter-spacing: -0.02em; }
.eyebrow { font: 500 0.9rem/1.4 var(--f-sub); letter-spacing: 0.09em; text-transform: uppercase; margin: 0 0 16px; }
.h4 { font: 500 1.2rem/1.3 var(--f-sub); margin: 0 0 16px; }
.text-md { font-size: 1.125rem; line-height: 1.5; margin: 0; }
p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font: 500 0.8rem/1.5 var(--f-sub); letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none;
  padding: 12px 24px; border: 1px solid transparent; border-radius: 2px; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--bud { background: var(--bud); border-color: var(--bud); color: var(--midnight); }
.btn--bud:hover { background: var(--warbler); border-color: var(--warbler); }
.btn--snow { background: var(--snow); border-color: var(--snow); color: var(--midnight); }
.btn--snow:hover { background: var(--white); }
.btn--midnight { background: var(--midnight); border-color: var(--midnight); color: var(--snow); }
.btn--midnight:hover { background: var(--slate); border-color: var(--slate); }
.btn--text { padding: 0; border: 0; background: none; }
.btn--text svg { width: 16px; height: 16px; }
.btn--sm { padding: 6px 16px; font-size: .7rem; letter-spacing: .06em; }

/* ---------- Nav (floating bar) ---------- */
.nav {
  position: fixed; z-index: 50; top: calc(16px + env(safe-area-inset-top, 0px));
  left: max(var(--pad-x), env(safe-area-inset-left, 0px)); right: max(var(--pad-x), env(safe-area-inset-right, 0px));
  max-width: var(--container); margin-inline: auto;
  background: var(--midnight); color: var(--snow);
  display: flex; align-items: center; gap: 24px; padding: 0 16px 0 18px; min-height: 59px;
}
.nav-logo img { height: 28px; width: auto; }
.nav-menu { margin-left: auto; display: flex; align-items: center; }
.nav-link {
  font: 600 0.7rem/1 var(--f-sub); letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  padding: 8px 16px; white-space: nowrap; transition: color .2s;
}
.nav-link:hover, .nav-link.is-current { color: var(--bud); }
.nav-link svg { width: 8px; height: 8px; margin-left: 5px; vertical-align: 1px; }
.nav .btn--sm { margin-left: 16px; }
.nav-toggle { display: none; margin-left: auto; width: 40px; height: 48px; background: none; border: 0; color: var(--snow); cursor: pointer; padding: 0; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 24px; height: 2px; background: currentColor; position: relative; margin-inline: auto; transition: transform .25s, background .25s; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991px) {
  .nav { flex-wrap: wrap; min-height: 64px; padding: 0 12px 0 16px; top: calc(20px + env(safe-area-inset-top, 0px)); }
  .nav-toggle { display: block; }
  .nav-menu { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 20px; }
  .nav-open .nav-menu { display: flex; }
  .nav-link { padding: 16px 4px; font-size: .78rem; border-top: 1px solid rgba(131,165,178,.25); }
  .nav .btn--sm { margin: 16px 0 0; padding: 12px 16px; }
}

/* ---------- Hero: drone video ---------- */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* (former) four columns of images moving with scroll */
.hero { position: relative; height: 900px; max-height: 100svh; min-height: 640px; overflow: hidden; color: var(--snow); display: grid; place-items: center; text-align: center; isolation: isolate; }
.hero-images { position: absolute; inset: 0; z-index: -1; }
.hero-overlay { position: absolute; inset: 0; background: rgba(29,57,61,.67); z-index: 2; }
.hero-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-inline: 16px; }
.hero-col { display: flex; flex-direction: column; gap: 16px; will-change: transform; }
.hero-col img { width: 100%; aspect-ratio: 340 / 408; object-fit: cover; flex: none; }
.hero-content { max-width: 640px; padding-inline: max(var(--pad-x), env(safe-area-inset-left, 0px)); display: grid; gap: 24px; }
.hero-content .text-md { font-weight: 400; }
@media (max-width: 767px) {
  .hero { height: 844px; }
  .hero-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-col:nth-child(n+3) { display: none; }
}

/* ---------- Stats + statement ---------- */
.overview { background: var(--snow); padding-block: 112px; }
.overview-inner { max-width: 1120px; margin-inline: auto; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat b { display: block; font: 300 3.3rem/1.2 var(--f-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.stat:nth-child(1) b { color: var(--evergreen); }
.stat:nth-child(2) b { color: var(--slate); }
.stat:nth-child(3) b { color: var(--midnight); }
.stat:nth-child(4) b { color: var(--evergreen); }
.stat span { font: 500 0.95rem/1.5 var(--f-sub); text-transform: uppercase; letter-spacing: .02em; color: var(--midnight); }
.statement { margin-top: 48px; font: 300 clamp(2rem, 1.4rem + 1.7vw, 3rem)/1.2 var(--f-display); text-transform: uppercase; letter-spacing: -0.02em; color: var(--midnight); }
.statement .w { opacity: .25; transition: opacity .25s linear; }
.statement .w.on { opacity: 1; }
@media (max-width: 767px) {
  .overview { padding-block: 64px; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .stat b { font-size: 2.6rem; }
}

/* ---------- Map + card ---------- */
.locate { display: grid; grid-template-columns: minmax(0, 1060fr) minmax(0, 480fr); background: var(--white); border-bottom: 1px solid var(--midnight); }
.locate-map svg { aspect-ratio: 1280 / 723; }
@media (min-width: 992px) {
  .locate-card { padding: 40px 44px; gap: 24px; }
  .locate-card .text-md { font-size: 1rem; }
  .locate-card .h3 { font-size: clamp(1.7rem, 1.2rem + .8vw, 2.2rem); }
}
.locate-map { position: relative; background: var(--midnight); overflow: hidden; min-width: 0; }
.locate-map-inner { height: 100%; }
.locate-map svg { width: 100%; height: 100%; display: block; }
.map-hint { display: none; }
.locate-card { background: var(--evergreen); color: var(--snow); display: grid; align-content: center; padding: 48px; gap: 32px; }
.locate-card .text-md { opacity: .95; }
@media (max-width: 991px) { .locate { grid-template-columns: minmax(0, 1fr); } .locate-card { padding: 48px max(var(--pad-x), env(safe-area-inset-left, 0px)); } }
@media (max-width: 767px) {
  .locate-map-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .locate-map svg { width: 860px; max-width: none; height: auto; }
  .map-hint { display: block; position: absolute; right: 12px; bottom: 10px; margin: 0; padding: 6px 10px; background: rgba(29,57,61,.85); color: var(--snow); font: 600 .68rem/1 var(--f-sub); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
}

/* ---------- Stacked sticky slides ---------- */
.slides { position: relative; }
.slide { position: sticky; top: 0; height: 900px; max-height: 100svh; min-height: 600px; display: flex; align-items: center; color: var(--snow); background-size: cover; background-position: center; }
.slide::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.slide .container { position: relative; }
.slide-copy { max-width: 640px; }
.slide .eyebrow { color: var(--bud); }
.slide .h2 { margin-bottom: 24px; }
.slide-text { max-width: 560px; margin-bottom: 32px; }
.slide--1 { background-image: url("../img/slide-aerial.webp"); }
.slide--2 { background-image: url("../img/slide-hill.webp"); background-position: 30% center; }
.slide--2::before { background: linear-gradient(90deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.5) 55%, rgba(0,0,0,.4) 100%); }

/* ---------- Split heading reveal ---------- */
.reveal { position: relative; height: 1800px; background: var(--midnight); }
.reveal-stage { position: sticky; top: 0; height: 900px; max-height: 100svh; overflow: hidden; display: grid; place-items: center; background: var(--midnight) url("../img/pattern-tile.svg") repeat; }
.reveal-heading { position: absolute; top: 50%; transform: translateY(-50%); margin: 0; z-index: 2; color: var(--juniper); font: 200 4rem/1.2 var(--f-display); text-transform: uppercase; letter-spacing: -0.03em; white-space: nowrap; will-change: transform, opacity; }
.reveal-heading--l { right: 50%; padding-right: 165px; }
.reveal-heading--r { left: 50%; padding-left: 165px; }
.reveal-circle { position: relative; width: 270px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; z-index: 1; will-change: transform, width, border-radius; }
.reveal-circle img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 991px) { .reveal { display: none; } }

/* ---------- Image / text pairs ---------- */
.pair { background: var(--snow); padding-block: 112px; overflow: hidden; }
.pair-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.pair-media { aspect-ratio: 1296 / 648; width: calc(200% + 80px); max-width: none; }
.pair-media img { width: 100%; height: 100%; object-fit: cover; }
.pair--right .pair-media { order: 2; }
.pair--left .pair-media { margin-left: calc(-100% - 80px); }
.pair .eyebrow.c1 { color: var(--evergreen); }
.pair .eyebrow.c2 { color: var(--slate); }
.pair .h2 { margin-bottom: 24px; }
.pair p.body { margin-bottom: 0; max-width: 568px; }
.pair .actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 32px; }
.pair-media-clip { overflow: hidden; height: 648px; }
@media (max-width: 991px) {
  .pair { padding-block: 64px; }
  .pair-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pair-media, .pair--left .pair-media { width: 100%; margin-left: 0; aspect-ratio: 1; order: 0 !important; }
  .pair--left .pair-media { order: -1 !important; }
}

/* ---------- Master plan ---------- */
.plan { background: var(--midnight); color: var(--snow); padding-block: 112px; }
.plan-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 86px; align-items: start; max-width: 1124px; margin-inline: auto; }
.plan .h2 { margin-bottom: 20px; }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.legend li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 30px; align-items: center; font: 500 1rem/1.5 var(--f-sub); }
.legend i { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.4); display: grid; place-items: center; font: 600 .8rem/1 var(--f-sub); font-style: normal; }
.k1 { background: #a7ad2f; color: var(--midnight); }
.k2 { background: #83a5b2; color: var(--midnight); }
.k3 { background: #f2f2f2; color: var(--midnight); }
.k4 { background: #4c683a; color: var(--snow); }
.k5 { background: #446468; color: var(--snow); }
.plan-figure { position: relative; margin: 0; }
.plan-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.plan-pin { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border: 2px solid var(--snow); display: grid; place-items: center; font: 600 .75rem/1 var(--f-sub); }
@media (max-width: 991px) {
  .plan { padding-block: 64px; }
  .plan-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .legend li { grid-template-columns: 30px minmax(0, 1fr); gap: 16px; }
  .legend i { width: 30px; height: 30px; }
  .plan-pin { width: 22px; height: 22px; font-size: .62rem; }
}

/* ---------- Closing banner ---------- */
.closing { position: relative; color: var(--snow); isolation: isolate; min-height: 540px; display: flex; align-items: center; padding-block: 112px; }
.closing > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.closing::before { content: ""; position: absolute; inset: 0; background: rgba(29,57,61,.47); z-index: -1; }
.closing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: end; }
.closing .text-md em { display: block; margin-bottom: 4px; }
@media (max-width: 767px) { .closing { min-height: 506px; padding-block: 64px; } .closing-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ---------- Footer ---------- */
.footer { background: var(--midnight); color: var(--snow); display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.footer-main { display: grid; grid-template-columns: 80px minmax(0, 1fr); }
.footer-logo { position: relative; border-right: 1px solid rgba(131,165,178,.25); }
.footer-logo img { position: absolute; left: 50%; top: 50%; width: 220px; max-width: none; transform: translate(-50%, -50%) rotate(-90deg); }
.footer-body { padding: 54px 54px 48px 50px; display: grid; gap: 64px; align-content: space-between; }
.footer-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 896px; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col .label { font: 600 1rem/1.5 var(--f-sub); margin-bottom: 16px; }
.footer-col .org { font: 600 .74rem/1.5 var(--f-sub); letter-spacing: .14em; text-transform: uppercase; color: var(--juniper); margin-bottom: 12px; }
.footer-col a, .footer-col span { font-size: 1rem; text-decoration: none; }
.footer-col a:hover { color: var(--warbler); }
.footer-col .btn--text { margin-top: 8px; font-size: .8rem; justify-self: start; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: end; max-width: 896px; }
.footer-dev .label { font: 600 1rem/1.5 var(--f-sub); margin-bottom: 8px; }
.footer-dev b { font: 500 .78rem/1.4 var(--f-sub); letter-spacing: .16em; text-transform: uppercase; }
.footer-legal { display: grid; gap: 4px; font-size: .7rem; line-height: 1.5; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }
.footer-pattern { background: var(--midnight) url("../img/footer-pattern.svg") center / cover no-repeat; min-height: 360px; }
@media (max-width: 991px) {
  .footer { grid-template-columns: minmax(0, 1fr); }
  .footer-pattern { min-height: 293px; }
  .footer-contacts { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .footer-body { padding: 48px max(24px, env(safe-area-inset-right, 0px)) 40px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .statement .w { opacity: 1; }
}

.specs { font: 500 .85rem/1.6 var(--f-sub); letter-spacing: .08em; text-transform: uppercase; color: var(--midnight); margin-top: 20px; }
.specs i { font-style: normal; color: var(--juniper); margin-inline: 6px; }
.pair .fine { font-size: .72rem; line-height: 1.5; color: var(--slate); margin-top: 24px; max-width: 568px; }

/* ===== Type option B overrides (District-style weights and sizes) ===== */
body { letter-spacing: .25px; }
.h1, .h2, .h3, .statement, .stat b, .reveal-heading { font-family: var(--f-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); letter-spacing: var(--display-track); text-transform: uppercase; }
.h1 { font-size: clamp(2.6rem, 1.8rem + 2.4vw, 4rem); line-height: 1; }
.h2 { font-size: clamp(2.25rem, 1.9rem + 1vw, 3rem); line-height: 1.2; }
.h3 { font-size: clamp(2rem, 1.7rem + .8vw, 2.5rem); line-height: 1.2; }
.stat b { font-size: 3.3rem; line-height: 1.2; }
.stat span { font: 700 .95rem/1.5 var(--f-sub); letter-spacing: .02em; }
.statement { font-size: clamp(2rem, 1.5rem + 1.5vw, 3rem); line-height: 1.2; }
.eyebrow { font: 700 .9rem/1.4 var(--f-sub); letter-spacing: .02em; }
.h4 { font: 600 1.2rem/1.3 var(--f-sub); }
.text-md { font-weight: 600; font-size: 1.125rem; }
.hero-content .text-md { font-weight: 600; }
.pair p.body, .locate-card .text-md, .slide-text { font-weight: 400; }
.locate-card .text-md { font-weight: 400; font-size: 1.125rem; }
.btn { font: 700 .8rem/1.5 var(--f-sub); letter-spacing: .06em; }
.nav-link { font: 700 .7rem/1 var(--f-sub); letter-spacing: 2px; }
.btn--sm { font-size: .7rem; letter-spacing: 1px; }
.legend li { font: 600 1rem/1.5 var(--f-sub); }
.specs { font: 700 .85rem/1.6 var(--f-sub); letter-spacing: .04em; }
.footer-col .label, .footer-dev .label { font-weight: 600; }
.closing .text-md em { font-style: italic; }
@media (max-width: 767px) { .stat b { font-size: 2.8rem; } }


.andaz-logo { width: 200px; height: auto; margin-bottom: 36px; }
@media (max-width: 767px) { .andaz-logo { width: 170px; margin-bottom: 28px; } }
.pair .body + .body { margin-top: 1em; }
.andaz-logo--h { width: 280px; margin-bottom: 32px; }
@media (max-width: 767px) { .andaz-logo--h { width: 240px; } }

/* ===== Inquire section (HubSpot form) ===== */
.inquire { background: var(--snow); padding-block: 112px; scroll-margin-top: 80px; }
.inquire-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
.inquire-intro .h2 { margin-bottom: 24px; }
.inquire-intro .body { max-width: 440px; margin: 0; }
.inquire-form { min-height: 420px; }
.inquire-form .hs-form-frame { width: 100%; }
.form-placeholder { border: 1px dashed var(--juniper); background: #fff; padding: 40px; min-height: 420px; display: grid; align-content: center; gap: 8px; color: var(--slate); }
.form-placeholder p { margin: 0; max-width: 420px; }
@media (max-width: 991px) {
  .inquire { padding-block: 72px; }
  .inquire-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .inquire-form { min-height: 0; }
  .form-placeholder { padding: 28px; min-height: 240px; }
}
.footer-dev-link { color: inherit; text-decoration: none; }
.footer-dev-link:hover, .footer-dev-link:focus-visible { color: var(--warbler); }
.form-placeholder[hidden] { display: none; }
.inquire { scroll-margin-top: 110px; }
