@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Merriweather:wght@400;700&display=swap');

:root {
  --bg: #f6efe6;
  --bg-soft: #efe2d2;
  --surface: #fffaf4;
  --ink: #1d2b2a;
  --muted: #4f605c;
  --brand: #c06a3a;
  --brand-dark: #8d4a27;
  --line: #dbc7b1;
  --ok: #216a45;
  --shadow: 0 18px 35px rgba(29, 43, 42, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 10%, rgba(192, 106, 58, 0.2), transparent 30%),
    radial-gradient(circle at 85% 0, rgba(33, 106, 69, 0.18), transparent 25%),
    linear-gradient(180deg, var(--bg) 0%, #f5f1eb 45%, #fff 100%);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 18px;
}

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

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

.topbar {
  background: #203736;
  color: #f3eee8;
  font-size: 0.92rem;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: rgba(255, 250, 244, 0.9);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, var(--brand), #dca16b);
  box-shadow: var(--shadow);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.menu a {
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  font-weight: 500;
  color: var(--muted);
}

.menu a:hover,
.menu a[aria-current='page'] {
  color: var(--ink);
  background: var(--bg-soft);
}

.tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.select-page,
.search {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  padding: 0.45rem 0.65rem;
}

.hero {
  padding: 2.5rem 0 1.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.4rem;
  align-items: stretch;
}

.hero-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 20px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: auto -40px -40px auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(192, 106, 58, 0.14);
}

h1,
h2,
h3 {
  margin: 0 0 0.55rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

h3 {
  font-size: 1.08rem;
}

.lead {
  font-family: 'Merriweather', serif;
  color: #273e39;
}

.cta-row {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.62rem 1rem;
  border: 1px solid transparent;
  font-weight: 600;
}

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

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 1rem;
}

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

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

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

.card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
}

.card p,
.section p,
.section li {
  color: var(--muted);
}

.section {
  padding: 2.1rem 0;
}

.kicker {
  color: var(--ok);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.notice {
  border-left: 4px solid var(--brand);
  padding: 0.8rem 0.9rem;
  background: #fff7ef;
  border-radius: 8px;
}

.footer {
  margin-top: 2.2rem;
  background: #1f3332;
  color: #e7ebe8;
}

.footer .container {
  padding: 2.1rem 0 1rem;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

.footer a {
  color: #f7d5b6;
}

.footer small {
  display: block;
  border-top: 1px solid rgba(231, 235, 232, 0.2);
  margin-top: 1.3rem;
  padding-top: 0.85rem;
  color: #b9c5c0;
}

.reveal {
  animation: rise 0.65s ease both;
}

.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.14s; }
.reveal:nth-child(4) { animation-delay: 0.2s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tools {
    display: none;
  }
}

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

  .menu {
    display: none;
    width: 100%;
    padding-top: 0.7rem;
  }

  .menu.open {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav-row {
    flex-wrap: wrap;
  }

  .hero-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
