:root {
  --background: #f4efe6;
  --cream: #fffdf8;
  --cream-dark: #e8dfd1;
  --navy: #0f2034;
  --navy-mid: #182c43;
  --gold: #b99942;
  --gold-light: #d6bd72;
  --green: #2f7659;
  --green-light: #eaf5ee;
  --blue: #496f95;
  --blue-light: #eaf1f7;
  --amber: #a86f16;
  --amber-light: #fff5dc;
  --text-dark: #171d2d;
  --text-mid: #3f4e66;
  --text-light: #748199;
  --card: #fffdf9;
  --border: #dfd4c3;
  --shadow: 0 18px 55px rgba(15, 32, 52, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text-dark);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--navy);
  letter-spacing: 0;
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 32, 52, 0.96);
  color: rgba(255, 253, 249, 0.78);
  border-bottom: 1px solid rgba(214, 189, 114, 0.22);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-menu-button {
  display: none;
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(214, 189, 114, 0.36);
  border-radius: 4px;
  cursor: pointer;
}

.nav-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold-light);
}

.hero {
  background:
    linear-gradient(135deg, rgba(15, 32, 52, 0.94), rgba(15, 32, 52, 0.82)),
    url("./public/assets/100_winthrop_st_1-CvsqtuRG.jpeg") center / cover;
  color: var(--cream);
}

.hero-inner {
  max-width: 1120px;
  min-height: 660px;
  margin: 0 auto;
  padding: 94px 22px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: end;
  gap: 64px;
}

.eyebrow,
.section-label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 800px;
  margin-top: 18px;
  color: var(--cream);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.99;
  font-weight: 600;
}

.hero-text {
  max-width: 720px;
  margin-top: 26px;
  color: rgba(255, 253, 249, 0.78);
  font-size: 18px;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.button.primary {
  background: var(--gold-light);
  color: var(--navy);
}

.button.secondary {
  border: 1px solid rgba(214, 189, 114, 0.45);
  color: var(--cream);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(214, 189, 114, 0.35);
  background: rgba(15, 32, 52, 0.48);
}

.stat-grid div {
  min-height: 132px;
  padding: 24px;
  border-right: 1px solid rgba(214, 189, 114, 0.22);
  border-bottom: 1px solid rgba(214, 189, 114, 0.22);
}

.stat-grid div:nth-child(2n) {
  border-right: 0;
}

.stat-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.stat-value,
.stat-label {
  display: block;
}

.stat-value {
  color: var(--gold-light);
  font-family: "DM Mono", monospace;
  font-size: 24px;
  font-weight: 500;
}

.stat-label {
  margin-top: 8px;
  color: rgba(255, 253, 249, 0.62);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 84px 22px;
}

.section-head {
  max-width: 850px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 600;
}

.section-head p:last-child {
  margin-top: 18px;
  color: var(--text-mid);
  font-size: 17px;
}

.cards {
  display: grid;
  gap: 18px;
}

.cards.four {
  grid-template-columns: repeat(4, 1fr);
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.location-card,
.before-after-card,
.wide-image-card,
.program-card,
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card {
  padding: 24px;
}

.card-kicker {
  margin-bottom: 10px;
  color: var(--green);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.card h3,
.program-card h3,
.location-card h3,
.before-after-copy h3 {
  font-size: 24px;
  line-height: 1.12;
}

.card p,
.program-card p,
.location-card p,
.before-after-copy p {
  margin-top: 12px;
  color: var(--text-mid);
  font-size: 15px;
}

.specs-section {
  padding-top: 68px;
}

.spec-table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.spec-table th,
.spec-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table th {
  width: 235px;
  color: var(--navy);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.spec-table td {
  color: var(--text-mid);
}

.spec-table a {
  color: var(--green);
  font-weight: 700;
}

.inline-divider {
  margin: 0 8px;
  color: var(--text-light);
}

.dark-section {
  max-width: none;
  background: var(--navy);
  color: rgba(255, 253, 249, 0.78);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}

.dark-section > * {
  max-width: 1076px;
  margin-left: auto;
  margin-right: auto;
}

.dark-section h2,
.dark-section h3 {
  color: var(--cream);
}

.dark-section .section-head p:last-child,
.dark-section .program-card p {
  color: rgba(255, 253, 249, 0.72);
}

.program-grid {
  display: grid;
  gap: 22px;
}

.program-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: stretch;
  overflow: hidden;
  background: rgba(255, 253, 249, 0.06);
  border-color: rgba(214, 189, 114, 0.28);
}

.program-card img {
  height: 100%;
  object-fit: cover;
}

.program-card > div {
  padding: 32px;
}

.concept-note {
  margin-top: 24px;
  color: rgba(255, 253, 249, 0.62);
  font-size: 13px;
}

.floor-plan-stack {
  display: grid;
  gap: 24px;
}

.wide-image-card {
  overflow: hidden;
}

.wide-image-card img {
  object-fit: contain;
  background: #fff;
}

figcaption {
  padding: 16px 18px;
  color: var(--navy);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.photos-section {
  max-width: none;
  background: #ede5d8;
}

.photos-section > * {
  max-width: 1076px;
  margin-left: auto;
  margin-right: auto;
}

.before-after-stack {
  display: grid;
  gap: 28px;
}

.before-after-card {
  overflow: hidden;
}

.before-after-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 18px;
}

.before-after-pair figure,
.photo-grid figure,
.wide-image-card,
.program-card figure {
  margin: 0;
}

.before-after-pair figure {
  position: relative;
  background: #fff;
}

.before-after-pair img {
  object-fit: contain;
}

.image-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  padding: 6px 10px;
  background: var(--navy-mid);
  color: var(--gold-light);
  border-radius: 3px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.before-after-copy {
  padding: 0 24px 24px;
}

.photo-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.photo-grid figure {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.photo-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.location-section {
  padding-bottom: 68px;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.location-card {
  padding: 24px;
}

.diligence-section {
  padding-top: 68px;
}

.notice {
  margin-top: 24px;
  padding: 20px 22px;
  border-left: 4px solid var(--gold);
  background: var(--amber-light);
  color: #6f4a0f;
}

.notice a {
  color: var(--green);
  font-weight: 700;
}

.contact-section {
  padding-top: 70px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 34px;
  background: var(--navy);
  color: rgba(255, 253, 249, 0.76);
  border-color: rgba(214, 189, 114, 0.28);
}

.contact-card h2 {
  margin-top: 14px;
  color: var(--cream);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
}

.contact-card p {
  margin-top: 14px;
}

.contact-details {
  padding: 22px;
  background: rgba(255, 253, 249, 0.08);
  border: 1px solid rgba(214, 189, 114, 0.3);
}

.contact-details p {
  margin-top: 8px;
}

.contact-details p:first-child {
  margin-top: 0;
  color: var(--cream);
}

.contact-details a {
  color: var(--gold-light);
  font-weight: 700;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 28px;
  padding: 32px max(22px, calc((100vw - 1076px) / 2));
  background: var(--navy);
  color: rgba(255, 253, 249, 0.68);
  border-top: 1px solid rgba(214, 189, 114, 0.22);
  font-size: 13px;
}

.footer strong {
  color: var(--cream);
}

.footer p {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .hero-inner,
  .program-card,
  .contact-card,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 78px;
    gap: 40px;
  }

  .cards.four,
  .cards.three,
  .location-grid,
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-card img {
    height: auto;
  }
}

@media (max-width: 760px) {
  .nav {
    align-items: center;
  }

  .nav-menu-button {
    display: flex;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 67px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 22px 18px;
    background: rgba(15, 32, 52, 0.98);
    border-bottom: 1px solid rgba(214, 189, 114, 0.22);
  }

  .nav-links a {
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 253, 249, 0.08);
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 56px);
  }

  .hero-text,
  .section-head p:last-child {
    font-size: 16px;
  }

  .stat-grid,
  .cards.four,
  .cards.three,
  .location-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid div {
    border-right: 0;
  }

  .stat-grid div:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(214, 189, 114, 0.22);
  }

  .stat-grid div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 64px 18px;
  }

  .program-card > div,
  .contact-card,
  .card,
  .location-card {
    padding: 22px;
  }

  .before-after-pair {
    padding: 12px;
  }

  .before-after-copy {
    padding: 0 18px 22px;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .spec-table {
    min-width: 620px;
  }
}
