/*
Theme Name: Mondes Saveurs
Theme URI: https://mondessaveurs.com

Author: Mondes Saveurs
Description: Elegant French food blog theme with classic navy, white and red palette. All world cuisines, written in French.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: mondessaveurs
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Cormorant+Garamond:wght@300;400;500&family=Jost:wght@300;400;500&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --navy: #1a2744;
  --navy-dark: #111b30;
  --navy-light: #243358;
  --red: #c8102e;
  --red-dark: #a50d25;
  --gold: #c8a96e;
  --gold-light: #e8d5a8;
  --cream: #f7f5f0;
  --cream-dark: #ede9e0;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-mid: #4a4a6a;
  --text-light: #8888aa;
  --border: #e0ddd6;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', sans-serif;
  --font-elegant: 'Cormorant Garamond', Georgia, serif;
  --transition: all 0.3s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  font-weight: 300;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(28px, 4vw, 48px); }
h2 { font-size: clamp(22px, 3vw, 36px); }
h3 { font-size: clamp(18px, 2.5vw, 26px); }
h4 { font-size: 20px; }
p { font-size: 16px; line-height: 1.8; color: var(--text-mid); margin-bottom: 1rem; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 64px 0; }
.section--sm { padding: 40px 0; }

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  color: var(--navy);
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 15px;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto;
}
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px auto 0;
  max-width: 200px;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
}
.section-divider-icon {
  color: var(--gold);
  font-size: 14px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 13px 32px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: var(--transition);
  border-radius: 0;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--red-dark);
}
.btn--outline {
  border: 1px solid var(--navy);
  color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn--outline-white {
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
}
.btn--gold {
  background: var(--gold);
  color: var(--navy);
}
.btn--gold:hover {
  background: var(--gold-light);
}

/* ===== RECIPE CARDS ===== */
.recipe-card {
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
}
.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26,39,68,0.12);
  border-color: var(--gold);
}
.recipe-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream);
}
.recipe-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.recipe-card:hover .recipe-card__img img {
  transform: scale(1.05);
}
.recipe-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
}
.recipe-card__body {
  padding: 20px;
}
.recipe-card__cuisine {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.recipe-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.35;
}
.recipe-card__title a:hover { color: var(--red); }
.recipe-card__meta {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.5px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
}
.recipe-card__meta span { display: flex; align-items: center; gap: 5px; }

/* ===== GRIDS ===== */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.recipes-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* ===== CATEGORY PILLS ===== */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.category-pill {
  padding: 8px 20px;
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-mid);
  background: var(--white);
  transition: var(--transition);
  cursor: pointer;
}
.category-pill:hover,
.category-pill.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
}
.badge--red { background: var(--red); color: var(--white); }
.badge--navy { background: var(--navy); color: var(--white); }
.badge--gold { background: var(--gold); color: var(--navy); }
.badge--cream { background: var(--cream); color: var(--navy); border: 1px solid var(--border); }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 48px 0;
}
.pagination a, .pagination span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 1px solid var(--border);
  color: var(--text-mid);
  transition: var(--transition);
}
.pagination a:hover, .pagination .current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ===== SIDEBAR WIDGETS ===== */
.widget {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.widget:last-child { border-bottom: none; }
.widget-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

/* ===== NEWSLETTER BOX ===== */
.newsletter-box {
  background: var(--navy);
  padding: 40px;
  text-align: center;
}
.newsletter-box h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 24px;
  margin-bottom: 8px;
}
.newsletter-box p {
  color: var(--gold-light);
  font-size: 14px;
  margin-bottom: 24px;
}
.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 400px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form button {
  padding: 13px 24px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: var(--transition);
}
.newsletter-form button:hover { background: var(--red-dark); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.5px;
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb-sep { color: var(--border); }

/* ===== SINGLE RECIPE ===== */
.recipe-hero {
  position: relative;
  height: 500px;
  background: var(--navy);
  overflow: hidden;
}
.recipe-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.recipe-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(to top, rgba(26,39,68,0.95) 0%, transparent 100%);
}
.recipe-hero__cuisine {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.recipe-hero__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  color: var(--white);
  margin-bottom: 16px;
}
.recipe-hero__meta {
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
}

.recipe-info-bar {
  background: var(--cream);
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--border);
}
.recipe-info-bar .container {
  display: flex;
  justify-content: center;
  gap: 0;
}
.recipe-info-item {
  text-align: center;
  padding: 20px 32px;
  border-right: 1px solid var(--border);
}
.recipe-info-item:last-child { border-right: none; }
.recipe-info-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.recipe-info-value {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--navy);
}

.recipe-content {
  padding: 56px 0;
}
.recipe-content h2 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--navy);
  margin: 36px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.recipe-content h2:first-child { margin-top: 0; }
.ingredients-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 15px;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ingredients-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}
.steps-list { counter-reset: steps; }
.steps-list li {
  counter-increment: steps;
  padding: 20px 0 20px 56px;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
  position: relative;
}
.steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 20px;
  width: 34px;
  height: 34px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .recipes-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .recipe-info-bar .container { flex-wrap: wrap; }
  .recipe-info-item { flex: 1 1 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .newsletter-form { flex-direction: column; }
}
@media (max-width: 480px) {
  .recipes-grid { grid-template-columns: 1fr; }
  .recipe-hero { height: 380px; }
}
