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

:root {
  --color-bg: #FAF7F1;
  --color-text: #25302B;
  --color-text-secondary: #4A5550;
  --color-green: #6F8F72;
  --color-blue: #5D8FA3;
  --color-cta: #D97745;
  --color-cta-hover: #C0683A;
  --color-card-bg: #FFFFFF;
  --color-border: #E2DDD3;
  --color-overlay: rgba(37, 48, 43, 0.55);
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1100px;
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-green);
  text-decoration: none;
  transition: color 0.2s;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.header-logo img {
  height: 36px;
  width: auto;
}

.header-logo:hover {
  color: var(--color-green);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-nav a {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--color-green);
}

.header-nav .nav-cta {
  display: inline-block;
  background: var(--color-cta);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.header-nav .nav-cta:hover {
  background: var(--color-cta-hover);
  color: #fff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  background: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav a {
  color: var(--color-text-secondary);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.4rem 0;
  display: block;
}

.mobile-nav .nav-cta {
  display: inline-block;
  background: var(--color-cta);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  margin-top: 0.25rem;
  width: fit-content;
}

.mobile-nav .nav-cta:hover {
  background: var(--color-cta-hover);
  color: #fff;
}

.mobile-nav.open {
  display: flex;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100svh;
  padding: 4rem 1.5rem;
  background-color: var(--color-text);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 2rem;
}

.hero .btn-cta {
  display: inline-block;
  background: var(--color-cta);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.85rem 2.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s;
}

.hero .btn-cta:hover {
  background: var(--color-cta-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* Simple page header (legal pages) */
.page-header {
  background: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 3rem 1.5rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  color: var(--color-text);
}

.page-header .last-updated {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--color-card-bg);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-blue);
  margin-bottom: 0.5rem;
}

.section h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 1.5rem 0 0.75rem;
  line-height: 1.35;
}

.section p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
  max-width: 720px;
}

.section ul, .section ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--color-text-secondary);
  max-width: 680px;
}

.section li {
  margin-bottom: 0.5rem;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.15s;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(37, 48, 43, 0.08);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

.card a {
  font-weight: 600;
  font-size: 0.95rem;
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* City cards specific */
.city-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.city-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.city-card:hover {
  box-shadow: 0 4px 20px rgba(37, 48, 43, 0.08);
}

.city-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.city-card h3 a {
  color: var(--color-text);
}

.city-card h3 a:hover {
  color: var(--color-green);
}

.city-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* FAQ */
.faq-list {
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.faq-question a {
  color: var(--color-text);
}

.faq-answer {
  color: var(--color-text-secondary);
}

/* How it works - numbered steps */
.steps-list {
  list-style: none;
  max-width: 640px;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps-list li {
  counter-increment: step;
  margin-bottom: 1.25rem;
  padding-left: 3rem;
  position: relative;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--color-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.steps-list li strong {
  display: block;
  margin-bottom: 0.25rem;
}

.steps-list li p {
  margin: 0;
}

/* Image placements */
.img-feature {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 1200 / 800;
  object-fit: cover;
  background: var(--color-border);
  margin: 2rem 0;
}

/* Final CTA */
.section-cta {
  background: var(--color-card-bg);
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-top: 1px solid var(--color-border);
}

.section-cta h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.btn-cta {
  display: inline-block;
  background: var(--color-cta);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.85rem 2.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.btn-cta:hover {
  background: var(--color-cta-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 1.5rem 2rem;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  max-width: 320px;
}

.footer-links h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-legal {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal a:hover {
  color: #fff;
}

/* Legal page body styles */
.legal-body h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
}

.legal-body h3 {
  font-size: 1.1rem;
}

.legal-body p, .legal-body ul {
  max-width: 100%;
}

/* Skip to main content */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-text);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 200;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Responsive */
@media (min-width: 600px) {
  .hero h1 {
    font-size: 2.6rem;
  }

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

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

  .section h2 {
    font-size: 1.9rem;
  }

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

@media (min-width: 900px) {
  .hero h1 {
    font-size: 2.9rem;
  }

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

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

  .section {
    padding: 5rem 0;
  }

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

@media (max-width: 767px) {
  .header-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 100svh;
    padding: 3rem 1.25rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .btn-cta {
    font-size: 1rem;
    padding: 0.75rem 2rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section h2 {
    font-size: 1.45rem;
  }

  .section h3 {
    font-size: 1.1rem;
  }

  .section-cta h2 {
    font-size: 1.3rem;
  }

  .cards-grid, .city-grid {
    gap: 1rem;
  }

  .card, .city-card {
    padding: 1.25rem;
  }
}
