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

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,400&family=DM+Sans:wght@400;500;600&display=swap');

html {scroll-behavior: smooth;}
html, body {overflow-x:hidden;}
a {display: inline-block; text-align: center;}

:root {
  --bg: #FAFAF7;
  --bg-alt: #F2F0EA;
  --text: #1A1A1A;
  --text-muted: #6B6860;
  --accent: #C4553A;
  --accent-hover: #A8432C;
  --green: #2C5F4A;
  --green-light: #3A7A60;
  --divider: #D6D3CB;
  --card-bg: #FFFFFF;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', 'Georgia', serif;
  --font-ui: 'DM Sans', 'Helvetica Neue', sans-serif;
  --max-w: 780px;
  --max-w-wide: 1100px;
  --spacing: 2rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.78;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER / NAV ─────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--divider);
  background: var(--bg);
  position: sticky; top: 0; z-index: 100;
}
.site-header__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-logo span { color: var(--accent); }
.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.25s;
}
.site-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; z-index: 200;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: var(--text);
  position: absolute; left: 0; transition: 0.3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: 0; right: -100%; width: 70vw; height: 100vh;
    background: var(--bg); flex-direction: column; justify-content: center;
    gap: 2rem; transition: right 0.35s ease; padding: 2rem;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
  }
  .site-nav.open { right: 0; }
  .site-nav a { font-size: 1.1rem; }
}

/* ── BREADCRUMBS ──────────────────────────────────────────── */
.breadcrumbs {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: var(--max-w);
  margin: 1.5rem auto 0;
  padding: 0 2rem;
  letter-spacing: 0.03em;
}
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  text-align: left;
  display: inline;
  transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 0.4rem; opacity: 0.5; }

/* ── ARTICLE ──────────────────────────────────────────────── */
.article-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem 3rem;
}
.article-meta {
  font-family: var(--font-ui);
  display: flex; align-items: center; gap: 1rem;
  margin: 2rem 0 1.5rem;
  flex-wrap: wrap;
}
.article-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(196,85,58,0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  text-decoration: none;
}
.article-reading-time {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 0.4rem;
}
.article-reading-time svg { width: 16px; height: 16px; stroke: var(--text-muted); }

.article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.article-hero {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
  margin: 1.5rem 0 2.5rem;
}

.article-divider {
  border: none;
  height: 1px;
  background: var(--divider);
  margin: 2.5rem 0;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
  color: var(--text);
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 0.8rem;
  color: var(--text);
}
.article-body p { margin-bottom: 1.2rem; }
.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.article-body li { margin-bottom: 0.5rem; }

/* Pull quote */
.pull-quote {
  border-left: 4px solid var(--accent);
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  background: var(--bg-alt);
  position: relative;
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--green);
  margin: 0;
}
.pull-quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: -10px; left: 12px;
  line-height: 1;
}

/* Author box */
.article-author-box {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: 4px;
  margin: 2rem 0;
}
.author-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  flex-shrink: 0;
}
.author-info { font-family: var(--font-ui); }
.author-name { font-weight: 600; font-size: 0.95rem; }
.author-bio { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Source info */
.article-sources {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 1.2rem 1.5rem;
  border-radius: 4px;
  margin: 2rem 0;
  line-height: 1.6;
}
.article-sources strong { color: var(--text); }

/* Read also */
.read-also {
  margin: 3rem 0;
}
.read-also__heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--text);
}
.read-also__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.read-also__card {
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: 4px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.3s, transform 0.3s;
}
.read-also__card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.read-also__card-cat {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
}
.read-also__card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.5rem 0 0.6rem;
  line-height: 1.3;
  text-align: left;
}
.read-also__card-time {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── SUBSCRIBE ────────────────────────────────────────────── */
.subscribe-section {
  background: var(--green);
  color: #fff;
  padding: 3rem 2rem;
  border-radius: 4px;
  margin: 3rem 0;
  text-align: center;
}
.subscribe-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}
.subscribe-section p {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}
.subscribe-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  gap: 0.5rem;
}
.subscribe-form input[type="email"] {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 3px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}
.subscribe-form input[type="email"]::placeholder { color: rgba(255,255,255,0.55); }
.subscribe-form input[type="email"]:focus { border-color: #fff; }
.subscribe-form button {
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.25s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.subscribe-form button:hover { background: var(--accent-hover); }

@media (max-width: 500px) {
  .subscribe-form { flex-direction: column; }
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--divider);
  background: var(--bg-alt);
  padding: 3rem 2rem 2rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
}
.footer-brand span { color: var(--accent); }
.footer-disclaimer {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
  line-height: 1.6;
  max-width: 480px;
}
.footer-links {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--divider);
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ── COOKIE MODAL ─────────────────────────────────────────── */
.cookie-modal {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  max-width: 380px;
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 9999;
  font-family: var(--font-ui);
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}
.cookie-modal p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.cookie-modal__btns { display: flex; gap: 0.6rem; }
.cookie-modal__btns button {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: 3px;
  border: none;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: 0.25s;
}
.cookie-btn-accept { background: var(--green); color: #fff; }
.cookie-btn-accept:hover { background: var(--green-light); }
.cookie-btn-decline { background: var(--bg-alt); color: var(--text); border: 1px solid var(--divider) !important; }
.cookie-btn-decline:hover { background: var(--divider); }
.cookie-modal.hidden { display: none; }

/* ── HOME HERO ────────────────────────────────────────────── */
.home-hero {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  text-align: center;
}
.home-hero__tagline {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.home-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 700px;
  margin: 0 auto 1.2rem;
}
.home-hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}
.home-hero__divider {
  width: 60px; height: 3px;
  background: var(--accent);
  margin: 2.5rem auto;
}

/* ── POLICY / TERMS PAGES ─────────────────────────────────── */
.legal-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--text);
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 0.8rem;
  color: var(--text);
}
.legal-page p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── SUCCESS PAGE ─────────────────────────────────────────── */
.success-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8rem 2rem;
  text-align: center;
}
.success-page__icon {
  width: 80px; height: 80px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 2rem;
}
.success-page__icon svg { width: 40px; height: 40px; stroke: #fff; }
.success-page h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}
.success-page p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.success-page a.btn-home {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.25s;
}
.success-page a.btn-home:hover { background: var(--accent-hover); }

/* ── 404 ──────────────────────────────────────────────────── */
.page-404 {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8rem 2rem;
  text-align: center;
}
.page-404__big {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  line-height: 1;
  color: var(--bg-alt);
  position: relative;
}
.page-404__big span { color: var(--accent); }
.page-404 h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 1rem 0 0.8rem;
}
.page-404 p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.page-404 a.btn-home {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-family: var(--font-ui);
  font-weight: 600;
  transition: background 0.25s;
}
.page-404 a.btn-home:hover { background: var(--accent-hover); }

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

/* ── DISCLAIMER ───────────────────────────────────────────── */
.article-disclaimer {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(196,85,58,0.05);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.2rem;
  margin: 2rem 0;
  line-height: 1.6;
  font-style: italic;
}
