/* ========================================
   FOREVERHER — Design System
   Aesthetic: Tatcha x Glossier fusion
   Clean, airy, warm, editorial beauty
   ======================================== */

/* ---- RESET & VARIABLES ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #FFFFFF;
  --offwhite: #FAFAF8;
  --cream: #F7F4F0;
  --warm-beige: #EDE8E2;
  --blush: #E8D5C4;
  --rose: #C4968A;
  --deep-rose: #A67B6F;
  --text-primary: #2C2C2C;
  --text-secondary: #5A5A5A;
  --text-muted: #8A8580;
  --text-light: #B5AFA8;
  --border: #E5DFD8;
  --border-light: #F0EBE5;
  --accent: #C4968A;
  --accent-hover: #B5857A;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --section-pad: 6rem 2rem;
  --section-pad-sm: 3.5rem 1.25rem;
  --radius: 0;
  --radius-sm: 2px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--blush);
  color: var(--text-primary);
}

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

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

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

p {
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---- LAYOUT / CONTAINER ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-pad);
}

.section-centered {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

/* Light cream background for alternating sections */
.section-cream {
  background: var(--cream);
}

.section-warm {
  background: var(--warm-beige);
}

/* ---- SECTION LABEL ---- */
.section-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1.5rem;
  display: block;
}

/* ---- DIVIDER ---- */
.divider {
  width: 48px;
  height: 1px;
  background: var(--border);
  margin: 5rem auto;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--white);
}

.btn-primary:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
}

.btn-outline:hover {
  background: var(--text-primary);
  color: var(--white);
}

.btn-rose {
  background: var(--rose);
  color: var(--white);
}

.btn-rose:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(196, 150, 138, 0.3);
}

.btn-sm {
  font-size: 0.65rem;
  padding: 0.7rem 1.5rem;
}

/* ---- GRID SYSTEM ---- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- CARD COMPONENT ---- */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-label {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1rem;
}

.card-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.card-text {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ---- PRODUCT CARD (Tatcha-style) ---- */
.product-card {
  background: var(--white);
  text-align: center;
  transition: all 0.4s ease;
  padding: 0;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card .product-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-card .product-info {
  padding: 1.5rem 1.25rem;
}

.product-card .product-category {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.5rem;
}

.product-card .product-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.product-card .product-desc {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- FORM ELEMENTS ---- */
.input {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s ease;
  width: 100%;
}

.input::placeholder {
  color: var(--text-light);
}

.input:focus {
  border-color: var(--rose);
}

textarea.input {
  resize: vertical;
  min-height: 120px;
}

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8580' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s ease;
}

.site-header.scrolled {
  padding: 0.9rem 2rem;
  box-shadow: 0 1px 0 var(--border-light);
}

.header-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.header-nav a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-nav a:hover {
  color: var(--text-primary);
}

.header-nav a.active {
  color: var(--text-primary);
  font-weight: 500;
}

.header-cta {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  background: var(--text-primary);
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
}

.header-cta:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 105;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--rose);
}

.mobile-nav .mobile-cta {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  background: var(--text-primary);
  color: var(--white);
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.mobile-nav .mobile-cta:hover {
  background: #1a1a1a;
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-cta-desktop { display: none; }
  .hamburger { display: flex; }
}

/* ---- FOOTER ---- */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 4rem 2rem 3rem;
  background: var(--offwhite);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-heading {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  border-color: var(--text-primary);
  background: var(--text-primary);
}

.footer-social svg {
  width: 13px;
  height: 13px;
  fill: var(--text-muted);
  transition: fill 0.3s ease;
}

.footer-social a:hover svg {
  fill: var(--white);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 2rem;
  overflow: hidden;
  background: var(--cream);
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding: 9rem 2rem 4.5rem;
  text-align: center;
  position: relative;
  background: var(--cream);
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* ---- LEGAL PAGE STYLES ---- */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.legal-content h2 {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin: 2.5rem 0 0.75rem;
}

.legal-content h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 2rem 0 0.6rem;
}

.legal-content p {
  font-size: 0.88rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.legal-content ul, .legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.4rem;
}

/* ---- FEATURE STRIP (Glossier-style edge-to-edge) ---- */
.feature-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.feature-strip .feature-image {
  background: var(--cream);
  overflow: hidden;
}

.feature-strip .feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-strip .feature-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3.5rem;
}

.feature-strip.reverse {
  direction: rtl;
}

.feature-strip.reverse > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .feature-strip {
    grid-template-columns: 1fr;
  }
  .feature-strip .feature-image {
    min-height: 300px;
  }
  .feature-strip .feature-content {
    padding: 2.5rem 1.5rem;
  }
}

/* ---- STEP INDICATOR (How It Works) ---- */
.step-number {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--blush);
  margin-bottom: 1rem;
  line-height: 1;
}

/* ---- ACCORDION (FAQ) ---- */
.accordion-item {
  border-bottom: 1px solid var(--border-light);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.accordion-header:hover {
  color: var(--rose);
}

.accordion-icon {
  font-size: 1.2rem;
  color: var(--text-light);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-body-inner {
  padding: 0 0 1.5rem;
}

.accordion-body-inner p {
  font-size: 0.88rem;
  line-height: 1.8;
}

/* ---- TESTIMONIAL ---- */
.testimonial {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 0;
}

.testimonial blockquote {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial cite {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-style: normal;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ---- UTILITY ---- */
.text-center { text-align: center; }
.text-rose { color: var(--rose); }
.text-muted { color: var(--text-muted); }
.bg-cream { background: var(--cream); }
.bg-warm { background: var(--warm-beige); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }
