:root {
  --cream: #FBF6EE;
  --cream-dark: #F3EBDA;
  --terracotta: #C7531C;
  --terracotta-dark: #A84213;
  --olive: #5B6B47;
  --charcoal: #2E2A26;
  --gold: #E3A857;
  --gray: #8A8377;
  --border: #E8DFCD;
  --white: #FFFFFF;
  --shadow: 0 4px 16px rgba(46, 42, 38, 0.08);
  --shadow-hover: 0 10px 28px rgba(46, 42, 38, 0.14);
  --radius: 14px;
  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}

a { text-decoration: none; color: inherit; }

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

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

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.home-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--charcoal);
  flex-shrink: 0;
}

.home-link .icon-home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.home-link .icon-home svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-link:hover .icon-home {
  transform: rotate(-6deg) scale(1.05);
}

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

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

nav.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--charcoal);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--terracotta);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg { width: 26px; height: 26px; }

/* ===== HERO ===== */
.hero {
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

.hero h1 .accent {
  color: var(--terracotta);
  position: relative;
  display: inline-block;
}

.hero p.lead {
  font-size: 1.1rem;
  color: #5a5347;
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-search {
  display: flex;
  gap: 10px;
  max-width: 460px;
}

.hero-search input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.98rem;
  font-family: inherit;
}

.hero-search input:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  background: var(--terracotta);
  color: var(--white);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  font-family: inherit;
}

.btn:hover { background: var(--terracotta-dark); transform: translateY(-1px); }

.hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/3.4;
  box-shadow: var(--shadow);
}

.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: var(--white);
  border-radius: 50px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

.hero-badge .stars { color: var(--gold); }

/* ===== SECTION HEADINGS ===== */
.section {
  padding: 56px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.section-head .eyebrow {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 700;
  margin-bottom: 8px;
}

.see-all {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--terracotta);
  white-space: nowrap;
}

.see-all:hover { text-decoration: underline; }

/* ===== CATEGORY CHIPS ===== */
.chip-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 36px;
  scrollbar-width: thin;
}

.chip-row::-webkit-scrollbar { height: 6px; }
.chip-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.chip {
  flex-shrink: 0;
  padding: 9px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
  color: var(--charcoal);
}

.chip:hover { border-color: var(--terracotta); color: var(--terracotta); }

.chip.active {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

/* ===== RECIPE GRID & CARDS ===== */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.recipe-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

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

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

.recipe-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.recipe-card:hover .card-img-wrap img { transform: scale(1.06); }

.card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.92);
  color: var(--terracotta);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 50px;
}

.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.83rem;
  color: var(--gray);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--cream-dark);
}

.card-meta .rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--charcoal);
  font-weight: 600;
}

.card-meta .rating svg { width: 14px; height: 14px; fill: var(--gold); }

.card-desc {
  font-size: 0.9rem;
  color: #71695c;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== LATEST STRIP ===== */
.latest-section {
  background: var(--cream-dark);
}

/* ===== TESTIMONIALS ===== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-stars { color: var(--gold); display: flex; gap: 2px; }
.review-stars svg { width: 16px; height: 16px; fill: var(--gold); }
.review-stars svg.empty { fill: var(--border); }

.review-text {
  font-size: 0.93rem;
  color: #5a5347;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.88rem;
}

.review-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.review-recipe-tag {
  font-size: 0.78rem;
  color: var(--terracotta);
  font-weight: 600;
}

.reviews-toggle-wrap {
  text-align: center;
  margin-top: 32px;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--terracotta);
  color: var(--terracotta);
}

.btn-outline:hover {
  background: var(--terracotta);
  color: var(--white);
}

.hidden-review { display: none; }

/* ===== NEWSLETTER / CTA ===== */
.cta-band {
  background: var(--olive);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  color: var(--white);
}

.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: #dde3d6; margin-bottom: 24px; }

.cta-band .hero-search input {
  background: var(--white);
}

.cta-band .hero-search { margin: 0 auto; justify-content: center; }

/* ===== FOOTER ===== */
footer {
  background: var(--charcoal);
  color: #d8d3ca;
  padding: 56px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: 'Fraunces', serif;
}

.footer-grid p { font-size: 0.9rem; color: #b3aca0; max-width: 320px; }

.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a { font-size: 0.9rem; color: #d8d3ca; transition: color 0.2s; }
.footer-grid ul a:hover { color: var(--gold); }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-logo .icon-home {
  width: 34px; height: 34px;
  border-radius: 9px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.footer-logo .icon-home svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-bottom {
  border-top: 1px solid #45403a;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #9a948a;
}

.footer-bottom a { color: #b3aca0; }
.footer-bottom a:hover { color: var(--gold); }

.footer-legal-links { display: flex; gap: 20px; }

/* ===== RECIPE DETAIL PAGE ===== */
.recipe-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
}

.recipe-hero img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 14px;
}

.breadcrumb a { color: var(--terracotta); font-weight: 600; }

.recipe-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 14px; }

.recipe-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 20px 0;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-block { display: flex; flex-direction: column; gap: 4px; }
.stat-block .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray); font-weight: 600; }
.stat-block .value { font-size: 1.1rem; font-weight: 700; }

.recipe-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  padding: 40px 0 60px;
}

.ingredients-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  align-self: start;
  position: sticky;
  top: 100px;
}

.ingredients-box h3 { margin-bottom: 16px; }

.ingredients-box ul { list-style: none; }
.ingredients-box li {
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ingredients-box li:last-child { border-bottom: none; }

.ingredients-box li::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  margin-top: 6px;
  flex-shrink: 0;
}

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

.steps-list li {
  counter-increment: step;
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.steps-list li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Fraunces', serif;
}

.steps-list li p { padding-top: 6px; font-size: 1rem; }

.related-recipes { padding: 40px 0 60px; }

/* ===== STATIC PAGES (Privacy, Contact, About) ===== */
.static-page {
  padding: 48px 0 70px;
  max-width: 760px;
  margin: 0 auto;
}

.static-page h1 { font-size: 2.4rem; margin-bottom: 8px; }
.static-page .updated { color: var(--gray); font-size: 0.9rem; margin-bottom: 32px; }
.static-page h2 { font-size: 1.4rem; margin: 32px 0 12px; }
.static-page p, .static-page li { color: #4d4639; margin-bottom: 12px; font-size: 0.98rem; }
.static-page ul { padding-left: 22px; margin-bottom: 12px; }
.static-page a { color: var(--terracotta); font-weight: 600; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.contact-form label { font-weight: 600; font-size: 0.9rem; margin-bottom: -8px; display: block; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; }

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

.contact-info-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-info-box .item { flex: 1; min-width: 160px; }
.contact-info-box .item h4 { font-size: 0.9rem; margin-bottom: 4px; }
.contact-info-box .item p { margin: 0; font-size: 0.9rem; color: var(--gray); }

.form-success {
  display: none;
  background: #eaf1e6;
  color: var(--olive);
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; aspect-ratio: 16/9; }
  .recipe-detail-grid { grid-template-columns: 1fr; }
  .ingredients-box { position: static; }
  .recipe-hero { grid-template-columns: 1fr; }
  .recipe-hero .hero-img-wrap { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    gap: 14px;
    display: none;
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 32px 20px; }
}
