/*
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,600;0,700;1,400&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --cream: #FBF6EE;
  --cream-dark: #F0E8D8;
  --gold: #B8963E;
  --gold-light: #D4B96A;
  --ink: #2C2419;
  --ink-soft: #5A4E3C;
  --ink-muted: #8A7D6B;
  --white: #FFFFFF;
  --border: #D9CEBC;
  --accent: #8B5E3C;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --body: 'Lora', Georgia, serif;
  --shadow: 0 2px 12px rgba(44,36,25,0.08);
  --radius: 6px;
  --max-w: 820px;
  --max-w-wide: 1140px;
}

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

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

body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.8;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* ── HEADER / NAV ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(44,36,25,0.05);
}
.site-header-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.site-logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-logo span { color: var(--gold); }
.site-nav { display: flex; gap: 8px; align-items: center; }
.site-nav a {
  font-family: var(--body);
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover { background: var(--cream); color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

@media(max-width:768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
}

/* ── BREADCRUMBS ── */
.breadcrumbs {
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.breadcrumbs a { color: var(--gold); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 6px; }

/* ── ARTICLE ── */
.article-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px 60px;
}
.article-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.article-meta .category {
  background: var(--gold);
  color: var(--white);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-title {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
@media(max-width:600px) { .article-title { font-size: 1.7rem; } }

.article-body h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 40px 0 16px;
  color: var(--ink);
  border-left: 4px solid var(--gold);
  padding-left: 16px;
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--ink-soft);
}
.article-body p { margin-bottom: 18px; }
.article-body .article-img {
  margin: 32px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── BLOCKQUOTE ── */
.reader-quote {
  background: var(--cream-dark);
  border-left: 5px solid var(--gold);
  padding: 28px 32px;
  margin: 40px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  position: relative;
}
.reader-quote::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--gold-light);
  position: absolute;
  top: -10px;
  left: 14px;
  line-height: 1;
}
.reader-quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 600;
}

/* ── READ ALSO ── */
.read-also {
  margin: 48px 0;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.read-also h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 18px;
  color: var(--gold);
  border-left: none;
  padding-left: 0;
}
.read-also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.read-also-card {
  padding: 16px;
  background: var(--cream);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}
.read-also-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.read-also-card .card-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.read-also-card .card-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

/* ── SUBSCRIBE ── */
.subscribe-section {
  background: linear-gradient(135deg, var(--ink) 0%, #3D3225 100%);
  color: var(--cream);
  padding: 48px 32px;
  border-radius: var(--radius);
  margin: 48px 0;
  text-align: center;
}
.subscribe-section h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--cream);
  border-left: none;
  padding-left: 0;
}
.subscribe-section p {
  color: var(--cream-dark);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 18px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.subscribe-form input[type="email"]:focus { border-color: var(--gold-light); }
.subscribe-form button {
  padding: 12px 28px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.subscribe-form button:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  color: var(--cream-dark);
  padding: 48px 24px 28px;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media(max-width:600px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand .footer-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 10px;
}
.footer-brand .footer-logo span { color: var(--gold); }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; color: var(--ink-muted); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  color: var(--cream-dark);
  text-decoration: none;
  font-size: 0.9rem;
  text-align: left;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max-w-wide);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.footer-disclaimer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.5;
  text-align: center;
}

/* ── COOKIE MODAL ── */
.cookie-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 380px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 30px rgba(44,36,25,0.15);
  z-index: 9999;
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--ink);
}
.cookie-modal p { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.5; }
.cookie-btns { display: flex; gap: 10px; }
.cookie-btns button {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
  border: none;
}
.cookie-accept { background: var(--gold); color: var(--white); }
.cookie-accept:hover { background: var(--gold-light); }
.cookie-decline { background: var(--cream-dark); color: var(--ink-soft); }
.cookie-decline:hover { background: var(--border); }

/* ── HOME HERO ── */
.home-hero {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 60px 24px 40px;
  text-align: center;
}
.home-hero h1 {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.home-hero .tagline {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 560px;
  margin: 0 auto;
}
@media(max-width:600px) { .home-hero h1 { font-size: 1.9rem; } }

/* ── LEGAL PAGES ── */
.legal-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.legal-container h1 {
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 28px;
  color: var(--ink);
}
.legal-container h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 32px 0 12px;
  color: var(--ink);
  border-left: 4px solid var(--gold);
  padding-left: 14px;
}
.legal-container p { margin-bottom: 14px; font-size: 0.95rem; color: var(--ink-soft); }

/* ── SUCCESS PAGE ── */
.success-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 120px 24px;
  text-align: center;
}
.success-container .check-icon {
  width: 80px;
  height: 80px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 2.2rem;
  color: var(--white);
  animation: popIn 0.5s ease;
}
@keyframes popIn {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.success-container h1 {
  font-family: var(--serif);
  font-size: 2.4rem;
  margin-bottom: 14px;
  color: var(--ink);
}
.success-container p { color: var(--ink-muted); margin-bottom: 32px; font-size: 1.05rem; }
.success-container .btn-home {
  padding: 14px 36px;
  background: var(--gold);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
}
.success-container .btn-home:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ── 404 ── */
.page-404 {
  max-width: 600px;
  margin: 0 auto;
  padding: 120px 24px;
  text-align: center;
}
.page-404 .num-404 {
  font-family: var(--serif);
  font-size: 8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.3;
}
.page-404 h1 {
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 14px;
  color: var(--ink);
}
.page-404 p { color: var(--ink-muted); margin-bottom: 32px; }
.page-404 .btn-home {
  padding: 14px 36px;
  background: var(--gold);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
  font-family: var(--body);
  font-weight: 600;
  transition: background 0.2s;
}
.page-404 .btn-home:hover { background: var(--gold-light); }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
