/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Nunito:wght@400;500;600;700&display=swap');

:root {
  --primary: #2d6a4f;
  --accent: #52b788;
  --bg: #faf8f5;
  --bg2: #f0ebe3;
  --text: #1b1b1b;
  --muted: #6b7280;
  --r: 16px;
  --sh: 0 8px 32px rgba(45,106,79,.12);
  --sh2: 0 2px 12px rgba(45,106,79,.08);
  --fw: 'Lora', serif;
  --fb: 'Nunito', sans-serif;
  --mw: 800px;
  --mww: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--fb); background: var(--bg); color: var(--text); line-height: 1.7; }
a { display: inline-block; text-align: center; color: var(--primary); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--r); }
h1,h2,h3,h4 { font-family: var(--fw); line-height: 1.3; }

/* ── HEADER ── */
.site-header { background: var(--bg); border-bottom: 1px solid var(--bg2); position: sticky; top: 0; z-index: 100; box-shadow: var(--sh2); }
.header-inner { max-width: var(--mww); margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-logo { font-family: var(--fw); font-size: 1.5rem; font-weight: 700; color: var(--primary); text-decoration: none; letter-spacing: -.02em; }
.site-logo:hover { color: var(--accent); }
.site-nav { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.site-nav a { font-weight: 600; font-size: .88rem; color: var(--text); padding: .4rem .85rem; border-radius: 8px; transition: background .2s, color .2s; }
.site-nav a:hover { background: var(--bg2); color: var(--primary); }
.burger-btn { display: none; background: none; border: none; cursor: pointer; padding: .5rem; flex-direction: column; gap: 5px; }
.burger-btn span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s; }

/* ── BREADCRUMBS ── */
.breadcrumbs { max-width: var(--mww); margin: 0 auto; padding: .7rem 1.5rem; font-size: .83rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); font-size: .83rem; padding: 0; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { opacity: .5; }

/* ── ARTICLE ── */
.article-wrapper { max-width: var(--mw); margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin-bottom: 1.5rem; }
.article-rubric { background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .28rem .85rem; border-radius: 20px; display: inline-block; }
.article-time, .article-author, .article-date { font-size: .84rem; color: var(--muted); }
.article-title { font-size: clamp(1.7rem,5vw,2.45rem); color: var(--primary); margin-bottom: 1rem; font-weight: 700; }
.article-lead { font-size: 1.08rem; color: var(--muted); margin-bottom: 2rem; line-height: 1.8; border-left: 4px solid var(--accent); padding-left: 1.1rem; }
.article-img { margin-bottom: 2rem; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); }
.article-img img { width: 100%; object-fit: cover; max-height: 420px; border-radius: 0; }
.article-body h2 { font-size: 1.3rem; color: var(--primary); margin: 2.2rem 0 .75rem; }
.article-body p { margin-bottom: 1.2rem; }

/* ── PULL QUOTE ── */
.pull-quote { background: var(--bg2); border-left: 5px solid var(--primary); border-radius: 0 var(--r) var(--r) 0; padding: 1.5rem 2rem; margin: 2.2rem 0; font-family: var(--fw); font-style: italic; font-size: 1.15rem; color: var(--primary); box-shadow: var(--sh2); }
.pull-quote cite { display: block; font-size: .83rem; color: var(--muted); font-style: normal; margin-top: .75rem; }

/* ── TAGS ── */
.article-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.75rem 0 1rem; }
.article-tags a { background: var(--bg2); color: var(--primary); font-size: .8rem; font-weight: 600; padding: .28rem .85rem; border-radius: 20px; transition: background .2s, color .2s; text-align: center; }
.article-tags a:hover { background: var(--primary); color: #fff; }

/* ── UPDATED BADGE ── */
.updated-badge { display: inline-flex; align-items: center; gap: .4rem; background: var(--bg2); border: 1px solid var(--accent); color: var(--primary); font-size: .83rem; font-weight: 600; padding: .38rem 1rem; border-radius: 20px; margin-bottom: 1.5rem; }
.updated-badge::before { content: '🔄'; font-size: .9rem; }

/* ── DISCLAIMER ── */
.article-disclaimer { background: var(--bg2); border-radius: var(--r); padding: 1.2rem 1.5rem; font-size: .87rem; color: var(--muted); border: 1px solid #ddd6c8; margin-top: 2rem; line-height: 1.65; }
.article-disclaimer strong { color: var(--primary); }

/* ── ACCORDION (Terminology) ── */
.terminology-section { margin: 3rem 0; background: var(--bg2); border-radius: var(--r); padding: 1.5rem 1.75rem; box-shadow: var(--sh2); }
.terminology-section > h2 { font-size: 1.2rem; color: var(--primary); margin-bottom: 1rem; }
.accordion details { border-bottom: 1px solid #ddd6c8; }
.accordion details:last-child { border-bottom: none; }
.accordion summary { font-weight: 700; color: var(--primary); cursor: pointer; padding: .9rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: .94rem; font-family: var(--fb); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 1.2rem; color: var(--accent); flex-shrink: 0; transition: transform .2s; }
.accordion details[open] > summary::after { content: '−'; }
.accordion details > p { padding: .5rem 0 1rem; color: var(--muted); font-size: .9rem; line-height: 1.7; margin: 0; }

/* ── FAQ ── */
.faq-section { margin: 3rem 0; }
.faq-section > h2 { font-size: 1.2rem; color: var(--primary); margin-bottom: 1.2rem; }
.faq-item { background: var(--bg2); border-radius: var(--r); margin-bottom: .7rem; box-shadow: var(--sh2); overflow: hidden; }
.faq-item summary { font-weight: 700; color: var(--primary); cursor: pointer; padding: 1rem 1.25rem; list-style: none; display: flex; justify-content: space-between; align-items: center; font-family: var(--fb); font-size: .94rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--accent); flex-shrink: 0; }
.faq-item details[open] > summary::after { content: '−'; }
.faq-item details > p { padding: .25rem 1.25rem 1rem; color: var(--text); font-size: .91rem; line-height: 1.7; margin: 0; }

/* ── READ ALSO ── */
.read-also { margin: 3rem 0; }
.read-also > h2 { font-size: 1.2rem; color: var(--primary); margin-bottom: 1.2rem; }
.read-also-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 1rem; }
.read-also-card { background: var(--bg2); border-radius: var(--r); padding: 1.25rem; box-shadow: var(--sh2); transition: transform .2s, box-shadow .2s; display: block; text-align: left; text-decoration: none; }
.read-also-card:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.card-rubric { font-size: .73rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .45rem; display: block; text-align: left; }
.read-also-card h3 { font-size: .93rem; color: var(--primary); font-weight: 600; line-height: 1.4; font-family: var(--fw); text-align: left; }

/* ── SUBSCRIBE ── */
.subscribe-section { background: var(--primary); color: #fff; border-radius: var(--r); padding: 2.5rem 2rem; text-align: center; margin: 3rem 0; box-shadow: var(--sh); }
.subscribe-section h2 { font-size: 1.4rem; color: #fff; margin-bottom: .7rem; }
.subscribe-section > p { opacity: .85; margin-bottom: 1.5rem; font-size: .95rem; }
.subscribe-form { display: flex; gap: .75rem; max-width: 420px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.subscribe-form input[type="email"] { flex: 1; min-width: 200px; padding: .8rem 1.2rem; border: none; border-radius: 10px; font-family: var(--fb); font-size: .95rem; background: rgba(255,255,255,.95); color: var(--text); }
.subscribe-form input[type="email"]:focus { outline: 2px solid var(--accent); }
.subscribe-form button { background: var(--accent); color: #fff; border: none; border-radius: 10px; padding: .8rem 1.5rem; font-family: var(--fb); font-weight: 700; font-size: .95rem; cursor: pointer; transition: background .2s, transform .15s; }
.subscribe-form button:hover { background: #3a9e6e; transform: scale(1.03); }

/* ── FOOTER ── */
.site-footer { background: var(--primary); color: rgba(255,255,255,.85); padding: 2.5rem 1.5rem 1.5rem; margin-top: 2rem; }
.footer-inner { max-width: var(--mww); margin: 0 auto; }
.footer-top { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: center; margin-bottom: 1.75rem; }
.footer-logo { font-family: var(--fw); font-size: 1.4rem; color: #fff; font-weight: 700; text-decoration: none; }
.footer-logo:hover { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.footer-links a { color: rgba(255,255,255,.8); font-size: .875rem; padding: .2rem 0; }
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer { font-size: .79rem; opacity: .62; line-height: 1.65; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.2rem; margin-bottom: 1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; font-size: .8rem; opacity: .6; border-top: 1px solid rgba(255,255,255,.1); padding-top: .9rem; }

/* ── COOKIE BANNER ── */
.cookie-toggle { display: none; }
.cookie-banner { position: fixed; bottom: 1.25rem; right: 1.25rem; background: #fff; border-radius: var(--r); padding: 1.25rem 1.5rem; box-shadow: 0 8px 32px rgba(0,0,0,.18); max-width: 320px; z-index: 9999; border: 1px solid var(--bg2); }
.cookie-banner p { font-size: .87rem; color: var(--text); line-height: 1.6; margin-bottom: 1rem; }
.cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.cookie-btn-accept, .cookie-btn-reject { border: none; border-radius: 8px; padding: .48rem 1rem; font-family: var(--fb); font-weight: 700; font-size: .81rem; cursor: pointer; display: inline-block; text-align: center; }
.cookie-btn-accept { background: var(--primary); color: #fff; transition: background .2s; }
.cookie-btn-accept:hover { background: var(--accent); }
.cookie-btn-reject { background: var(--bg2); color: var(--text); transition: background .2s; }
.cookie-btn-reject:hover { background: #ddd6c8; }
.cookie-more { font-size: .8rem; color: var(--muted); }
.cookie-toggle:checked ~ .cookie-banner { display: none; }

/* ── 404 ── */
.error-page { display: flex; align-items: center; justify-content: center; min-height: 70vh; text-align: center; padding: 2rem; flex-direction: column; }
.error-code { font-size: clamp(6rem,22vw,11rem); color: var(--accent); font-family: var(--fw); line-height: 1; opacity: .35; margin-bottom: .25rem; }
.error-title { font-size: 1.75rem; color: var(--primary); margin-bottom: .75rem; }
.error-msg { color: var(--muted); margin-bottom: 2rem; }
.error-btn { background: var(--primary); color: #fff !important; padding: .85rem 2.2rem; border-radius: 12px; font-weight: 700; font-size: .98rem; text-decoration: none; transition: background .2s, transform .15s; }
.error-btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .burger-btn { display: flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 1rem 1.5rem; flex-direction: column; align-items: flex-start; border-bottom: 1px solid var(--bg2); box-shadow: var(--sh); z-index: 99; }
  .site-nav.open { display: flex; }
}
@media (max-width: 600px) {
  .article-wrapper { padding: 1.5rem 1rem 3rem; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .subscribe-section { padding: 2rem 1rem; }
  .read-also-grid { grid-template-columns: 1fr; }
  .cookie-banner { left: 1rem; right: 1rem; max-width: none; }
  .pull-quote { padding: 1.1rem 1.25rem; }
}

/* ── POLICY PAGES ── */
.policy-wrapper { max-width: 780px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.policy-wrapper h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); color: var(--primary); margin-bottom: .5rem; }
.policy-subtitle { color: var(--muted); font-size: .9rem; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--bg2); }
.policy-wrapper h2 { font-size: 1.2rem; color: var(--primary); margin: 2.2rem 0 .75rem; padding-left: .9rem; border-left: 3px solid var(--accent); }
.policy-wrapper p { margin-bottom: 1.1rem; font-size: .97rem; line-height: 1.75; }
.policy-wrapper ul { margin: .5rem 0 1.2rem 1.4rem; }
.policy-wrapper ul li { margin-bottom: .5rem; font-size: .95rem; line-height: 1.7; }
.policy-wrapper a { display: inline; text-align: left; color: var(--primary); text-decoration: underline; }
.policy-wrapper a:hover { color: var(--accent); }
.policy-updated { display: inline-block; background: var(--bg2); border-radius: 8px; padding: .35rem .9rem; font-size: .82rem; color: var(--muted); margin-bottom: 1.5rem; }

/* ── SUCCESS PAGE ── */
.success-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 72vh; text-align: center; padding: 2rem 1.5rem; }
.success-icon { font-size: 4rem; margin-bottom: 1.25rem; animation: pop .4s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-title { font-size: clamp(2rem, 6vw, 3rem); color: var(--primary); margin-bottom: .85rem; }
.success-sub { color: var(--muted); font-size: 1.05rem; max-width: 480px; line-height: 1.7; margin-bottom: 2.5rem; }
.success-btn { background: var(--primary); color: #fff !important; padding: .9rem 2.4rem; border-radius: 12px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: background .2s, transform .15s; box-shadow: var(--sh); }
.success-btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
@media (max-width: 600px) { .policy-wrapper { padding: 2rem 1rem 3.5rem; } }