/* ============================================================
   food4school — shared design system (website-v2)
   Spine: mâncare curată, gătită în fiecare zi din ingrediente
          proaspete — de la creșă până la liceu.
   ============================================================ */

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

:root {
  --orange:       #D97B2B;
  --orange-dark:  #B86520;
  --orange-light: #F0A855;
  --orange-pale:  #FEF3E8;
  --orange-faint: #FDF9F3;
  --green:        #4A8A5A;
  --green-pale:   #EAF3EC;
  --cream:        #FAF6EF;
  --cream-dark:   #EDE4D3;
  --brown:        #2A1A08;
  --brown-mid:    #7A5C3A;
  --brown-light:  #B89B7A;
  --white:        #FFFFFF;
  --radius:       18px;
  --radius-lg:    28px;
  --maxw:         1100px;
  --shadow-sm:    0 4px 20px rgba(217,123,43,0.10);
  --shadow-md:    0 6px 32px rgba(217,123,43,0.12);
  --shadow-lg:    0 24px 64px rgba(217,123,43,0.22), 0 4px 16px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--brown);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Baloo 2', cursive; line-height: 1.15; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ─── layout helpers ─── */
section { padding: 6rem 2rem; }
.container { max-width: var(--maxw); margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; }

.section-eyebrow {
  font-family: 'Baloo 2', cursive;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.section-eyebrow::after {
  content: ''; display: block; width: 28px; height: 2px;
  background: var(--orange); border-radius: 2px;
}
.section-h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800; color: var(--brown); margin-bottom: 1.2rem;
}
.section-body { font-size: 1.02rem; line-height: 1.85; color: var(--brown-mid); }
.section-body p + p { margin-top: 1rem; }

/* ─── buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: 'Baloo 2', cursive; font-weight: 700;
  border-radius: 50px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: all 0.2s; font-size: 1rem;
  padding: 0.8rem 1.8rem; line-height: 1;
}
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 8px 26px rgba(217,123,43,0.35); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(217,123,43,0.45); }
.btn-outline { background: transparent; color: var(--brown-mid); border-color: var(--cream-dark); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--orange); box-shadow: 0 10px 30px rgba(0,0,0,0.16); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,0.22); }
.btn-sm { padding: 0.5rem 1.3rem; font-size: 0.9rem; }
.btn-block { width: 100%; justify-content: center; }

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0.8rem 2.5rem;
  background: rgba(250,246,239,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--cream-dark);
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-logo img { height: 40px; width: 40px; object-fit: contain; }
.nav-logo-text { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1.15rem; color: var(--orange); letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin-left: auto; }
.nav-links a {
  font-family: 'Baloo 2', cursive; font-weight: 600; font-size: 0.92rem;
  color: var(--brown-mid); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-login {
  font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 0.9rem;
  color: var(--brown-mid); text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem;
  transition: color 0.2s;
}
.nav-login:hover { color: var(--orange); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--brown-mid); border-radius: 2px; margin: 5px 0; transition: 0.2s; }

/* ─── age-span strip: creșă · grădiniță · școală · liceu ─── */
.agespan { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.agespan .stage {
  font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 0.82rem;
  background: var(--white); color: var(--brown-mid);
  border: 1.5px solid var(--cream-dark); border-radius: 50px; padding: 0.4rem 0.95rem;
}
.agespan .sep { color: var(--orange-light); font-weight: 800; }
.agespan.on-dark .stage { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.25); }

/* ─── hero ─── */
.hero {
  position: relative; padding: 5rem 2.5rem;
  background-color: var(--cream);
  background-image: radial-gradient(circle, rgba(217,123,43,0.18) 1.5px, transparent 1.5px);
  background-size: 28px 28px; overflow: hidden;
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: center;
}
.hero-content { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.hero-h1 { font-size: clamp(2.4rem, 4.8vw, 3.9rem); font-weight: 800; color: var(--brown); }
.hero-h1 .accent { color: var(--orange); }
.hero-lead { font-size: 1.1rem; color: var(--brown-mid); font-weight: 500; }
.hero-meta { font-size: 0.85rem; color: var(--brown-light); letter-spacing: 0.03em; }
.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.6rem; }
.hero-img { aspect-ratio: 4/5; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow-lg); width: 100%; }

/* page hero (inner pages) */
.page-hero {
  padding: 4.5rem 2.5rem 3.5rem; text-align: center;
  background: var(--orange-pale);
  background-image: radial-gradient(circle, rgba(217,123,43,0.14) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; color: var(--brown); margin-bottom: 0.8rem; }
.page-hero p { font-size: 1.1rem; color: var(--brown-mid); max-width: 640px; margin: 0 auto; }

/* ─── generic cards / grids ─── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.65rem;
  box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 34px rgba(217,123,43,0.18); }
.card-icon {
  width: 50px; height: 50px; background: var(--orange-pale); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--orange); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.02rem; font-weight: 700; color: var(--brown); margin-bottom: 0.5rem; }
.card p { font-size: 0.88rem; color: var(--brown-mid); line-height: 1.65; }

/* age gallery (creșă → liceu) */
.age-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.age-tile { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.age-tile img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform 0.4s ease; }
.age-tile:hover img { transform: scale(1.05); }
.age-tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 0.95rem; color: #fff;
  padding: 1.5rem 1rem 0.85rem; text-align: center;
  background: linear-gradient(to top, rgba(42,26,8,0.78), transparent);
}

/* split section (text + media) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split.wide-left { grid-template-columns: 1.2fr 1fr; }
.split-img { border-radius: var(--radius-lg); object-fit: cover; width: 100%; aspect-ratio: 4/3; box-shadow: var(--shadow-md); }

/* check list */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.85rem; font-size: 0.97rem; color: var(--brown-mid); line-height: 1.6; }
.check {
  flex-shrink: 0; width: 24px; height: 24px; background: var(--orange); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.check svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* statement band */
.statement { background: var(--orange-pale); padding: 3.25rem 2rem; border-top: 2px solid var(--cream-dark); border-bottom: 2px solid var(--cream-dark); }
.statement-inner { max-width: 820px; margin: 0 auto; padding-left: 1.5rem; border-left: 3px solid var(--orange); }
.statement-text { font-family: 'Baloo 2', cursive; font-size: 1.15rem; font-weight: 600; font-style: italic; color: var(--brown); line-height: 1.65; }
.statement-text p + p { margin-top: 0.75rem; }
.statement-attr { margin-top: 1.1rem; font-size: 0.82rem; color: var(--brown-light); font-style: italic; }

/* dark band */
.band-dark { background: var(--brown); color: rgba(255,255,255,0.85); }
.band-dark .section-h2 { color: #fff; }
.band-dark .section-eyebrow { color: var(--orange-light); }
.band-dark .section-eyebrow::after { background: var(--orange-light); }
.band-dark .section-body { color: rgba(255,255,255,0.72); }
.band-dark .step h3 { color: #fff; }
.band-dark .step p { color: rgba(255,255,255,0.7); }

/* orange band */
.band-orange { background: var(--orange); color: #fff; }
.band-orange .section-h2 { color: #fff; }
.band-orange .section-eyebrow { color: rgba(255,255,255,0.75); }
.band-orange .section-eyebrow::after { background: rgba(255,255,255,0.55); }

/* steps */
.steps { display: flex; flex-direction: column; gap: 1.75rem; }
.step { display: flex; gap: 1.2rem; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 42px; height: 42px; background: var(--orange-pale); color: var(--orange);
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1.1rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--orange);
}
.step h3 { font-size: 0.97rem; font-weight: 700; color: var(--brown); margin-bottom: 0.3rem; }
.step p { font-size: 0.87rem; color: var(--brown-mid); line-height: 1.6; }

/* CTA band */
.cta-band { background: var(--orange); text-align: center; padding: 6rem 2rem; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1.5px, transparent 1.5px); background-size: 28px 28px; }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); color: #fff; margin-bottom: 0.6rem; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-promise { margin-top: 1.2rem; font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* notification panel (directori) */
.notif-panel { background: var(--white); border-radius: var(--radius-lg); padding: 2.25rem; box-shadow: var(--shadow-md); border: 2px solid var(--cream-dark); }
.notif-head { font-family: 'Baloo 2', cursive; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brown-light); margin-bottom: 1.25rem; }
.notif-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1.5px dashed var(--cream-dark); }
.notif-item:last-child { border-bottom: none; }
.notif-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); margin-top: 6px; }
.notif-dot.green { background: var(--green); }
.notif-text { font-size: 0.88rem; color: var(--brown-mid); line-height: 1.55; }
.notif-text strong { color: var(--brown); font-weight: 700; display: block; font-size: 0.9rem; margin-bottom: 0.15rem; }
.notif-time { font-size: 0.75rem; color: var(--brown-light); margin-top: 0.25rem; }

/* form */
.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; text-align: left; }
.form-field label { font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 0.85rem; color: var(--brown); }
.form-field input, .form-field textarea, .form-field select {
  font-family: 'Nunito', sans-serif; font-size: 0.95rem; color: var(--brown);
  padding: 0.75rem 0.95rem; border: 2px solid var(--cream-dark); border-radius: 12px;
  background: var(--white); transition: border-color 0.2s; width: 100%;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--orange); }
.form-note { font-size: 0.8rem; color: var(--brown-light); }

/* ─── footer ─── */
footer { background: var(--brown); color: rgba(255,255,255,0.55); padding: 3rem 2.5rem 1.75rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.footer-brand img { height: 34px; width: 34px; object-fit: cover; border-radius: 50%; }
.footer-brand span { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1.1rem; color: var(--orange-light); }
.footer-col p { font-size: 0.85rem; line-height: 1.7; }
.footer-col h4 { font-family: 'Baloo 2', cursive; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { font-size: 0.88rem; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange-light); }
.footer-bottom { max-width: var(--maxw); margin: 2.25rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.78rem; color: rgba(255,255,255,0.35); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-bottom a:hover { color: var(--orange-light); }

/* ─── FAQ (native accordion) ─── */
.faq { max-width: 800px; margin: 2rem auto 0; }
.faq-item { border-bottom: 1.5px solid var(--cream-dark); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.3rem 0;
  font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 1.05rem; color: var(--brown);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; flex-shrink: 0; font-weight: 700; font-size: 1.4rem; line-height: 1;
  color: var(--orange); transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item summary:hover { color: var(--orange); }
.faq-answer { padding: 0 0 1.3rem; color: var(--brown-mid); font-size: 0.97rem; line-height: 1.8; max-width: 680px; }
.band-dark .faq-item { border-color: rgba(255,255,255,0.14); }
.band-dark .faq-item summary { color: #fff; }
.band-dark .faq-answer { color: rgba(255,255,255,0.72); }

/* ─── legal pages ─── */
.legal { max-width: 760px; margin: 0 auto; padding: 4rem 0 2rem; }
.legal h2 { font-size: 1.35rem; color: var(--brown); margin: 2.25rem 0 0.75rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.05rem; color: var(--brown); margin: 1.5rem 0 0.5rem; }
.legal p, .legal li { font-size: 0.97rem; line-height: 1.8; color: var(--brown-mid); }
.legal p { margin-bottom: 0.9rem; }
.legal ul { margin: 0 0 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.legal a { color: var(--orange); }
.legal-updated { font-size: 0.85rem; color: var(--brown-light); font-style: italic; margin-bottom: 2rem; }

/* ─── scroll reveal ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   COOKIE CONSENT v2
   ============================================================ */
.cookie-banner {
  position: fixed; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; z-index: 1000;
  max-width: 880px; margin: 0 auto;
  background: var(--white); border: 2px solid var(--cream-dark); border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(42,26,8,0.18);
  padding: 1.5rem 1.75rem;
  display: grid; grid-template-columns: 1fr auto; gap: 1.25rem 1.75rem; align-items: center;
  transform: translateY(150%); transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner h3 { font-size: 1rem; font-weight: 700; color: var(--brown); margin-bottom: 0.35rem; }
.cookie-banner p { font-size: 0.85rem; color: var(--brown-mid); line-height: 1.6; }
.cookie-banner p a { color: var(--orange); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }

/* config modal */
.cookie-modal { position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center; padding: 1.25rem; }
.cookie-modal.show { display: flex; }
.cookie-modal-overlay { position: absolute; inset: 0; background: rgba(42,26,8,0.5); backdrop-filter: blur(3px); }
.cookie-modal-card {
  position: relative; background: var(--white); border-radius: var(--radius-lg);
  max-width: 540px; width: 100%; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3); padding: 2rem 2rem 1.75rem;
}
.cookie-modal-card h2 { font-size: 1.35rem; color: var(--brown); margin-bottom: 0.5rem; }
.cookie-modal-card > p { font-size: 0.88rem; color: var(--brown-mid); line-height: 1.6; margin-bottom: 1.25rem; }
.cookie-cat { border: 1.5px solid var(--cream-dark); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 0.85rem; }
.cookie-cat-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cookie-cat-top strong { font-family: 'Baloo 2', cursive; font-size: 0.95rem; color: var(--brown); }
.cookie-cat p { font-size: 0.82rem; color: var(--brown-mid); line-height: 1.55; margin-top: 0.4rem; }
.cookie-cat .locked { font-size: 0.78rem; font-weight: 700; color: var(--green); font-family: 'Baloo 2', cursive; }
/* toggle */
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--cream-dark); border-radius: 50px; transition: 0.2s; cursor: pointer; }
.slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.switch input:checked + .slider { background: var(--orange); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.cookie-modal-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; margin-top: 1.25rem; }

/* manage-cookies footer trigger */
.cookie-reopen { background: none; border: none; cursor: pointer; }

/* ─── responsive ─── */
@media (max-width: 860px) {
  section { padding: 4rem 1.25rem; }
  nav { padding: 0.7rem 1.25rem; flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav-links { display: none; order: 3; flex-basis: 100%; width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin-left: 0; padding: 0.4rem 0 0; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 0.7rem 0.15rem; border-bottom: 1px solid var(--cream-dark); }
  .nav-actions { display: none; order: 4; flex-basis: 100%; width: 100%; flex-direction: column; align-items: stretch; gap: 0.6rem; padding: 0.85rem 0 0.3rem; }
  .nav-actions.open { display: flex; }
  .nav-actions .btn { width: 100%; justify-content: center; }
  .hero { padding: 3.5rem 1.25rem; }
  .hero-inner, .split, .split.wide-left { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-img { aspect-ratio: 3/2; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .age-gallery { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .cookie-banner { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; }
}
