:root {
  --bg: #f7f4ec;
  --surface: #fffdf7;
  --surface-soft: #f2eee3;
  --text: #171614;
  --muted: #625d50;
  --primary: #d74b2a;
  --primary-strong: #b83c1f;
  --border: #d8d1c1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 10% 10%, #ffddbf 0%, rgba(255, 221, 191, 0) 40%),
    radial-gradient(circle at 90% 0%, #f0d8bf 0%, rgba(240, 216, 191, 0) 35%),
    var(--bg);
  color: var(--text);
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 0.8rem;
  top: 0.8rem;
  width: auto;
  height: auto;
  z-index: 40;
  background: #111;
  color: #fff;
  padding: 0.45rem 0.7rem;
  border-radius: 0.45rem;
}

.container {
  width: min(1000px, 92vw);
  margin: 0 auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(247, 244, 236, 0.86);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.66);
}

.hero {
  padding: clamp(3.2rem, 7vw, 4.8rem) 0 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr;
  gap: 1.1rem;
  align-items: end;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  font-size: 0.8rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12;
  margin: 0.6rem 0 1rem;
  max-width: 18ch;
  text-wrap: balance;
}

.hero-text {
  max-width: 64ch;
  margin: 0 0 1.4rem;
  color: var(--muted);
}

.hero-metrics {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.3rem;
  padding: 0;
}

.hero-metrics li {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  min-height: 2.75rem;
  display: inline-block;
  padding: 0.7rem 1.02rem;
  border-radius: 0.7rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-strong);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(183, 60, 31, 0.22);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.65);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: translateY(-1px);
}

.hero-card {
  background: linear-gradient(180deg, #fff6eb 0%, #f3e6d4 100%);
  border: 1px solid #ddc8ab;
  border-radius: 14px;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 12px 26px rgba(30, 18, 6, 0.11);
}

.hero-card-kicker {
  margin: 0;
  color: #90633d;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-card h2 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.4rem;
}

.hero-card p {
  margin: 0 0 0.7rem;
  color: #4f4639;
}

.hero-card a {
  color: var(--primary-strong);
  font-weight: 700;
  text-decoration: none;
}

.hero-card a:hover,
.hero-card a:focus-visible {
  text-decoration: underline;
}

.panel {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.2rem 1.25rem;
  margin: 1rem 0;
  box-shadow: 0 10px 24px rgba(30, 18, 6, 0.07);
  content-visibility: auto;
  contain-intrinsic-size: 1px 500px;
}

h2 {
  margin-top: 0.2rem;
  text-wrap: balance;
}

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

.card {
  grid-column: span 4;
  background: rgba(255, 252, 246, 0.86);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.card h3 {
  margin-top: 0.1rem;
  margin-bottom: 0.45rem;
}

.card p {
  margin-top: 0;
}

.card a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.card a:hover,
.card a:focus-visible {
  text-decoration: underline;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(30, 18, 6, 0.08);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  text-decoration: underline;
}

.contact-intro {
  margin-top: 0;
  color: var(--muted);
  max-width: 62ch;
}

.trust-points {
  margin: 0.95rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.trust-points li + li {
  margin-top: 0.3rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 1.2rem 0 2.2rem;
  margin-top: 1.6rem;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 38rem;
  }

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

  .card {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    flex-direction: column;
    gap: 0.7rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
  }

  nav a {
    display: inline-block;
    padding: 0.42rem 0.62rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.4rem;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(1000px, 94vw);
  }

  h1 {
    font-size: clamp(1.72rem, 9vw, 2.25rem);
  }

  .hero-actions {
    gap: 0.55rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #453f33;
    --border: #8b816d;
  }
}
