:root {
  --cream: #FAF6EE;
  --paper: #FFFDF8;
  --tint: #EBEFE2;
  --sage: #6F8F68;
  --forest: #2F4A33;
  --forest-2: #3A5A3E;
  --ink: #22261F;
  --muted: #555B50;
  --tomato: #B5412A;
  --tomato-dark: #963420;
  --line: #D9DccF;
  --radius: 20px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --label: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a { color: var(--tomato); text-underline-offset: 3px; }
a:hover { color: var(--tomato-dark); }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
p { margin: 0 0 1.1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; position: relative; }
.narrow { width: min(720px, 100% - 32px); }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 30;
  background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; color: var(--cream); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgb(250 246 238 / 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow 0.25s;
}
.topbar.scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgb(34 38 31 / 0.06); }

.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--forest); }

.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px;
  color: var(--ink); text-decoration: underline 2px transparent; text-underline-offset: 8px;
  font-weight: 500; font-size: 0.95rem;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.nav-links a:hover { color: var(--ink); text-decoration-color: var(--sage); }
.nav-links a[aria-current] { color: var(--forest); font-weight: 600; text-decoration-color: var(--forest); }

.menu-btn {
  display: none;
  font: 600 0.95rem var(--sans); color: var(--ink);
  background: none; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 16px; cursor: pointer;
}

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 0 16px;
    background: var(--cream); box-shadow: 0 12px 24px rgb(34 38 31 / 0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: 12px; padding: 12px 14px; font-size: 1.05rem; }
}

/* Hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 8vw, 104px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 1.6rem + 5vw, 5.4rem); font-weight: 600; line-height: 1.02; }
.creds {
  display: block; margin-top: 0.4em;
  font-family: var(--sans); font-weight: 500; font-size: 0.32em; letter-spacing: 0.14em; color: var(--muted);
}
.hero-line { font-family: var(--serif); font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); margin: 1.4em 0 0; max-width: 20ch; line-height: 1.3; }
.hero-line strong { color: var(--forest); font-weight: 600; }

.hero-photo { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 1; }
.hero-photo img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 6px solid var(--paper); box-shadow: 0 18px 40px rgb(47 74 51 / 0.18); }
.blob {
  position: absolute; inset: -6% -8% -4% -4%;
  background: var(--tint);
  border-radius: 58% 42% 50% 50% / 46% 54% 46% 54%;
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-photo { order: -1; width: min(280px, 78%); }
  .hero-line { margin-inline: auto; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.tint { background: var(--tint); }
.dark { background: var(--forest); color: #EEF0E6; }
.dark h2, .dark .lead { color: var(--paper); }
.dark strong { color: var(--paper); font-weight: 600; }

.prose { max-width: 65ch; }
.prose p:last-child { margin-bottom: 0; }
.prose + .prose, .pull + .prose { margin-top: 0; }

.pull {
  margin: 2.2rem 0;
  font-family: var(--serif); font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.3; color: var(--forest);
}
.pull p { margin: 0; }

.lead {
  font-family: var(--serif); font-size: clamp(1.4rem, 1.05rem + 1.5vw, 2.05rem); line-height: 1.3;
  margin: 2.6rem 0;
}

.card {
  background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 1px 2px rgb(34 38 31 / 0.05), 0 10px 30px rgb(34 38 31 / 0.06);
}
.card p:last-child { margin-bottom: 0; }

/* Side-by-side text columns: a shared hairline on top keeps them level */
.cols { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(32px, 5vw, 64px); }
.cols--even { grid-template-columns: 1fr 1fr; }
.cols > * { border-top: 1px solid var(--ink); padding-top: 22px; }
.cols p:last-child { margin-bottom: 0; }
.dark .cols > * { border-top-color: rgb(238 240 230 / 0.35); font-size: 1.15rem; line-height: 1.6; }
@media (max-width: 760px) { .cols, .cols--even { grid-template-columns: 1fr; } }

/* Family */
.family {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  margin-top: clamp(48px, 7vw, 88px); width: min(960px, 100% - 32px);
}
.polaroid {
  margin: 0; background: var(--paper); padding: 12px 12px 44px; border-radius: 6px;
  box-shadow: 0 16px 36px rgb(34 38 31 / 0.14); transform: rotate(-2deg);
  transition: transform 0.4s ease;
}
.polaroid:hover { transform: rotate(0deg) scale(1.01); }
.polaroid img { border-radius: 2px; }
.family-line { font-family: var(--serif); font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); line-height: 1.4; margin: 0; }
@media (max-width: 760px) {
  .family { grid-template-columns: 1fr; gap: 32px; }
}

/* Expertise panel */
.label-wrap { display: flex; justify-content: center; }
.label {
  width: min(560px, 100%);
  background: var(--paper); color: #111;
  border: 2px solid #111; padding: 10px 14px 14px;
  font-family: var(--label);
  box-shadow: 0 18px 40px rgb(34 38 31 / 0.12);
}
.label-title {
  font-family: var(--label); font-weight: 900; letter-spacing: -0.02em;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.1rem); line-height: 1; margin: 0 0 6px;
}
.label-serving { border-top: 1px solid #111; padding-top: 4px; font-size: 1rem; }
.label-serving span:first-child { font-weight: 400; }
.label-size { font-weight: 900; font-size: 1.15rem; display: flex; justify-content: space-between; gap: 12px; }
.label-size span:first-child { font-weight: 900; }
.label-serving > div:first-child { display: flex; justify-content: space-between; gap: 12px; }
.label-rows { list-style: none; margin: 0; padding: 0; border-top: 10px solid #111; border-bottom: 6px solid #111; }
.label-rows li {
  border-top: 1px solid #111; padding: 7px 4px; font-size: 1rem; line-height: 1.35;
  transition: background 0.2s;
}
.label-rows li:first-child { border-top: 0; }
.label-rows li:hover { background: var(--tint); }
.label-rows strong { font-weight: 700; }
.label-rows span { font-weight: 400; color: #333; }

/* Insurance */
.ins-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.plans li { padding: 9px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) {
  .ins-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 420px) { .plans { grid-template-columns: 1fr; } }

/* Contact */
.contact { text-align: center; padding-bottom: clamp(88px, 12vw, 140px); }
.contact-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.btn {
  display: inline-block; padding: 16px 28px; border-radius: 999px;
  font: 600 clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem) var(--sans); text-decoration: none;
  transition: transform 0.2s, background 0.2s, color 0.2s;
  max-width: 100%; overflow-wrap: anywhere;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--solid { background: var(--tomato); color: #fff; }
.btn--solid:hover { background: var(--tomato-dark); color: #fff; }
.btn--line { border: 2px solid var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--cream); }

/* Footer */
.footer { background: var(--forest); color: #CDD5C4; font-size: 0.9rem; padding: 28px 0; }
.footer a { color: var(--paper); }
.footer a:hover { color: #fff; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: #CDD5C4; }
.footer-links a:hover, .footer-links a[aria-current] { color: var(--paper); }

/* Legal pages */
.legal h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); }
.legal .updated { color: var(--muted); font-size: 0.95rem; margin: 0.8rem 0 2.4rem; }
.legal .notice { font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; margin-bottom: 2.4rem; }
.legal section { border-top: 1px solid var(--line); padding-top: 1.6rem; margin-top: 1.6rem; }
.legal section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h2 { font-size: 1.45rem; margin-bottom: 0.8rem; }
.legal ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.legal li { margin-bottom: 0.6em; }
.legal li::marker { color: var(--sage); }

/* Fruit */
.fruit { position: absolute; display: block; pointer-events: none; z-index: 1; }
.fruit svg { display: block; width: 100%; height: auto; overflow: visible; }
.fruit svg { animation: bob 6s ease-in-out infinite; }

.f-hero-1 { width: 88px; top: 2%; right: -4%; transform: rotate(-18deg); }
.f-hero-2 { width: 62px; bottom: 4%; left: -6%; transform: rotate(14deg); }
.f-hero-2 svg { animation-delay: -2s; }
.f-carrot { width: 64px; right: -10px; bottom: -36px; transform: rotate(28deg); }
.f-tomato { width: 74px; top: -96px; right: 0; transform: rotate(10deg); }
.f-pea { width: 120px; bottom: 36px; right: 4%; transform: rotate(-12deg); opacity: 0.95; }
.f-lemon-2 { width: 92px; top: 6%; left: calc(50% - 400px); transform: rotate(16deg); }
.f-carrot-2 { width: 60px; bottom: 6%; right: calc(50% - 380px); transform: rotate(-30deg); }
.f-carrot-2 svg { animation-delay: -3s; }
.f-straw-2 { width: 58px; top: -12px; left: 8%; transform: rotate(-14deg); }
.f-tomato-2 { width: 64px; bottom: -48px; right: 10%; transform: rotate(8deg); }
.f-tomato-2 svg { animation-delay: -1.5s; }

@media (max-width: 860px) {
  .f-lemon-2, .f-carrot-2, .f-pea, .f-straw-2 { display: none; }
  .f-hero-1 { width: 64px; right: -6%; }
  .f-hero-2 { width: 46px; }
  .f-tomato { width: 56px; top: -78px; }
  .f-carrot { width: 48px; right: 0; bottom: -28px; }
  .f-tomato-2 { width: 50px; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.label-rows li { opacity: 0; transform: translateX(-8px); transition: opacity 0.4s ease calc(var(--i) * 45ms + 200ms), transform 0.4s ease calc(var(--i) * 45ms + 200ms), background 0.2s; }
.label-rows.in li { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .label-rows li { opacity: 1; transform: none; transition: none; }
  .fruit svg { animation: none; }
  .polaroid, .btn { transition: none; }
}
