/* ==========================================================================
   Healthy Living by Kaya — shared stylesheet
   Warm & organic theme. Edit the variables in :root to re-skin the whole site.
   No build step, no dependencies. Fonts loaded via <link> in each page's <head>.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------- */
:root {
  /* Colors */
  --cream:        #f8f2e8;  /* page background */
  --cream-deep:   #efe6d6;  /* alt section background */
  --card:         #fffdf8;  /* cards / surfaces */
  --sage:         #6f8567;  /* primary (buttons, links, accents) */
  --sage-deep:    #52654b;  /* hover / headings-on-color */
  --terracotta:   #c1704a;  /* secondary accent */
  --ink:          #38352d;  /* primary text (warm charcoal) */
  --muted:        #6d675b;  /* secondary text */
  --line:         #e3d9c7;  /* borders / dividers */

  /* Type */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Shape & rhythm */
  --radius:   14px;
  --radius-lg: 24px;
  --shadow:   0 6px 24px rgba(56, 53, 45, 0.08);
  --shadow-sm: 0 2px 10px rgba(56, 53, 45, 0.06);
  --maxw:     1120px;
  --gap:      clamp(1rem, 3vw, 2rem);
}

/* --- Reset-ish ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.075rem);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); }
p  { margin: 0 0 1rem; }

/* --- Accessibility helpers ---------------------------------------------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--sage-deep); color: #fff; padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) 0; z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; border-radius: 4px; }

/* --- Layout -------------------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--alt { background: var(--cream-deep); }
.section__head { max-width: 46rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.8rem; font-weight: 700; color: var(--terracotta);
  margin: 0 0 0.75rem;
}
.lead { font-size: 1.15rem; color: var(--muted); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-family: var(--font-body);
  padding: 0.8rem 1.5rem; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--sage); color: #fff; }
.btn--primary:hover { background: var(--sage-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--sage-deep); border-color: var(--sage); }
.btn--ghost:hover { background: var(--sage); color: #fff; }

/* --- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; }
.brand {
  font-family: var(--font-head); font-weight: 600; font-size: 1.35rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.brand__mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--sage) 0%, var(--sage-deep) 100%);
  display: inline-block; flex: none;
}
.nav__links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none; color: var(--ink); font-weight: 600;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
}
.nav__links a:hover { color: var(--sage-deep); border-bottom-color: var(--sage); }
.nav__links a[aria-current="page"] { color: var(--sage-deep); border-bottom-color: var(--terracotta); }

/* Mobile menu via checkbox hack (no JS) */
.nav__toggle, .nav__toggle-label { display: none; }
.nav__toggle-label { cursor: pointer; padding: 0.4rem; border-radius: var(--radius); }
.nav__toggle-label span,
.nav__toggle-label span::before,
.nav__toggle-label span::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--ink);
  position: relative; transition: 0.2s;
}
.nav__toggle-label span::before { position: absolute; top: -7px; }
.nav__toggle-label span::after  { position: absolute; top: 7px; }

@media (max-width: 760px) {
  .nav__toggle-label { display: inline-block; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem; box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; visibility: hidden; transition: max-height 0.25s ease;
  }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; width: 100%; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav__toggle:checked ~ .nav__links { max-height: 24rem; visibility: visible; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.hero__photo {
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
  background: var(--cream-deep);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
@media (max-width: 760px) { .hero__grid { grid-template-columns: 1fr; } .hero__media { order: -1; } }

/* --- Cards / grids ------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.6rem;
  box-shadow: var(--shadow-sm); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1rem;
  display: grid; place-items: center; background: var(--cream-deep); color: var(--sage-deep);
  font-size: 1.4rem;
}
.card h3 { margin-bottom: 0.35rem; }
.card .price { font-family: var(--font-head); color: var(--terracotta); font-weight: 600; }

/* Service list rows */
.service { display: flex; gap: 1rem; align-items: flex-start; }

/* About split */
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 5vw, 3rem); align-items: start; }
.about__photo { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 3/4; object-fit: cover; width: 100%; background: var(--cream-deep); }
.creds { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.6rem; }
.creds li { display: flex; gap: 0.6rem; align-items: flex-start; }
.creds li::before { content: "✦"; color: var(--terracotta); flex: none; }
@media (max-width: 760px) { .about__grid { grid-template-columns: 1fr; } }

/* Blog list */
.post { display: grid; grid-template-columns: 1fr; }
.post__img { border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--cream-deep); }
.post__body { padding: 1.3rem; }
.post .meta { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4rem; }
.card--post { padding: 0; overflow: hidden; }

/* --- Callout band -------------------------------------------------------- */
.band {
  background: var(--sage-deep); color: #fdf7ec; border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem); text-align: center;
}
.band h2 { color: #fff; }
.band p { color: #eadfce; margin-inline: auto; max-width: 40rem; }
.band .btn--primary { background: var(--terracotta); }
.band .btn--primary:hover { background: #a95d3b; }

/* --- Social links (header + footer) ------------------------------------- */
.socials { display: flex; gap: 0.6rem; align-items: center; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--sage-deep);
  background: var(--card); border: 1px solid var(--line); transition: 0.15s;
}
.socials a:hover { background: var(--sage); color: #fff; border-color: var(--sage); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--cream-deep); border-top: 1px solid var(--line); padding: 2.5rem 0 1.5rem; margin-top: 2rem; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; padding: 0; margin: 0; }
.footer__nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.footer__nav a:hover { color: var(--sage-deep); }
.footer__legal { color: var(--muted); font-size: 0.85rem; margin-top: 1.5rem; text-align: center; }

/* --- Forms --------------------------------------------------------------- */
.field { display: block; font-weight: 600; }
.field input,
.field textarea {
  width: 100%; padding: 0.7rem; margin-top: 0.3rem;
  font: inherit; color: var(--ink); background: var(--cream);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--sage); outline-offset: 1px; border-color: var(--sage); }
.field textarea { resize: vertical; }

/* Spam trap: kept off-screen rather than display:none, which some bots skip. */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn[disabled] { opacity: 0.6; pointer-events: none; transform: none; }

.form__status { font-size: 0.95rem; font-weight: 600; }
.form__status:empty { display: none; }
.form__status--ok  { color: var(--sage-deep); }
.form__status--err { color: var(--terracotta); }

/* --- Utilities ----------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 1.5rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 2.5rem; }
.stack > * + * { margin-top: 1rem; }

/* Applied by site.js to images that fail to load. Replaces the inline
   onerror="" handlers, which the Content-Security-Policy disallows. */
.is-hidden { display: none; }
