/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/

:root {
  --ivory: #FFFBE6;
  --cream: #FFF8E7;
  --olive: #5C6B3C;
  --olive-light: #8A9A6A;
  --olive-pale: #E8EDDE;
  --terracotta: #C46B4A;
  --terracotta-light: #D4896E;
  --terracotta-pale: #F5DDD3;
  --brown: #3E2723;
  --brown-light: #6D4C41;
  --warm-gray: #B8AFA6;
  --divider: #D7CFC5;
  --white: #FFFFFF;
  --shadow: rgba(62,39,35,0.08);
  --shadow-md: rgba(62,39,35,0.12);
  --serif: Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  --sans: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  --mono: 'Courier New', Courier, monospace;
  --max-w: 1200px;
  --gap: 1.25rem;
}
html { scroll-behavior: smooth; box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--brown);
  line-height: 1.72;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); text-decoration: none; transition: color .3s; }
a:hover { color: var(--terracotta); }

/* ---- HEADER ---- */
.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--divider);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--olive);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.logo span { color: var(--terracotta); }
.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-list a {
  font-family: var(--sans);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brown-light);
  position: relative;
  padding-bottom: 2px;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--terracotta);
  transition: width .3s;
}
.nav-list a:hover { color: var(--terracotta); }
.nav-list a:hover::after { width: 100%; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.burger svg { width: 24px; height: 24px; stroke: var(--brown); }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(170deg, var(--olive-pale) 0%, var(--ivory) 55%, var(--terracotta-pale) 100%);
  padding: 3rem 1.25rem 2rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--terracotta-pale);
  opacity: .4;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-tag {
  font-family: var(--sans);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--terracotta);
  margin-bottom: .75rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1.18;
  color: var(--brown);
  max-width: 680px;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.hero-lead {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--brown-light);
  max-width: 600px;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.hero-recipe-block {
  background: var(--white);
  border-left: 3px solid var(--terracotta);
  padding: 1.25rem 1.5rem;
  max-width: 520px;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 4px 20px var(--shadow);
}
.hero-recipe-block h3 {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--olive);
  margin-bottom: .5rem;
}
.hero-recipe-block p {
  font-size: .92rem;
  color: var(--brown-light);
  line-height: 1.7;
}

/* ---- SECTIONS ---- */
.section { padding: 3rem 1.25rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-tag {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--terracotta);
  margin-bottom: .5rem;
  font-family: var(--sans);
}
.section-title {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--brown);
  margin-bottom: 1rem;
  line-height: 1.25;
}
.section-subtitle {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--olive);
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* ---- TWO COLUMNS WITH SIDEBAR ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.main-col p { margin-bottom: 1rem; font-size: .97rem; }
.main-col h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--olive);
  margin: 1.5rem 0 .75rem;
}
.sidebar {
  border-top: 2px solid var(--olive-pale);
  padding-top: 1.5rem;
}
.sidebar-box {
  background: var(--olive-pale);
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}
.sidebar-box h4 {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--olive);
  margin-bottom: .5rem;
}
.sidebar-box p, .sidebar-box li {
  font-size: .88rem;
  color: var(--brown-light);
  line-height: 1.65;
}
.sidebar-box ul { list-style: none; padding: 0; }
.sidebar-box li { padding: .25rem 0; padding-left: 1rem; position: relative; }
.sidebar-box li::before {
  content: '\2022';
  color: var(--terracotta);
  position: absolute; left: 0;
}

/* ---- CARDS GRID ---- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform .3s, box-shadow .3s;
  border-top: 3px solid var(--olive);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--shadow-md);
}
.card h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--olive);
  margin-bottom: .5rem;
}
.card p { font-size: .9rem; color: var(--brown-light); line-height: 1.65; }
.card-accent { border-top-color: var(--terracotta); }
.card-icon {
  font-size: 1.8rem;
  margin-bottom: .75rem;
  display: block;
}

/* ---- RECIPE STRIP ---- */
.recipe-strip {
  background: linear-gradient(135deg, var(--olive) 0%, var(--olive-light) 100%);
  padding: 2.5rem 1.25rem;
  position: relative;
  overflow: hidden;
}
.recipe-strip::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 50%;
}
.recipe-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  color: var(--cream);
}
.recipe-strip h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: .75rem;
}
.recipe-strip p {
  font-size: .95rem;
  line-height: 1.75;
  max-width: 640px;
  opacity: .92;
}
.recipe-strip .strip-note {
  display: inline-block;
  background: rgba(255,255,255,.15);
  padding: .4rem .8rem;
  border-radius: 4px;
  font-size: .8rem;
  margin-top: 1rem;
  font-family: var(--mono);
  letter-spacing: .5px;
}

/* ---- WIDE PHOTO ---- */
.wide-photo {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.wide-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform .6s;
}
.wide-photo:hover img { transform: scale(1.03); }
.wide-photo figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(62,39,35,.7));
  color: var(--cream);
  padding: 2rem 1.25rem .75rem;
  font-family: var(--serif);
  font-size: .85rem;
  font-style: italic;
}

/* ---- QUOTE ---- */
.editorial-quote {
  background: var(--terracotta-pale);
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
}
.editorial-quote::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--terracotta);
  line-height: 1;
  display: block;
  margin-bottom: .25rem;
}
.editorial-quote blockquote {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--brown);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}
.editorial-quote cite {
  display: block;
  margin-top: .75rem;
  font-size: .8rem;
  color: var(--terracotta);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ---- HIGHLIGHT BOX ---- */
.highlight-box {
  background: var(--cream);
  border: 1px solid var(--divider);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
}
.highlight-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--terracotta);
  border-radius: 10px 0 0 10px;
}
.highlight-box h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--olive);
  margin-bottom: .5rem;
}
.highlight-box p { font-size: .92rem; color: var(--brown-light); }

/* ---- INGREDIENT MARGIN NOTE ---- */
.margin-note {
  background: var(--olive-pale);
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
  font-size: .85rem;
  color: var(--olive);
  font-family: var(--mono);
  line-height: 1.6;
  border-left: 2px solid var(--olive);
}

/* ---- NEWSLETTER ---- */
.newsletter {
  background: var(--brown);
  padding: 3rem 1.25rem;
  text-align: center;
}
.newsletter-inner {
  max-width: 520px;
  margin: 0 auto;
}
.newsletter h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: .5rem;
}
.newsletter p {
  color: var(--warm-gray);
  font-size: .92rem;
  margin-bottom: 1.25rem;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.newsletter-form input[type=email] {
  padding: .85rem 1rem;
  border: 1px solid var(--brown-light);
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  color: var(--cream);
  font-size: 1rem;
  font-family: var(--sans);
}
.newsletter-form input[type=email]::placeholder { color: var(--warm-gray); }
.newsletter-form button {
  padding: .85rem 2rem;
  background: var(--terracotta);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: .95rem;
  font-family: var(--sans);
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: background .3s, transform .2s;
  min-height: 44px;
}
.newsletter-form button:hover { background: var(--terracotta-light); transform: translateY(-2px); }

/* ---- RELATED ARTICLES ---- */
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.related-card {
  display: block;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-md);
}
.related-card-body {
  padding: 1.25rem;
}
.related-card-body .rc-tag {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--terracotta);
  margin-bottom: .35rem;
  display: block;
}
.related-card-body h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--brown);
  margin-bottom: .35rem;
  line-height: 1.35;
}
.related-card-body p {
  font-size: .85rem;
  color: var(--brown-light);
  line-height: 1.55;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--brown);
  color: var(--warm-gray);
  padding: 2.5rem 1.25rem 1.5rem;
  font-size: .82rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--cream);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.footer-links { margin-bottom: 1rem; }
.footer-links a {
  color: var(--warm-gray);
  margin: 0 .6rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color .3s;
}
.footer-links a:hover { color: var(--terracotta-light); }
.footer-disclaimer {
  max-width: 600px;
  margin: .75rem auto 0;
  font-size: .72rem;
  line-height: 1.55;
  color: var(--warm-gray);
  opacity: .8;
}

/* ---- COOKIES BANNER ---- */
.cookie-banner {
  position: fixed;
  bottom: 1rem; right: 1rem;
  max-width: 360px;
  background: var(--brown);
  color: var(--cream);
  padding: 1.25rem;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  z-index: 200;
  font-size: .85rem;
  line-height: 1.55;
  transition: opacity .4s, transform .4s;
}
#cookie-close { display: none; }
#cookie-close:checked ~ .cookie-banner { opacity: 0; pointer-events: none; transform: translateY(20px); }
.cookie-banner p { margin-bottom: .75rem; }
.cookie-banner a { color: var(--terracotta-light); text-decoration: underline; }
.cookie-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-btns label, .cookie-btns a.cb-btn {
  padding: .5rem 1rem;
  border-radius: 5px;
  font-size: .8rem;
  cursor: pointer;
  text-align: center;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  text-decoration: none;
}
.cb-accept { background: var(--terracotta); color: var(--white); border: none; font-weight: 600; }
.cb-decline { background: transparent; color: var(--warm-gray); border: 1px solid var(--warm-gray); }

/* ---- LEGAL PAGES ---- */
.legal-page { padding: 3rem 1.25rem; }
.legal-page .legal-inner { max-width: 720px; margin: 0 auto; }
.legal-page h1 {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--brown);
  margin-bottom: 1.5rem;
}
.legal-page h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--olive);
  margin: 1.5rem 0 .5rem;
}
.legal-page p { font-size: .92rem; margin-bottom: .75rem; color: var(--brown-light); }

/* ---- SUCCESS PAGE ---- */
.success-page {
  text-align: center;
  padding: 5rem 1.25rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.success-page h1 {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--olive);
  margin-bottom: 1rem;
}
.success-page p {
  font-size: 1rem;
  color: var(--brown-light);
  max-width: 480px;
  margin-bottom: 1.5rem;
}
.btn-home {
  display: inline-block;
  padding: .85rem 2rem;
  background: var(--terracotta);
  color: var(--white);
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: .9rem;
  transition: background .3s;
  min-height: 44px;
}
.btn-home:hover { background: var(--terracotta-light); color: var(--white); }

/* ---- 404 ---- */
.page-404 {
  text-align: center;
  padding: 5rem 1.25rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.page-404 .err-code {
  font-family: var(--serif);
  font-size: 6rem;
  color: var(--terracotta-pale);
  font-weight: 700;
  line-height: 1;
  margin-bottom: .5rem;
}
.page-404 h1 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--brown);
  margin-bottom: 1rem;
}
.page-404 p { color: var(--brown-light); margin-bottom: 1.5rem; }

/* ---- ARTICLE PAGE ---- */
.article-hero {
  background: var(--olive-pale);
  padding: 2.5rem 1.25rem 2rem;
}
.article-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.article-hero .a-tag {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--terracotta);
  margin-bottom: .5rem;
  display: block;
}
.article-hero h1 {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--brown);
  line-height: 1.22;
  max-width: 640px;
  margin-bottom: .75rem;
}
.article-hero .a-author {
  font-size: .82rem;
  color: var(--brown-light);
  font-style: italic;
}
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
.article-body p { margin-bottom: 1rem; font-size: .97rem; }
.article-body h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--olive);
  margin: 2rem 0 .75rem;
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--brown);
  margin: 1.5rem 0 .5rem;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease-out both; }
.fade-d1 { animation-delay: .1s; }
.fade-d2 { animation-delay: .2s; }
.fade-d3 { animation-delay: .3s; }
.fade-d4 { animation-delay: .4s; }

/* ---- TABLET ---- */
@media (min-width: 640px) {
  .hero h1 { font-size: 3rem; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 2fr 1fr; }
  .sidebar { border-top: none; border-left: 2px solid var(--olive-pale); padding-top: 0; padding-left: 1.5rem; }
  .newsletter-form { flex-direction: row; }
  .newsletter-form input[type=email] { flex: 1; }
  .wide-photo img { height: 360px; }
}

/* ---- DESKTOP ---- */
@media (min-width: 960px) {
  .hero { padding: 4.5rem 2rem 3rem; }
  .hero h1 { font-size: 3.6rem; }
  .hero-lead { font-size: 1.2rem; }
  .section { padding: 4rem 2rem; }
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .section-title { font-size: 2.2rem; }
  .wide-photo img { height: 440px; }
  .nav-list { gap: 2rem; }
  .article-hero h1 { font-size: 2.6rem; }
  .article-hero { padding: 3.5rem 2rem 2.5rem; }
}

/* ---- BURGER MOBILE ---- */
@media (max-width: 639px) {
  .nav-list { display: none; }
  .burger { display: block; }
  .nav-open .nav-list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ivory);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--divider);
    box-shadow: 0 4px 16px var(--shadow);
  }
}
