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

:root {
  --peach: #FFCBA4;
  --orange: #FF8C42;
  --warm-yellow: #FFD166;
  --coral: #E8785A;
  --dark: #2D2D2D;
  --dark-light: #5A5A5A;
  --white: #FFFFFF;
  --off-white: #FFF9F2;
  --light-peach: #FFF0E5;
  --cream: #FDF6EE;
  --separator: #E8D5C4;
  --gradient-hero: linear-gradient(135deg, #FFCBA4 0%, #FF8C42 45%, #FFD166 100%);
  --gradient-warm: linear-gradient(180deg, #FFF0E5 0%, #FFFFFF 100%);
  --font-serif: Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  --font-sans: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --max-w: 1140px;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(45,45,45,.06);
  --shadow-md: 0 4px 20px rgba(45,45,45,.1);
  --shadow-lg: 0 8px 40px rgba(45,45,45,.12);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--dark); background: var(--white); line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a { color: var(--orange); text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--coral); }

/* HEADER */
.site-header { background: var(--white); border-bottom: 1px solid var(--separator); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: var(--max-w); margin: 0 auto; padding: .85rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--dark); letter-spacing: -.02em; }
.logo span { color: var(--orange); }
.nav-list { display: flex; list-style: none; gap: 1.5rem; }
.nav-list a { font-size: .88rem; font-weight: 500; color: var(--dark-light); text-transform: uppercase; letter-spacing: .06em; padding: .25rem 0; border-bottom: 2px solid transparent; transition: all .3s ease; }
.nav-list a:hover { color: var(--orange); border-bottom-color: var(--orange); }
.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: .3s; }

/* HERO */
.hero { background: var(--gradient-hero); padding: 4rem 1.25rem 3.5rem; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(transparent, var(--white)); }
.hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.hero-tag { display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--dark); background: rgba(255,255,255,.55); padding: .35rem .9rem; border-radius: 20px; margin-bottom: 1.5rem; backdrop-filter: blur(4px); }
.hero h1 { font-family: var(--font-serif); font-size: 2.4rem; line-height: 1.2; color: var(--dark); margin-bottom: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.hero-lead { font-size: 1.1rem; line-height: 1.7; color: var(--dark-light); max-width: 620px; }

/* MAIN LAYOUT */
.main-wrap { max-width: var(--max-w); margin: 0 auto; padding: 2.5rem 1.25rem; }
.article-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.article-body { max-width: 720px; }
.article-body h2 { font-family: var(--font-serif); font-size: 1.65rem; color: var(--dark); margin: 2.5rem 0 1rem; line-height: 1.3; letter-spacing: -.01em; }
.article-body h3 { font-family: var(--font-serif); font-size: 1.25rem; color: var(--dark); margin: 2rem 0 .75rem; }
.article-body p { margin-bottom: 1.15rem; color: var(--dark-light); }
.article-body > .separator { width: 60px; height: 2px; background: var(--separator); margin: 2.5rem 0; border: none; }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-box { background: var(--cream); border-radius: var(--radius); padding: 1.5rem; border-left: 3px solid var(--orange); }
.sidebar-box h4 { font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: .75rem; color: var(--dark); }
.sidebar-box ul { list-style: none; padding: 0; }
.sidebar-box li { padding: .4rem 0; font-size: .9rem; color: var(--dark-light); border-bottom: 1px solid var(--separator); position: relative; padding-left: 1.1rem; }
.sidebar-box li::before { content: '→'; position: absolute; left: 0; color: var(--orange); font-size: .8rem; }
.sidebar-box li:last-child { border-bottom: none; }
.sidebar-cta { background: var(--gradient-hero); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.sidebar-cta h4 { font-family: var(--font-serif); margin-bottom: .5rem; }
.sidebar-cta p { font-size: .88rem; color: var(--dark-light); margin-bottom: 1rem; }

/* QUOTE */
.pull-quote { border-left: 4px solid var(--orange); padding: 1.5rem 1.5rem 1.5rem 2rem; margin: 2.5rem 0; background: var(--light-peach); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.6; color: var(--dark); font-style: italic; position: relative; }
.pull-quote cite { display: block; font-size: .85rem; font-style: normal; color: var(--dark-light); margin-top: .75rem; font-family: var(--font-sans); }

/* CARDS */
.cards-section { margin: 2.5rem 0; }
.cards-section h2 { font-family: var(--font-serif); font-size: 1.65rem; margin-bottom: 1.5rem; text-align: center; }
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.card { background: var(--white); border: 1px solid var(--separator); border-radius: var(--radius); padding: 1.5rem; transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-num { font-family: var(--font-serif); font-size: 2rem; color: var(--orange); font-weight: 700; line-height: 1; margin-bottom: .5rem; }
.card h3 { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: .5rem; }
.card p { font-size: .9rem; color: var(--dark-light); }

/* HIGHLIGHT */
.highlight-box { background: var(--gradient-warm); border: 1px solid var(--separator); border-radius: var(--radius); padding: 2rem; margin: 2.5rem 0; }
.highlight-box h3 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 1rem; color: var(--dark); }
.highlight-list { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.highlight-item { display: flex; gap: .75rem; align-items: flex-start; font-size: .92rem; color: var(--dark-light); }
.highlight-icon { width: 28px; height: 28px; min-width: 28px; background: var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: .75rem; font-weight: 700; }

/* IMAGE SECTION */
.article-img { margin: 2.5rem 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.article-img figcaption { font-size: .82rem; color: var(--dark-light); text-align: center; padding: .75rem; font-style: italic; background: var(--cream); }

/* NEWSLETTER */
.newsletter-section { background: var(--gradient-hero); border-radius: var(--radius); padding: 2.5rem 1.5rem; margin: 3rem 0; text-align: center; }
.newsletter-section h2 { font-family: var(--font-serif); font-size: 1.6rem; margin-bottom: .5rem; color: var(--dark); }
.newsletter-section p { font-size: .95rem; color: var(--dark-light); margin-bottom: 1.5rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.newsletter-form { display: flex; flex-direction: column; gap: .75rem; max-width: 420px; margin: 0 auto; }
.newsletter-form input[type="email"] { padding: .85rem 1rem; border: 2px solid rgba(255,255,255,.6); border-radius: var(--radius); font-size: 1rem; background: rgba(255,255,255,.7); backdrop-filter: blur(4px); outline: none; transition: border-color .3s; font-family: var(--font-sans); }
.newsletter-form input[type="email"]:focus { border-color: var(--dark); }
.newsletter-form button { padding: .85rem 2rem; background: var(--dark); color: var(--white); border: none; border-radius: var(--radius); font-size: .95rem; font-weight: 600; cursor: pointer; transition: all .3s ease; min-height: 48px; font-family: var(--font-sans); }
.newsletter-form button:hover { background: #1a1a1a; transform: scale(1.02); }

/* RELATED */
.related-section { margin: 3rem 0; }
.related-section h2 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 1.5rem; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.related-card { display: block; background: var(--cream); border-radius: var(--radius); padding: 1.25rem; transition: all .3s ease; border: 1px solid transparent; }
.related-card:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.related-card h3 { font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: .35rem; color: var(--dark); }
.related-card p { font-size: .85rem; color: var(--dark-light); }

/* INLINE ARTICLE PAGES */
.page-hero { background: var(--gradient-warm); padding: 3rem 1.25rem 2.5rem; text-align: center; }
.page-hero h1 { font-family: var(--font-serif); font-size: 2rem; max-width: 700px; margin: 0 auto .75rem; line-height: 1.25; }
.page-hero p { font-size: 1rem; color: var(--dark-light); max-width: 560px; margin: 0 auto; }
.page-content { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.25rem; }
.page-content h2 { font-family: var(--font-serif); font-size: 1.5rem; margin: 2rem 0 .85rem; color: var(--dark); }
.page-content h3 { font-family: var(--font-serif); font-size: 1.2rem; margin: 1.5rem 0 .65rem; }
.page-content p { margin-bottom: 1rem; color: var(--dark-light); }

/* SUCCESS PAGE */
.success-wrap { text-align: center; padding: 5rem 1.25rem; max-width: 600px; margin: 0 auto; }
.success-icon { font-size: 3.5rem; margin-bottom: 1.5rem; }
.success-wrap h1 { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 1rem; }
.success-wrap p { color: var(--dark-light); margin-bottom: 2rem; }
.btn-primary { display: inline-block; padding: .85rem 2rem; background: var(--orange); color: var(--white); border-radius: var(--radius); font-weight: 600; transition: all .3s ease; min-height: 48px; line-height: 1.5; }
.btn-primary:hover { background: var(--coral); color: var(--white); transform: scale(1.03); }

/* LEGAL */
.legal-page { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.25rem; }
.legal-page h1 { font-family: var(--font-serif); font-size: 2rem; margin-bottom: .5rem; }
.legal-page .legal-date { font-size: .85rem; color: var(--dark-light); margin-bottom: 2rem; }
.legal-page h2 { font-family: var(--font-serif); font-size: 1.25rem; margin: 1.75rem 0 .65rem; color: var(--dark); }
.legal-page p { margin-bottom: .85rem; color: var(--dark-light); font-size: .92rem; }

/* 404 */
.error-wrap { text-align: center; padding: 5rem 1.25rem; }
.error-code { font-family: var(--font-serif); font-size: 6rem; font-weight: 700; color: var(--orange); line-height: 1; margin-bottom: .5rem; }
.error-wrap h1 { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 1rem; }
.error-wrap p { color: var(--dark-light); margin-bottom: 2rem; }

/* COOKIE BANNER */
#cookie-toggle { display: none; }
.cookie-banner { position: fixed; bottom: 1rem; right: 1rem; left: 1rem; max-width: 420px; background: var(--white); border: 1px solid var(--separator); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-lg); z-index: 999; transition: transform .4s ease, opacity .4s ease; }
#cookie-toggle:checked ~ .cookie-banner { transform: translateY(200%); opacity: 0; pointer-events: none; }
.cookie-text { font-size: .85rem; color: var(--dark-light); margin-bottom: 1rem; line-height: 1.6; }
.cookie-text a { color: var(--orange); text-decoration: underline; }
.cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-actions label, .cookie-actions a { padding: .55rem 1.1rem; border-radius: 8px; font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .3s ease; text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.cookie-accept { background: var(--orange); color: var(--white); border: none; }
.cookie-accept:hover { background: var(--coral); }
.cookie-decline { background: var(--cream); color: var(--dark-light); border: 1px solid var(--separator); }
.cookie-decline:hover { background: var(--separator); }

/* FOOTER */
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 2.5rem 1.25rem 1.5rem; margin-top: 3rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 1.5rem; }
.footer-logo { font-family: var(--font-serif); font-size: 1.4rem; color: var(--white); font-weight: 700; }
.footer-logo span { color: var(--orange); }
.footer-links { display: flex; flex-wrap: wrap; gap: .75rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .85rem; transition: color .3s; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem; }
.footer-disclaimer { font-size: .78rem; color: rgba(255,255,255,.45); line-height: 1.7; margin-bottom: .5rem; }
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.4); }

/* AUTHOR TAG */
.author-tag { font-size: .82rem; color: var(--dark-light); font-style: italic; margin-bottom: 1.5rem; }

/* STEP LIST */
.step-list { counter-reset: step; margin: 1.5rem 0; }
.step-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--separator); }
.step-item::before { counter-increment: step; content: counter(step); font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--orange); min-width: 36px; line-height: 1.2; }
.step-content h4 { font-family: var(--font-serif); font-size: 1rem; margin-bottom: .25rem; }
.step-content p { font-size: .9rem; color: var(--dark-light); margin: 0; }

/* FACT STRIP */
.fact-strip { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 2.5rem 0; padding: 2rem 1.25rem; background: var(--dark); border-radius: var(--radius); }
.fact-item { text-align: center; padding: .75rem; }
.fact-num { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; color: var(--orange); }
.fact-label { font-size: .82rem; color: rgba(255,255,255,.7); margin-top: .25rem; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-inner { animation: fadeUp .8s ease both; }
.card { animation: fadeUp .6s ease both; }
.card:nth-child(2) { animation-delay: .15s; }
.card:nth-child(3) { animation-delay: .3s; }
.card:nth-child(4) { animation-delay: .45s; }

/* RESPONSIVE */
@media (min-width: 600px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight-list { grid-template-columns: repeat(2, 1fr); }
  .fact-strip { grid-template-columns: repeat(3, 1fr); }
  .newsletter-form { flex-direction: row; }
  .newsletter-form input[type="email"] { flex: 1; }
  .cookie-banner { left: auto; }
}
@media (min-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .hero { padding: 5rem 2rem 4.5rem; }
  .burger { display: none !important; }
  .nav-list { display: flex !important; }
  .article-layout { grid-template-columns: 1fr 300px; }
  .page-hero h1 { font-size: 2.5rem; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 3.4rem; }
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .burger { display: flex; }
  .nav-list { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--white); padding: 1rem 1.25rem; border-bottom: 1px solid var(--separator); gap: .75rem; box-shadow: var(--shadow-md); }
  .nav-list.open { display: flex; }
}
