/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f6f1e6;
  --bg-2:      #ebe2cd;
  --paper:     #ffffff;
  --ink:       #1c2019;
  --ink-soft:  #2c3126;
  --ink-mute:  #6d6a5e;
  --accent:    #5c7658;   /* sage — primary, health/nutrition */
  --accent-2:  #b5602f;   /* warm terracotta — secondary, food warmth */
  --accent-soft: rgba(92, 118, 88, 0.12);
  --line:      rgba(28, 32, 25, 0.12);
  --cream:     #faf6ec;

  --serif: "Fraunces", "Iowan Old Style", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 84px;
  --container: 1180px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 500; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--cream);
  z-index: 9999; border-radius: 8px; font-weight: 500; transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.section { padding-block: clamp(4rem, 8vw, 7rem); position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-top: .6rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .35s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out), box-shadow .35s var(--ease-out);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--cream); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(92,118,88,.55); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(0,0,0,.25); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Nav
   ============================================================= */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 500;
  height: var(--nav-h); display: flex; align-items: center;
  background: transparent;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), height .3s var(--ease-out);
}
.nav.is-solid { background: rgba(246,241,230,.88); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-brand { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; letter-spacing: -.01em; color: var(--cream); transition: color .4s var(--ease-out); }
.nav.is-solid .nav-brand { color: var(--ink); }
.nav-links { display: none; align-items: center; gap: 2.1rem; }
.nav-link { position: relative; font-size: .93rem; font-weight: 500; padding-block: .3rem; color: var(--cream); transition: color .4s var(--ease-out); }
.nav.is-solid .nav-link { color: var(--ink); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--accent);
  transition: right .35s var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }
.nav-cta { display: none; }
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; width: 26px; padding: .4rem 0;
}
.nav-toggle span { display: block; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out), background .4s var(--ease-out); }
.nav.is-solid .nav-toggle span { background: var(--ink); }
.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); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 490; background: var(--cream);
  display: flex; flex-direction: column; justify-content: center; gap: 1.6rem; padding: 2rem;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a { font-family: var(--serif); font-size: 2rem; }
.mobile-menu .btn { align-self: flex-start; margin-top: 1rem; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-block: calc(var(--nav-h) + 3rem) 4.5rem;
  overflow: clip;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(28,32,25,.35) 0%, rgba(28,32,25,.15) 35%, rgba(28,32,25,.78) 100%);
}
.hero-inner { max-width: 760px; }
.hero-inner .eyebrow { color: var(--cream); }
.hero-inner .eyebrow::before { background: var(--cream); }
.hero-title {
  color: var(--cream); margin-top: .9rem;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  text-wrap: balance;
}
.hero-title em { font-style: italic; color: #d8e6d2; }
.hero-sub { color: rgba(250,246,236,.86); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 46ch; margin-top: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; }

.hero-small {
  min-height: 52vh;
  padding-block: calc(var(--nav-h) + 3rem) 3.5rem;
}
.hero-small .hero-title { font-size: clamp(2rem, 5vw, 3.4rem); }

/* =============================================================
   7. Marquee ticker
   ============================================================= */
.ticker-band { background: var(--ink); color: var(--cream); padding-block: 1rem; overflow: clip; }
.ticker-track { display: flex; width: max-content; gap: 3rem; animation: tickerScroll 32s linear infinite; }
.ticker-track span { font-family: var(--serif); font-style: italic; font-size: 1.1rem; white-space: nowrap; opacity: .9; }
.ticker-track span::after { content: "·"; margin-left: 3rem; color: var(--accent); font-style: normal; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================================
   8. Manifesto / two-column
   ============================================================= */
.manifesto { display: grid; gap: 2rem; }
.manifesto-num { font-family: var(--serif); font-style: italic; font-size: 4rem; color: var(--accent-2); line-height: 1; }
.manifesto-text { font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.5; max-width: 46ch; }
@media (min-width: 720px) {
  .manifesto { grid-template-columns: 160px 1fr; align-items: start; }
}

/* =============================================================
   9. Bento / cards grid
   ============================================================= */
.bento-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .bento-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; background: var(--paper); border-radius: 22px; overflow: clip;
  border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  will-change: transform;
}
.card:hover { box-shadow: 0 30px 60px -24px rgba(92,118,88,.4); }
.card-media { aspect-ratio: 4/3; overflow: clip; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out), filter .7s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.09); filter: saturate(1.15) brightness(1.03); }
.card-body { padding: 1.5rem 1.6rem 1.8rem; }
.card-body h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.card-body p { color: var(--ink-mute); font-size: .95rem; }
.card-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 600; font-size: .88rem; color: var(--accent); }
.card-link svg { transition: transform .35s var(--ease-out); }
.card:hover .card-link svg { transform: translateX(4px); }

.card-includes { margin-top: 1rem; display: grid; gap: .5rem; }
.card-includes li { display: flex; gap: .55rem; font-size: .88rem; color: var(--ink-soft); }
.card-includes li::before { content: "＋"; color: var(--accent); font-weight: 700; }

/* =============================================================
   10. Stats
   ============================================================= */
.stats-strip { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { text-align: left; }
.stat-value { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--accent); font-style: italic; }
.stat-label { color: var(--ink-mute); font-size: .92rem; margin-top: .3rem; }

/* =============================================================
   11. About teaser / split
   ============================================================= */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split-media { border-radius: 24px; overflow: clip; aspect-ratio: 4/5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-text h2 { margin-bottom: 1rem; }
.split-text p { color: var(--ink-soft); margin-bottom: 1rem; }
.split-reverse .split-media { order: -1; }
@media (min-width: 960px) { .split-reverse .split-media { order: 2; } }

/* =============================================================
   12. Testimonials
   ============================================================= */
.testimonial-grid { display: grid; gap: 1.4rem; }
@media (min-width: 860px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 2rem; }
.testimonial-quote { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.5; color: var(--ink-soft); }
.testimonial-quote::before { content: "“"; color: var(--accent-2); }
.testimonial-quote::after { content: "”"; color: var(--accent-2); }
.testimonial-name { margin-top: 1.2rem; font-size: .85rem; color: var(--ink-mute); font-weight: 600; }

/* =============================================================
   13. Timeline (career highlights)
   ============================================================= */
.timeline { display: grid; gap: 0; border-left: 2px solid var(--line); padding-left: 2rem; margin-left: .5rem; }
.timeline-item { position: relative; padding-bottom: 2.6rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -2.5rem; top: .3rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline-year { font-family: var(--serif); font-style: italic; color: var(--accent-2); font-size: 1.1rem; }
.timeline-item h3 { font-size: 1.2rem; margin: .35rem 0 .4rem; }
.timeline-item p { color: var(--ink-mute); max-width: 52ch; }

/* =============================================================
   14. Values pillars
   ============================================================= */
.pillars { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { border-top: 2px solid var(--accent); padding-top: 1.2rem; }
.pillar h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.pillar p { color: var(--ink-mute); font-size: .95rem; }

/* =============================================================
   15. Process steps
   ============================================================= */
.process-grid { display: grid; gap: 1.8rem; }
@media (min-width: 720px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step .n { font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--accent-2); }
.process-step h3 { margin: .6rem 0 .5rem; font-size: 1.1rem; }
.process-step p { color: var(--ink-mute); font-size: .9rem; }

/* =============================================================
   16. Location / info strip
   ============================================================= */
.info-strip { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: clamp(2rem, 4vw, 3rem); display: grid; gap: 2rem; }
@media (min-width: 860px) { .info-strip { grid-template-columns: 1fr 1fr; } }
.info-block h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: .6rem; }
.info-block p, .info-block a { font-size: 1.05rem; color: var(--ink-soft); }
.info-block a:hover { color: var(--accent); }

/* =============================================================
   17. CTA final
   ============================================================= */
.cta-final {
  background: var(--ink); color: var(--cream); border-radius: 32px;
  padding: clamp(2.5rem, 6vw, 5rem); text-align: center; position: relative; overflow: clip;
}
.cta-final::before {
  content: ""; position: absolute; inset: -60% -10% -60% -10%;
  background: radial-gradient(45% 45% at 50% 40%, rgba(92,118,88,.55), transparent 70%);
  filter: blur(90px); pointer-events: none;
}
.cta-final h2 { color: var(--cream); font-size: clamp(1.9rem, 4vw, 3rem); position: relative; }
.cta-final p { color: rgba(250,246,236,.8); max-width: 48ch; margin-inline: auto; margin-top: 1rem; position: relative; }
.cta-final .hero-actions { justify-content: center; margin-top: 2rem; position: relative; }

/* =============================================================
   18. Contact form
   ============================================================= */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.form-field { display: grid; gap: .4rem; margin-bottom: 1.3rem; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink); transition: border-color .3s var(--ease-out);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--ink-mute); margin-top: .8rem; }
.form-success {
  display: none; align-items: center; gap: .7rem; padding: 1rem 1.2rem; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600; margin-top: 1rem;
}
.form-success.is-visible { display: flex; }
.form-success svg { flex-shrink: 0; }

.map-frame { border-radius: 22px; overflow: clip; border: 1px solid var(--line); aspect-ratio: 4/3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* =============================================================
   19. Footer
   ============================================================= */
.footer { border-top: 1px solid var(--line); padding-block: 3rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.footer-brand { font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; color: var(--ink-mute); font-size: .85rem; }
.footer-meta a:hover { color: var(--accent); }
.footer-credits { font-size: .72rem; color: var(--ink-mute); margin-top: 1.5rem; opacity: .7; }

/* =============================================================
   20. Responsive helpers
   ============================================================= */
@media (min-width: 540px) { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }

/* =============================================================
   21. Reduced motion — only intrusive
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation-duration: 60s; }
  .cta-final::before { animation: none; }
}

/* =============================================================
   22. View transitions
   ============================================================= */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: fadeOutUp .5s var(--ease-out) both; }
  ::view-transition-new(root) { animation: fadeInUp .5s var(--ease-out) both; }
}
@keyframes fadeOutUp { to { opacity: 0; transform: translateY(-10px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } }

/* =============================================================
   23. WhatsApp floating button
   ============================================================= */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@media (min-width: 640px) {
  .wa-float { right: 1.75rem; bottom: 1.75rem; width: 60px; height: 60px; }
  .wa-float svg { width: 32px; height: 32px; }
}
