:root {
  --background: hsl(40 33% 97%);
  --foreground: hsl(15 12% 16%);
  --card: hsl(37 23% 91%);
  --primary: hsl(145 17% 37%);
  --secondary: hsl(37 23% 91%);
  --muted-foreground: hsl(15 8% 45%);
  --accent: hsl(27 50% 64%);
  --border: hsl(37 18% 82%);
  --primary-foreground: hsl(40 33% 97%);
  --radius: 0.5rem;
  --shadow-soft: 0 12px 40px hsl(15 12% 16% / 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: "Playfair Display", serif;
}

main {
  display: block;
}

section[id] {
  scroll-margin-top: 7rem;
}

[data-lucide] {
  display: inline-flex;
  vertical-align: middle;
}

.container-wide,
.container {
  width: min(100% - 2rem, 76rem);
  margin: 0 auto;
}

.container {
  max-width: 64rem;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 300ms ease, box-shadow 300ms ease,
    backdrop-filter 300ms ease;
}

.site-nav.is-scrolled {
  background: hsl(40 33% 97% / 0.95);
  box-shadow: 0 4px 24px hsl(15 12% 16% / 0.08);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  transition: color 300ms ease;
}

.site-nav.is-scrolled .brand {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(0 0% 100% / 0.9);
  transition: color 300ms ease;
}

.site-nav.is-scrolled .nav-links {
  color: hsl(15 12% 16% / 0.8);
}

.nav-links a,
.mobile-menu a {
  transition: color 200ms ease;
}

.nav-links a:hover,
.mobile-menu a:hover,
.contact-line a:hover,
.footer-links a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: color 300ms ease;
}

.site-nav.is-scrolled .menu-toggle {
  color: var(--foreground);
}

.menu-icon {
  position: absolute;
  transition: opacity 180ms ease, transform 180ms ease;
}

.menu-icon-close {
  opacity: 0;
  transform: scale(0.85);
}

body.menu-open .menu-icon-open {
  opacity: 0;
  transform: scale(0.85);
}

body.menu-open .menu-icon-close {
  opacity: 1;
  transform: scale(1);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: hsl(40 33% 97% / 0.98);
  backdrop-filter: blur(12px);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem 1.5rem;
  color: hsl(15 12% 16% / 0.8);
  font-size: 0.875rem;
  font-weight: 500;
}

body.menu-open .mobile-menu {
  display: block;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 5rem 1rem 4rem;
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background: url("./assets/hero-bg.jpg") center center / cover no-repeat;
}

.hero-overlay {
  background: hsl(15 12% 16% / 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  text-align: center;
}

.hero-kicker {
  margin-bottom: 1.5rem;
  color: hsl(0 0% 100% / 0.7);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-size: clamp(3rem, 8vw, 5.25rem);
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 10px 30px hsl(15 12% 16% / 0.28);
}

.hero-tagline {
  margin: 0 auto 2rem;
  color: hsl(0 0% 100% / 0.9);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-style: italic;
  line-height: 1.5;
}

.hero-text {
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  color: hsl(0 0% 100% / 0.75);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.75;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease,
    opacity 200ms ease, transform 200ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-light {
  background: hsl(0 0% 100% / 0.9);
  color: var(--foreground);
}

.btn-light:hover {
  background: #ffffff;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: hsl(145 17% 32%);
}

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

.btn-outline:hover {
  background: hsl(37 23% 91% / 0.55);
}

.btn-icon {
  width: 1.125rem;
  height: 1.125rem;
}

.section {
  padding: 5rem 1rem;
}

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

.section-heading {
  margin-bottom: 3rem;
  text-align: center;
}

.section-heading h2,
.contact-box h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
}

.section-heading p,
.contact-lead {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.7;
}

.vision-illustration {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.vision-illustration img {
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  object-fit: cover;
}

.text-columns,
.territory-layout,
.market-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 4rem;
}

.text-columns p,
.text-block p,
.neighbor-text p,
.feature-text,
.market-text p,
.contact-box p,
.contact-line,
.neighbor-end {
  color: var(--muted-foreground);
  line-height: 1.8;
}

.text-columns div,
.text-block,
.neighbor-text,
.market-text,
.market-media,
.territory-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 2.5rem;
}

.plan-illustration {
  width: 28rem;
  height: auto;
  object-fit: contain;
}

.project-cards {
  display: grid;
  gap: 1.25rem;
}

.card {
  padding: 1.5rem;
  background: var(--secondary);
  border-radius: 0.75rem;
}

.card-icon,
.feature-icon,
.value-icon,
.contact-icon {
  color: var(--primary);
}

.card-icon {
  width: 1.625rem;
  height: 1.625rem;
}

.card h3,
.value-item h3 {
  margin: 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.card p,
.value-item p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.75;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 3rem;
}

.value-item {
  text-align: center;
}

.value-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: hsl(145 17% 37% / 0.1);
}

.value-icon {
  width: 1.75rem;
  height: 1.75rem;
}

.value-item h3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--background);
  border-radius: 0.5rem;
}

.feature-card span:last-child {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.feature-icon {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
}

.media-figure {
  overflow: hidden;
  border-radius: 0.75rem;
}

.media-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.75rem;
}

.media-large {
  margin-top: 3rem;
}

.media-small img {
  height: 11rem;
  transition: transform 500ms ease;
}

.media-small:hover img {
  transform: scale(1.05);
}

.media-figure figcaption,
.caption {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-style: italic;
  text-align: center;
  line-height: 1.6;
}

.caption-centered {
  text-align: center;
}

.watercolor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.media-overlay {
  position: relative;
}

.media-overlay img {
  height: 20rem;
  filter: grayscale(1);
  opacity: 0.6;
}

.media-tint {
  position: absolute;
  inset: 0;
  background: hsl(145 17% 37% / 0.15);
  border-radius: 0.75rem;
}

.neighbor-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 48rem;
  margin: 0 auto;
}

.neighbor-text,
.neighbor-end {
  text-align: center;
}

.market-logo {
  align-self: flex-start;
  width: auto;
  height: auto;
  max-width: none;
  max-height: 3.5rem;
  object-fit: contain;
}

.market-hero {
  margin-top: 0;
}

.market-hero img {
  height: 14rem;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.market-grid img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  border-radius: 0.5rem;
}

.contact-box {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  color: var(--muted-foreground);
}

.contact-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact-icon {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
}

.contact-line a,
.footer-links a {
  text-decoration: underline;
  text-underline-offset: 0.125rem;
}

.contact-actions {
  margin-top: 2rem;
}

.site-footer {
  padding: 2.5rem 1rem;
  background: var(--foreground);
  color: var(--primary-foreground);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-brand {
  font-family: "Playfair Display", serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links [data-lucide] {
  width: 1rem;
  height: 1rem;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1023px) {
  .project-layout,
  .text-columns,
  .territory-layout,
  .market-layout,
  .values-grid,
  .feature-grid,
  .watercolor-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner,
  .footer-links {
    flex-direction: column;
    text-align: center;
  }

  .plan-illustration {
    display: none;
  }
}

@media (max-width: 767px) {
  .container-wide,
  .container {
    width: min(100% - 2rem, 64rem);
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
  }

  .hero {
    padding-top: 6rem;
  }

  .section {
    padding: 5rem 1rem;
  }

  .section-heading {
    margin-bottom: 2.5rem;
  }

  .vision-illustration img {
    width: 9rem;
    height: 9rem;
  }

  .contact-line {
    align-items: flex-start;
  }

  .market-hero img,
  .media-overlay img {
    height: auto;
    min-height: 16rem;
  }

  .market-grid img,
  .media-small img {
    height: 8rem;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 7rem 1rem;
  }

  .vision-illustration img {
    width: 9rem;
    height: 9rem;
  }
}

@media (min-width: 1280px) {
  .plan-illustration {
    width: 34rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in-section,
  .media-small img,
  .btn,
  .site-nav,
  .brand,
  .nav-links,
  .menu-toggle,
  .menu-icon {
    transition: none;
  }

  .fade-in-section {
    opacity: 1;
    transform: none;
  }
}
