/* It's Only Natural — static rebuild
   Palette and type taken from the original site. */

@import url('https://fonts.googleapis.com/css2?family=Overlock:wght@400;700&family=Work+Sans:wght@300;400;500&display=swap');

:root {
  --ink:   #413A38;   /* body text */
  --stone: #7E6B63;   /* secondary text */
  --clay:  #AB7260;   /* links */
  --leaf:  #8DBF2E;   /* the logo green — used once per page */
  --mist:  #F1F0EE;   /* banner backdrop, matches the lavender photo */
  --paper: #FFFFFF;
  --measure: 980px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--clay); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 2px; }

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

h1, h2, h3, .nav, .tagline, .tile-name {
  font-family: 'Overlock', 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

.wrap { width: min(var(--measure), 100% - 2rem); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { background: var(--mist); }

.banner {
  position: relative;
  height: clamp(180px, 26vw, 300px);
  background: var(--mist) url('media/08494b_c4638d4d6e014e0ca17582adfc3b75ce.jpg') right center / auto 100% no-repeat;
}

.banner .logo {
  position: absolute;
  left: 24%; top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(200px, 30vw, 360px);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 2.2rem;
  padding: 0.9rem 7rem;
  font-size: 1.25rem;
  background: var(--paper);
  border-bottom: 1px solid var(--mist);
  position: relative; z-index: 20;
}
.nav a { color: var(--ink); padding: 0.2rem 0; }
.nav a:hover { color: var(--clay); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--clay); border-bottom: 2px solid var(--leaf); }

/* products menu (no JS: <details> toggles on click/tap and keyboard) */
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; color: var(--ink); padding: 0.2rem 0;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; display: inline-block; margin-left: 0.45rem; width: 0.5em; height: 0.5em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.2em) rotate(45deg); }
.menu[open] summary, .menu summary:hover { color: var(--clay); }
.menu summary.is-current { color: var(--clay); border-bottom: 2px solid var(--leaf); }
.menu[open] summary::after { transform: translateY(0.1em) rotate(-135deg); }

.menu-panel {
  position: absolute; left: 50%; top: calc(100% + 0.6rem); transform: translateX(-50%);
  z-index: 10; margin: 0; padding: 1rem 1.25rem; list-style: none;
  background: var(--paper); border: 1px solid var(--mist); border-top: 3px solid var(--leaf);
  box-shadow: 0 10px 30px rgba(65,58,56,0.12); border-radius: 0 0 4px 4px;
  columns: 2; column-gap: 2rem; width: max-content; min-width: 22rem;
}
.menu-panel li { break-inside: avoid; }
.menu-panel a { display: block; padding: 0.3rem 0; font-size: 1.05rem; font-family: 'Work Sans', system-ui, sans-serif; font-weight: 400; }
.menu-panel a[aria-current="page"] { color: var(--clay); border-bottom: 0; font-weight: 500; }

/* ---------- category page ---------- */
.category-hero {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.category-hero img { border-radius: 4px; }
.category-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--leaf); }
.category-hero h2 { font-size: 1.35rem; font-weight: 400; color: var(--stone); margin-top: 0.25rem; }
.category-hero p { margin-top: 1.1rem; max-width: 42ch; }

.tiles {
  list-style: none;
  padding: 0;
  margin: 3.5rem 0 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem 1.5rem;
}
.tile a { display: block; color: var(--ink); }
.tile a:hover { text-decoration: none; }
.tile-photo { position: relative; overflow: hidden; border-radius: 4px; }
.tile img {
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 4px;
  padding: 0.75rem;
}
.tile a:hover img { border-color: var(--leaf); }
.tile-name { display: block; margin-top: 0.75rem; font-size: 1.2rem; }
.tile-tag { display: block; color: var(--stone); font-size: 0.95rem; margin-top: 0.15rem; }

/* ---------- product page ---------- */
.crumb { margin: 1.5rem 0 0; font-size: 0.95rem; color: var(--stone); }
.crumb a { color: var(--stone); }

.product {
  margin: 1.25rem 0 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}
.product-photo img {
  border: 1px solid var(--mist);
  border-radius: 4px;
  padding: 1rem;
}
.product h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.product .tagline { font-size: 1.4rem; color: var(--leaf); font-weight: 400; margin-top: 0.4rem; }
.product .size { color: var(--stone); font-size: 0.95rem; margin-top: 0.4rem; }

.product h2 {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--stone);
  margin: 2rem 0 0.35rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--mist);
}
.product p { margin: 0.6rem 0; max-width: 60ch; }
.product p.ingredients { font-size: 0.95rem; color: var(--stone); }
/* ---------- language: French only when requested ---------- */
.product .fr { font-style: normal; }
.fr { display: none; }                                  /* default: English site */
html[lang="fr"] .fr { display: revert; }                /* French requested: block/inline/list-item as the element dictates */
html[lang="fr"] .en { display: none; }                  /* every string that has a French version is swapped, not stacked */
/* the slot is pinned to the right edge so the button never disturbs the centred menu */
.lang-slot { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); }
.lang-toggle {
  background: none; border: 1px solid currentColor; border-radius: 3px;
  color: inherit; font: inherit; font-size: 0.85em; padding: 0.15em 0.6em;
  cursor: pointer;
}
.lang-toggle:hover { background: rgba(0,0,0,0.06); }

.empty { color: var(--stone); margin: 3rem 0 4rem; }

/* ---------- home ---------- */
.hero { position: relative; max-height: 520px; overflow: hidden; background: var(--mist); }
.hero img { width: 100%; height: clamp(260px, 42vw, 520px); object-fit: cover; }
.hero-text {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem;
  background: linear-gradient(to top, rgba(65,58,56,0.55), rgba(65,58,56,0.05));
}
.hero-text h1 {
  color: #fff; text-align: center; max-width: 18ch;
  font-size: clamp(1.8rem, 4.6vw, 3.4rem); font-weight: 400;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.home main > .wrap { margin-top: 3.5rem; }
.home h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); color: var(--leaf); margin-bottom: 0.9rem; }
.about { text-align: center; }
.about p { max-width: none; }
.contact p { max-width: 62ch; }
.contact .email a { font-size: 1.25rem; }
.contact { margin-bottom: 4rem; }

.cards {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem 1.5rem;
}
.card a { display: block; color: var(--ink); }
.card a:hover { text-decoration: none; }
.card-photo { position: relative; overflow: hidden; border-radius: 4px; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; border: 1px solid var(--mist); }
.card a:hover img { border-color: var(--leaf); }
.card-name { display: block; margin-top: 0.7rem; font-family: 'Overlock', sans-serif; font-weight: 700; font-size: 1.35rem; }
.card-blurb {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--stone); font-size: 0.95rem; margin-top: 0.2rem;
}

/* ---------- why us ---------- */
.whyus .points { padding-left: 1.2rem; margin: 1rem 0 0; }
.whyus .points li { margin: 0.5rem 0; max-width: 48ch; }
.ingredients-list { margin: 3.5rem 0 4rem; }
.ingredients-list h2 { font-size: 1.7rem; color: var(--leaf); }
.ingredients-list ul {
  list-style: none; padding: 0; margin: 1rem 0 0;
  columns: 3; column-gap: 2rem; font-size: 0.97rem; color: var(--stone);
}
.ingredients-list li { break-inside: avoid; padding: 0.15rem 0; }
@media (max-width: 720px) { .ingredients-list ul { columns: 1; } }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--mist);
  padding: 2.5rem 0 3rem;
  text-align: center;
  color: var(--stone);
  font-size: 0.95rem;
}
.site-footer .badges { width: min(640px, 100%); margin: 0 auto 2rem; }
.social { display: flex; justify-content: center; gap: 1.25rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.social a {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: #8a8a8a; color: #fff;
  font-family: 'Overlock', sans-serif; font-weight: 700; font-size: 1.05rem;
}
.social a:hover { background: var(--leaf); text-decoration: none; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .banner { background-image: none; height: 170px; }
  .banner .logo { left: 50%; width: 60vw; }
  .category-hero, .product { grid-template-columns: 1fr; gap: 1.5rem; }
  .nav { gap: 0 1rem; font-size: 1.02rem; padding: 0.75rem 0.5rem; }
  .lang-slot { position: static; transform: none; flex-basis: 100%; text-align: center; margin-top: 0.45rem; }
  .menu { position: static; flex-basis: 100%; text-align: center; }
  .menu-panel { position: static; transform: none; width: auto; columns: 2; margin: 0.5rem auto 0; box-shadow: none; border-radius: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- contact page / form ---------- */
.btn {
  display: inline-block; background: var(--leaf); color: #fff; font-family: 'Overlock', cursive;
  font-size: 1.15rem; padding: 0.6em 1.5em; border: 0; border-radius: 3px; cursor: pointer;
  text-decoration: none; transition: filter .15s;
}
.btn:hover { filter: brightness(0.92); }
.btn[disabled] { opacity: .6; cursor: default; }
.contact-page { max-width: 640px; margin-bottom: 4rem; }
.contact-page h1 { margin-bottom: 0.5rem; }
.contact-form { display: grid; gap: 1.1rem; margin: 2rem 0 1.5rem; }
.contact-form label { display: grid; gap: 0.35rem; font-family: 'Overlock', cursive; font-size: 1.1rem; color: var(--stone); }
.contact-form input, .contact-form textarea {
  font: inherit; font-family: 'Work Sans', sans-serif; font-size: 1rem; color: var(--ink);
  padding: 0.6em 0.75em; border: 1px solid #D5D0CC; border-radius: 3px; background: #fff;
}
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--leaf); outline-offset: 1px; }
.contact-form textarea { resize: vertical; min-height: 9rem; }
.char-count {
  margin: -0.7rem 0 0; text-align: right; font-size: 0.85rem;
  color: var(--stone); opacity: 0.75;
}
.char-count-near-limit { color: #b3492b; opacity: 1; font-weight: 600; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }
.form-status { min-height: 1.5em; margin: 0; color: var(--clay); }
.flag { display: none; padding: 0.8em 1em; border-radius: 3px; }
.flag:target { display: block; }
.flag-ok { background: #EEF6E1; color: #3E5E12; }
.flag-err { background: #F8ECE8; color: #7A3A2C; }
.contact-page .email { color: var(--stone); }
.product-note {
  display: inline-block; margin: 0 0 0.5rem; padding: 0.3em 0.9em;
  background: #EEF6E1; color: #3E5E12; border-radius: 3px;
  font-family: 'Overlock', cursive; font-size: 1rem;
}

/* ---------- product status ribbon ---------- */
/* Bands are deliberately far longer (30em) than any photo so they always run
   edge to edge at every screen size; the photo container clips the excess.
   The text stays centred at a fixed distance from the corner because the
   right/left offset is adjusted with the width (centre = width/2 - offset). */
.product-photo { position: relative; overflow: hidden; }
.ribbon {
  position: absolute; top: 1.1em; right: -11em; width: 30em;
  transform: rotate(45deg); transform-origin: center;
  text-align: center; padding: 0.45em 0; font-family: 'Overlock', cursive;
  font-size: 0.95rem; letter-spacing: 0.03em; color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25); pointer-events: none;
}
.ribbon-soon  { background: var(--clay); }
.ribbon-new   { background: var(--leaf); }
.ribbon-gone  { background: #8A8580; left: -11em; right: auto; transform: rotate(-30deg); }

/* ribbon for the category-page product tiles (square) */
.tile-photo .ribbon {
  top: 3.4em; right: -10.1em; width: 30em;
  padding: 0.26em 0; font-size: 0.64rem;
}
.tile-photo .ribbon-gone {
  left: -8.9em; right: auto; top: 3.2em;
}

/* ribbon for the home-page category cards (3:2 thumbnails) */
.card-photo .ribbon {
  top: 3.6em; right: -10.2em; width: 30em;
  padding: 0.28em 0; font-size: 0.68rem;
}
.card-photo .ribbon-gone {
  left: -8.9em; right: auto; top: 3.6em;
}

/* ---------- about page portraits ---------- */
.portraits {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem; margin: 2.5rem 0 4rem;
}
.portrait { margin: 0; }
.portrait img {
  width: 100%; height: auto; display: block; border-radius: 3px;
  aspect-ratio: 4 / 5; object-fit: cover;
}
.portrait figcaption {
  margin-top: 0.6rem; font-family: 'Overlock', cursive;
  font-size: 1.05rem; color: var(--stone);
}
.about-page .category-hero { display: block; }
