/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
  --primary: #111827;
  --accent: #ff6b35;
  --bg: #ffffff;
  --bg2: #f9fafb;
  --text: #111827;
  --text-light: #6b7280;
  --font-h: 'DM Serif Display', serif;
  --font-b: 'DM Sans', sans-serif;
  --mw: 1200px;
  --mw-art: 780px;
  --tr: .22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-b); color: var(--text); background: var(--bg); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.2; }
a { display: inline-block; text-align: center; color: inherit; text-decoration: none; transition: color var(--tr), opacity var(--tr); }
p { line-height: 1.78; }

/* ── COOKIE BANNER ── */
.cookie-toggle { display: none; }
.cookie-banner {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  background: var(--primary); color: #fff;
  padding: 1.25rem 1.5rem; max-width: 320px; width: calc(100% - 3rem);
  border-left: 4px solid var(--accent);
}
.cookie-toggle:checked ~ .cookie-banner { display: none; }
.cookie-banner p { font-size: .875rem; margin-bottom: 1rem; line-height: 1.55; color: rgba(255,255,255,.85); }
.cookie-banner p a { color: var(--accent); text-decoration: underline; display: inline; text-align: left; }
.cookie-banner-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.cookie-banner-actions label {
  font-size: .8125rem; padding: .5rem 1.125rem; cursor: pointer;
  font-family: var(--font-b); font-weight: 600; transition: all var(--tr);
  display: inline-block; text-align: center;
}
.cookie-banner-actions label.accept { background: var(--accent); color: #fff; }
.cookie-banner-actions label.accept:hover { opacity: .85; }
.cookie-banner-actions label.decline { border: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.8); }
.cookie-banner-actions label.decline:hover { border-color: #fff; color: #fff; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg); border-bottom: 1px solid #e5e7eb;
  padding: .875rem 0; transition: box-shadow var(--tr);
}
.site-header.scrolled { box-shadow: 0 1px 14px rgba(0,0,0,.07); }
.header-inner {
  max-width: var(--mw); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-logo {
  font-family: var(--font-h); font-size: 1.4375rem; color: var(--primary);
  display: flex; align-items: center; gap: .375rem; white-space: nowrap; text-align: left;
}
.site-nav { display: none; gap: 1.75rem; align-items: center; }
.site-nav a {
  font-size: .9rem; color: var(--text-light); font-weight: 500;
  position: relative; padding: .25rem 0;
}
.site-nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--accent); transition: width .25s;
}
.site-nav a:hover { color: var(--primary); }
.site-nav a:hover::after { width: 100%; }
.burger {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px; padding: .5rem;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--primary); transition: all .25s; }
@media (min-width: 768px) { .site-nav { display: flex; } .burger { display: none; } }

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none; position: fixed; inset: 0; background: var(--bg);
  z-index: 200; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--font-h); font-size: 1.75rem; color: var(--primary); }
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--primary);
}

/* ── LAYOUT ── */
.container { max-width: var(--mw); margin: 0 auto; padding: 0 1.5rem; }
.container-art { max-width: var(--mw-art); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }
.section-label {
  font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: .75rem; font-family: var(--font-b);
}
.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 2.5rem; }

/* ── HOME HERO ── */
.hero { background: var(--primary); color: #fff; padding: 6rem 1.5rem 5rem; text-align: center; }
.hero-label {
  font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.25rem; font-weight: 600; font-family: var(--font-b);
}
.hero h1 { font-size: clamp(2.25rem, 6vw, 4rem); max-width: 820px; margin: 0 auto 1.5rem; }
.hero p { font-size: 1.125rem; color: rgba(255,255,255,.72); max-width: 580px; margin: 0 auto 2.5rem; }
.btn {
  padding: .875rem 2rem; font-family: var(--font-b); font-size: .9375rem;
  font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: all var(--tr);
}
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: transparent; color: var(--accent); }

/* ── ARTICLE CARDS ── */
.articles-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 600px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid #e5e7eb; overflow: hidden; transition: border-color var(--tr); }
.card:hover { border-color: var(--accent); }
.card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 1.5rem; }
.card-cat { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: .5rem; font-family: var(--font-b); }
.card-title { font-family: var(--font-h); font-size: 1.1875rem; line-height: 1.3; margin-bottom: .75rem; color: var(--primary); }
.card-title a { display: block; text-align: left; color: inherit; }
.card-title a:hover { color: var(--accent); }
.card-date { font-size: .8125rem; color: var(--text-light); font-family: var(--font-b); }

/* ── ABOUT ── */
.about-section { background: var(--bg2); padding: 4.5rem 0; }
.about-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-text h2 { font-size: clamp(1.625rem, 3vw, 2.125rem); margin-bottom: 1.25rem; }
.about-text p { color: var(--text-light); margin-bottom: 1rem; font-size: 1rem; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.stat-item { border-left: 3px solid var(--accent); padding-left: 1rem; }
.stat-num { font-family: var(--font-h); font-size: 2rem; color: var(--primary); line-height: 1; margin-bottom: .25rem; }
.stat-label { font-size: .875rem; color: var(--text-light); }

/* ── NEWSLETTER ── */
.newsletter-section { padding: 4.5rem 0; }
.newsletter-inner { background: var(--primary); color: #fff; padding: 3.5rem 2rem; text-align: center; }
.newsletter-inner h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .75rem; }
.newsletter-inner > p { color: rgba(255,255,255,.7); margin-bottom: 2rem; font-size: 1.0625rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.newsletter-form { display: flex; gap: .875rem; flex-wrap: wrap; justify-content: center; max-width: 480px; margin: 0 auto; }
.newsletter-form input[type='email'] {
  flex: 1; min-width: 220px; padding: .875rem 1.25rem;
  border: none; border-bottom: 2px solid rgba(255,255,255,.3);
  font-family: var(--font-b); font-size: .9375rem; background: rgba(255,255,255,.08); color: #fff;
}
.newsletter-form input[type='email']::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form input[type='email']:focus { outline: none; border-bottom-color: var(--accent); }
.newsletter-form button {
  padding: .875rem 1.75rem; background: var(--accent); color: #fff;
  border: none; font-family: var(--font-b); font-size: .9375rem; font-weight: 600; cursor: pointer; transition: opacity var(--tr);
}
.newsletter-form button:hover { opacity: .85; }

/* ── FOOTER ── */
footer.site-footer { background: var(--primary); color: #fff; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-col h4 { font-family: var(--font-h); font-size: 1.0625rem; margin-bottom: 1.25rem; color: #fff; }
.footer-col a { display: block; text-align: left; color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: .625rem; transition: color var(--tr); }
.footer-col a:hover { color: var(--accent); }
.footer-col p { color: rgba(255,255,255,.55); font-size: .9rem; line-height: 1.65; }
.footer-logo { font-family: var(--font-h); font-size: 1.375rem; color: #fff; margin-bottom: 1rem; display: block; text-align: left; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
}
.footer-bottom p { color: rgba(255,255,255,.4); font-size: .8125rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,.4); font-size: .8125rem; display: inline-block; transition: color var(--tr); }
.footer-legal a:hover { color: rgba(255,255,255,.8); }

/* ── ARTICLE HERO ── */
.article-hero { background: #f4ede6; padding: 4rem 1.5rem 3rem; text-align: center; }
.article-hero-cat {
  font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 1rem; font-family: var(--font-b);
}
.article-hero h1 { font-size: clamp(1.875rem, 5vw, 3rem); max-width: 720px; margin: 0 auto 1.25rem; color: var(--primary); }
.article-hero-lead { font-size: 1.0625rem; color: #4b5563; max-width: 620px; margin: 0 auto; font-style: italic; line-height: 1.75; }
.article-hero-meta { margin-top: 1.5rem; font-size: .875rem; color: #6b7280; font-family: var(--font-b); }
.article-hero-meta .dot { opacity: .4; margin: 0 .375rem; }

/* ── BREADCRUMBS ── */
.breadcrumbs { padding: .875rem 0; border-bottom: 1px solid #e5e7eb; }
.breadcrumbs-nav { display: flex; flex-wrap: wrap; gap: .375rem; align-items: center; font-size: .875rem; color: var(--text-light); }
.breadcrumbs-nav a { color: var(--text-light); text-decoration: underline; text-decoration-color: transparent; transition: color var(--tr), text-decoration-color var(--tr); }
.breadcrumbs-nav a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.breadcrumbs-nav .sep { opacity: .35; }

/* ── ARTICLE BODY ── */
.article-body { padding: 2.5rem 0; }
.article-body h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); margin: 2.5rem 0 1rem; color: var(--primary); }
.article-body p { margin-bottom: 1.25rem; color: #374151; font-size: 1.0625rem; line-height: 1.8; }
.article-body blockquote {
  border-left: 4px solid var(--accent); padding: 1.25rem 1.75rem;
  background: var(--bg2); margin: 2.5rem 0; font-family: var(--font-h);
  font-size: 1.1875rem; color: var(--primary); font-style: italic; line-height: 1.5;
}
.article-body blockquote footer {
  font-family: var(--font-b); font-size: .875rem; color: var(--text-light);
  margin-top: .75rem; font-style: normal;
}

/* ── TAGS ── */
.article-tags { padding: 2rem 0; border-top: 1px solid #e5e7eb; display: flex; flex-wrap: wrap; gap: .625rem; align-items: center; }
.tag-pill {
  background: var(--bg2); color: var(--primary); padding: .375rem .875rem;
  font-size: .8125rem; font-weight: 500; border: 1px solid #e5e7eb;
  transition: all var(--tr); font-family: var(--font-b);
}
.tag-pill:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.share-btns { display: flex; gap: .75rem; margin-top: .75rem; width: 100%; flex-wrap: wrap; }
.share-btn {
  padding: .5rem 1.125rem; font-size: .8125rem; font-weight: 600;
  border: 2px solid currentColor; display: inline-flex; align-items: center;
  gap: .375rem; cursor: pointer; font-family: var(--font-b); background: none; transition: all var(--tr);
}
.share-btn.fb { color: #1877f2; border-color: #1877f2; }
.share-btn.fb:hover { background: #1877f2; color: #fff; }
.share-btn.copy { color: var(--primary); border-color: var(--primary); }
.share-btn.copy:hover { background: var(--primary); color: #fff; }

/* ── CTA BANNER ── */
.cta-banner { background: var(--accent); color: #fff; padding: 4rem 1.5rem; text-align: center; }
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); margin-bottom: .875rem; }
.cta-banner > p { color: rgba(255,255,255,.88); margin-bottom: 2rem; font-size: 1.0625rem; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.65; }
.btn-white {
  background: #fff; color: var(--accent); padding: .875rem 2.25rem;
  font-family: var(--font-b); font-weight: 700; font-size: .9375rem;
  border: 2px solid #fff; cursor: pointer; transition: all var(--tr);
}
.btn-white:hover { background: transparent; color: #fff; }

/* ── AUTHOR BIO ── */
.author-bio { padding: 2.5rem 0; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; margin: 1.5rem 0; }
.author-bio-inner { display: flex; gap: 1.5rem; align-items: flex-start; }
.author-avatar {
  width: 68px; height: 68px; flex-shrink: 0;
  background: var(--bg2); border: 2px solid #e5e7eb;
  display: flex; align-items: center; justify-content: center; font-size: 1.75rem;
}
.author-role { font-size: .8125rem; color: var(--accent); font-weight: 600; margin-bottom: .375rem; font-family: var(--font-b); display: block; text-align: left; }
.author-bio-text h4 { font-family: var(--font-h); font-size: 1.125rem; margin-bottom: .375rem; }
.author-bio-text p { font-size: .9375rem; color: var(--text-light); line-height: 1.65; }
@media (max-width: 480px) { .author-bio-inner { flex-direction: column; } }

/* ── NEWSLETTER WIDGET ── */
.newsletter-widget { background: var(--bg2); padding: 2.25rem; margin: 2.5rem 0; border-left: 4px solid var(--accent); }
.newsletter-widget h3 { font-family: var(--font-h); font-size: 1.375rem; margin-bottom: .625rem; }
.newsletter-widget p { color: var(--text-light); margin-bottom: 1.25rem; font-size: .9375rem; }
.newsletter-widget-form { display: flex; gap: .75rem; flex-wrap: wrap; }
.newsletter-widget-form input[type='email'] {
  flex: 1; min-width: 200px; padding: .75rem 1rem;
  border: 1px solid #e5e7eb; font-family: var(--font-b); font-size: .9375rem; background: #fff;
}
.newsletter-widget-form input[type='email']:focus { outline: none; border-color: var(--accent); }
.newsletter-widget-form button {
  padding: .75rem 1.5rem; background: var(--accent); color: #fff;
  border: none; font-family: var(--font-b); font-weight: 600; cursor: pointer; transition: opacity var(--tr);
}
.newsletter-widget-form button:hover { opacity: .85; }

/* ── RELATED ARTICLES ── */
.related-section { padding: 3rem 0 4rem; }
.related-section h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); margin-bottom: 1.75rem; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 600px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card { border: 1px solid #e5e7eb; overflow: hidden; transition: border-color var(--tr); display: block; text-align: left; }
.related-card:hover { border-color: var(--accent); }
.related-card-placeholder { aspect-ratio: 16/9; background: var(--bg2); }
.related-card-body { padding: 1rem; }
.related-card-cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); font-weight: 600; margin-bottom: .375rem; font-family: var(--font-b); display: block; text-align: left; }
.related-card-title { font-family: var(--font-h); font-size: .9375rem; line-height: 1.35; color: var(--primary); margin-bottom: .375rem; display: block; text-align: left; }
.related-card-date { font-size: .8125rem; color: var(--text-light); display: block; text-align: left; }

/* ── POLICY PAGES ── */
.policy-hero { background: var(--bg2); padding: 3rem 1.5rem; text-align: center; border-bottom: 1px solid #e5e7eb; }
.policy-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--primary); margin-bottom: .625rem; }
.policy-hero p { color: var(--text-light); font-size: 1rem; }
.policy-content { padding: 3rem 1.5rem; max-width: var(--mw-art); margin: 0 auto; }
.policy-content h2 { font-size: 1.375rem; margin: 2rem 0 .75rem; color: var(--primary); padding-bottom: .5rem; border-bottom: 1px solid #e5e7eb; }
.policy-content p { color: #374151; margin-bottom: 1rem; line-height: 1.8; font-size: 1rem; }
.policy-content ul { margin: 0 0 1rem 1.5rem; color: #374151; line-height: 1.8; }
.policy-content ul li { margin-bottom: .375rem; font-size: 1rem; }
.policy-updated { font-size: .875rem; color: var(--text-light); font-style: italic; margin-bottom: 2rem; }

/* ── SUCCESS ── */
.success-page { min-height: 75vh; display: flex; align-items: center; justify-content: center; padding: 4rem 1.5rem; text-align: center; }
.success-inner { max-width: 520px; }
.success-icon { font-size: 3.5rem; margin-bottom: 1.5rem; display: block; }
.success-inner h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--primary); margin-bottom: 1rem; }
.success-inner p { color: var(--text-light); font-size: 1.125rem; margin-bottom: 2.5rem; line-height: 1.65; }
.btn-primary {
  background: var(--accent); color: #fff; padding: .9375rem 2.25rem;
  font-family: var(--font-b); font-weight: 700; font-size: 1rem;
  border: 2px solid var(--accent); cursor: pointer; transition: all var(--tr);
}
.btn-primary:hover { background: transparent; color: var(--accent); }

@media (max-width: 599px) {
  .hero { padding: 4rem 1.25rem 3.5rem; }
  .newsletter-inner { padding: 2.5rem 1.25rem; }
  .section { padding: 3rem 0; }
  .about-section { padding: 3rem 0; }
}

/* ── FOOTER DISCLAIMER ── */
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}
.footer-disclaimer p {
  color: rgba(255,255,255,.38);
  font-size: .8rem;
  line-height: 1.65;
  max-width: 860px;
}
.footer-disclaimer strong {
  color: rgba(255,255,255,.55);
  font-weight: 600;
}
