/* ============================================================
   VIVISKIN — Velvet Cleanse
   style.css
   Palette + type from the physical packaging.
   ============================================================ */

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

:root {
  /* Backgrounds */
  --paper:       #FFFFFF;
  --pale:        #FCF2F3;   /* light sections, hero base */
  --soft:        #F7E7E9;   /* contact section */
  --soft2:       #FBE3E4;   /* benefits band */
  --blush:       #EBBFC4;   /* brand pink */

  /* Accents / text */
  --rose:        #C98F96;   /* rules, ornaments */
  --rose-text:   #7E4A52;   /* small labels on light — AA */
  --rose-accent: #9E525B;   /* display italics / highlights */
  --ink:         #1A1A1A;   /* headings */
  --body:        #2B2B2B;   /* body text */
  --muted:       #6E6E6E;   /* secondary text */

  --maxw: 1160px;
  --header-h: 56px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--body);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

/* Accessibility: skip link + brand-styled focus */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 2px;
  font-size: 12px; letter-spacing: 0.08em; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--rose-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── shared helpers ── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(24px, 5vw, 48px); }
.center { text-align: center; }

.eyebrow {
  font-size: 10px; font-weight: 500; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--rose-text);
}

.section { padding: clamp(46px, 6vw, 84px) 0; scroll-margin-top: var(--header-h); }

.section-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; color: var(--ink);
  margin-top: 14px;
}
.section-title em { font-style: italic; color: var(--rose-accent); }

.lede {
  font-size: 15px; font-weight: 300; color: var(--body);
  max-width: 560px; margin: 18px auto 0; line-height: 1.85;
}
.lede strong { font-weight: 500; color: var(--ink); }

.divider { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 18px auto 0; color: var(--rose); }
.divider span { width: 46px; height: 1px; background: var(--rose); opacity: .6; }

/* ── buttons ── */
.btn {
  display: inline-block; font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  text-decoration: none; padding: 17px 44px; border-radius: 2px; cursor: pointer;
  transition: background .25s, color .25s, transform .25s;
}
.btn-solid { color: var(--paper); background: var(--ink); border: 1px solid var(--ink); }
.btn-solid:hover { background: #000; transform: translateY(-1px); }
.btn-outline { color: var(--ink); background: transparent; border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 9px clamp(20px, 5vw, 48px);
  background: rgba(252, 242, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(126, 74, 82, 0.10);
  transform: translateY(-100%); opacity: 0;
  transition: transform .38s ease, opacity .38s ease;
}
.site-header.visible { transform: translateY(0); opacity: 1; }
.header-logo { display: block; flex-shrink: 0; line-height: 0; }
.site-header .logo { height: 34px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.nav a.link {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--body); text-decoration: none; white-space: nowrap; transition: color .2s;
}
.nav a.link:hover { color: var(--rose-accent); }
.nav .btn { padding: 9px 20px; font-size: 10px; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 60; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 4px 0; transition: transform .3s, opacity .3s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-scrim { position: fixed; inset: 0; background: rgba(26,26,26,0.28); z-index: 50; }

@media (max-width: 940px) {
  .hamburger { display: block; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px;
    background: var(--pale); padding: 48px 40px;
    transform: translateX(100%); transition: transform .35s ease; z-index: 55;
    box-shadow: -24px 0 60px rgba(126, 74, 82, 0.14);
  }
  .nav.open { transform: translateX(0); }
  .nav a.link { font-size: 15px; }
  .nav .btn { margin-top: 8px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--pale); }
.hero-bg { display: block; width: 100%; height: auto; }   /* full width, edge to edge */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(250,240,241,0.78) 0%, rgba(250,240,241,0.55) 26%,
    rgba(250,240,241,0.12) 48%, transparent 62%);
}
.hero-inner {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--maxw);
  padding: 0 clamp(24px, 5vw, 48px);
  z-index: 2; display: flex; align-items: center;
}
.hero-copy { max-width: 440px; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-eyebrow .name {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: clamp(16px, 1.7vw, 21px); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink);
}
.hero-eyebrow .meta { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rose-text); }
.hero-headline {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: clamp(46px, 5.6vw, 88px); line-height: 0.98; color: var(--ink); margin-bottom: 26px;
}
.hero-headline em { font-style: italic; font-weight: 500; color: var(--rose-accent); }
.hero-subline { font-size: 15px; font-weight: 400; line-height: 1.8; color: var(--body); max-width: 400px; margin-bottom: 22px; }
.hero-origin {
  font-size: 10px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rose-text); margin-bottom: 40px; display: flex; align-items: center; gap: 11px;
}
.hero-origin::before { content: ""; width: 28px; height: 1px; background: var(--rose-text); }

@media (max-width: 900px) {
  /* stack: product photo on top, copy below on the pale field — no overlap */
  .hero { display: block; background: var(--pale); }
  .hero picture { display: block; }
  .hero-bg { position: static; inset: auto; width: 100%; height: auto; object-fit: initial; display: block; }
  .hero-inner { position: static; left: auto; transform: none; max-width: 100%; padding: 30px 24px 8px; display: block; }
  .hero-copy { max-width: 100%; }
  .hero-subline { max-width: 100%; }
  .hero-headline { font-size: clamp(38px, 11vw, 58px); }
  .hero-scrim { display: none; }
}

/* ============================================================
   COMPARISON
   ============================================================ */
.compare { background: var(--paper); }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 40px); max-width: 860px; margin: 32px auto 0; }
.ing-col { border: 1px solid rgba(126,74,82,0.14); border-radius: 3px; padding: 8px; background: var(--paper); }
.ing-col.ours { border-color: var(--rose); }
.ing-head { text-align: center; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding: 18px 12px 16px; }
.ing-col.ours .ing-head { color: var(--rose-text); }
.ing-list { list-style: none; font-size: 12px; letter-spacing: 0.03em; color: var(--muted); }
.ing-list li { padding: 9px 14px; border-top: 1px solid rgba(126,74,82,0.08); }
.ing-list li.first {
  color: var(--ink); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(110,110,110,0.06);
  transition: opacity .6s ease, transform .6s ease;
}
.js .ing-list li.first { opacity: 0; transform: translateY(6px); }
.ing-col.ours .ing-list li.first { background: var(--soft); color: var(--rose-accent); }
.ing-list li.first.shown { opacity: 1; transform: none; }
.compare-note { max-width: 620px; margin: 28px auto 0; font-size: 14px; font-weight: 300; line-height: 1.85; color: var(--body); }
.compare-note strong { font-weight: 500; color: var(--ink); }

/* ============================================================
   BENEFITS
   ============================================================ */
.benefits { background: var(--soft2); }
.ben-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 40px); margin-top: 38px; }
.ben { text-align: center; }
.ben .drop { color: var(--rose); margin: 0 auto 16px; display: block; }
.ben h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 22px; line-height: 1.2; color: var(--ink); margin-bottom: 10px; }
.ben p { font-size: 13px; font-weight: 300; line-height: 1.75; color: var(--body); max-width: 300px; margin: 0 auto; }
.benefits .lede { margin-top: 46px; }

/* ============================================================
   FIVE YEARS
   ============================================================ */
.years { background: var(--paper); }
.years-quote {
  font-family: 'Cormorant Garamond', serif; font-weight: 300; font-style: italic;
  font-size: clamp(22px, 3vw, 34px); line-height: 1.4; color: var(--ink);
  max-width: 720px; margin: 26px auto 0;
}
.timeline { position: relative; max-width: 320px; margin: 42px auto 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 1px; background: var(--rose); opacity: .5; transform: translateX(-50%); }
.tl-item { position: relative; text-align: center; padding: 22px 0; }
.tl-item .yr { display: block; font-family: 'Cormorant Garamond', serif; font-size: 26px; color: var(--rose-accent); }
.tl-item .ev { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* ============================================================
   HOW TO USE
   ============================================================ */
.howto { background: var(--pale); }
.howto-text { max-width: 560px; margin: 22px auto 0; font-size: 16px; font-weight: 300; line-height: 1.9; color: var(--body); }

/* ============================================================
   SPEC + FAQ (accordions)
   ============================================================ */
.spec { background: var(--paper); }
.acc { max-width: 760px; margin: 30px auto 0; text-align: left; }
details.item { border-top: 1px solid rgba(126,74,82,0.14); }
details.item:last-child { border-bottom: 1px solid rgba(126,74,82,0.14); }
details.item > summary {
  list-style: none; cursor: pointer; padding: 17px 4px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--ink);
}
details.item > summary::-webkit-details-marker { display: none; }
details.item > summary::after { content: "+"; font-family: 'Montserrat', sans-serif; font-size: 20px; color: var(--rose); font-weight: 300; }
details.item[open] > summary::after { content: "–"; }
.acc-body { padding: 0 4px 24px; font-size: 13.5px; font-weight: 300; line-height: 1.85; color: var(--body); }
.acc-body dt { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose-text); margin-top: 16px; }
.acc-body dd { margin: 4px 0 0; }
.inci { font-size: 12px; letter-spacing: 0.04em; color: var(--muted); line-height: 1.9; }

.faq { background: var(--pale); }

/* ============================================================
   CONTACT + FORM
   ============================================================ */
.contact { background: var(--soft); }
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; margin: 26px auto 0; list-style: none; }
.trust li { font-size: 11px; letter-spacing: 0.06em; color: var(--rose-text); display: inline-flex; align-items: center; }
.trust li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--rose); margin-right: 24px; }

.form { max-width: 560px; margin: 32px auto 0; text-align: left; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.field-label, .field label { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose-text); margin-bottom: 7px; }
.enquiry { border: 0; margin-bottom: 18px; }
.radio-row { display: flex; gap: 12px; }
.radio-opt { flex: 1; position: relative; }
.radio-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-opt span {
  display: block; text-align: center; padding: 14px;
  border: 1px solid rgba(126,74,82,0.22); border-radius: 3px; background: var(--paper);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--body);
  transition: border-color .2s, color .2s;
}
.radio-opt input:checked + span { border-color: var(--ink); color: var(--ink); font-weight: 500; }
.radio-opt input:focus-visible + span { outline: 2px solid var(--rose-accent); outline-offset: 2px; }

.field { margin-bottom: 14px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid rgba(126,74,82,0.22); border-radius: 2px;
  font-family: 'Montserrat', sans-serif; font-size: 13px; color: var(--ink); background: var(--paper); outline: none;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rose-accent); }
.field textarea { min-height: 96px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--rose-deep, #B07B82); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.err { display: block; min-height: 0; font-size: 11px; color: var(--rose-text); margin: 2px 0 6px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 11.5px; color: var(--body); margin: 6px 0 6px; line-height: 1.6; }

/* anti-spam "I'm not a robot" control */
.robot-check { margin: 10px 0 4px; }
.robot-check label {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid rgba(126,74,82,0.22); border-radius: 3px;
  padding: 13px 18px; background: var(--paper); cursor: pointer;
  font-size: 13px; color: var(--body); transition: border-color .2s;
}
.robot-check label:hover { border-color: rgba(126,74,82,0.45); }
.robot-check input { width: 20px; height: 20px; accent-color: var(--ink); cursor: pointer; }
.consent a { color: var(--rose-accent); }
.form .submit { width: 100%; text-align: center; margin-top: 14px; }
.form .submit[disabled] { opacity: .6; cursor: default; }

.form-success { max-width: 560px; margin: 32px auto 0; text-align: center; color: var(--rose-accent); }
.form-success svg { color: var(--rose); margin-bottom: 10px; }
.form-success h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 30px; color: var(--ink); }
.form-success p { font-size: 14px; font-weight: 300; color: var(--body); margin-top: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #E7D9DB; text-align: center; padding: 60px 0 40px; }
.footer .logo { height: 30px; width: auto; margin: 0 auto 22px; display: block; filter: brightness(0) invert(1); opacity: .92; }
.footer .links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin: 8px 0 22px; opacity: .85; }
.footer a, .footer .linklike { color: #E7D9DB; text-decoration: none; }
.footer a:hover, .footer .linklike:hover { color: #fff; }
.footer .linklike { background: none; border: none; cursor: pointer; font: inherit; letter-spacing: 0.1em; text-transform: uppercase; }
.footer .legal { font-size: 10px; letter-spacing: 0.08em; color: #a98f92; line-height: 1.8; }

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70;
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--paper); border: 1px solid rgba(126,74,82,0.16); border-radius: 4px;
  padding: 18px 22px; box-shadow: 0 12px 40px rgba(26,26,26,0.12);
}
/* the [hidden] attribute must win over display:flex above */
.consent-banner[hidden] { display: none; }
.consent-text { font-size: 12.5px; font-weight: 300; line-height: 1.6; color: var(--body); flex: 1 1 300px; }
.consent-text a { color: var(--rose-accent); }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-actions .btn { padding: 12px 26px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.js .reveal { opacity: 0; transform: translateY(16px); }
.reveal.shown { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .compare-grid { grid-template-columns: 1fr; }
  .ben-grid { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .consent-banner { flex-direction: column; align-items: stretch; gap: 14px; }
  .consent-text { flex: 0 0 auto; }   /* don't stretch to 300px basis in column layout */
  .consent-actions .btn { flex: 1; }
}

/* ============================================================
   LEGAL STUB PAGES (privacy.html, cookies.html)
   ============================================================ */
.legal-page { max-width: 760px; margin: 0 auto; padding: clamp(90px, 12vh, 140px) clamp(24px, 5vw, 48px) 80px; }
.legal-page .logo { height: 30px; width: auto; display: block; margin-bottom: 40px; }
.legal-page h1 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(30px, 4vw, 44px); color: var(--ink); margin-bottom: 8px; }
.legal-page .updated { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rose-text); margin-bottom: 32px; }
.legal-page h2 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 22px; color: var(--ink); margin: 32px 0 10px; }
.legal-page p, .legal-page li { font-size: 14px; font-weight: 300; line-height: 1.85; color: var(--body); }
.legal-page ul { margin: 8px 0 8px 20px; }
.legal-page a { color: var(--rose-accent); }
.legal-page .placeholder { background: var(--pale); border-left: 2px solid var(--rose); padding: 10px 16px; font-style: italic; color: var(--muted); }
.legal-page .back { display: inline-block; margin-top: 40px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose-text); text-decoration: none; }
.legal-page .back:hover { color: var(--ink); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .ing-list li.first { opacity: 1; transform: none; }
}
