/* ============================================================
   Vitazenbliss — style.css
   Palette: silver + blue + dark blue
   No framework. Mobile-first. Modular.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Colors */
  --c-darkest: #0a1a33;
  --c-dark: #102a52;
  --c-blue: #1e4fa3;
  --c-blue-bright: #2f6fd6;
  --c-blue-soft: #5b8fde;
  --c-silver: #c7d2e0;
  --c-silver-light: #e6ecf4;
  --c-mist: #f4f7fb;
  --c-white: #ffffff;
  --c-text: #1b2b45;
  --c-text-soft: #4a5a76;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, rgba(10,26,51,.82), rgba(30,79,163,.62));
  --grad-blue: linear-gradient(135deg, var(--c-blue), var(--c-darkest));
  --grad-silver: linear-gradient(135deg, var(--c-silver-light), var(--c-white));

  /* Typography */
  --font-head: "Marcellus", Georgia, serif;
  --font-body: "Mulish", "Segoe UI", system-ui, sans-serif;

  /* Spacing */
  --sp-xs: .5rem;
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 6rem;

  /* Misc */
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(16, 42, 82, .12);
  --shadow-lg: 0 24px 60px rgba(16, 42, 82, .22);
  --maxw: 1180px;
  --trans: .35s cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--c-blue); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--c-blue-bright); }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; color: var(--c-darkest); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-sm); }
.section { padding-block: var(--sp-lg); }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--c-blue-bright);
  margin-bottom: var(--sp-xs);
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: var(--sp-sm); }
.lead { color: var(--c-text-soft); max-width: 60ch; margin-inline: auto; }

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--c-darkest); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-silver-light);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: var(--sp-sm);
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-size: 1.4rem; color: var(--c-darkest);
}
.brand .mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-blue);
  box-shadow: inset 0 0 0 3px var(--c-silver-light);
  flex: none;
}
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: .4rem;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--c-darkest); transition: var(--trans); }
.nav-menu {
  position: fixed; inset: 0 0 0 30%;
  background: var(--c-white);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: var(--sp-xs);
  padding: var(--sp-xl) var(--sp-md);
  transform: translateX(100%); transition: transform var(--trans);
}
.nav-menu.open { transform: translateX(0); }
.nav-menu a {
  color: var(--c-text); font-weight: 600; padding: .5rem 0;
  border-bottom: 1px solid var(--c-silver-light);
}
.nav-menu a.active, .nav-menu a:hover { color: var(--c-blue-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  padding: .9rem 1.8rem; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans);
}
.btn-primary { background: var(--grad-blue); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--c-darkest); border: 1.5px solid var(--c-silver); }
.btn-ghost:hover { background: var(--c-silver-light); transform: translateY(-3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 86vh; display: flex; align-items: center;
  background: var(--grad-hero), url("../img/hero.jpg") center/cover no-repeat fixed;
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(91,143,222,.25), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 680px; }
.hero h1 {
  color: #fff; font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: var(--sp-sm);
  text-shadow: 0 2px 18px rgba(10,26,51,.4);
}
.hero p { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--c-silver-light); margin-bottom: var(--sp-md); max-width: 52ch; }
.hero-actions { display: flex; gap: var(--sp-sm); flex-wrap: wrap; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .12s; }
[data-delay="2"] { transition-delay: .24s; }
[data-delay="3"] { transition-delay: .36s; }

/* ---------- Product section ---------- */
.product { background: var(--grad-silver); }
.product-grid {
  display: grid; gap: var(--sp-md); align-items: center;
  grid-template-columns: 1fr;
}
.product-card {
  background: var(--c-white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: var(--sp-md);
  border: 1px solid var(--c-silver-light); position: relative; overflow: hidden;
}
.product-card::before {
  content: ""; position: absolute; top: -40%; right: -20%;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,111,214,.12), transparent 70%);
}
.product-card img { margin-inline: auto; max-height: 320px; object-fit: contain; }
.product-info h3 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: var(--sp-xs); }
.product-info .price-note { font-weight: 700; color: var(--c-blue); margin-bottom: var(--sp-sm); }
.product-info p { color: var(--c-text-soft); margin-bottom: var(--sp-md); }

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid; gap: var(--sp-md); grid-template-columns: 1fr;
}
.benefit {
  background: var(--c-white); border-radius: var(--radius); padding: var(--sp-md);
  box-shadow: var(--shadow); border: 1px solid var(--c-silver-light);
  transition: transform var(--trans), box-shadow var(--trans);
}
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.benefit .icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: var(--sp-sm);
  display: grid; place-items: center; background: var(--grad-blue); color: #fff;
}
.benefit .icon svg { width: 28px; height: 28px; }
.benefit h3 { font-size: 1.3rem; margin-bottom: var(--sp-xs); }
.benefit p { color: var(--c-text-soft); }

/* ---------- Split / image band ---------- */
.split {
  display: grid; gap: var(--sp-md); grid-template-columns: 1fr; align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split-text h2 { margin-bottom: var(--sp-sm); }
.split-text p { color: var(--c-text-soft); margin-bottom: var(--sp-sm); }

/* ---------- Trust / company info ---------- */
.trust { background: var(--grad-blue); color: #fff; }
.trust h2 { color: #fff; }
.trust .lead { color: var(--c-silver-light); }
.info-grid { display: grid; gap: var(--sp-md); grid-template-columns: 1fr; margin-top: var(--sp-md); }
.info-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(199,210,224,.2);
  border-radius: var(--radius); padding: var(--sp-md); backdrop-filter: blur(6px);
}
.info-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: var(--sp-xs); }
.info-card p, .info-card a { color: var(--c-silver-light); word-break: break-word; }
.info-card a:hover { color: #fff; }

/* ---------- Forms ---------- */
.form-wrap { background: var(--c-white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: var(--sp-md); border: 1px solid var(--c-silver-light); }
.field { margin-bottom: var(--sp-sm); }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--c-text); }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--c-text);
  padding: .85rem 1rem; border: 1.5px solid var(--c-silver); border-radius: var(--radius-sm);
  background: var(--c-mist); transition: border-color var(--trans), box-shadow var(--trans);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--c-blue-bright);
  box-shadow: 0 0 0 4px rgba(47,111,214,.15);
}
.field textarea { resize: vertical; min-height: 140px; }
.field .error-msg { color: #b3261e; font-size: .85rem; margin-top: .3rem; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }
.field.invalid .error-msg { display: block; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--grad-blue); color: #fff; padding-block: var(--sp-xl) var(--sp-lg); text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); }
.page-hero p { color: var(--c-silver-light); max-width: 60ch; margin: var(--sp-xs) auto 0; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 800px; margin-inline: auto; }
.prose h2 { font-size: 1.5rem; margin: var(--sp-md) 0 var(--sp-xs); }
.prose p, .prose li { color: var(--c-text-soft); margin-bottom: var(--sp-sm); }
.prose ul { padding-left: 1.2rem; list-style: disc; }
.prose ul li { margin-bottom: .4rem; }
.update-date {
  display: inline-block; background: var(--c-silver-light); color: var(--c-dark);
  padding: .4rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 700; margin-bottom: var(--sp-md);
}
.notice {
  border-left: 4px solid var(--c-blue-bright); background: var(--c-mist);
  padding: var(--sp-sm) var(--sp-md); border-radius: var(--radius-sm); margin: var(--sp-md) 0;
}
.notice p { margin-bottom: 0; color: var(--c-text); }

/* ---------- Success page ---------- */
.success-box {
  max-width: 560px; margin-inline: auto; text-align: center;
  background: var(--c-white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: var(--sp-lg) var(--sp-md); border: 1px solid var(--c-silver-light);
}
.success-box .check {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto var(--sp-sm);
  display: grid; place-items: center; background: var(--grad-blue); color: #fff;
  animation: pop .6s cubic-bezier(.18,.89,.32,1.28) both;
}
.success-box .check svg { width: 42px; height: 42px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-darkest); color: var(--c-silver); padding-block: var(--sp-lg) var(--sp-md); }
.footer-grid { display: grid; gap: var(--sp-md); grid-template-columns: 1fr; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: var(--sp-xs); }
.footer-col p, .footer-col a { color: var(--c-silver); font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-size: 1.3rem; color: #fff; margin-bottom: var(--sp-xs); }
.footer-bottom {
  border-top: 1px solid rgba(199,210,224,.18); margin-top: var(--sp-md); padding-top: var(--sp-md);
  text-align: center; font-size: .85rem; color: var(--c-silver);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%) translateY(160%);
  width: min(94%, 760px); z-index: 200;
  background: var(--c-white); border: 1px solid var(--c-silver-light);
  box-shadow: var(--shadow-lg); border-radius: var(--radius);
  padding: var(--sp-sm) var(--sp-md);
  display: flex; flex-direction: column; gap: var(--sp-sm);
  transition: transform var(--trans);
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); }
.cookie-banner p { font-size: .9rem; color: var(--c-text-soft); }
.cookie-actions { display: flex; gap: var(--sp-sm); flex-wrap: wrap; }
.cookie-actions .btn { padding: .65rem 1.4rem; font-size: .88rem; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static; inset: auto; transform: none; box-shadow: none;
    flex-direction: row; align-items: center; padding: 0; background: none;
  }
  .nav-menu a { border: 0; padding: .4rem .9rem; }
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .cookie-banner { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .section { padding-block: var(--sp-xl); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero { background-attachment: scroll; }
}
