/* =========================================================
   SunPure™ — Stylesheet
   Palette: cream #FBF3E8, ink #262119, clay-orange #E08A2C,
            deep clay #C96A1B, soft sage #7C8B6F
   Type: Fraunces (display/serif) + Manrope (body/UI)
   ========================================================= */

:root {
  --cream: #FBF3E8;
  --cream-deep: #F3E6D3;
  --ink: #262119;
  --ink-soft: #57503f;
  --clay: #E08A2C;
  --clay-deep: #C96A1B;
  --sage: #7C8B6F;
  --white: #FFFFFF;
  --line: rgba(38, 33, 25, 0.12);
  --shadow: 0 20px 40px -20px rgba(38, 33, 25, 0.35);

  --font-display: "Fraunces", serif;
  --font-body: "Manrope", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--clay-deep);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

/* ===================== HEADER ===================== */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.logo span { font-size: 0.7rem; vertical-align: super; }

.main-nav {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a { padding-bottom: 4px; border-bottom: 2px solid transparent; }
.main-nav a:hover,
.main-nav a.active { border-color: var(--clay); color: var(--clay-deep); }

.header-badges {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38,33,25,0.55) 0%, rgba(38,33,25,0.35) 45%, rgba(38,33,25,0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding: 60px 24px;
}

.hero-copy { color: var(--white); }

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--white);
  margin: 10px 0 20px;
}

.hero-copy h1 span { color: #fdff00; }

.hero-copy .eyebrow {
  color: var(--cream);
  opacity: 0.85;
}

.hero-desc {
  color: rgba(251, 243, 232, 0.85);
  max-width: 460px;
  font-size: 1.02rem;
  margin-bottom: 18px;
}

.hero-script {
  font-family: var(--font-display);
  font-style: italic;
  color: #fdff00;
  font-size: 1.15rem;
}

/* Orchestrated hero entrance: each .reveal element fades and lifts in,
   one after another, only once on page load. */
.hero .reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-copy .eyebrow.reveal { animation-delay: 0.1s; }
.hero-copy h1.reveal { animation-delay: 0.25s; }
.hero-desc.reveal { animation-delay: 0.42s; }
.hero-script.reveal { animation-delay: 0.58s; }
.order-card.reveal { animation-delay: 0.5s; animation-name: heroRevealCard; }

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroRevealCard {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero .reveal { animation: none; opacity: 1; transform: none; }
}

/* Slow, quiet zoom on the background video so the hero never feels static */
.hero-video {
  animation: heroKenBurns 24s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.order-card {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 34px 32px;
  width: 100%;
  max-width: 420px;
  justify-self: end;
}

.order-card h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.order-sub {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.price-row {
  background: var(--cream-deep);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.price-label {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.price-values {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.price-now {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
}

.price-old {
  text-decoration: line-through;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.price-off {
  margin-left: auto;
  background: var(--clay);
  color: var(--white);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  animation: pulseGlow 2.6s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 138, 44, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(224, 138, 44, 0); }
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--white);
  transition: border-color 0.15s ease;
}

.input-icon:focus-within {
  border-color: var(--clay);
}

.input-icon span { font-size: 1rem; flex-shrink: 0; }

.input-icon input,
.input-icon select {
  border: none;
  outline: none;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: transparent;
  color: var(--ink);
}

.select-wrap select { appearance: none; cursor: pointer; }

.btn-order {
  position: relative;
  overflow: hidden;
  margin-top: 6px;
  background: var(--clay);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 15px 18px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-order::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-order:hover::after { left: 130%; }
.btn-order:hover { background: var(--clay-deep); transform: translateY(-1px); }
.btn-order:active { transform: translateY(0); }
.btn-order:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }

.btn-order span {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn-order:hover span { transform: translateX(4px); }

.order-trust {
  list-style: none;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-weight: 600;
  text-align: center;
}

/* ===================== TRUST STRIP ===================== */
.trust-strip {
  background: var(--cream-deep);
  padding: 30px 0;
}

.trust-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
}

.trust-item {
  flex: 1;
  min-width: 140px;
}

.trust-item span {
  font-size: 1.6rem;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.trust-item:hover span { transform: translateY(-4px) rotate(-6deg); }

.trust-item p {
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ===================== BENEFITS ===================== */
.benefits { padding: 90px 0; }

.benefits-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.benefits-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.benefits-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.media-badge {
  position: absolute;
  bottom: 24px;
  right: -18px;
  background: var(--clay);
  color: var(--white);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.35;
  text-align: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefits-copy h2 {
  font-size: 2.1rem;
  margin-bottom: 14px;
  max-width: 480px;
}

.lead {
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 36px;
}

.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 28px;
}

.ingredient { transition: transform 0.25s ease; }
.ingredient:hover { transform: translateY(-5px); }

.ing-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease;
}

.ingredient:hover .ing-icon {
  transform: rotate(-8deg) scale(1.12);
  background: var(--clay);
}

.ingredient h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.ingredient p {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ===================== WHY SPF ===================== */
.why-spf {
  background: var(--ink);
  color: var(--cream);
  padding: 90px 0;
}

.why-inner { text-align: center; }
.why-inner .eyebrow { color: var(--clay); }

.why-inner h2 {
  color: var(--cream);
  font-size: 2rem;
  max-width: 560px;
  margin: 0 auto 48px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: left;
}

.why-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(224, 138, 44, 0.5);
}

.why-card h3 {
  color: var(--cream);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.why-card p {
  color: rgba(251, 243, 232, 0.7);
  font-size: 0.9rem;
}

/* ===================== HOW TO USE ===================== */
.how-to-use { padding: 90px 0; }
.how-to-use .eyebrow, .how-to-use h2 { text-align: left; }

.how-to-use h2 {
  font-size: 2rem;
  margin-bottom: 44px;
  max-width: 500px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
}

.steps li {
  display: flex;
  gap: 18px;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.steps p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ===================== REVIEWS ===================== */
.reviews {
  background: var(--cream-deep);
  padding: 90px 0;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 44px;
}

.reviews-header h2 { font-size: 2rem; }

.rating-summary { text-align: right; }

.stars {
  color: var(--clay);
  font-size: 1.2rem;
  letter-spacing: 2px;
}
.stars.small { font-size: 0.85rem; }

.rating-summary p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 12px 30px -18px rgba(38, 33, 25, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 36px -16px rgba(38, 33, 25, 0.3);
}

.review-card:hover .stars.small {
  animation: twinkle 0.8s ease;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.review-card p {
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 20px;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.reviewer strong {
  display: block;
  font-size: 0.9rem;
}

/* ===================== CTA BANNER ===================== */
.cta-banner {
  background: linear-gradient(120deg, #E08A2C, #C96A1B 60%, #8a4610);
  color: var(--white);
  padding: 64px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}

.cta-copy h2 {
  color: var(--white);
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.cta-copy p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 380px;
}

.btn-cta {
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  padding: 15px 26px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-block;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-cta:hover { background: #100e0a; transform: translateY(-3px); }
.btn-cta:active { transform: translateY(-1px); }

.cta-icons {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.3rem;
  text-align: center;
}

.cta-icons li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cta-icons span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.9);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--ink);
  color: rgba(251, 243, 232, 0.6);
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
}

/* ===================== SCROLL REVEAL ===================== */
/* Elements start hidden/offset, then settle into place once they enter
   the viewport (JS toggles .in-view — see script at end of index.html). */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== ACCESSIBILITY ===================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .scroll-reveal { opacity: 1; transform: none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .header-badges { display: none; }
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 1; }
  .order-card { order: 2; justify-self: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .benefits-inner { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .order-card { padding: 26px 20px; }
  .benefits-media img { aspect-ratio: 4/3; }
  .media-badge { width: 120px; height: 120px; font-size: 0.9rem; right: 8px; }
  .why-inner h2, .how-to-use h2, .reviews-header h2 { font-size: 1.6rem; }
}
