/* ==========================================================================
   Thermomix Meals by Maria — site stylesheet (v2)
   --------------------------------------------------------------------------
   PALETTE (2026-10-07): green scale with 500 #57B649 as the main brand colour,
   on the milky-white #FFFDF1 page background.
   Contrast on the cream background (WCAG AA needs 4.5:1 for text):
     500 #57B649  2.5:1  fills, buttons and accents only — never text.
                         Text on a 500 fill is 950 (7.0:1).
     600 #46923A  3.8:1  hover fill (950 text on it: 4.7:1). Not for text.
     700 #346D2C  6.1:1  links
     800 #23491D 10.1:1  headings, compliance bar, dark buttons
     900 #11240F         dark-button hover
     950 #0C1A0A 17.6:1  body text, text on green fills, focus ring
     50/100/200          tinted panels, washes and borders
   ========================================================================== */

:root {
  /* Green scale */
  --g-50:  #EEF8ED;
  --g-100: #DDF0DB;
  --g-200: #BCE2B6;
  --g-300: #9AD392;
  --g-400: #79C56D;
  --g-500: #57B649;
  --g-600: #46923A;
  --g-700: #346D2C;
  --g-800: #23491D;
  --g-900: #11240F;
  --g-950: #0C1A0A;

  /* Brand roles */
  --cream:        #FFFDF1;  /* milky white — page background */
  --cream-2:      #F8F4E4;  /* banded section background */
  --cream-3:      #F2EDD9;  /* card / inset background */
  --mantis:       var(--g-500);  /* main brand green — fills and accents only */
  --mantis-dark:  var(--g-600);  /* hover state for green fills */
  --green-ink:    var(--g-800);  /* headings, compliance bar */
  --green-link:   var(--g-700);  /* links */
  --green-wash:   var(--g-50);   /* tinted panels */
  --green-hover:  var(--g-900);  /* dark button hover */

  /* Neutrals */
  --ink:          var(--g-950); /* body text — 17.6:1 on cream */
  --ink-soft:     #55604F;      /* secondary text — 6.4:1 on cream */
  --on-mantis:    var(--g-950); /* text on a green fill — 7.0:1 on 500 */
  --line:         #DED8C2;
  --white:        #FFFFFF;
  --focus:        var(--g-950);

  --font-display: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gap: 1.5rem;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(31, 36, 25, 0.07);
  --shadow-lift: 0 6px 20px rgba(31, 36, 25, 0.10);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green-link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; color: var(--green-ink); margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5.2vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); margin-top: 2.2rem; }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.35rem); margin-top: 1.6rem; }
p, ul, ol, table { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
ul.plain { list-style: none; padding-left: 0; }
ul.plain.inline { display: flex; flex-wrap: wrap; gap: 1rem; }
.lede { font-size: 1.15rem; color: var(--ink-soft); text-wrap: pretty; }
.small { font-size: 0.875rem; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.linkish {
  background: none; border: 0; padding: 0; font: inherit;
  color: var(--green-link); text-decoration: underline; cursor: pointer;
}

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.section { padding: 3rem 0; }
.section-tint { background: var(--green-wash); }
.section-sand { background: var(--cream-2); }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--green-ink);
  color: #fff; padding: 0.75rem 1rem; z-index: 999;
}
.skip-link:focus { left: 0; }

/* --- Compliance bar ------------------------------------------------------- */
.compliance-bar {
  background: var(--green-ink); color: #fff;
  font-size: 0.85rem; padding: 0.55rem 0; text-align: center;
}
.compliance-bar a { color: #fff; text-decoration: underline; }

/* --- Header / navigation -------------------------------------------------- */
.site-header {
  background: var(--cream); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-mark { height: 56px; width: auto; flex: 0 0 auto; display: block; }
/* The site name is a span, never an <h1>: every page's H1 is its own subject. */
.brand-text strong {
  display: block; font-family: var(--font-display); color: var(--green-ink);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.1; letter-spacing: -0.01em;
}
.brand-sub { display: block; font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.02em; }

.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 0.5rem 0.65rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: 0.94rem;
}
.site-nav a:hover { background: var(--green-wash); color: var(--green-ink); }
.site-nav a[aria-current="page"] { background: var(--g-100); color: var(--green-ink); font-weight: 600; }
.header-contact { display: flex; gap: 0.5rem; }
.nav-toggle {
  display: none; align-items: center; gap: 0.5rem;
  background: var(--cream-3); border: 1px solid var(--line); border-radius: 8px;
  padding: 0.6rem 0.9rem; font: inherit; font-size: 0.95rem; color: var(--ink); cursor: pointer;
  min-height: 44px;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: var(--ink); content: ""; position: relative;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 4px; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.7rem 1.25rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-size: 1rem; line-height: 1.2; font-family: inherit;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0.45rem 0.9rem; font-size: 0.9rem; }
.btn-primary { background: var(--mantis); color: var(--on-mantis); border-color: var(--mantis-dark); }
.btn-primary:hover { background: var(--mantis-dark); color: var(--on-mantis); }
.btn-secondary { background: var(--green-ink); color: #fff; border-color: var(--green-ink); }
.btn-secondary:hover { background: var(--green-hover); color: #fff; }
.btn-ghost { background: var(--white); color: var(--green-ink); border-color: var(--green-ink); }
.btn-ghost:hover { background: var(--green-wash); color: var(--green-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.4rem 0; }

.pill {
  display: inline-block; background: var(--mantis); color: var(--on-mantis);
  border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.8rem;
  font-weight: 700; letter-spacing: 0.02em; margin: 0 0 1rem;
}

/* --- Hero ----------------------------------------------------------------- */
.hero { padding: 3.25rem 0 2.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }
.hero-grid.align-start { align-items: start; }
.hero-grid.align-start .media { margin-top: 0.35rem; }
.hero h1 { margin-bottom: 0.5rem; }
.hero .lede { font-size: 1.22rem; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.5rem;
  padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.hero-proof div { min-width: 8rem; }
.hero-proof strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--green-ink); line-height: 1.1; }
.hero-proof span { font-size: 0.85rem; color: var(--ink-soft); }

/* --- Media: reserved space, skeleton, lazy fade --------------------------- */
.media {
  position: relative; margin: 0 0 1.25rem; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: var(--ratio, 16/9); background: var(--cream-3);
}
.ratio-16-9 { aspect-ratio: 16 / 9; } .ratio-4-3 { aspect-ratio: 4 / 3; } .ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-1-1 { aspect-ratio: 1 / 1; } .ratio-3-4 { aspect-ratio: 3 / 4; } .ratio-3-5 { aspect-ratio: 3 / 5; }
.media-img { width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity .35s ease; }
.media-img.is-loading { opacity: 0; }
.media-img.is-loading + .media-skeleton { opacity: 1; }
.media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.55) 45%, transparent 70%);
  background-size: 250% 100%; opacity: 0; animation: shimmer 1.4s linear infinite;
}
.media:has(.is-loading)::after, .media-placeholder::after { opacity: 1; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

.media-placeholder {
  display: grid; place-items: center; text-align: center; padding: 1.25rem;
  border: 2px dashed var(--mantis-dark); background: var(--green-wash); color: var(--green-ink);
}
.media-brief { font-size: 0.82rem; line-height: 1.5; max-width: 46ch; }
.media-brief b { display: block; font-size: 0.9rem; margin-bottom: 0.4rem; }
.media-brief i { display: block; margin-top: 0.5rem; color: var(--ink-soft); }

/* --- Content skeleton ----------------------------------------------------- */
.skeleton { display: grid; gap: 0.7rem; margin: 0 0 1.25rem; }
.skel-bar {
  display: block; height: 0.9rem; border-radius: 6px; background: var(--cream-3);
  position: relative; overflow: hidden;
}
.skel-bar:last-child { width: 62%; }
.skel-bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.7) 45%, transparent 70%);
  background-size: 250% 100%; animation: shimmer 1.4s linear infinite;
}
[data-deferred] .skeleton { display: grid; }
[data-deferred].is-ready .skeleton { display: none; }
[data-deferred] .deferred-content { display: none; }
[data-deferred].is-ready .deferred-content { display: block; }

/* --- Cards and grids ------------------------------------------------------ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card a { text-decoration: none; }
.card a:hover { text-decoration: underline; }
.card-link { transition: box-shadow .15s ease, transform .15s ease; }
.card-link:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }

.quote {
  margin: 0; padding: 1.25rem 1.35rem; background: var(--white);
  border-left: 5px solid var(--mantis); border-radius: var(--radius); box-shadow: var(--shadow);
}
.quote p { font-style: italic; }
.quote cite { font-style: normal; font-weight: 600; color: var(--ink-soft); font-size: 0.9rem; }

.owner-note {
  background: #FFF8E1; border: 1px dashed #B9711A; border-radius: 8px;
  padding: 0.85rem 1rem; font-size: 0.9rem; color: #5A3A05;
}

/* --- Tables --------------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.25rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; background: var(--white); }
caption { text-align: left; font-size: 0.85rem; color: var(--ink-soft); padding-bottom: 0.5rem; }
th, td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--g-100); color: var(--green-ink); font-family: var(--font-display); border-bottom: 2px solid var(--g-200); }
tbody tr:nth-child(even) { background: var(--cream); }

/* --- FAQ accordion -------------------------------------------------------- */
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 0.6rem; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 0.9rem 1.1rem; font-weight: 600; color: var(--green-ink);
  list-style: none; min-height: 44px; display: flex; align-items: center; gap: .6rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; font-size: 1.2rem; color: var(--green-link); flex: 0 0 auto; }
.faq-item[open] summary::before { content: "\2212"; }
.faq-answer { padding: 0 1.1rem 0.4rem 2.2rem; }

/* --- Breadcrumbs ---------------------------------------------------------- */
.breadcrumbs { padding: 0.9rem 0 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0; padding: 0; font-size: 0.85rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.45rem; color: var(--ink-soft); }
.breadcrumbs [aria-current="page"] { color: var(--ink-soft); }

/* --- Forms ---------------------------------------------------------------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field .hint { display: block; font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.7rem 0.8rem; font: inherit; color: var(--ink);
  background: var(--cream); border: 2px solid var(--line); border-radius: 8px; min-height: 44px;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-link); outline: none; box-shadow: 0 0 0 3px rgba(46,125,50,.25); }
.field-error { color: #A42020; font-size: 0.85rem; margin: 0.3rem 0 0; min-height: 1.1rem; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #A42020; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status[data-state="error"] { color: #A42020; }
.form-status[data-state="ok"] { color: var(--green-ink); }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--cream-2); border-top: 1px solid var(--line); padding: 2.75rem 0 1.5rem; margin-top: 3rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.site-footer h2, .site-footer h3 { font-size: 1.05rem; margin-top: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.social-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
/* Location sits here, deliberately small: the demo radius matters to a local
   reader and must not tell an online-only buyer the service is not for them. */
.footer-base { margin: 1.75rem 0 0; font-size: 0.82rem; color: var(--ink-soft); }
.legal-strip { border-top: 1px solid var(--line); margin-top: 0.75rem; padding-top: 1.25rem; font-size: 0.8rem; color: var(--ink-soft); }
.legal-strip a { color: var(--green-link); }

/* --- Cookie banner -------------------------------------------------------- */
.cookie-banner {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 100;
  background: var(--white); border-top: 3px solid var(--mantis); box-shadow: 0 -4px 20px rgba(31,36,25,.15);
  padding: 1rem 0;
}
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.cookie-inner p { margin: 0; font-size: 0.9rem; max-width: 62ch; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1040px) {
  .header-contact .btn-ghost { display: none; }
}
@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .site-nav { display: none; order: 4; flex-basis: 100%; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 0 0.75rem; }
  .site-nav a { padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--line); border-radius: 0; min-height: 44px; }
  .header-inner { flex-wrap: wrap; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .section { padding: 2.25rem 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-sm { width: auto; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .hero { padding: 2rem 0 1.5rem; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1 1 100%; }
}

/* --- Print ---------------------------------------------------------------- */
@media print {
  .site-header, .site-nav, .cookie-banner, .compliance-bar, .btn-row, .owner-note { display: none !important; }
  body { background: #fff; color: #000; }
}

/* --- Icons (lucide, inlined at build time) -------------------------------- */
.icon {
  width: 1.05em; height: 1.05em; flex: 0 0 auto;
  vertical-align: -0.16em; display: inline-block;
}
.site-footer .icon { color: var(--green-link); margin-right: 0.15rem; }
.footer-base .icon { color: var(--ink-soft); }

/* --- Utility classes (used instead of inline style attributes, so the CSP
       can forbid inline styles outright) ----------------------------------- */
.flush { margin-top: 0; }
.mt-s { margin-top: 0.9rem; }
.mt-m { margin-top: 1.2rem; }
.btn-row-center { justify-content: center; }

/* --- Media sizing ---------------------------------------------------------
   An aspect-ratio box fills its container, so a square image in a full-width
   section would be 1120px tall. Cap them and centre instead. */
.media { max-width: 860px; margin-inline: auto; }
.media.narrow { max-width: 520px; }
.hero-grid .media, .grid-2 .media, .card .media { max-width: 100%; }

/* --- Tick list ------------------------------------------------------------ */
.ticks { list-style: none; padding-left: 0; }
.ticks li { position: relative; padding-left: 1.7rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.28em; width: 1.1em; height: 1.1em;
  background: var(--green-link); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center/68% no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center/68% no-repeat;
}
