/* ============================================================
   dafin.ro - Dafin în ghiveci (Laurus nobilis)
   Mobile-first, self-contained CSS. Only external dep: Google Fonts.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --forest:      #1f3d2b;
  --forest-2:    #2e5d3a;
  --leaf:        #4f9d5d;
  --leaf-2:      #6cbf73;
  --cream:       #f6f8f2;
  --cream-2:     #eef2e6;
  --wood:        #8a6240;
  --wood-soft:   #c9a77f;
  --ink:         #21302a;
  --ink-soft:    #4a5a50;
  --white:       #ffffff;
  --shadow:      0 10px 30px rgba(31, 61, 43, 0.10);
  --shadow-sm:   0 4px 14px rgba(31, 61, 43, 0.08);
  --radius:      18px;
  --radius-sm:   12px;
  --maxw:        1120px;
  --font-head:   "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:   "Jost", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-2); }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--forest);
  font-weight: 600;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.narrow-auto { max-width: 620px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.center-block { text-align: center; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-alt { background: var(--cream-2); }

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: .6rem;
}
.kicker.center { display: block; }
.kicker.light { color: var(--leaf-2); }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); font-size: .96rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: .8em 1.5em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  line-height: 1.1;
}
.btn-primary {
  background: var(--leaf);
  color: #08210f;
  box-shadow: 0 8px 20px rgba(79, 157, 93, 0.35);
}
.btn-primary:hover { background: var(--leaf-2); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--forest);
  border-color: rgba(31, 61, 43, 0.25);
}
.btn-ghost:hover { background: rgba(31, 61, 43, 0.06); border-color: var(--forest-2); }
.btn-lg { font-size: 1.05rem; padding: .95em 1.7em; }
.btn-xl { font-size: 1.35rem; padding: 1em 2.2em; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 242, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(31, 61, 43, 0.08);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--forest);
  text-decoration: none;
}
.brand-leaf { color: var(--leaf); flex: none; }
.brand-dot { color: var(--leaf); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  text-decoration: none;
  color: var(--forest);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: rgba(79, 157, 93, 0.12); }
.nav-cta {
  background: var(--leaf);
  color: #08210f !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--leaf-2) !important; }

/* Burger (CSS-only, no JS) */
.nav-toggle { display: none; }
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  cursor: pointer;
  border-radius: 10px;
}
.nav-burger span {
  height: 3px;
  width: 100%;
  background: var(--forest);
  border-radius: 3px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(108,191,115,0.30), transparent 60%),
    linear-gradient(160deg, var(--forest) 0%, var(--forest-2) 55%, #356a44 100%);
  color: #eaf3ea;
  padding: clamp(56px, 11vw, 120px) 0 clamp(56px, 9vw, 104px);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 22px;
  text-align: center;
}
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--leaf-2);
  margin: 0 0 1rem;
}
.hero-sub {
  font-size: 1.18rem;
  color: #d6e6d8;
  max-width: 640px;
  margin: 0 auto 1.8rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.hero-cta .btn-ghost { color: #eaf3ea; border-color: rgba(255,255,255,0.4); }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,0.10); border-color: #fff; }
.hero-note { color: #bcd4bf; font-size: .98rem; margin: 0; }

.hero-art {
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  width: 230px;
  height: 380px;
  color: rgba(174, 219, 178, 0.22);
  z-index: 1;
  pointer-events: none;
}

/* ---------- Dividers ---------- */
.leaf-divider { text-align: center; margin-top: 2.2rem; color: var(--leaf); opacity: .7; }

/* ---------- Photo split section ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.photo-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  border: 6px solid var(--white);
}
.photo-card img { width: 100%; border-radius: 12px; }
.photo-card figcaption {
  font-size: .9rem;
  color: var(--ink-soft);
  padding: 12px 8px 4px;
  text-align: center;
}

/* ---------- Check list ---------- */
.check-list, .reason-list { list-style: none; margin: 1.2rem 0; padding: 0; }
.check-list li, .reason-list li {
  position: relative;
  padding: 8px 0 8px 34px;
  border-bottom: 1px dashed rgba(31,61,43,0.12);
}
.check-list li:last-child, .reason-list li:last-child { border-bottom: 0; }
.check-list li::before, .reason-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 14px;
  width: 16px; height: 16px;
  background:
    linear-gradient(transparent, transparent),
    var(--leaf);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C7 4 3 8 3 14c0 4 3 8 8 8 1-7 4-12 9-15-2 0-5 .4-8 2 .8-3 3-5 6-6-2-1-4-1-6-1z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C7 4 3 8 3 14c0 4 3 8 8 8 1-7 4-12 9-15-2 0-5 .4-8 2 .8-3 3-5 6-6-2-1-4-1-6-1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Benefit cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 2rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(31,61,43,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-ico {
  font-size: 2rem;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--cream-2);
  margin-bottom: 14px;
}
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--ink-soft); }

/* ---------- Care grid ---------- */
.care-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 2rem;
}
.care-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--leaf);
}
.care-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--forest-2);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.care-item p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Trust (deep section) ---------- */
.section-deep {
  background: linear-gradient(160deg, var(--forest) 0%, #284f35 100%);
  color: #e9f2ea;
}
.section-deep h2 { color: #fff; }
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 2rem;
  text-align: left;
}
.trust {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.trust h3 { color: #fff; margin-bottom: .3em; }
.trust p { margin: 0; color: #cfe0d1; font-size: .98rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(108,191,115,0.25), transparent 70%),
    var(--cream-2);
  padding: clamp(52px, 9vw, 96px) 0;
  text-align: center;
}
.cta-band h2 { max-width: 720px; margin: 0 auto .5em; }
.cta-sub { color: var(--ink-soft); max-width: 560px; margin: 0 auto 1.6rem; font-size: 1.1rem; }
.cta-band .btn-xl { box-shadow: 0 12px 28px rgba(79,157,93,0.4); }
.cta-fine { margin-top: 1.1rem; color: var(--ink-soft); font-size: .96rem; }

/* ---------- FAQ ---------- */
.faq { margin: 14px 0; }
.faq details {
  background: var(--white);
  border: 1px solid rgba(31,61,43,0.10);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
  box-shadow: var(--shadow-sm);
}
.faq details[open] { border-color: var(--leaf); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--forest);
  padding: 14px 28px 14px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--leaf);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #cfe0d1; padding: 48px 0 24px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
}
.footer-logo svg { color: var(--leaf-2); }
.footer-tag { margin: .5rem 0 0; color: #bcd4bf; }
.footer-contact .muted { color: #a9c2ac; margin-top: .6rem; }
.footer-bottom { padding-top: 18px; }
.footer-bottom p { margin: 0; font-size: .9rem; color: #a9c2ac; }

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--leaf);
  color: #06200d;
  font-weight: 700;
  font-size: 1.08rem;
  text-decoration: none;
  padding: 14px 16px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -6px 20px rgba(0,0,0,0.18);
}
.call-bar:hover { background: var(--leaf-2); }

/* ---------- Focus styles (a11y) ---------- */
a:focus-visible, .btn:focus-visible, summary:focus-visible, .nav-burger:focus-visible {
  outline: 3px solid var(--leaf-2);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet and up: photo split becomes 2 columns */
@media (min-width: 760px) {
  .split { grid-template-columns: 1.05fr 1fr; gap: 44px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .care-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-contact { text-align: right; }
}

/* Desktop */
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .care-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile nav: collapse links behind burger */
@media (max-width: 859px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--cream);
    border-bottom: 1px solid rgba(31,61,43,0.10);
    padding: 8px 14px 16px;
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height .28s ease, opacity .22s ease, transform .22s ease;
    pointer-events: none;
  }
  .nav-toggle:checked ~ .nav-links {
    max-height: 460px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .nav-cta { text-align: center; margin-top: 6px; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Show sticky call bar + add breathing room only on small screens */
@media (max-width: 640px) {
  .call-bar { display: flex; }
  body { padding-bottom: 64px; }
  .hero-art { opacity: .5; right: -70px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- Laurel wreath (story section) ---------- */
.wreath {
  text-align: center;
  color: var(--leaf-light, #8fce95);
  margin-bottom: .4rem;
  line-height: 0;
}
.wreath svg { opacity: .9; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 2rem;
}
.gallery figure {
  margin: 0;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}
.gallery figcaption {
  padding: .7em 1em;
  text-align: center;
  font-size: .94rem;
  color: var(--ink-soft);
}
.gallery-note { margin-top: 1.6rem; }
.credits { font-size: .82rem; opacity: .8; margin-top: .5rem; }
.credits a { color: inherit; text-decoration: underline; }
