/*
Theme Name: Five Points Pasture
Description: Premium single-property listing theme for Five Points Pasture
Version: 2.1.0
Author: George Plymale
Text Domain: fivepointspasture
*/

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote {
  margin: 0;
}

ul, ol {
  padding: 0;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

/* === TOKENS === */
:root {
  --fpp-aerial-image: url('/wp-content/uploads/2020/09/brighterExport_1.1.4.jpg');
  --fpp-hero-overlay-top: rgba(23, 14, 20, 0.2);
  --fpp-hero-overlay-mid: rgba(20, 12, 18, 0.45);
  --fpp-hero-overlay-bottom: rgba(24, 11, 18, 0.78);

  --color-bg: #f7f5f2;
  --color-bg-soft: #efe8df;
  --color-surface: #ffffff;
  --color-surface-muted: #f4eee8;
  --color-panel: #24031e;
  --color-panel-soft: #311028;
  --color-text: #372d2c;
  --color-text-light: #615552;
  --color-text-muted: #8a7b73;
  --color-heading: #24031e;
  --color-heading-soft: #4e3045;
  --color-accent: #c28562;
  --color-accent-hover: #a96d4c;
  --color-border: rgba(36, 3, 30, 0.1);
  --color-shadow: rgba(25, 12, 15, 0.08);
  --color-on-dark: #f7f2eb;
  --color-on-dark-soft: #ddd1c4;
  --color-on-dark-muted: #b7aaa0;
  --color-success: #6f8d6a;
  --nav-bg: rgba(24, 11, 18, 0.26);
  --nav-bg-solid: rgba(24, 11, 18, 0.94);
  --nav-border: rgba(255, 255, 255, 0.12);
  --focus-ring: rgba(194, 133, 98, 0.35);

  --font-serif: 'Libre Baskerville', serif;
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --max-width: 1200px;
  --max-width-narrow: 860px;
  --section-pad: 88px 40px;
  --card-radius: 8px;
  --surface-shadow: 0 24px 60px rgba(25, 12, 15, 0.08);
}

html[data-theme='dark'] {
  --fpp-hero-overlay-top: rgba(8, 8, 8, 0.34);
  --fpp-hero-overlay-mid: rgba(9, 9, 9, 0.58);
  --fpp-hero-overlay-bottom: rgba(10, 10, 10, 0.84);

  --color-bg: #111111;
  --color-bg-soft: #1a1a1a;
  --color-surface: #222222;
  --color-surface-muted: #292929;
  --color-panel: #111111;
  --color-panel-soft: #1a1a1a;
  --color-text: #dddddd;
  --color-text-light: #bbbbbb;
  --color-text-muted: #949494;
  --color-heading: #f1e8de;
  --color-heading-soft: #ddcdbf;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-shadow: rgba(0, 0, 0, 0.32);
  --color-on-dark: #f1ece5;
  --color-on-dark-soft: #d9d0c7;
  --color-on-dark-muted: #aea49b;
  --nav-bg: rgba(17, 17, 17, 0.4);
  --nav-bg-solid: rgba(17, 17, 17, 0.96);
  --nav-border: rgba(255, 255, 255, 0.08);
  --focus-ring: rgba(194, 133, 98, 0.45);
  --surface-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

html[data-theme='light'] {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme='light']) {
    --fpp-hero-overlay-top: rgba(8, 8, 8, 0.34);
    --fpp-hero-overlay-mid: rgba(9, 9, 9, 0.58);
    --fpp-hero-overlay-bottom: rgba(10, 10, 10, 0.84);

    --color-bg: #111111;
    --color-bg-soft: #1a1a1a;
    --color-surface: #222222;
    --color-surface-muted: #292929;
    --color-panel: #111111;
    --color-panel-soft: #1a1a1a;
    --color-text: #dddddd;
    --color-text-light: #bbbbbb;
    --color-text-muted: #949494;
    --color-heading: #f1e8de;
    --color-heading-soft: #ddcdbf;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-shadow: rgba(0, 0, 0, 0.32);
    --color-on-dark: #f1ece5;
    --color-on-dark-soft: #d9d0c7;
    --color-on-dark-muted: #aea49b;
    --nav-bg: rgba(17, 17, 17, 0.4);
    --nav-bg-solid: rgba(17, 17, 17, 0.96);
    --nav-border: rgba(255, 255, 255, 0.08);
    --focus-ring: rgba(194, 133, 98, 0.45);
    --surface-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    color-scheme: dark;
  }
}

/* === BASE === */
body {
  background: var(--color-bg) !important;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.elementor-default,
body.elementor-page,
body[class*='elementor'] {
  background: var(--color-bg) !important;
  color: var(--color-text);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

h1, h2 {
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
}

h3, h4, h5, h6,
.eyebrow,
.btn,
.site-nav__menu a,
.site-nav__phone,
.stat-label,
.theme-toggle,
.site-nav__toggle {
  font-family: var(--font-heading);
}

main,
.page-shell,
.site,
.site-main {
  background: transparent;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === NAVIGATION === */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 18px 28px;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease;
}

.site-nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1380px;
  margin: 0 auto;
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-nav__brand img {
  width: auto;
  height: 78px;
}

.site-nav__panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex: 1 1 auto;
}

.site-nav__menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  list-style: none;
}

.site-nav__menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-nav__menu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--color-accent);
  transition: transform 180ms ease;
}

.site-nav__menu a:hover::after,
.site-nav__menu a[aria-current='page']::after {
  transform: scaleX(1);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav__phone:hover {
  background: var(--color-accent-hover);
  color: #ffffff;
}

.theme-toggle,
.site-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.theme-toggle:hover,
.site-nav__toggle:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
}

.theme-toggle__icon {
  font-size: 15px;
  line-height: 1;
}

.site-nav__toggle {
  display: none;
  gap: 10px;
}

.site-nav.scrolled,
.site-nav--interior {
  background: var(--nav-bg-solid);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

body.admin-bar .site-nav {
  top: 32px;
}

/* === HEROES === */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero {
  display: flex;
  align-items: flex-end;
  min-height: 640px;
  height: 100vh;
  max-height: 920px;
}

.page-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 126px 40px 88px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--fpp-aerial-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--fpp-hero-overlay-top) 0%, var(--fpp-hero-overlay-mid) 48%, var(--fpp-hero-overlay-bottom) 100%);
}

.hero-content,
.page-hero > *:not(.hero-bg):not(.hero-overlay) {
  position: relative;
  z-index: 2;
}

.hero-content {
  width: min(760px, calc(100vw - 80px));
  padding: 0 0 92px;
  margin-left: clamp(28px, 5vw, 88px);
  color: #ffffff;
}

.hero-eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: var(--color-accent);
}

.hero-content h1 {
  max-width: 10.5em;
  color: #ffffff;
  font-size: clamp(46px, 5vw, 74px);
  font-weight: 400;
  line-height: 1.08;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hero-content .lead {
  max-width: 700px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.78;
}

.hero-price {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 26px;
}

.hero-price .amount {
  color: #ffffff;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 700;
}

.hero-price .note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 12em;
  color: #ffffff;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.1;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.page-hero .page-subtitle {
  max-width: 720px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.7;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--color-heading);
  border-color: var(--color-heading);
  color: var(--color-bg);
}

.btn-accent {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #ffffff;
}

.btn-accent:hover {
  border-color: var(--color-accent-hover);
  background: var(--color-accent-hover);
  color: #ffffff;
}

.hero .btn:not(.btn-accent),
.page-hero .btn:not(.btn-accent),
.section-dark .btn:not(.btn-accent) {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.hero .btn:not(.btn-accent):hover,
.page-hero .btn:not(.btn-accent):hover,
.section-dark .btn:not(.btn-accent):hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.btn-group,
.cta-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* === LAYOUT === */
.section {
  padding: var(--section-pad);
}

.inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.inner--narrow {
  width: min(100%, var(--max-width-narrow));
}

.section-white {
  background: var(--color-surface);
}

.section-light {
  background: var(--color-bg-soft);
}

.section-dark {
  background: var(--color-panel);
  color: var(--color-on-dark);
}

.section-center {
  text-align: center;
}

.section h2,
.page-content h2 {
  color: var(--color-heading);
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.18;
}

.section-dark h2 {
  color: var(--color-on-dark);
}

.section-heading {
  margin-bottom: 12px;
}

.section-heading.accent {
  color: var(--color-accent);
}

.subtitle,
.section-note,
.scenario-intro,
.faq__intro {
  max-width: 860px;
  margin: 0 auto 34px;
  color: var(--color-text-light);
  font-size: 16px;
  line-height: 1.85;
}

.section-dark .subtitle,
.section-dark .section-note {
  color: var(--color-on-dark-soft);
}

.loudoun-summary {
  max-width: 920px;
  margin: 34px auto 0;
}

.page-shell {
  padding: 0 40px 84px;
  background: var(--color-bg);
}

.page-content {
  width: min(100%, 1040px);
  margin: -74px auto 0;
  padding: 56px 52px 64px;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--card-radius) + 2px);
  background: var(--color-surface);
  box-shadow: var(--surface-shadow);
  color: var(--color-text);
  position: relative;
  z-index: 2;
}

.page-content--wide {
  width: min(100%, 1240px);
}

.page-content h2 {
  margin-top: 50px;
  margin-bottom: 18px;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  margin: 26px 0 10px;
  color: var(--color-heading-soft);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.page-content p + p {
  margin-top: 14px;
}

.page-content ul {
  padding-left: 22px;
  margin-top: 14px;
}

.page-content li {
  margin-bottom: 9px;
}

.page-content li::marker {
  color: var(--color-accent);
}

.page-content strong {
  color: var(--color-heading);
}

.page-content a:not(.btn) {
  color: var(--color-accent);
}

.source-note {
  margin-top: 14px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.section-overlap {
  position: relative;
  z-index: 2;
  margin-top: -74px;
}

/* === GRID + CARDS === */
.card-grid {
  display: grid;
  gap: 24px;
}

.corridor-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid-full {
  grid-column: 1 / -1;
}

.card,
.testimonial,
.metric-card,
.contact-card,
.gallery-cta {
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
}

.card {
  padding: 28px;
}

.card-grid > .card,
.corridor-facts-grid > .card {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: 100%;
  margin: 0;
}

.card-grid > .card .source,
.corridor-facts-grid > .card .source {
  margin-top: auto;
  padding-top: 16px;
}

.card-shadow,
.testimonial,
.metric-card,
.contact-card,
.gallery-cta {
  background: var(--color-surface);
  box-shadow: 0 18px 40px var(--color-shadow);
}

.card-bordered {
  background: linear-gradient(180deg, rgba(194, 133, 98, 0.05), rgba(194, 133, 98, 0));
  border: 1px solid rgba(194, 133, 98, 0.18);
}

.section-dark .card-bordered {
  background: linear-gradient(180deg, rgba(194, 133, 98, 0.1), rgba(194, 133, 98, 0.03));
}

.card-heading,
.card h3,
.card h4 {
  color: var(--color-heading-soft);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
}

.section-dark .card-heading,
.section-dark .card h3,
.section-dark .card h4,
.card-heading.light {
  color: var(--color-on-dark);
}

.card p,
.card li,
.metric-card p,
.testimonial p {
  color: var(--color-text-light);
  font-size: 15px;
  line-height: 1.75;
}

.section-dark .card p,
.section-dark .card li {
  color: var(--color-on-dark-soft);
}

.source,
.text-muted {
  color: var(--color-text-muted);
  font-size: 13px;
}

.section-dark .source,
.section-dark .text-muted {
  color: var(--color-on-dark-muted);
}

.text-small {
  font-size: 14px;
}

.text-light {
  color: var(--color-text-light);
}

.section-dark .text-light {
  color: var(--color-on-dark-soft);
}

/* === STATS === */
.stats-bar {
  background: var(--color-panel);
  padding: 34px 40px;
}

.stats-bar--ghost {
  background: transparent;
  padding: 24px 0 0;
}

.stats-bar .inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, var(--max-width));
}

.stats-bar .inner > div,
.metric-card {
  padding: 22px 18px;
  text-align: center;
}

.metric-card {
  background: var(--color-surface-muted);
  box-shadow: none;
}

.section-dark .metric-card {
  background: var(--color-surface);
}

.stat-num {
  display: block;
  color: var(--color-accent);
  font-size: clamp(34px, 3.1vw, 44px);
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  margin-top: 10px;
  color: var(--color-on-dark-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.metric-card .text-small {
  margin-top: 10px;
}

/* === FEATURE ROWS === */
.feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.feature-row + .feature-row {
  margin-top: 64px;
}

.feature-row.reverse .feature-text {
  order: 2;
}

.feature-row.reverse .feature-img {
  order: 1;
}

.feature-text h3 {
  color: var(--color-heading);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.2;
}

.feature-text p {
  margin-top: 16px;
  color: var(--color-text-light);
  font-size: 16px;
  line-height: 1.85;
}

.feature-img img {
  width: 100%;
  min-height: 320px;
  border-radius: calc(var(--card-radius) + 2px);
  object-fit: cover;
  box-shadow: 0 24px 52px var(--color-shadow);
}

/* === TESTIMONIALS === */
.testimonial {
  padding: 28px;
}

.testimonial .name {
  margin-bottom: 10px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.testimonial p {
  font-style: italic;
}

.testimonial-grid--narrow {
  width: min(100%, 760px);
  margin: 24px auto 0;
}

/* === FAQ === */
.faq {
  width: min(100%, 980px);
}

.faq__list {
  display: grid;
  gap: 14px;
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  background: var(--color-surface-muted);
  overflow: hidden;
}

.faq__item summary {
  list-style: none;
  padding: 20px 24px;
  color: var(--color-heading);
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item[open] summary {
  border-bottom: 1px solid var(--color-border);
}

.faq__answer {
  padding: 18px 24px 24px;
  color: var(--color-text-light);
  font-size: 15px;
  line-height: 1.8;
}

.faq__answer p + p {
  margin-top: 12px;
}

/* === FORMS + CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 30px;
}

.contact-card {
  padding: 34px;
}

.contact-card h2 {
  margin-bottom: 18px;
}

.contact-copy {
  color: var(--color-text-light);
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.contact-list__item h3 {
  margin: 0 0 6px;
  color: var(--color-heading-soft);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-list__item p {
  color: var(--color-text-light);
}

.map-frame {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: var(--card-radius);
}

.contact-map {
  margin-top: 24px;
}

.wpcf7 form p {
  margin-bottom: 16px;
}

.wpcf7 label {
  display: block;
  color: var(--color-heading-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wpcf7 input[type='text'],
.wpcf7 input[type='email'],
.wpcf7 textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 15px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface-muted);
  color: var(--color-text);
  line-height: 1.6;
}

.wpcf7 textarea {
  min-height: 170px;
  resize: vertical;
}

.wpcf7 input[type='submit'],
.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.wpcf7 input[type='submit']:hover,
.wpcf7-submit:hover {
  background: var(--color-accent-hover);
}

/* === GALLERY === */
.photo-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.photo-grid + h2 {
  margin-top: 38px;
}

.photo-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-grid a {
  overflow: hidden;
  border-radius: var(--card-radius);
}

.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 240ms ease;
}

.photo-grid a:hover img {
  transform: scale(1.04);
}

.gallery-cta {
  padding: 34px 28px;
}

/* === PAGE SPECIFIC === */
.number-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 12px;
}

.number-card {
  padding: 24px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  background: var(--color-surface-muted);
  text-align: center;
}

.number-card .num {
  display: block;
  color: var(--color-accent);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.number-card .label {
  margin-top: 10px;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.video-wrap {
  position: relative;
  width: min(100%, 980px);
  margin: 0 auto;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: calc(var(--card-radius) + 2px);
  box-shadow: 0 24px 60px var(--color-shadow);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-section {
  height: 380px;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.section-cta {
  padding-top: 70px;
  padding-bottom: 70px;
}

/* === FOOTER === */
.site-footer {
  background: var(--color-panel);
  color: var(--color-on-dark-soft);
  padding: 62px 40px 28px;
}

.site-footer .inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.95fr;
  gap: 34px;
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.site-footer h4 {
  margin-bottom: 16px;
  color: var(--color-on-dark);
  font-size: 18px;
  font-weight: 800;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--color-on-dark-soft);
  font-size: 14px;
  line-height: 1.8;
}

.site-footer a:hover {
  color: var(--color-accent);
}

.site-footer ul {
  list-style: none;
}

.site-footer .price {
  margin-top: 14px;
  color: var(--color-accent);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
}

.site-footer .price-note,
.footer-label {
  color: var(--color-on-dark-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-contact {
  display: grid;
  gap: 10px;
}

.footer-bottom {
  width: min(100%, var(--max-width));
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom p {
  color: var(--color-on-dark-muted);
  font-size: 12px;
}

/* === RESPONSIVE === */
@media (max-width: 1180px) {
  .site-nav__menu {
    gap: 18px;
  }

  .site-nav__menu a,
  .site-nav__phone {
    letter-spacing: 0.15em;
  }

  .stats-bar .inner,
  .card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .corridor-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .corridor-facts-grid__card--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  :root {
    --section-pad: 72px 28px;
  }

  .site-nav {
    padding: 14px 18px;
  }

  .site-nav__brand img {
    height: 68px;
  }

  .site-nav__toggle {
    display: inline-flex;
  }

  .site-nav__panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--nav-border);
    border-radius: 14px;
    background: var(--nav-bg-solid);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }

  .site-nav.menu-open .site-nav__panel {
    display: flex;
  }

  .site-nav__menu,
  .site-nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .site-nav__menu a,
  .site-nav__phone,
  .theme-toggle {
    justify-content: center;
  }

  .hero {
    min-height: 580px;
  }

  .hero-content {
    width: min(100%, calc(100vw - 56px));
    margin-left: 28px;
    padding-bottom: 68px;
  }

  .page-content,
  .section-overlap {
    margin-top: -54px;
  }

  .feature-row,
  .contact-grid,
  .card-grid-3,
  .card-grid-2,
  .site-footer .inner {
    grid-template-columns: 1fr;
  }

  .number-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero-content h1 {
    max-width: none;
  }

  .hero-content .lead,
  .page-hero .page-subtitle {
    font-size: 16px;
  }

  .page-shell {
    padding: 0 18px 60px;
  }

  .page-content {
    padding: 40px 24px 46px;
  }

  .stats-bar,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .stats-bar .inner,
  .number-grid,
  .card-grid-4,
  .corridor-facts-grid,
  .photo-grid-4,
  .photo-grid-3 {
    grid-template-columns: 1fr;
  }

  .metric-card,
  .stats-bar .inner > div {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section h2,
  .page-content h2 {
    font-size: 30px;
  }

  .page-hero {
    min-height: 310px;
    padding: 118px 22px 64px;
  }

  .photo-grid img {
    height: 240px;
  }
}

/* Fix spacing between hero/stats and first content section */
.hero + .stats-bar { margin-top: 0; margin-bottom: 0; }
.stats-bar + .section { padding-top: 0; }
.page-hero + .page-content { padding-top: 40px; margin-top: 0; }
.page-hero + .section { padding-top: 80px; }

/* Lightbulb toggle - show different states */
[data-theme="dark"] .theme-toggle__icon { filter: brightness(1.5); }
[data-theme="light"] .theme-toggle__icon { filter: brightness(0.6); }

/* Fix: Zero gap between hero and stats bar */
.hero { margin: 0; padding: 0; }
.hero + .stats-bar { margin-top: 0 !important; padding-top: 35px; }
section + section { margin-top: 0; }
/* Fix corridor page hero to content gap */
.page-hero + .page-content { margin-top: 0; padding-top: 50px; }
.page-hero + .section-dark { margin-top: 0; }

/* Force zero gap between all adjacent sections */
section + section,
.section + .section,
.hero + .stats-bar,
.stats-bar + section,
.page-hero + section,
.page-hero + .section-dark,
.page-hero + .page-content {
  margin-top: 0 !important;
  border-top: none !important;
}
/* Remove any default margins on sections */
section, .section {
  margin-top: 0;
  margin-bottom: 0;
}

/* Fix: Remove gaps between adjacent card-grid rows */
.card-grid + .card-grid {
  margin-top: 20px !important;
}
.card-grid {
  margin-top: 0;
  margin-bottom: 0;
}
/* Tighten section internal spacing */
.section .inner > .card-grid:first-child {
  margin-top: 0;
}

/* Tighter padding within dark corridor section */
.section-dark > .inner > .corridor-facts-grid {
  margin-top: 0;
  margin-bottom: 0;
}
.section-dark > .inner > h2:first-child {
  margin-bottom: 8px;
}
.section-dark > .inner > .subtitle {
  margin-bottom: 25px;
}

.corridor-facts-grid__card--wide {
  grid-column: span 2;
}

.section-dark .corridor-facts-grid > .card {
  margin-top: 0;
}

.section-center .btn-group,
.section-center .cta-actions,
.section-center .page-actions,
.page-content .page-actions {
  justify-content: center;
}
