/* ===== CuliCool — Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --clr-primary: #d4603a;
  --clr-primary-dark: #b84a28;
  --clr-accent: #2d6a4f;
  --clr-accent-light: #52b788;
  --clr-bg: #fdf8f4;
  --clr-card: #ffffff;
  --clr-text: #2b2b2b;
  --clr-text-light: #6b6b6b;
  --clr-border: #e8e0d8;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,.06);
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--clr-primary-dark); }

/* ===== Header / Nav ===== */
.site-header {
  background: var(--clr-card);
  border-bottom: 1px solid var(--clr-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 44px; width: auto; }
.footer-logo-img { height: 50px; margin: 0 auto; filter: brightness(0) invert(1); }
nav { display: flex; gap: .2rem; align-items: center; }
nav a {
  padding: .45rem .85rem;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--clr-text);
  transition: background .2s, color .2s;
}
nav a:hover, nav a.active { background: var(--clr-primary); color: #fff; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: .3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #fce4d6 0%, #fdf8f4 60%, #d8f3dc 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 3rem 1.5rem;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero h1 em { color: var(--clr-primary); font-style: normal; }
.hero p {
  font-size: 1.1rem;
  color: var(--clr-text-light);
  max-width: 540px;
  margin: 0 auto 2rem;
}
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  background: var(--clr-primary);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, transform .15s;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--clr-primary-dark); color: #fff; transform: translateY(-2px); }

/* ===== Sections ===== */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: .5rem;
}
.section-sub {
  text-align: center;
  color: var(--clr-text-light);
  margin-bottom: 2.5rem;
  font-size: .95rem;
}

/* ===== Recipe Card Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--clr-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #ece4dc;
}
.card-body { padding: 1.2rem; }
.card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: .4rem;
}
.card-body p {
  font-size: .88rem;
  color: var(--clr-text-light);
  margin-bottom: .8rem;
}
.card-tag {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tag-green { background: #d8f3dc; color: #1b4332; }
.tag-orange { background: #fce4d6; color: #9c4221; }
.tag-blue { background: #d0e8f2; color: #1a5276; }

/* ===== Recipe Page ===== */
.recipe-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
}
.recipe-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: .5rem;
}
.recipe-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--clr-text-light);
  font-size: .9rem;
  margin-bottom: 1.5rem;
}
.recipe-meta strong { color: var(--clr-text); }
.recipe-img-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.recipe-img-wrap img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
}
.recipe-content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}
.recipe-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin: 2rem 0 .8rem;
  color: var(--clr-primary);
}
.recipe-content ul, .recipe-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.recipe-content li { margin-bottom: .5rem; }

/* ===== Image Loading Placeholder ===== */
.img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(110deg, #ece4dc 8%, #f5ede6 18%, #ece4dc 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-light);
  font-size: .85rem;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.img-placeholder.hero-size { height: 400px; border-radius: var(--radius); }

/* ===== Footer ===== */
.site-footer {
  background: #2b2b2b;
  color: #ccc;
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: 3rem;
}
.site-footer .logo { color: #fff; margin-bottom: .5rem; }
.site-footer p { font-size: .85rem; }
.footer-links { display: flex; gap: 1rem; justify-content: center; margin: 1rem 0; flex-wrap: wrap; }
.footer-links a { color: #aaa; font-size: .85rem; }
.footer-links a:hover { color: #fff; }
.footer-recipes { margin: 1.2rem 0 .5rem; }
.footer-recipes strong { color: #fff; font-size: .9rem; display: block; margin-bottom: .5rem; }
.footer-recipes ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .9rem; }
.footer-recipes ul li a { color: #aaa; font-size: .82rem; }
.footer-recipes ul li a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--clr-card);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--clr-border);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }
  nav.open { display: flex; }
  nav a { padding: .7rem 1rem; width: 100%; }
  .hero { min-height: 40vh; }
  .section { padding: 2.5rem 1rem; }
  .recipe-meta { gap: .8rem; }
}
