/* ========================================
   Sophie Blossom — Warm Lifestyle Magazine
   Aesthetic: Kinfolk / Toast / Patagonia
   ======================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Nunito:wght@300;400;500;600;700&display=swap');

/* --- Custom Properties --- */
:root {
  /* Warm palette */
  --color-cream: #faf6f1;
  --color-sand: #f0e6d6;
  --color-warm-white: #fefcf9;
  --color-terracotta: #c4704b;
  --color-terracotta-light: #d4896a;
  --color-clay: #b85c3a;
  --color-blush: #e8a5a0;
  --color-sage: #8fa68a;
  --color-lavender: #b8a9c9;
  --color-honey: #d4a853;
  --color-dusty-rose: #c9898a;
  --color-ocean: #7a9eb5;
  --color-peach: #e8b89d;
  --color-charcoal: #2d2926;
  --color-warm-gray: #6b635b;
  --color-light-gray: #a89f95;
  --color-abyss: #1e1b18;

  /* Category rainbow */
  --cat-mode: #c4704b;
  --cat-beaute: #e8a5a0;
  --cat-famille: #8fa68a;
  --cat-lifestyle: #b8a9c9;
  --cat-tendances: #d4a853;
  --cat-bienetre: #7a9eb5;
  --cat-maison: #e8b89d;

  /* Fonts */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Nunito', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  /* Transitions */
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-terracotta);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

a:hover {
  color: var(--color-clay);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-charcoal);
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 241, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 112, 75, 0.1);
  padding: var(--space-sm) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-charcoal);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--color-terracotta);
}

.main-nav {
  display: none;
}

.main-nav.is-open {
  display: flex;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-md);
}

.main-nav a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-warm-gray);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-terracotta);
  border-radius: 1px;
  transition: width var(--transition-smooth);
}

.main-nav a:hover {
  color: var(--color-charcoal);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Mobile menu button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-charcoal);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Desktop nav */
@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* Mobile nav open */
@media (max-width: 767px) {
  .main-nav.is-open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    border-bottom: 1px solid rgba(196, 112, 75, 0.1);
    padding: var(--space-md);
    flex-direction: column;
  }
  .main-nav.is-open ul {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* ========================================
   HERO / ACCROCHE SECTION
   ======================================== */
.hero-section {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(196, 112, 75, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(143, 166, 138, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-image-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto var(--space-lg);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(45, 41, 38, 0.1);
}

.hero-image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-warm-gray);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ========================================
   CATEGORY PILLS (Rainbow)
   ======================================== */
.category-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: var(--space-lg) 0;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  color: #fff;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.cat-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  color: #fff;
}

.cat-pill--mode { background-color: var(--cat-mode); }
.cat-pill--beaute { background-color: var(--cat-beaute); color: var(--color-charcoal); }
.cat-pill--famille { background-color: var(--cat-famille); }
.cat-pill--lifestyle { background-color: var(--cat-lifestyle); }
.cat-pill--tendances { background-color: var(--cat-tendances); }
.cat-pill--bienetre { background-color: var(--cat-ocean); }
.cat-pill--maison { background-color: var(--cat-maison); color: var(--color-charcoal); }

/* ========================================
   ABOUT / INTRO SECTION
   ======================================== */
.intro-section {
  padding: var(--space-lg) 0 var(--space-xl);
  position: relative;
}

.intro-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.intro-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

.intro-section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-terracotta);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

.intro-section p {
  color: var(--color-warm-gray);
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
}

.intro-section p:last-child {
  margin-bottom: 0;
}

/* Decorative divider */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: var(--space-md) 0;
}

.section-divider::before,
.section-divider::after {
  content: '';
  height: 1px;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--color-sand), transparent);
}

.section-divider svg {
  width: 20px;
  height: 20px;
  color: var(--color-terracotta-light);
  flex-shrink: 0;
}

/* ========================================
   TIMELINE ARTICLES SECTION
   ======================================== */
.timeline-section {
  padding: var(--space-xl) 0;
  position: relative;
}

.timeline-section h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: var(--space-xl);
  position: relative;
}

.timeline-section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-terracotta);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* Timeline container */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-sand) 5%,
    var(--color-sand) 95%,
    transparent
  );
  transform: translateX(-50%);
}

/* Timeline item */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 var(--space-lg) var(--space-xl);
}

/* Left side */
.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: var(--space-xl);
  text-align: right;
}

/* Right side */
.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: var(--space-xl);
  text-align: left;
}

/* Dot on timeline */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-cream);
  border: 3px solid var(--color-terracotta-light);
  z-index: 2;
  transition: transform var(--transition-smooth), background var(--transition-smooth);
}

.timeline-item:nth-child(odd)::before {
  right: -8px;
}

.timeline-item:nth-child(even)::before {
  left: -8px;
}

.timeline-item:hover::before {
  background: var(--color-terracotta);
  transform: scale(1.3);
}

/* Connecting line from dot to card */
.timeline-item::after {
  content: '';
  position: absolute;
  top: 19px;
  width: 30px;
  height: 2px;
  background: var(--color-sand);
}

.timeline-item:nth-child(odd)::after {
  right: 8px;
}

.timeline-item:nth-child(even)::after {
  left: 8px;
}

/* Timeline card */
.timeline-card {
  background: var(--color-warm-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(45, 41, 38, 0.06);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(45, 41, 38, 0.1);
}

.timeline-card a {
  color: inherit;
}

.timeline-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.timeline-card-body {
  padding: var(--space-md);
}

.timeline-card-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  color: #fff;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.timeline-card h3 a:hover {
  color: var(--color-terracotta);
}

.timeline-card p {
  color: var(--color-warm-gray);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Number badge */
.timeline-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  color: rgba(196, 112, 75, 0.1);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Mobile timeline */
@media (max-width: 767px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    padding-left: 52px;
    padding-right: 0;
    text-align: left;
  }

  .timeline-item::before,
  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    left: 12px;
    right: auto;
  }

  .timeline-item::after,
  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::after {
    left: 28px;
    right: auto;
  }
}

/* ========================================
   SEO TEXT SECTION
   ======================================== */
.seo-section {
  padding: var(--space-xl) 0;
  background: var(--color-warm-white);
  position: relative;
}

.seo-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-sand), transparent);
}

.seo-inner {
  max-width: 720px;
  margin: 0 auto;
}

.seo-section h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: var(--space-md);
  text-align: center;
}

.seo-section h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-sage);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

.seo-section p {
  color: var(--color-warm-gray);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  text-align: center;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-section {
  padding: var(--space-xl) 0;
}

.faq-section h2 {
  text-align: center;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: var(--space-lg);
}

.faq-section h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-lavender);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-sand);
  padding: var(--space-md) 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: var(--color-warm-gray);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ========================================
   NEWSLETTER CTA
   ======================================== */
.newsletter-section {
  padding: var(--space-xl) 0;
  text-align: center;
  background: var(--color-warm-white);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 165, 160, 0.1) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.newsletter-inner {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.newsletter-section h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 0.75rem;
}

.newsletter-section p {
  color: var(--color-warm-gray);
  margin-bottom: var(--space-md);
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: 2px solid var(--color-sand);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-cream);
  color: var(--color-charcoal);
  transition: border-color var(--transition-smooth);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-terracotta-light);
}

.newsletter-form button {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 50px;
  background: var(--color-terracotta);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-smooth), transform var(--transition-smooth);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--color-clay);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--color-abyss);
  color: rgba(250, 246, 241, 0.7);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(250, 246, 241, 0.95);
  margin-bottom: 0.75rem;
}

.footer-logo span {
  color: var(--color-terracotta-light);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250, 246, 241, 0.5);
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(250, 246, 241, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition-smooth);
}

.footer-col a:hover {
  color: var(--color-terracotta-light);
}

.footer-bottom {
  border-top: 1px solid rgba(250, 246, 241, 0.08);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(250, 246, 241, 0.35);
}

@media (max-width: 767px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ========================================
   ARTICLE PAGE (for future pages)
   ======================================== */
.article-page {
  padding: var(--space-xl) 0;
}

.article-header {
  max-width: 720px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: var(--space-sm);
}

.article-meta {
  font-size: 0.88rem;
  color: var(--color-light-gray);
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.article-cover {
  max-width: 900px;
  margin: 0 auto var(--space-lg);
  border-radius: 16px;
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 1.6rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.article-content h3 {
  font-size: 1.25rem;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.article-content p {
  margin-bottom: var(--space-md);
  color: var(--color-warm-gray);
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--space-md);
  padding-left: 1.5rem;
  color: var(--color-warm-gray);
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 3px solid var(--color-terracotta-light);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  background: var(--color-warm-white);
  border-radius: 0 12px 12px 0;
  color: var(--color-warm-gray);
  font-style: italic;
}

/* Breadcrumb */
.breadcrumb {
  padding: var(--space-sm) 0;
  font-size: 0.85rem;
  color: var(--color-light-gray);
}

.breadcrumb a {
  color: var(--color-light-gray);
}

.breadcrumb a:hover {
  color: var(--color-terracotta);
}

.breadcrumb span {
  margin: 0 0.4rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
  .timeline-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
  }

  .timeline-item:nth-child(1) .timeline-card { animation-delay: 0.1s; }
  .timeline-item:nth-child(2) .timeline-card { animation-delay: 0.2s; }
  .timeline-item:nth-child(3) .timeline-card { animation-delay: 0.3s; }
  .timeline-item:nth-child(4) .timeline-card { animation-delay: 0.4s; }
  .timeline-item:nth-child(5) .timeline-card { animation-delay: 0.5s; }
  .timeline-item:nth-child(6) .timeline-card { animation-delay: 0.6s; }
  .timeline-item:nth-child(7) .timeline-card { animation-delay: 0.7s; }
}

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