/* ===== Willdernest — design system ===== */
:root {
  --forest:   #1f6f5c;   /* primary brand green */
  --forest-d: #164e41;
  --amber:    #e8a33d;   /* warm accent */
  --ink:      #17211d;   /* near-black text */
  --muted:    #5c6b64;   /* secondary text */
  --paper:    #fbfaf6;   /* page background */
  --card:     #ffffff;
  --line:     #e7e4da;   /* hairline borders */
  --radius:   16px;
  --shadow:   0 1px 2px rgba(23,33,29,.04), 0 8px 28px rgba(23,33,29,.06);
  --wrap:     1080px;
  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(251,250,246,.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow); }
.brand-logo { height: 30px; }
.nav { display: flex; align-items: center; }
.nav-menu { display: flex; gap: 28px; list-style: none; font-weight: 500; }
.nav-menu a { color: var(--muted); transition: color .15s; }
.nav-menu a:hover { color: var(--forest); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .96rem;
  transition: transform .12s ease, box-shadow .2s, background .2s, color .2s;
  cursor: pointer; border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--forest-d); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--forest); color: var(--forest); }

/* ===== Hero ===== */
.hero {
  padding: 96px 24px 84px;
  background:
    radial-gradient(1100px 460px at 78% -10%, rgba(31,111,92,.10), transparent 60%),
    radial-gradient(720px 420px at 8% 8%, rgba(232,163,61,.10), transparent 55%);
}
.hero-inner { max-width: var(--wrap); margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: var(--forest); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.hero h1 .accent { color: var(--forest); }
.lede { font-size: clamp(1.05rem, 2.4vw, 1.28rem); color: var(--muted); max-width: 620px; margin: 22px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Sections ===== */
.section { padding: 84px 24px; max-width: var(--wrap); margin: 0 auto; }
.section-alt { background: #fff; border-block: 1px solid var(--line); max-width: none; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.section-head p { color: var(--muted); margin-top: 10px; }

/* ===== App grid ===== */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.app-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
  transition: transform .18s ease, box-shadow .18s;
}
.app-card:hover { transform: translateY(-4px); box-shadow: 0 12px 34px rgba(23,33,29,.10); }
.app-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-family: "Fraunces", serif; font-size: 1.6rem; color: #fff; font-weight: 600; }
.app-card h3 { font-size: 1.3rem; }
.app-tagline { color: var(--muted); flex: 1; }
.app-status { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--forest); }
.app-status.soon { color: var(--amber); }
.app-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.app-link { align-self: flex-start; font-weight: 600; color: var(--forest); }
.app-link:hover { text-decoration: underline; }

/* ===== About ===== */
.about-inner { max-width: 720px; margin: 0 auto; padding: 84px 24px; text-align: center; }
.about-inner h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 20px; }
.about-inner p { color: var(--muted); font-size: 1.08rem; margin-bottom: 16px; }

/* ===== Contact ===== */
.contact-card { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 24px; box-shadow: var(--shadow); max-width: 560px; margin: 0 auto; }
.contact-email { font-family: "Fraunces", serif; font-size: clamp(1.4rem, 4vw, 2rem); color: var(--forest); }
.contact-email:hover { text-decoration: underline; }
.contact-note { color: var(--muted); margin-top: 12px; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #cfd8d3; padding: 48px 24px; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer-logo { height: 26px; filter: brightness(0) invert(1); opacity: .9; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: #cfd8d3; font-weight: 500; }
.footer-nav a:hover { color: #fff; }
.copyright { font-size: .85rem; color: #8fa199; }

/* ===== Mobile ===== */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; right: 16px; left: 16px;
    flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px;
    transform-origin: top; transform: scaleY(0); opacity: 0; pointer-events: none;
    transition: transform .18s ease, opacity .18s;
  }
  .nav-menu.open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .nav-menu a { display: block; padding: 12px 14px; border-radius: 10px; }
  .nav-menu a:hover { background: var(--paper); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; transition: none !important; } }
