:root {
  --color-primary: #1f4d43;
  --color-primary-dark: #163a32;
  --color-accent: #c98a4b;
  --color-accent-dark: #a86f39;
  --color-bg: #faf7f2;
  --color-bg-alt: #f1ebe0;
  --color-text: #22302c;
  --color-text-muted: #55635d;
  --color-border: #ddd4c2;

  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary-dark);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
  color: var(--color-text-muted);
}

a {
  color: var(--color-primary);
}

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

.narrow {
  max-width: 760px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--color-primary);
}

.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  color: var(--color-primary) !important;
}

.nav-cta:hover {
  background: var(--color-primary);
  color: var(--color-bg) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-primary-dark);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-bg);
  padding: 96px 0 128px;
}

.hero-illustration {
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  width: 460px;
  height: 460px;
  max-width: 60vw;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  color: var(--color-bg);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
}

.hero-subhead {
  color: #dfe9e4;
  font-size: 1.125rem;
  max-width: 560px;
}

.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  display: block;
}

/* Buttons */

.button {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.button-primary {
  background: var(--color-accent);
  color: #2a1c0f;
}

.button-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

.hero .button-primary {
  margin-top: 8px;
}

/* Sections */

.section {
  padding: 80px 0;
}

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

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

.badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.badge svg {
  width: 28px;
  height: 28px;
}

.has-pattern {
  position: relative;
  overflow: hidden;
}

.has-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--color-border) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(120deg, transparent 0%, black 35%, black 65%, transparent 100%);
  mask-image: linear-gradient(120deg, transparent 0%, black 35%, black 65%, transparent 100%);
}

.has-pattern .container {
  position: relative;
  z-index: 1;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

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

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(31, 77, 67, 0.1);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 1.25rem;
  color: var(--color-primary);
}

.contact-inner p {
  margin-bottom: 20px;
}

#contact {
  position: relative;
  overflow: hidden;
  padding-bottom: 128px;
}

/* Footer */

.site-footer {
  background: var(--color-primary-dark);
  color: #cfd8d4;
  padding: 40px 0;
}

.compliance-note {
  color: #cfd8d4;
  font-size: 0.9rem;
  max-width: 720px;
  margin-bottom: 12px;
}

.footer-meta {
  color: #97a49e;
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Responsive nav */

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }

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

  .site-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-cta {
    margin-top: 12px;
    text-align: center;
    border-radius: 999px;
  }

  .hero {
    padding: 64px 0 88px;
  }

  .hero-illustration {
    display: none;
  }

  #contact {
    padding-bottom: 88px;
  }

  .section {
    padding: 56px 0;
  }
}
