/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/
:root {
  --bg: #FAF6EF;
  --olive: #6B7F3B;
  --olive-dark: #4E5D2A;
  --olive-light: #8FA85A;
  --orange: #C8652A;
  --orange-light: #E89860;
  --brown: #2C1E0F;
  --brown-mid: #5C4A3A;
  --cream: #F0EBE0;
  --gold: #B89B4A;
  --border: #D4C8B5;
  --white: #FFFFFF;
  --font-serif: Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  --font-sans: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--bg); color: var(--brown); font-family: var(--font-sans); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--orange); }
h1, h2, h3, h4, h5 { font-family: var(--font-serif); color: var(--brown); line-height: 1.25; }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }

/* HEADER */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0.8rem 1.2rem; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; color: var(--brown); letter-spacing: -0.5px; }
.logo span { color: var(--orange); }
.nav-links { display: none; gap: 1.8rem; list-style: none; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--brown-mid); text-transform: uppercase; letter-spacing: 1px; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 2px; background: var(--orange); transition: width 0.3s; }
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--brown); }
.burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.burger span { display: block; width: 24px; height: 2px; background: var(--brown); transition: all 0.3s; }
.mobile-nav { display: none; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem 1.2rem; }
.mobile-nav.active { display: block; }
.mobile-nav a { display: block; padding: 0.7rem 0; font-size: 0.95rem; color: var(--brown-mid); border-bottom: 1px solid var(--cream); text-transform: uppercase; letter-spacing: 1px; }
.mobile-nav a:last-child { border-bottom: none; }

/* HERO */
.hero { background: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 1.5px) 0 0/22px 22px, linear-gradient(135deg, var(--olive-dark) 0%, var(--olive) 60%, var(--olive-light) 100%); color: var(--white); padding: 3rem 1.2rem 2.5rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -60%; right: -25%; width: 70%; height: 220%; background: radial-gradient(ellipse, rgba(200,101,42,0.22) 0%, transparent 70%); pointer-events: none; }.hero::after { content: '01'; position: absolute; right: 1.2rem; bottom: .6rem; font-family: var(--font-serif); font-size: clamp(7rem, 16vw, 13rem); line-height: 1; font-weight: 700; color: rgba(255,255,255,0.07); letter-spacing: -.04em; pointer-events: none; }.hero-inner::before { content: ''; position: absolute; left: -18px; top: .4rem; width: 3px; height: 2.4rem; background: var(--orange-light); border-radius: 3px; }
.hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.hero-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px; color: var(--orange-light); margin-bottom: 1rem; font-family: var(--font-sans); }
.hero h1 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 1.2rem; color: var(--white); }
.hero-intro { font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.8; color: rgba(255,255,255,0.9); max-width: 700px; }
.hero-meta { margin-top: 1.5rem; font-size: 0.8rem; color: rgba(255,255,255,0.6); display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* MAIN LAYOUT */
.main-wrap { max-width: 1200px; margin: 0 auto; padding: 2rem 1.2rem; }
.article-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.article-body { max-width: 100%; }
.article-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

/* DROP CAP */
.drop-cap::first-letter { font-family: var(--font-serif); font-size: 3.5rem; float: left; line-height: 0.8; margin-right: 0.4rem; margin-top: 0.15rem; color: var(--olive); font-weight: 700; }

/* SECTION HEADINGS */
.section-title { font-size: 1.5rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--orange); display: inline-block; }
.section-subtitle { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; color: var(--olive); margin-bottom: 0.5rem; font-family: var(--font-sans); }

/* PARAGRAPHS */
.article-body p { margin-bottom: 1.2rem; font-size: 1.02rem; }

/* QUOTE SEPARATOR */
.quote-sep { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.5rem 0; margin: 2rem 0; text-align: center; }
.quote-sep blockquote { font-family: var(--font-serif); font-size: 1.2rem; font-style: italic; color: var(--brown-mid); max-width: 600px; margin: 0 auto; line-height: 1.6; }
.quote-sep cite { display: block; margin-top: 0.6rem; font-size: 0.82rem; font-style: normal; color: var(--olive); text-transform: uppercase; letter-spacing: 1px; }

/* INGREDIENT CARDS */
.ingredient-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 2rem 0; }
.ingredient-card { background: var(--white); border: 1px solid var(--border); padding: 1.2rem; border-radius: 6px; transition: transform 0.3s, box-shadow 0.3s; }
.ingredient-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(44,30,15,0.08); }
.ingredient-card h4 { font-size: 1.05rem; color: var(--olive-dark); margin-bottom: 0.4rem; }
.ingredient-card p { font-size: 0.9rem; color: var(--brown-mid); line-height: 1.5; }
.ingredient-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }

/* IMAGE SPREAD */
.image-spread { margin: 2.5rem -1.2rem; position: relative; overflow: hidden; }
.image-spread img { width: 100%; height: 280px; object-fit: cover; }
.image-spread figcaption { padding: 0.7rem 1.2rem; font-size: 0.8rem; color: var(--brown-mid); font-style: italic; background: var(--cream); }

/* HIGHLIGHT BOX */
.highlight-box { background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%); border-left: 4px solid var(--orange); padding: 1.2rem 1.5rem; margin: 1.5rem 0; border-radius: 0 6px 6px 0; }
.highlight-box h4 { color: var(--orange); margin-bottom: 0.5rem; font-size: 1rem; }
.highlight-box p { font-size: 0.93rem; color: var(--brown-mid); }

/* SIDEBAR NOTES */
.sidebar-note { background: var(--olive); color: var(--white); padding: 1.2rem; border-radius: 8px; }
.sidebar-note h4 { font-size: 0.95rem; margin-bottom: 0.5rem; color: var(--orange-light); }
.sidebar-note p { font-size: 0.88rem; line-height: 1.5; color: rgba(255,255,255,0.9); }
.sidebar-tip { background: var(--white); border: 1px solid var(--border); padding: 1.2rem; border-radius: 8px; }
.sidebar-tip h4 { font-size: 0.9rem; color: var(--olive-dark); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 1px; }
.sidebar-tip p { font-size: 0.88rem; color: var(--brown-mid); line-height: 1.5; }

/* RECIPE CARD */
.recipe-card { background: var(--white); border: 2px solid var(--olive); border-radius: 10px; padding: 1.5rem; margin: 2rem 0; }
.recipe-card h3 { color: var(--olive-dark); margin-bottom: 0.3rem; }
.recipe-card .recipe-tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--orange); margin-bottom: 1rem; display: inline-block; }
.recipe-list { list-style: none; margin: 1rem 0; display: grid; gap: 0.4rem; }
.recipe-list li { font-size: 0.92rem; padding-left: 1.2rem; position: relative; color: var(--brown-mid); }
.recipe-list li::before { content: '—'; position: absolute; left: 0; color: var(--olive); }

/* NEWSLETTER */
.newsletter { background: linear-gradient(135deg, var(--brown) 0%, var(--brown-mid) 100%); color: var(--white); padding: 2.5rem 1.5rem; border-radius: 12px; margin: 2.5rem 0; text-align: center; }
.newsletter h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 0.6rem; }
.newsletter p { color: rgba(255,255,255,0.8); margin-bottom: 1.2rem; font-size: 0.95rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.8rem; max-width: 420px; margin: 0 auto; }
.newsletter-form input[type="email"] { padding: 0.9rem 1rem; border: 1px solid rgba(255,255,255,0.3); border-radius: 6px; background: rgba(255,255,255,0.1); color: var(--white); font-size: 0.95rem; min-height: 44px; }
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form button { padding: 0.9rem 2rem; background: var(--orange); color: var(--white); border: none; border-radius: 6px; font-size: 0.95rem; font-weight: 600; cursor: pointer; min-height: 44px; transition: background 0.3s, transform 0.2s; }
.newsletter-form button:hover { background: var(--orange-light); transform: translateY(-1px); }

/* RELATED ARTICLES */
.related-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin: 2rem 0; }
.related-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.related-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(44,30,15,0.1); }
.related-card-body { padding: 1.2rem; }
.related-card-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--orange); margin-bottom: 0.4rem; display: inline-block; }
.related-card h4 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.related-card p { font-size: 0.85rem; color: var(--brown-mid); line-height: 1.4; }
.related-card-link { display: inline-block; margin-top: 0.7rem; font-size: 0.82rem; font-weight: 600; color: var(--olive); text-transform: uppercase; letter-spacing: 1px; }

/* COOKIE BANNER */
.cookie-banner { position: fixed; bottom: 1rem; right: 1rem; left: 1rem; background: var(--brown); color: var(--white); padding: 1.2rem; border-radius: 10px; z-index: 200; box-shadow: 0 8px 30px rgba(0,0,0,0.25); display: flex; flex-direction: column; gap: 0.8rem; font-size: 0.88rem; }
.cookie-toggle { display: none; }
.cookie-toggle:checked ~ .cookie-banner { display: none; }
.cookie-banner p { line-height: 1.4; }
.cookie-banner a { color: var(--orange-light); text-decoration: underline; }
.cookie-btns { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-btns label,
.cookie-btns a.cookie-decline { padding: 0.6rem 1.2rem; border-radius: 6px; font-size: 0.85rem; cursor: pointer; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.cookie-accept { background: var(--olive); color: var(--white); border: none; }
.cookie-decline { background: transparent; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.3); }

/* FOOTER */
.site-footer { background: var(--brown); color: rgba(255,255,255,0.7); padding: 2.5rem 1.2rem 1.5rem; margin-top: 3rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.footer-brand { font-family: var(--font-serif); font-size: 1.4rem; color: var(--white); font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--orange-light); }
.footer-disclaimer { font-size: 0.78rem; color: rgba(255,255,255,0.4); line-height: 1.5; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 0.8rem; }

/* LEGAL PAGES */
.legal-page { max-width: 800px; margin: 0 auto; padding: 2rem 1.2rem; }
.legal-page h1 { font-size: 1.8rem; margin-bottom: 1.5rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--olive); }
.legal-section { margin-bottom: 2rem; }
.legal-section h2 { font-size: 1.15rem; color: var(--olive-dark); margin-bottom: 0.6rem; }
.legal-section p { font-size: 0.92rem; color: var(--brown-mid); line-height: 1.7; margin-bottom: 0.5rem; }

/* SUCCESS PAGE */
.success-page { text-align: center; padding: 4rem 1.2rem; max-width: 600px; margin: 0 auto; }
.success-icon { font-size: 4rem; margin-bottom: 1rem; }
.success-page h1 { color: var(--olive); margin-bottom: 1rem; }
.success-page p { color: var(--brown-mid); margin-bottom: 2rem; font-size: 1.05rem; }
.btn-home { display: inline-block; padding: 0.9rem 2.5rem; background: var(--olive); color: var(--white); border-radius: 6px; font-weight: 600; min-height: 44px; transition: background 0.3s; }
.btn-home:hover { background: var(--olive-dark); color: var(--white); }

/* 404 PAGE */
.error-page { text-align: center; padding: 4rem 1.2rem; max-width: 700px; margin: 0 auto; }
.error-code { font-family: var(--font-serif); font-size: 6rem; color: var(--border); font-weight: 700; line-height: 1; }
.error-page h1 { margin: 1rem 0; color: var(--brown); }
.error-page p { color: var(--brown-mid); margin-bottom: 2rem; }

/* ARTICLE LIST (for sub-articles) */
.article-hero-small { background: var(--olive); color: var(--white); padding: 2.5rem 1.2rem; }
.article-hero-small h1 { color: var(--white); font-size: 1.8rem; margin-bottom: 0.5rem; }
.article-hero-small .hero-meta { color: rgba(255,255,255,0.6); }

/* CATEGORY TAGS */
.tag { display: inline-block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; padding: 0.3rem 0.7rem; border-radius: 3px; font-weight: 600; }
.tag-nutri { background: rgba(107,127,59,0.12); color: var(--olive); }
.tag-recipe { background: rgba(200,101,42,0.12); color: var(--orange); }
.tag-balance { background: rgba(184,155,74,0.12); color: var(--gold); }

/* THIN SEPARATOR */
.thin-sep { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* FACT STRIP */
.fact-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.fact-item { text-align: center; padding: 1.2rem 0.8rem; background: var(--cream); border-radius: 8px; }
.fact-num { font-family: var(--font-serif); font-size: 1.8rem; color: var(--orange); font-weight: 700; }
.fact-label { font-size: 0.78rem; color: var(--brown-mid); margin-top: 0.3rem; }

/* SCROLL ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (min-width: 600px) {
  .ingredient-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: row; }
  .cookie-banner { left: auto; max-width: 420px; }
  .image-spread img { height: 360px; }
  .fact-strip { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 1.9rem; }
  .nav-links { display: flex; }
  .burger { display: none; }
  .hero { padding: 4.5rem 2rem 3.5rem; }
  .hero h1 { font-size: 3rem; }
  .hero-intro { font-size: 1.2rem; }
  .main-wrap { padding: 3rem 2rem; }
  .article-layout { grid-template-columns: 1fr 300px; }
  .ingredient-grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .image-spread { margin: 3rem -2rem; }
  .image-spread img { height: 440px; }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: center; }
  .article-body p { font-size: 1.08rem; }
  .quote-sep blockquote { font-size: 1.4rem; }
}

@media (min-width: 1100px) {
  .hero h1 { font-size: 3.4rem; }
  .image-spread img { height: 500px; }
}
