/* ============================================
   Recipe Landing Page — Design System & Styles
   Target: 40+ USA Audience
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --color-primary: #C45B28;
  --color-primary-dark: #A04820;
  --color-primary-light: #E8935F;
  --color-bg: #FDF6F0;
  --color-bg-warm: #F5EDE4;
  --color-surface: #FFFFFF;
  --color-surface-elevated: #FFFCF9;
  --color-text: #2D2A26;
  --color-text-light: #6B6560;
  --color-text-muted: #9A9590;
  --color-accent: #4A7C59;
  --color-accent-light: #E8F0EB;
  --color-border: #E8DDD4;
  --color-overlay: rgba(45, 42, 38, 0.55);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(45, 42, 38, 0.06);
  --shadow-md: 0 4px 20px rgba(45, 42, 38, 0.08);
  --shadow-lg: 0 8px 40px rgba(45, 42, 38, 0.12);
  --shadow-xl: 0 16px 60px rgba(45, 42, 38, 0.16);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s ease;
  --transition-slow: 0.5s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

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

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  position: relative;
  padding-left: 2rem;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 2px;
  background: var(--color-primary);
}

.section-subtitle {
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  text-align: center;
  font-size: 1.05rem;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(196, 91, 40, 0.3);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196, 91, 40, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.8);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(74, 124, 89, 0.3);
}
.btn-accent:hover {
  background: #3D6B4B;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(74, 124, 89, 0.4);
}

/* ============================
   HEADER / NAVIGATION
   ============================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(253, 246, 240, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 0.6rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  transition: color var(--transition-fast);
}
.logo span {
  color: var(--color-primary-light);
}
.header.scrolled .logo {
  color: var(--color-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary-light);
  transition: width var(--transition-base);
}

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

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

.nav-cta {
  font-size: 0.8rem !important;
  padding: 0.6rem 1.5rem;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: var(--radius-full);
  transition: all var(--transition-base) !important;
}
.nav-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}
.nav-cta::after { display: none !important; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition-fast);
}
.header.scrolled .menu-toggle span {
  background: var(--color-text);
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #2D2A26;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero:hover .hero-bg img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(45, 42, 38, 0.3) 0%,
    rgba(45, 42, 38, 0.5) 50%,
    rgba(45, 42, 38, 0.75) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  max-width: 800px;
}

.hero-content h1 {
  color: #fff;
  margin-bottom: var(--space-md);
  font-weight: 700;
  font-style: italic;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll-indicator .arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================
   FEATURES STRIP
   ============================ */
.features-strip {
  background: var(--color-surface);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.feature-item {
  text-align: center;
  padding: var(--space-md);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-sm);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition-base);
}

.feature-item:hover .feature-icon {
  background: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(196, 91, 40, 0.25);
}

.feature-item:hover .feature-icon svg {
  stroke: #fff;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-primary);
  stroke-width: 1.8;
  fill: none;
  transition: stroke var(--transition-fast);
}

.feature-item h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature-item p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ============================
   FEATURED RECIPES
   ============================ */
.recipes {
  padding: var(--space-2xl) 0;
}

.recipes-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.recipe-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
}

.recipe-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.recipe-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.recipe-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.recipe-card:hover .recipe-card-image img {
  transform: scale(1.08);
}

.recipe-card-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}

.recipe-card-save {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.recipe-card-save:hover {
  background: var(--color-primary);
  transform: scale(1.1);
}

.recipe-card-save:hover svg {
  stroke: #fff;
}

.recipe-card-save svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-text);
  stroke-width: 2;
  fill: none;
}

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

.recipe-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 0.6rem;
}

.recipe-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.recipe-meta-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-text-muted);
  stroke-width: 2;
  fill: none;
}

.recipe-card-body h3 {
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

.recipe-card:hover .recipe-card-body h3 {
  color: var(--color-primary);
}

.recipe-card-body p {
  font-size: 0.85rem;
  margin-bottom: var(--space-sm);
}

.recipe-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.recipe-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.recipe-rating .stars {
  color: #F0A830;
  font-size: 0.8rem;
}

.recipe-rating span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.recipe-card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition-fast);
}

.recipe-card:hover .recipe-card-link {
  gap: 0.6rem;
}

/* ============================
   ABOUT SECTION
   ============================ */
.about {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-warm);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.about-image-accent .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.about-image-accent .label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

.about-content {
  padding: var(--space-md) 0;
}

.about-content h2 {
  margin-bottom: var(--space-md);
}

.about-content p {
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.about-stat {
  text-align: center;
}

.about-stat .value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.about-stat .label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

/* ============================
   HOW IT WORKS
   ============================ */
.how-it-works {
  padding: var(--space-2xl) 0;
}

.how-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-border) 15%,
    var(--color-border) 85%,
    transparent
  );
}

.step-card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-md);
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(196, 91, 40, 0.3);
  position: relative;
  z-index: 1;
}

.step-card h3 {
  margin-bottom: 0.6rem;
}

.step-card p {
  font-size: 0.88rem;
}

/* ============================
   TESTIMONIALS
   ============================ */
.testimonials {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-warm);
}

.testimonials-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--color-surface);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-base);
}

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

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-primary-light);
  line-height: 1;
  margin-bottom: var(--space-sm);
  opacity: 0.5;
}

.testimonial-card p {
  font-size: 0.92rem;
  font-style: italic;
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
}

.testimonial-location {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

/* ============================
   NEWSLETTER
   ============================ */
.newsletter {
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.newsletter-inner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-inner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.newsletter-inner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.newsletter-content {
  position: relative;
  z-index: 1;
}

.newsletter h2 {
  color: #fff;
  margin-bottom: var(--space-sm);
}

.newsletter p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin: 0 auto var(--space-lg);
  font-size: 1rem;
}

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

.newsletter-form input {
  flex: 1;
  padding: 0.9rem 1.4rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.18);
}

.newsletter-form button {
  padding: 0.9rem 2rem;
  background: #fff;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.newsletter-privacy {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--space-sm);
}

.newsletter-success {
  display: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
}

.newsletter-success .checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: var(--space-sm);
  display: block;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.7);
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

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

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

.footer-col a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .recipes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .recipes-grid .recipe-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(253, 246, 240, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    color: var(--color-text) !important;
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .recipes-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .recipes-grid .recipe-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .steps-grid::before { display: none; }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }
  .footer-social { justify-content: center; }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .about-stats {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .about-image-accent {
    width: 100px;
    height: 100px;
    bottom: -10px;
    right: -10px;
  }
  .about-image-accent .number {
    font-size: 1.8rem;
  }
}

/* ============================================
   SUB-PAGE STYLES
   ============================================ */

/* --- Page Hero (compact banner for sub-pages) --- */
.page-hero {
  background: var(--color-text);
  padding: 8rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(196, 91, 40, 0.08);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(196, 91, 40, 0.05);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: var(--space-sm) 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumbs .container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.breadcrumbs a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs .separator {
  opacity: 0.4;
}

.breadcrumbs .current {
  color: var(--color-text);
  font-weight: 500;
}

/* --- Sub-page header (non-transparent) --- */
.header-solid {
  background: rgba(253, 246, 240, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

.header-solid .logo {
  color: var(--color-text);
}

.header-solid .nav-links a {
  color: var(--color-text-light);
}

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

.header-solid .menu-toggle span {
  background: var(--color-text);
}

/* --- Recipe Detail Page --- */
.recipe-detail {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.recipe-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.recipe-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}

.recipe-detail-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.recipe-detail-content h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: var(--space-sm);
}

.recipe-detail-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.recipe-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: var(--color-bg-warm);
  color: var(--color-text-light);
}

.recipe-badge svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-primary);
  stroke-width: 2;
  fill: none;
}

.recipe-description {
  font-size: 1.05rem;
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.recipe-section {
  margin-bottom: var(--space-lg);
}

.recipe-section h2 {
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-border);
}

.recipe-section ul {
  list-style: none;
  padding: 0;
}

.recipe-section ul li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.recipe-section ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.recipe-section ol {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.recipe-section ol li {
  counter-increment: step;
  padding: var(--space-sm) 0;
  padding-left: 3rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
  color: var(--color-text-light);
  position: relative;
  line-height: 1.7;
}

.recipe-section ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: var(--space-sm);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.nutrition-item {
  text-align: center;
  padding: var(--space-sm);
  background: var(--color-bg-warm);
  border-radius: var(--radius-md);
}

.nutrition-item .value {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
}

.nutrition-item .label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Category Page --- */
.category-content {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* --- Content Page (about, privacy, terms, etc.) --- */
.content-page {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.content-page .container {
  max-width: 800px;
}

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

.content-page h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.content-page p {
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.content-page ul, .content-page ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
}

.content-page li {
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.team-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-base);
}

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

.team-card-avatar {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--color-bg-warm) 0%, var(--color-border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

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

.team-card-body h3 {
  margin-bottom: 0.2rem;
}

.team-card-body .role {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.team-card-body p {
  font-size: 0.82rem;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-surface);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* --- FAQ / Help --- */
.faq-list {
  margin-top: var(--space-lg);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question .icon {
  font-size: 1.4rem;
  transition: transform var(--transition-base);
  color: var(--color-primary);
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: var(--space-md);
}

.faq-answer p {
  font-size: 0.9rem;
  line-height: 1.8;
}

/* --- Press Card --- */
.press-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.press-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.press-card .date {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.press-card h3 {
  margin-bottom: 0.5rem;
}

.press-card p {
  font-size: 0.85rem;
  margin-bottom: var(--space-sm);
}

.press-card a {
  font-size: 0.82rem;
  font-weight: 600;
}

/* --- Career Listing --- */
.career-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  transition: all var(--transition-base);
}

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

.career-card h3 {
  margin-bottom: 0.3rem;
}

.career-card .career-meta {
  display: flex;
  gap: var(--space-sm);
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.career-card .career-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* --- Sub-page Responsive --- */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .recipe-detail-grid {
    grid-template-columns: 1fr;
  }
  .recipe-detail-image {
    position: static;
  }
  .nutrition-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .press-grid {
    grid-template-columns: 1fr;
  }
  .career-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-hero {
    padding: 6.5rem 0 2rem;
  }
}
