:root {
  --navy-950: #0A1522;
  --navy-900: #0E1B2A;
  --navy-850: #122334;
  --navy-800: #16293C;
  --line: #22374E;
  --sage: #8FA871;
  --sage-light: #A8BE8C;
  --steel: #4A7FB5;
  --steel-light: #6FA3D4;
  --text: #E8EEF4;
  --muted: #9FB0C2;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--navy-900);
  line-height: 1.65;
}

a {
  color: var(--sage-light);
  text-decoration: none;
}

a:hover {
  color: var(--sage);
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--steel-light);
  outline-offset: 3px;
}

/* Apple-style: full-bleed section backgrounds and media, content held to a
   readable measure and centered. Wide screens get more air, not longer lines. */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 88px);
}

/* ---------- Header / brand ---------- */
header {
  background: rgba(10, 21, 34, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(24px, 5vw, 88px);
  max-width: 2000px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: auto;
  height: 46px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 1.22rem;
  font-weight: 400;
  letter-spacing: 0.22em;
}

.brand-name span {
  color: var(--sage);
}

.brand-tag {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--steel-light);
  text-transform: uppercase;
  margin-top: 4px;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav a:hover,
nav a.active {
  color: var(--sage);
}

.nav-cta a.btn {
  color: var(--steel-light);
}

.nav-cta a.btn:hover {
  color: var(--navy-950);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.72rem;
}

.btn-primary {
  background: var(--steel);
  color: #fff;
  border-color: var(--steel);
}

.btn-primary:hover {
  background: var(--steel-light);
  border-color: var(--steel-light);
  color: var(--navy-950);
}

.btn-outline {
  background: transparent;
  color: var(--sage-light);
  border-color: var(--sage);
}

.btn-outline:hover {
  background: var(--sage);
  color: var(--navy-950);
}

.btn-arrow::after {
  content: "\2192";
  font-size: 1rem;
  letter-spacing: 0;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-color: var(--navy-950);
  /* Scrim only where the text sits; the tree and city lights stay untouched. */
  --hero-scrim:
    linear-gradient(180deg, rgba(10, 21, 34, 0.34) 0%, rgba(10, 21, 34, 0) 22%, rgba(10, 21, 34, 0) 78%, rgba(10, 21, 34, 0.5) 100%),
    linear-gradient(90deg, rgba(10, 21, 34, 0.9) 0%, rgba(10, 21, 34, 0.62) 30%, rgba(10, 21, 34, 0.12) 52%, rgba(10, 21, 34, 0) 66%);

  background-image: var(--hero-scrim), url("../assets/hero.jpg");
  /* WebP where supported (half the bytes); browsers that don't know
     image-set() keep the JPEG declaration above. */
  background-image: var(--hero-scrim),
    image-set(url("../assets/hero.webp") type("image/webp"),
              url("../assets/hero.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
}

/* legibility comes from the text itself now, not from dimming the photo */
.hero h1,
.hero .eyebrow,
.hero-copy p {
  text-shadow: 0 2px 14px rgba(6, 14, 24, 0.85), 0 1px 3px rgba(6, 14, 24, 0.6);
}

/* the outline button can land on the lit skyline — keep it readable */
.hero .btn-outline {
  background: rgba(10, 21, 34, 0.55);
  backdrop-filter: blur(2px);
}

.hero .btn-outline:hover {
  background: var(--sage);
}

.hero .container {
  padding-top: 88px;
  padding-bottom: 88px;
}

/* The photo is 1.792:1. A short, wide hero band has to crop it heavily to
   fill — which is why narrowing the window reveals more of the picture.
   Tying the height to 55.8vw (= 100/1.792) would show it whole; capping at
   82vh keeps the hero from swallowing the screen. Whichever is smaller wins. */
.hero-home .container {
  /* wider cap than body content so the copy sits further left on big screens,
     clear of the tree instead of running across it */
  max-width: 2000px;
  min-height: max(500px, min(78vh, 55.8vw));
  display: flex;
  align-items: center;
  padding-top: clamp(72px, 8vw, 120px);
  padding-bottom: clamp(72px, 8vw, 120px);
}

.hero-home .hero-copy {
  max-width: min(720px, 40vw);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.hero h1 .accent {
  color: var(--sage);
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 34px;
}

/* Interior pages: same image, tighter crop, heavier scrim */
.hero-simple {
  text-align: center;
  --hero-scrim:
    linear-gradient(180deg, rgba(10, 21, 34, 0.72) 0%, rgba(10, 21, 34, 0.5) 45%, rgba(10, 21, 34, 0.84) 100%);
  background-position: center 45%;
}

.hero-simple .container {
  padding-top: 76px;
  padding-bottom: 76px;
}

.hero-simple .hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero-simple p {
  margin-left: auto;
  margin-right: auto;
}

.hero-simple .hero-buttons {
  justify-content: center;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin: 0 0 18px;
}

/* ---------- Feature strip ---------- */
.feature-strip {
  background: var(--navy-850);
  border-bottom: 1px solid var(--line);
}

.feature-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 0;
  padding-bottom: 0;
}

.feature {
  text-align: center;
  padding: 30px 18px;
  border-left: 1px solid var(--line);
}

.feature:first-child {
  border-left: none;
}

.feature svg {
  width: 26px;
  height: 26px;
  stroke: var(--steel-light);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 10px;
}

.feature h3 {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 4px;
  color: var(--text);
  font-weight: 600;
}

.feature p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Sections ---------- */
section {
  padding: clamp(64px, 6.5vw, 128px) 0;
}

.hero,
.feature-strip,
.cta-banner {
  padding: 0;
}

.section-alt {
  background: var(--navy-850);
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.4vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 14px;
}

h2 .accent {
  color: var(--sage);
}

.section-intro {
  text-align: center;
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto 48px;
}

.prose p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 780px;
}

.prose p:first-child {
  color: var(--text);
  font-size: 1.12rem;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 1.8vw, 32px);
}

.card {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 30px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.card:hover {
  border-color: rgba(143, 168, 113, 0.5);
  transform: translateY(-2px);
}

.card h3 {
  color: var(--text);
  font-size: 1.08rem;
  margin: 0 0 10px;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.94rem;
}

.card-accent-top {
  border-top: 3px solid var(--sage);
}

.path-card {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-top: 3px solid var(--steel);
  border-radius: 5px;
  padding: 40px 34px;
}

.path-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text);
  font-size: 1.5rem;
  margin: 0 0 12px;
}

.path-card p {
  color: var(--muted);
  margin: 0 0 20px;
}

.path-card a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Lists ---------- */
.panel {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px 34px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 40px;
}

.check-list li {
  padding: 13px 0 13px 30px;
  position: relative;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
  color: var(--text);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
}

.coming-soon {
  background: transparent;
  border: 1px dashed #2C4256;
  border-radius: 5px;
  padding: 12px 34px;
}

.coming-soon .check-list li::before {
  content: "\25CB";
  color: var(--steel);
}

.coming-soon .check-list li {
  color: var(--muted);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(143, 168, 113, 0.12), transparent 70%),
    var(--navy-950);
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta-banner .container {
  padding-top: 76px;
  padding-bottom: 76px;
}

.cta-banner p {
  color: var(--muted);
  margin: 0 auto 30px;
  max-width: 560px;
}

.cta-banner .hero-buttons {
  justify-content: center;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 56px;
}

.contact-info h3 {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin: 0 0 4px;
}

.contact-info p {
  margin: 0 0 28px;
  color: var(--text);
}

.contact-phone {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--sage-light);
}

form {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 32px;
}

form label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 8px;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--navy-950);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: var(--steel);
  outline: none;
}

form textarea {
  resize: vertical;
}

form button {
  margin-top: 28px;
  width: 100%;
  justify-content: center;
}

.hidden {
  display: none;
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy-950);
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 56px 0 32px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.footer-grid h4 {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 14px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 9px;
}

.footer-grid a {
  color: var(--muted);
}

.footer-grid a:hover {
  color: var(--sage);
}

.footer-blurb {
  margin: 16px 0 0;
  max-width: 320px;
}

.footer-phone {
  color: var(--sage-light);
  font-weight: 600;
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: #7C8EA1;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero {
    background-position: 72% center;
  }

  .hero-home .container {
    min-height: 460px;
  }

  .feature-strip .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature:nth-child(3) {
    border-left: none;
  }

  .feature:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  nav {
    display: none;
    width: 100%;
  }

  nav.open {
    display: block;
  }

  .nav-wrap {
    flex-wrap: wrap;
    padding: 14px 20px;
  }

  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 10px;
  }

  nav ul li {
    border-top: 1px solid var(--line);
  }

  nav ul li a {
    display: block;
    padding: 14px 0;
  }

  .nav-cta {
    padding: 16px 0 6px;
  }

  .nav-cta a.btn {
    justify-content: center;
  }

  section {
    padding: 60px 0;
  }

  /* lighter image file; text sits directly over the photo here, so a little
     more scrim than desktop — but not enough to flatten the city lights */
  .hero {
    --hero-scrim:
      linear-gradient(180deg, rgba(10, 21, 34, 0.72) 0%, rgba(10, 21, 34, 0.46) 45%, rgba(10, 21, 34, 0.82) 100%);
    background-image: var(--hero-scrim), url("../assets/hero-sm.jpg");
    background-image: var(--hero-scrim),
      image-set(url("../assets/hero-sm.webp") type("image/webp"),
                url("../assets/hero-sm.jpg") type("image/jpeg"));
    background-position: center 45%;
  }

  .hero .container,
  .hero-simple .container {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-home .container {
    min-height: 380px;
  }

  /* keep "CAPITAL REGION, NY" on one line at phone widths */
  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  .check-list {
    columns: 1;
  }

  .panel,
  .coming-soon {
    padding: 6px 22px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 20px;
  }

  .feature-strip .container {
    grid-template-columns: 1fr;
  }

  .feature {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .feature:first-child {
    border-top: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .brand-name {
    font-size: 1.02rem;
    letter-spacing: 0.16em;
  }
}
