/* ============================================================
   Keep Your Chi Up — shared styles
   Palette (exact):
     #374f2f  forest green  (primary text / headings / accents / footer)
     #f5f5dc  beige         (main page background)
     #dde6d5  light sage    (section backgrounds / cards / dividers)
   Fonts (Google Fonts):
     Headings — Fraunces (warm serif)
     Body     — Nunito Sans (clean, grounded sans)
   Nature motifs: subtle CSS/SVG line work only — no photographs.
   ============================================================ */

:root {
  --green: #374f2f;
  --green-dark: #29391f;   /* derived — button hover only */
  --beige: #f5f5dc;
  --sage: #dde6d5;
  --sage-deep: #cdd9c2;    /* derived — card borders / dividers */
  --ink: #374f2f;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1080px;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(55, 79, 47, 0.10);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--beige);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--green);
  line-height: 1.15;
  font-weight: 600;
}

p {
  max-width: 68ch;
}

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

img {
  max-width: 100%;
  display: block;
}

strong {
  font-weight: 700;
}

/* ---- Accessible focus states ---- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: var(--beige);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  background: var(--sage);
  border-bottom: 1px solid var(--sage-deep);
  position: relative;
  z-index: 20;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--green);
}

/* Logo has its own solid green background — contain it as a rounded
   emblem so the background reads as intentional. */
.brand__logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--green);
  box-shadow: 0 2px 8px rgba(55, 79, 47, 0.18);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green);
}

.brand__sub {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  opacity: 0.72;
}

/* Nav toggle (mobile hamburger) — hidden on desktop */
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--green);
  border-radius: 10px;
  padding: 0.5rem;
  cursor: pointer;
  line-height: 0;
  color: var(--green);
}

.nav-toggle svg {
  display: block;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--green);
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  background: rgba(55, 79, 47, 0.10);
}

.site-nav a[aria-current="page"] {
  background: var(--green);
  color: var(--sage);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid var(--green);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--green);
  color: var(--beige);
}
.btn--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--green);
}
.btn--outline:hover {
  background: var(--green);
  color: var(--beige);
  transform: translateY(-2px);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--sage);
  padding-block: clamp(3rem, 8vw, 5rem);
  border-bottom: 1px solid var(--sage-deep);
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  max-width: 16ch;
}

.hero__tagline {
  margin-top: 1rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  max-width: 52ch;
  color: var(--green);
  opacity: 0.9;
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.section__title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 1.25rem;
}

/* Welcome / prose intro */
.prose p {
  margin-bottom: 1.15rem;
  font-size: 1.08rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose .lead {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green);
}

.prose .emphasis {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green);
  margin-block: 1.75rem;
}

/* ============================================================
   Treeline divider (subtle pine motif)
   ============================================================ */
.divider-trees {
  color: var(--sage-deep);
  line-height: 0;
  padding-block: 0.5rem;
}
.divider-trees svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   Offer cards
   ============================================================ */
.offers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.card {
  background: var(--sage);
  border: 1px solid var(--sage-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.card__badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--green);
  color: var(--beige);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.55rem;
  margin-bottom: 0.85rem;
}

.card p {
  margin-bottom: 1.1rem;
}

.card p:last-of-type {
  flex-grow: 1;
}

.card__actions {
  margin-top: 1.25rem;
}

/* ============================================================
   About page — bio prose + contact
   ============================================================ */
.contact {
  background: var(--sage);
  border: 1px solid var(--sage-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  margin-top: 1rem;
}

.contact__intro {
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  max-width: 40rem;
}

.contact-list li {
  background: var(--beige);
  border: 1px solid var(--sage-deep);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-list .label {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green);
  opacity: 0.8;
}

.contact-list a {
  font-weight: 700;
  font-size: 1.1rem;
}

/* ============================================================
   Footer (with subtle mountain/treeline motif)
   ============================================================ */
.site-footer {
  background: var(--green);
  color: var(--sage);
  margin-top: 2.5rem;
}

.footer__motif {
  color: rgba(221, 230, 213, 0.16);
  line-height: 0;
}
.footer__motif svg {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer .container {
  padding-block: 2rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 2.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.footer__copy,
.footer__place {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 760px) {
  .offers {
    grid-template-columns: 1fr;
  }

  /* Collapse nav into hamburger */
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sage);
    border-bottom: 1px solid var(--sage-deep);
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
  }

  .site-nav a {
    display: block;
    border-radius: 10px;
    padding: 0.8rem 1rem;
  }

  .brand__name {
    font-size: 1.15rem;
  }
}

@media (max-width: 420px) {
  .brand__sub {
    display: none;
  }
  .site-footer .container {
    flex-direction: column;
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
