:root {
  --bg: #f5f2ea;
  --surface: #eae4d8;
  --primary: #6f8f7a;
  --orange: #f28c28;
  --red: #e5483b;
  --secondary-text: #ab8f76;
  --text: #1f2923;
  --shadow: 0 18px 60px rgba(35, 31, 26, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(
      circle at 10% 0%,
      rgba(111, 143, 122, 0.05),
      transparent 32%
    ),
    linear-gradient(180deg, #f5f2ea 0%, #f3efe5 56%, #f5f2ea 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
}

main,
.site-header,
.site-footer {
  width: min(1100px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  margin-top: 1.3rem;
  padding: 0.55rem 0.2rem;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-width: 170px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text {
  font-family: "Sora", "Space Grotesk", sans-serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.center-nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0.42rem;
  border-radius: 14px;
  background: #efebe2;
  border: 0.8px solid rgba(31, 41, 35, 0.08);
}

.nav-links {
  display: flex;
  gap: 0.22rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  padding: 0.52rem 0.85rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: #f6f3ec;
  border-color: rgba(31, 41, 35, 0.09);
}

.header-spacer {
  justify-self: end;
  width: 170px;
}

.hero {
  text-align: center;
  margin-top: 3.1rem;
}

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

.hero h1 {
  margin: 0.75rem 0 0;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.05;
}

.hero-subtitle {
  margin: 0.8rem auto 0;
  max-width: 58ch;
  color: #3a4b40;
}

.policy-wrap {
  margin-top: 2rem;
  margin-bottom: 3.2rem;
}

.policy-card {
  max-width: 860px;
  margin-inline: auto;
  background: linear-gradient(180deg, rgba(111, 143, 122, 0.03), transparent 40%),
    var(--surface);
  border: 1px solid rgba(31, 41, 35, 0.09);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: clamp(1.3rem, 2.5vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.policy-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -30px;
  width: 140px;
  height: 140px;
  border-radius: 40% 60% 50% 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(111, 143, 122, 0.09),
    rgba(111, 143, 122, 0.02)
  );
}

.policy-content {
  position: relative;
  z-index: 1;
}

.policy-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.9rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.policy-content h3 {
  font-size: 1.2rem;
  margin: 1.6rem 0 0.65rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #2f4036;
}

.policy-content p,
.policy-content li {
  margin: 0.56rem 0;
  color: #2b3730;
}

.policy-content ul {
  margin: 0.25rem 0 1.1rem 1.2rem;
  padding-left: 0.2rem;
}

.policy-content strong {
  color: #2e4f3b;
  background: linear-gradient(transparent 64%, rgba(111, 143, 122, 0.24) 64%);
}

.contact-grid {
  margin: 2rem auto 3.2rem;
  display: flex;
  justify-content: center;
}

.contact-card {
  width: min(520px, 100%);
  background: var(--surface);
  border: 1px solid rgba(31, 41, 35, 0.09);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 45px rgba(35, 31, 26, 0.16);
}

.contact-card h2 {
  margin: 0 0 0.4rem;
}

.contact-card a {
  color: #355f46;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.contact-card a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.contact-card a:hover::after {
  transform: scaleX(1);
}

.site-footer {
  padding-bottom: 1.7rem;
  color: var(--secondary-text);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.7s cubic-bezier(0.2, 0.65, 0.2, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .brand-text {
    font-size: 1.2rem;
  }

  .site-header {
    grid-template-columns: minmax(130px, 1fr) auto minmax(130px, 1fr);
  }

  .brand,
  .header-spacer {
    min-width: 130px;
    width: 130px;
  }
}

@media (max-width: 640px) {
  main,
  .site-header,
  .site-footer {
    width: min(1100px, calc(100% - 1.3rem));
  }

  .site-header {
    padding: 0.4rem 0.1rem;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .brand {
    min-width: unset;
    width: auto;
  }

  .header-spacer {
    display: none;
  }

  .center-nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    flex: 1;
    text-align: center;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
