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

/* ===== CSS VARIABLES ===== */
:root {
  --cream: #FFFAF5;
  --blush: #FFE8E0;
  --blush-light: #FFF0EB;
  --pink: #E8A0BF;
  --pink-dark: #C77DA2;
  --brown-dark: #3D2B1F;
  --brown-warm: #6B4A3A;
  --brown-accent: #C58A4A;
  --white: #ffffff;
  --off-white: #FEFCFA;
  --gray-light: #F7F3EF;
  --gray-text: #7A6A5E;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --max-width: 1100px;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-btn: 28px;
  --shadow-sm: 0 2px 8px rgba(61, 43, 31, 0.06);
  --shadow-md: 0 4px 20px rgba(61, 43, 31, 0.08);
  --shadow-lg: 0 8px 40px rgba(61, 43, 31, 0.1);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--brown-dark);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brown-accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--brown-dark);
  line-height: 1.3;
  font-weight: 600;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
  background: var(--white);
  padding: 18px 0;
  border-bottom: 1px solid rgba(61, 43, 31, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--brown-dark);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--pink-dark);
  font-style: italic;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  color: var(--brown-warm);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  letter-spacing: 0.3px;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pink);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a:hover {
  color: var(--pink-dark);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--pink);
  color: var(--brown-dark);
}

.btn-primary:hover {
  background: var(--pink-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 125, 162, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--brown-dark);
  border: 2px solid var(--pink);
}

.btn-outline:hover {
  background: var(--pink);
  color: var(--brown-dark);
  transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -1px;
}

.hero h1 em {
  color: var(--pink-dark);
  font-style: italic;
}

.hero p {
  font-size: 1.15rem;
  color: var(--gray-text);
  max-width: 540px;
  margin: 0 auto 36px;
  font-weight: 300;
  line-height: 1.8;
}

.hero-image {
  width: 100%;
  max-width: 750px;
  margin: 48px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.hero-image:hover img {
  transform: scale(1.02);
}

/* Placeholder for images the user hasn't added yet */
.img-placeholder {
  background: linear-gradient(135deg, var(--blush) 0%, var(--pink) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-dark);
  font-size: 1.1rem;
  font-weight: 500;
  min-height: 250px;
}

/* ===== FEATURED RECIPE ===== */
.featured {
  padding: 80px 0;
}

.featured-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.featured-card .card-image {
  height: 100%;
  min-height: 340px;
  overflow: hidden;
}

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

.featured-card:hover .card-image img {
  transform: scale(1.05);
}

.featured-card .card-body {
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card .card-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--pink-dark);
  font-weight: 600;
  margin-bottom: 14px;
}

.featured-card h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
}

.featured-card p {
  color: var(--gray-text);
  margin-bottom: 28px;
  font-weight: 300;
  line-height: 1.8;
}

/* ===== CATEGORIES ===== */
.categories {
  padding: 60px 0 80px;
  text-align: center;
}

.categories h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.categories > .container > p {
  color: var(--gray-text);
  font-weight: 300;
  margin-bottom: 44px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: 1px solid rgba(61, 43, 31, 0.04);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--pink);
}

.category-card .emoji {
  font-size: 2.8rem;
  margin-bottom: 18px;
}

.category-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.category-card p {
  color: var(--gray-text);
  font-size: 0.9rem;
  font-weight: 300;
}

/* ===== RECENT RECIPES ===== */
.recent {
  padding: 60px 0 100px;
}

.recent h2 {
  font-size: 2rem;
  margin-bottom: 44px;
  text-align: center;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.recipe-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(61, 43, 31, 0.04);
}

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

.recipe-card .card-image {
  height: 240px;
  overflow: hidden;
}

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

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

.recipe-card .card-body {
  padding: 28px;
}

.recipe-card .card-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--pink-dark);
  font-weight: 600;
  margin-bottom: 10px;
  display: inline-block;
}

.recipe-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.recipe-card p {
  color: var(--gray-text);
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 18px;
  line-height: 1.7;
}

.recipe-card .read-more {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--pink-dark);
  transition: color var(--transition);
}

.recipe-card:hover .read-more {
  color: var(--brown-dark);
}

/* ===== DIVIDER ===== */
.section-divider {
  text-align: center;
  margin: 0 auto;
  padding: 20px 0;
  color: var(--pink);
  font-size: 1.4rem;
  letter-spacing: 8px;
}

/* ===== RECIPE DETAIL PAGE ===== */
.recipe-hero {
  padding: 60px 0 40px;
  text-align: center;
}

.recipe-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.recipe-hero .recipe-intro {
  font-size: 1.05rem;
  color: var(--gray-text);
  max-width: 620px;
  margin: 0 auto 24px;
  font-weight: 300;
  line-height: 1.8;
}

.recipe-meta {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.recipe-meta-item {
  text-align: center;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  min-width: 100px;
}

.recipe-meta-item .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-text);
  font-weight: 600;
  margin-bottom: 4px;
}

.recipe-meta-item .value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown-dark);
}

.recipe-image {
  max-width: 720px;
  margin: 0 auto 48px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.recipe-image img,
.recipe-image .img-placeholder {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Recipe content sections */
.recipe-content {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.recipe-section {
  margin-bottom: 44px;
}

.recipe-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pink);
  display: inline-block;
}

.recipe-section p {
  color: var(--gray-text);
  font-weight: 300;
  line-height: 1.8;
}

.ingredients-list {
  list-style: none;
}

.ingredients-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(61, 43, 31, 0.06);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ingredients-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--pink);
  border-radius: 50%;
  flex-shrink: 0;
}

.instructions-list {
  list-style: none;
  counter-reset: step;
}

.instructions-list li {
  counter-increment: step;
  padding: 18px 0;
  border-bottom: 1px solid rgba(61, 43, 31, 0.06);
  padding-left: 52px;
  position: relative;
  font-size: 1rem;
  line-height: 1.8;
}

.instructions-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 18px;
  width: 34px;
  height: 34px;
  background: var(--pink);
  color: var(--brown-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Tips box */
.tips-box {
  background: var(--blush-light);
  border-left: 4px solid var(--pink);
  padding: 28px 32px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 36px;
}

.tips-box h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--pink-dark);
}

.tips-box ul {
  list-style: none;
}

.tips-box ul li {
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--gray-text);
  padding-left: 22px;
  position: relative;
}

.tips-box ul li::before {
  content: '~';
  position: absolute;
  left: 0;
  color: var(--pink-dark);
  font-weight: 600;
}

/* ===== JUMP TO RECIPE BUTTON ===== */
.jump-to-recipe {
  display: inline-block;
  margin-bottom: 28px;
  padding: 12px 28px;
  background: var(--pink);
  color: var(--brown-dark);
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  transition: all var(--transition);
}

.jump-to-recipe:hover {
  background: var(--pink-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 125, 162, 0.3);
}

/* ===== RECIPE CARD ===== */
.recipe-card-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--pink);
  margin-top: 52px;
  margin-bottom: 44px;
}

.recipe-card-box h2 {
  font-size: 1.7rem;
  margin-bottom: 10px;
  border-bottom: none;
  display: block;
}

.recipe-card-box .recipe-card-description {
  color: var(--gray-text);
  font-weight: 300;
  margin-bottom: 28px;
  line-height: 1.8;
}

.recipe-card-box .recipe-card-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(61, 43, 31, 0.08);
}

.recipe-card-box .recipe-card-meta div {
  text-align: center;
  padding: 12px 16px;
  background: var(--blush-light);
  border-radius: var(--radius-sm);
}

.recipe-card-box .recipe-card-meta .label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-text);
  font-weight: 600;
}

.recipe-card-box .recipe-card-meta .value {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown-dark);
}

.recipe-card-box h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: var(--pink-dark);
}

.recipe-card-box .ingredients-list {
  margin-bottom: 32px;
}

.recipe-card-box .instructions-list li {
  font-size: 0.95rem;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  padding: 80px 0 60px;
  text-align: center;
}

.about-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.about-hero .subtitle {
  font-size: 1.15rem;
  color: var(--gray-text);
  font-weight: 300;
  font-style: italic;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.about-story {
  background: var(--white);
  border-radius: var(--radius);
  padding: 52px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}

.about-story p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--gray-text);
  margin-bottom: 20px;
}

.about-story p:last-child {
  margin-bottom: 0;
}

.about-contact {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px 52px;
  box-shadow: var(--shadow-md);
  text-align: center;
  border-top: 4px solid var(--pink);
}

.about-contact h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.about-contact p {
  color: var(--gray-text);
  margin-bottom: 8px;
}

.about-contact a {
  font-weight: 500;
  color: var(--pink-dark);
}

/* ===== RECIPES PAGE ===== */
.recipes-hero {
  padding: 80px 0 40px;
  text-align: center;
}

.recipes-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.recipes-hero p {
  font-size: 1.1rem;
  color: var(--gray-text);
  font-weight: 300;
  font-style: italic;
}

.recipes-listing {
  padding: 0 0 100px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--brown-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0;
  text-align: center;
}

.footer .logo {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

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

.footer p {
  font-size: 0.85rem;
  font-weight: 300;
}

.footer a {
  color: var(--pink);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-image img {
    height: 280px;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-card .card-image {
    min-height: 240px;
  }

  .featured-card .card-body {
    padding: 32px 28px;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .recipe-hero h1 {
    font-size: 1.8rem;
  }

  .recipe-meta {
    gap: 12px;
  }

  .recipe-meta-item {
    min-width: 80px;
    padding: 12px 14px;
  }

  .recipe-image img,
  .recipe-image .img-placeholder {
    height: 260px;
  }

  .about-story,
  .about-contact {
    padding: 32px 24px;
  }

  .recipe-card-box {
    padding: 28px;
  }

  /* Mobile nav */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(61, 43, 31, 0.06);
    box-shadow: var(--shadow-md);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}
