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

:root {
  --primary: #8b1a1a;
  --accent: #c0392b;
  --bg: #fdf6ec;
  --bg-secondary: #f5ede0;
  --text: #2c1810;
  --border: #d4c5b0;
  --white: #fff;
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', Helvetica, sans-serif;
  --max-w: 760px;
  --max-w-wide: 1140px;
}

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

html { scroll-behavior: smooth; }
a { display: inline-block; text-align: center; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 2px solid var(--primary);
}
.header-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.site-logo:hover { color: var(--accent); }

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  align-items: center;
}
.nav-list a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: color 0.2s;
}
.nav-list a:hover { color: var(--primary); }

/* Burger */
.burger-toggle { display: none; }
.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 110;
}
.burger-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--primary);
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .burger-btn { display: flex; }
  .nav-list {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 105;
  }
  .nav-list a { font-size: 1.2rem; }
  .burger-toggle:checked ~ .nav-list {
    transform: translateX(0);
  }
  .burger-toggle:checked ~ .burger-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .burger-toggle:checked ~ .burger-btn span:nth-child(2) { opacity: 0; }
  .burger-toggle:checked ~ .burger-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ── BREADCRUMBS ── */
.breadcrumbs {
  max-width: var(--max-w);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.82rem;
  color: #8a7a6a;
}
.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.82rem;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 0.4rem; }

/* ── ARTICLE ── */
.article-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}
.article-meta {
  margin: 1.2rem 0 0.5rem;
  font-size: 0.82rem;
  color: #8a7a6a;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  align-items: center;
}
.article-meta .dot { color: var(--border); }
.article-category {
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.15;
  color: var(--text);
  margin: 0.8rem 0 1rem;
}

.article-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #5a4a3a;
  border-left: 3px solid var(--primary);
  padding-left: 1.2rem;
  margin-bottom: 2rem;
}

.article-hero {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 2.5rem;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.article-body p {
  margin-bottom: 1.2rem;
}

/* Pull-quote */
.pull-quote {
  margin: 2.5rem 0;
  padding: 2rem 1.5rem;
  background: var(--bg-secondary);
  border-left: 4px solid var(--primary);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--primary);
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
}
.article-tags span {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  border: 1px solid var(--primary);
  transition: background 0.2s, color 0.2s;
}
.article-tags span:hover {
  background: var(--primary);
  color: var(--white);
}

/* Disclaimer */
.disclaimer-block {
  margin: 2.5rem 0;
  padding: 1.2rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: #6a5a4a;
  line-height: 1.6;
}

/* ── BUY BLOCK ── */
.buy-block {
  margin: 3rem 0;
  padding: 2rem 1.5rem;
  background: var(--bg-secondary);
  border-top: 3px solid var(--primary);
}
.buy-block h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.buy-block p { margin-bottom: 0.8rem; }
.buy-block a.buy-link {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 0.5rem;
  transition: background 0.2s;
}
.buy-block a.buy-link:hover { background: var(--accent); }

/* ── SUBSCRIBE FORM ── */
.subscribe-section {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  padding: 2.5rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  text-align: center;
}
.subscribe-section h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.subscribe-section p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}
.subscribe-form {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
}
.subscribe-form input[type="email"] {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  border-radius: 0;
}
.subscribe-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.subscribe-form input[type="email"]:focus { border-color: var(--white); }
.subscribe-form button {
  padding: 0.8rem 1.5rem;
  background: var(--white);
  color: var(--primary);
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0;
}
.subscribe-form button:hover { background: var(--bg-secondary); }

@media (max-width: 480px) {
  .subscribe-form { flex-direction: column; }
  .subscribe-form button { padding: 0.9rem; }
}

/* ── FOOTER ── */
.site-footer {
  background: var(--text);
  color: var(--bg-secondary);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  text-decoration: none;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--bg-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.6;
  line-height: 1.6;
}
.footer-disclaimer {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  opacity: 0.5;
  line-height: 1.6;
  font-style: italic;
}

/* ── COOKIE MODAL (pure CSS) ── */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 999;
  max-width: 380px;
  width: calc(100% - 2rem);
  background: var(--text);
  color: var(--bg);
  padding: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.55;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.cookie-banner a { color: var(--bg-secondary); font-size: 0.85rem; }
.cookie-toggle { display: none; }
.cookie-toggle:checked ~ .cookie-banner {
  transform: translateY(200%);
  opacity: 0;
  pointer-events: none;
}
.cookie-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}
.cookie-actions label,
.cookie-actions a {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.cookie-accept {
  background: var(--white);
  color: var(--text);
  border: none;
}
.cookie-decline {
  background: transparent;
  color: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.3);
}

/* ── SUCCESS PAGE ── */
.success-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}
.success-page h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--primary);
  margin-bottom: 1rem;
}
.success-page p {
  font-size: 1.1rem;
  color: #5a4a3a;
  margin-bottom: 2rem;
  max-width: 500px;
}
.success-page a.btn-back {
  padding: 0.9rem 2.5rem;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.success-page a.btn-back:hover { background: var(--accent); }

/* ── POLICY PAGES ── */
.policy-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.policy-page h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.policy-page .policy-updated {
  font-size: 0.82rem;
  color: #8a7a6a;
  margin-bottom: 2rem;
}
.policy-page h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary);
  margin: 2rem 0 0.8rem;
}
.policy-page p {
  margin-bottom: 1rem;
}

/* ── 404 ── */
.page-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}
.page-404 .err-code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 15vw, 10rem);
  color: var(--primary);
  line-height: 1;
  opacity: 0.15;
}
.page-404 h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text);
  margin: 1rem 0 0.5rem;
}
.page-404 p {
  color: #6a5a4a;
  margin-bottom: 2rem;
}
.page-404 a {
  padding: 0.8rem 2rem;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.page-404 a:hover { background: var(--accent); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.article-title,
.article-lead,
.article-hero {
  animation: fadeUp 0.6s ease both;
}
.article-lead { animation-delay: 0.1s; }
.article-hero { animation-delay: 0.2s; }

/* ── READ ALSO ── */
.read-also {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
}
.read-also > .article-wrapper {
  max-width: var(--max-w-wide);
}
.read-also h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.read-also-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.read-also-card {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-top: 3px solid var(--primary);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.read-also-card:hover {
  transform: translateY(-3px);
  border-top-color: var(--accent);
}
.read-also-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  margin-bottom: 0.6rem;
}
.read-also-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 0.8rem;
}
.read-also-card h3 a {
  color: var(--text);
  text-decoration: none;
  text-align: left;
  display: inline;
  transition: color 0.2s;
}
.read-also-card h3 a:hover {
  color: var(--primary);
}
.read-also-time {
  font-size: 0.78rem;
  color: #8a7a6a;
}

@media (max-width: 768px) {
  .read-also-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
