/*
Theme Name: ContourSticks Flagship
Theme URI: https://contoursticks.com
Author: Sofia Digital Ventures
Description: Ultra-premium D2C beauty brand theme. Dark luxury editorial design, mobile-first conversion, Product/FAQ schema, zero jQuery.
Version: 1.0.0
License: Proprietary
Text Domain: contoursticks
*/

/* ============ TOKENS ============ */
:root {
  --bg: #131010;
  --surface: #1d1815;
  --surface-2: #251e1a;
  --accent: #c89b7b;
  --accent-hover: #d9b294;
  --accent-light: #f4eae1;
  --text: #faf7f2;
  --muted: #a89e96;
  --line: rgba(200, 155, 123, 0.14);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 4px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.wrap { max-width: 1280px; margin: 0 auto; padding-left: 5%; padding-right: 5%; }
.section { padding: 100px 0; }
@media (max-width: 1024px) { .section { padding: 64px 0; } }
@media (max-width: 640px)  { .section { padding: 44px 0; } }

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.section-sub { color: var(--muted); max-width: 620px; font-size: 1.02rem; }
.center { text-align: center; }
.center .section-sub { margin: 0 auto; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #16100c;
  padding: 17px 40px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
}
.btn-ghost:hover { background: var(--accent); color: #16100c; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 5%;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(19, 16, 16, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255,255,255,0.06);
  padding: 14px 5%;
}
.header-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); }
.main-nav { display: flex; gap: 34px; }
.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.25s, color 0.25s;
}
.main-nav a:hover { opacity: 1; color: var(--accent); }
.header-cta { padding: 12px 26px; font-size: 0.75rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 48px; height: 48px;
  cursor: pointer;
  position: relative;
  z-index: 1102;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  margin: 0 auto;
  position: relative;
  transition: transform 0.3s var(--ease), opacity 0.3s;
  content: '';
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span::after  { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 12, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-overlay a {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--text);
  text-decoration: none;
  padding: 12px;
  transition: color 0.25s;
}
.nav-overlay a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
}

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 140px 0 80px;
  background:
    linear-gradient(90deg, rgba(19,16,16,0.6) 0%, rgba(19,16,16,0.28) 40%, rgba(19,16,16,0) 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(19,16,16,0) 22%),
    var(--hero-img) center center / cover no-repeat,
    var(--bg);
}
.hero .wrap { max-width: none; width: 100%; }
.hero .hero-content { max-width: 620px; text-align: left; margin-left: 0; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p { font-size: 1.1rem; color: var(--muted); margin-bottom: 38px; max-width: 520px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.hero-price-note { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.04em; }

@media (max-width: 768px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(19,16,16,0.5) 0%, rgba(19,16,16,0.82) 55%, var(--bg) 100%),
      var(--hero-img) 60% center / cover no-repeat,
      var(--bg);
  }
}

/* ============ PROOF STRIP ============ */
.proof-strip {
  background: #0d0b0a;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  overflow: hidden;
}
.proof-track {
  display: flex;
  gap: 70px;
  justify-content: center;
  flex-wrap: wrap;
}
.proof-item {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.proof-item svg { width: 15px; height: 15px; fill: var(--accent); flex: none; }

/* ============ SHADES ============ */
.shade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 56px;
}
@media (max-width: 900px) { .shade-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .shade-grid { grid-template-columns: 1fr; } }
.shade-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.shade-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.swatch {
  height: 150px;
  border-radius: 3px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 45%);
}
.shade-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.shade-tone {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.shade-card p { color: var(--muted); font-size: 0.9rem; }

/* ============ BEFORE / AFTER ============ */
.ba-section { background: var(--surface); }
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  margin-top: 10px;
}
@media (max-width: 900px) { .ba-grid { grid-template-columns: 1fr; gap: 40px; } }
.ba-slider {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
  touch-action: none;
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-before { filter: saturate(0.62) contrast(0.82) brightness(1.08); }
.ba-after-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 50%;
}
.ba-after-wrap img { width: 100%; max-width: none; }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent);
  transform: translateX(-1px);
  pointer-events: none;
}
.ba-handle::after {
  content: '⟷';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  background: var(--accent);
  color: #16100c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.ba-tag {
  position: absolute;
  bottom: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: rgba(19,16,16,0.72);
  border-radius: 2px;
  pointer-events: none;
}
.ba-tag.before { left: 14px; }
.ba-tag.after { right: 14px; }
.ba-note { color: var(--muted); font-size: 0.78rem; margin-top: 14px; font-style: italic; }
.ba-copy .step-list { margin-top: 30px; }

/* ============ STEPS ============ */
.step-list { display: flex; flex-direction: column; gap: 26px; }
.step-item { display: flex; gap: 22px; align-items: flex-start; }
.step-num {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--accent);
  line-height: 1;
  flex: none;
  width: 48px;
}
.step-item h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step-item p { color: var(--muted); font-size: 0.94rem; }

.howto-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
}
@media (max-width: 900px) { .howto-grid { grid-template-columns: 1fr; gap: 40px; } }
.howto-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.howto-imgs img {
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}
.howto-imgs img:nth-child(2) { transform: translateY(34px); }

/* ============ STORY ============ */
.story-section { background: var(--surface); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: center;
}
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; gap: 40px; } }
.story-grid img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }
.story-grid .copy p { color: var(--muted); margin-bottom: 18px; }
.story-sig {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--accent);
  margin-top: 8px;
}

/* ============ STANDARD (value cards) ============ */
.standard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 56px;
}
@media (max-width: 900px) { .standard-grid { grid-template-columns: 1fr; } }
.standard-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 30px;
  background: linear-gradient(180deg, var(--surface) 0%, transparent 100%);
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.standard-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.standard-card svg { width: 30px; height: 30px; stroke: var(--accent); fill: none; stroke-width: 1.5; margin-bottom: 20px; }
.standard-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.standard-card p { color: var(--muted); font-size: 0.92rem; }

/* ============ GALLERY ============ */
.gallery-grid {
  columns: 3;
  column-gap: 18px;
  margin-top: 56px;
}
@media (max-width: 900px) { .gallery-grid { columns: 2; } }
@media (max-width: 560px) { .gallery-grid { columns: 1; } }
.gallery-grid figure {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.gallery-grid img {
  width: 100%;
  transition: transform 0.6s var(--ease);
}
.gallery-grid figure:hover img { transform: scale(1.045); }

/* ============ FAQ ============ */
.faq-list { max-width: 820px; margin: 50px auto 0; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.09); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.18rem;
  text-align: left;
  padding: 24px 44px 24px 0;
  cursor: pointer;
  position: relative;
  min-height: 48px;
}
.faq-q::after {
  content: '+';
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.faq-item.active .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-a p { color: var(--muted); padding: 0 40px 24px 0; font-size: 0.95rem; }

/* ============ FINAL CTA ============ */
.final-cta {
  background:
    linear-gradient(rgba(19,16,16,0.88), rgba(19,16,16,0.88)),
    radial-gradient(ellipse at 50% 120%, rgba(200,155,123,0.35), transparent 60%);
  text-align: center;
}
.final-cta h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 18px; }
.final-cta p { color: var(--muted); max-width: 540px; margin: 0 auto 36px; }

/* ============ FOOTER ============ */
.site-footer {
  background: #0c0a09;
  border-top: 1px solid var(--line);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 44px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 12px; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.25s; }
.site-footer a:hover { color: var(--accent); }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 16px; max-width: 300px; }
.newsletter-form { display: flex; gap: 0; margin-top: 16px; }
.newsletter-form input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-right: 0;
  color: var(--text);
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 0.9rem;
  border-radius: 2px 0 0 2px;
}
.newsletter-form button {
  background: var(--accent);
  color: #16100c;
  border: 0;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0 2px 2px 0;
  transition: background 0.25s;
}
.newsletter-form button:hover { background: var(--accent-hover); }
.newsletter-msg { font-size: 0.82rem; color: var(--accent); margin-top: 10px; display: none; }
.footer-bottom {
  margin-top: 64px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8rem;
}
@media (max-width: 900px) { .footer-bottom { padding-bottom: 92px; } }

/* ============ MOBILE STICKY BAR ============ */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(19,16,16,0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-height: 56px;
}
.mobile-bar a svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.mobile-bar a.buy { background: var(--accent); color: #16100c; }
.mobile-bar a.buy svg { stroke: #16100c; }
@media (max-width: 900px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 56px; }
}

/* ============ GENERIC PAGE ============ */
.page-hero { padding: 170px 0 60px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-content { padding: 70px 0 90px; max-width: 780px; }
.page-content h2 { font-size: 1.7rem; margin: 40px 0 16px; }
.page-content p, .page-content li { color: var(--muted); margin-bottom: 16px; }
.page-content ul, .page-content ol { padding-left: 22px; }

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
