/* Vitaliv home — 2026 redesign.
   Tokens: pine ink #12312B · birch mist #F3F7F4 · white · brand green #4FAF4D ·
   lingon orange #FF6C0E (single warm accent) · fjord haze #CFE0D8.
   Display: Fraunces (hero + section headlines only). Body/UI: Poppins. */

:root {
  --pine: #12312b;
  --mist: #f3f7f4;
  --green: #4faf4d;
  --green-deep: #3d9440;
  --orange: #ff6c0e;
  --haze: #cfe0d8;
  --card-shadow: 0 8px 30px rgba(18, 49, 43, 0.08);
  --card-shadow-hover: 0 18px 44px rgba(18, 49, 43, 0.16);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--pine);
  font-family: Poppins, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 130px 0; }

/* Type */
.display {
  font-family: Fraunces, Georgia, serif;
  font-weight: 620;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 56px;
}
.display-light { color: var(--mist); }
.eyebrow {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(18, 49, 43, 0.6);
  margin: 0 0 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 15px 34px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 26px rgba(79, 175, 77, 0.35); }
.btn-primary:hover { background: var(--orange); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 108, 14, 0.35); }
.btn-ghost { background: transparent; color: var(--pine); border: 2px solid var(--haze); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); }
.btn-ghost-light { color: var(--mist); border-color: rgba(243, 247, 244, 0.35); }
.btn-ghost-light:hover { border-color: var(--mist); color: #fff; }
.btn-card { background: var(--green); color: #fff; padding: 10px 22px; font-size: 14px; }
.card:hover .btn-card { background: var(--orange); }
.text-link { color: var(--green-deep); font-weight: 600; text-decoration-color: var(--haze); text-underline-offset: 3px; }
.text-link:hover { color: var(--orange); }

/* ── The trail (signature) ─────────────────────────────────────────────── */
.trail { position: fixed; top: 0; bottom: 0; left: 24px; width: 110px; z-index: 40; pointer-events: none; }
.trail-track { position: absolute; top: 90px; bottom: 40px; left: 5px; width: 2px; background: var(--haze); border-radius: 2px; }
.trail-fill { width: 100%; height: 0%; background: var(--green); border-radius: 2px; transition: height 0.15s linear; }
.trail-points { position: absolute; top: 90px; bottom: 40px; left: 0; right: 0; }
.trail-point { position: absolute; display: flex; align-items: center; gap: 10px; transform: translateY(-50%); }
.trail-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--mist); border: 2px solid var(--haze);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.trail-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(18, 49, 43, 0.45);
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
.trail-point.is-active .trail-dot { background: var(--green); border-color: var(--green); transform: scale(1.15); }
.trail-point.is-active .trail-label { opacity: 1; transform: none; color: var(--green-deep); }
@media (max-width: 1400px) { .trail { display: none; } }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(18, 49, 43, 0.82) 0%, rgba(18, 49, 43, 0.55) 42%, rgba(18, 49, 43, 0.08) 75%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 70px; padding-bottom: 70px; }
.hero-title {
  font-family: Fraunces, Georgia, serif;
  font-weight: 620;
  color: #fff;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.03;
  letter-spacing: -0.015em;
  margin: 0 0 26px;
  max-width: 13ch;
}
.hero-title em { font-style: italic; color: #a8e6a6; }
.hero-title .hero-line { display: block; }
.hero-sub { color: rgba(243, 247, 244, 0.92); font-size: clamp(17px, 1.6vw, 21px); max-width: 44ch; margin: 0 0 38px; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(243, 247, 244, 0.14); border: 1px solid rgba(243, 247, 244, 0.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; font-weight: 500; font-size: 15px;
  border-radius: 999px; padding: 11px 22px;
}
.hero-chip img { border-radius: 3px; }

/* Hero load-in orchestration */
.hero-line { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.hero.is-loaded .hero-line { opacity: 1; transform: none; }
.hero.is-loaded .hero-title .hero-line:nth-child(2) { transition-delay: 0.12s; }
.hero.is-loaded .hero-sub { transition-delay: 0.24s; }
.hero.is-loaded .hero-meta { transition-delay: 0.36s; }
.hero-bg { transform: scale(1.04); transition: transform 1.3s cubic-bezier(0.22, 0.61, 0.36, 1); }
.hero.is-loaded .hero-bg { transform: scale(1); }

/* ── Products ──────────────────────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow);
  text-decoration: none; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  border-radius: 999px; padding: 5px 12px;
}
.badge-new { background: var(--orange); color: #fff; }
.badge-best { background: var(--pine); color: #fff; }
.card-media { display: block; background: var(--mist); padding: 26px; }
.card-media img { width: 100%; height: 210px; object-fit: contain; transition: transform 0.35s ease; }
.card:hover .card-media img { transform: rotate(2deg) scale(1.04); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; gap: 10px; }
.card-name { font-weight: 600; font-size: 21px; }
.card-desc { font-size: 14.5px; line-height: 1.6; color: rgba(18, 49, 43, 0.75); flex: 1; }
.card-offer { font-size: 13px; font-weight: 600; color: var(--orange); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.card-price { font-weight: 600; font-size: 18px; }
.card-price small { display: block; font-size: 11px; font-weight: 500; color: rgba(18, 49, 43, 0.55); }

.sub-band {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow);
  padding: 26px 30px; margin-top: 56px;
}
.sub-band p { margin: 0; flex: 1; min-width: 240px; font-size: 15.5px; }
.sub-band p span { color: rgba(18, 49, 43, 0.65); }

/* ── About / promises ──────────────────────────────────────────────────── */
.about { background: #fff; }
.promise { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; padding: 56px 0; }
.promise + .promise { border-top: 1px solid var(--haze); }
.promise-flip .promise-media { order: 2; }
.promise-media img { border-radius: var(--radius); box-shadow: var(--card-shadow); width: 100%; }
.promise-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--mist); border: 2px solid var(--haze);
  font-family: Fraunces, Georgia, serif; font-weight: 620; font-size: 18px; color: var(--green-deep);
  margin-bottom: 18px;
}
.promise-num-light { background: transparent; border-color: rgba(243, 247, 244, 0.35); color: #a8e6a6; }
.promise-text h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; margin: 0 0 16px; font-weight: 600; }
.promise-text p { margin: 0 0 14px; color: rgba(18, 49, 43, 0.8); font-size: 15.5px; }
.perk-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.perk-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; }
.perk-list img { width: 26px; height: 26px; flex: none; margin-top: 1px; }

/* ── Contact (dark) ────────────────────────────────────────────────────── */
.contact { background: var(--pine); color: var(--mist); }
.contact-inner { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; }
.contact .display { margin-bottom: 22px; }
.contact p { color: rgba(243, 247, 244, 0.85); margin: 0 0 14px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.contact-media img { border-radius: var(--radius); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35); }

/* ── Scroll reveals ────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }
.product-grid .card:nth-child(3n + 2) { transition-delay: 0.08s; }
.product-grid .card:nth-child(3n + 3) { transition-delay: 0.16s; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .section { padding: 90px 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .promise { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .promise-flip .promise-media { order: 0; }
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 70px 0; }
  /* Mobile hero: the banner is an ultra-wide landscape whose subject sits right
     of center — recompose the crop toward it, switch the scrim to a vertical
     gradient (text spans the full width here), and tighten the height so the
     headline + CTA sit comfortably above the fold. */
  .hero { min-height: 78vh; }
  .hero-bg { object-position: 68% center; }
  .hero-scrim {
    background: linear-gradient(180deg, rgba(18, 49, 43, 0.82) 0%, rgba(18, 49, 43, 0.6) 55%, rgba(18, 49, 43, 0.42) 100%);
  }
  .hero-inner { padding-top: 48px; padding-bottom: 48px; }
  .hero-title { font-size: clamp(34px, 10.5vw, 44px); max-width: none; }
  .hero-sub { font-size: 16px; }
  .hero-meta { gap: 12px; }
  .hero-chip { font-size: 14px; padding: 9px 16px; }
  .btn { padding: 13px 26px; font-size: 15px; }
  .product-grid { grid-template-columns: 1fr; }
  .card-media img { height: 190px; }
  .sub-band { flex-direction: column; align-items: flex-start; }
}

/* ── Reduced motion: disable all non-essential animation ───────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-line, .hero-bg, .reveal, .card, .card-media img, .trail-fill, .trail-dot, .trail-label, .btn { transition: none !important; }
  .hero-line, .reveal { opacity: 1 !important; transform: none !important; }
  .hero-bg { transform: none !important; }
}
