/*
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');

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

:root {
  --bg-cream: #FBF5EB;
  --bg-warm: #F3EBDD;
  --bg-card: #FFFFFF;
  --text-primary: #2C2418;
  --text-secondary: #5A4E3C;
  --text-muted: #8A7D6B;
  --accent: #8B2E3B;
  --accent-hover: #A33D4C;
  --accent-light: #F2E0E3;
  --border: #DDD4C6;
  --border-light: #EDE7DB;
  --serif-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --serif-body: 'Lora', Georgia, serif;
  --shadow-sm: 0 1px 3px rgba(44,36,24,0.06);
  --shadow-md: 0 4px 16px rgba(44,36,24,0.08);
  --shadow-lg: 0 8px 32px rgba(44,36,24,0.12);
  --radius: 6px;
  --max-w: 1140px;
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--serif-body);
  background: var(--bg-cream);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 17px;
  min-height: 100vh;
}

.site-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── HEADER ──────────────────────────────────────────── */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 18px 0;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.95);
}
.site-header .site-wrap {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.site-logo {
  font-family: var(--serif-heading);
  font-size: 1.6rem; font-weight: 700; color: var(--accent);
  text-decoration: none; letter-spacing: -0.5px;
}
.site-logo:hover { color: var(--accent-hover); }
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--serif-body);
  font-size: 0.88rem; color: var(--text-secondary);
  text-decoration: none; padding: 6px 14px; border-radius: var(--radius);
  transition: var(--transition);
}
.site-nav a:hover { background: var(--bg-warm); color: var(--accent); }
.site-tagline {
  width: 100%; text-align: center; font-style: italic;
  color: var(--text-muted); font-size: 0.85rem; margin-top: -4px;
}

/* ── BREADCRUMBS ─────────────────────────────────────── */
.breadcrumbs {
  padding: 16px 0 0; font-size: 0.82rem; color: var(--text-muted);
}
.breadcrumbs a {
  color: var(--text-muted); text-decoration: none;
  transition: var(--transition);
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 6px; }

/* ── ARTICLE ─────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 32px 0 60px;
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
}
.article-meta {
  display: flex; gap: 20px; align-items: center;
  font-size: 0.85rem; color: var(--text-muted);
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.article-meta .author-name { font-weight: 600; color: var(--text-secondary); }
.article-category {
  display: inline-block; background: var(--accent-light);
  color: var(--accent); font-size: 0.78rem; font-weight: 600;
  padding: 3px 12px; border-radius: 20px; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.article-title {
  font-family: var(--serif-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700; line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.article-body h2 {
  font-family: var(--serif-heading);
  font-size: 1.45rem; font-weight: 600;
  margin: 36px 0 16px; color: var(--text-primary);
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}
.article-body h3 {
  font-family: var(--serif-heading);
  font-size: 1.15rem; font-weight: 600;
  margin: 28px 0 12px; color: var(--text-secondary);
}
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol {
  margin: 0 0 18px 24px;
}
.article-body li { margin-bottom: 6px; }
.article-body img {
  width: 100%; border-radius: var(--radius);
  margin: 24px 0; box-shadow: var(--shadow-sm);
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  background: var(--bg-warm);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}
.article-body .info-box {
  background: var(--accent-light);
  border: 1px solid rgba(139,46,59,0.15);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}
.article-body .info-box strong {
  color: var(--accent); display: block; margin-bottom: 6px;
}
.article-body .tip-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin: 24px 0;
}
.article-body .tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}
.article-body .tip-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.article-body .tip-card .tip-num {
  font-family: var(--serif-heading);
  font-size: 1.6rem; font-weight: 700;
  color: var(--accent); opacity: 0.5;
}

/* ── SIDEBAR ─────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
}
.sidebar-box h3 {
  font-family: var(--serif-heading);
  font-size: 1.05rem; font-weight: 600;
  margin-bottom: 14px; color: var(--text-primary);
  padding-bottom: 10px; border-bottom: 1px solid var(--border-light);
}
.sidebar-box ul { list-style: none; }
.sidebar-box ul li {
  padding: 8px 0; border-bottom: 1px solid var(--border-light);
}
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box ul li a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.9rem; text-align: left;
  transition: var(--transition);
}
.sidebar-box ul li a:hover { color: var(--accent); }

.sidebar-author {
  text-align: center;
}
.sidebar-author .author-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent-light); margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif-heading);
  font-size: 1.8rem; color: var(--accent); font-weight: 700;
}
.sidebar-author p { font-size: 0.88rem; color: var(--text-muted); }

/* ── READ ALSO ───────────────────────────────────────── */
.read-also {
  margin: 48px 0 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border-light);
}
.read-also h2 {
  font-family: var(--serif-heading);
  font-size: 1.35rem; font-weight: 600;
  margin-bottom: 20px; border-left: none; padding-left: 0;
}
.read-also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.read-also-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  transition: var(--transition);
}
.read-also-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.read-also-card .card-cat {
  font-size: 0.72rem; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
  letter-spacing: 0.5px; margin-bottom: 8px;
}
.read-also-card h3 {
  font-family: var(--serif-heading);
  font-size: 1rem; font-weight: 600;
  color: var(--text-primary); line-height: 1.35;
  margin-bottom: 8px; text-align: left;
}
.read-also-card p {
  font-size: 0.82rem; color: var(--text-muted); text-align: left;
}

/* ── SUBSCRIBE ───────────────────────────────────────── */
.subscribe-section {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin: 36px 0;
  text-align: center;
}
.subscribe-section h2 {
  font-family: var(--serif-heading);
  font-size: 1.4rem; font-weight: 600;
  margin-bottom: 8px; border-left: none; padding-left: 0;
}
.subscribe-section p {
  color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px;
}
.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: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--serif-body); font-size: 0.9rem;
  background: var(--bg-card); color: var(--text-primary);
  transition: var(--transition);
}
.subscribe-form input[type="email"]:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,46,59,0.1);
}
.subscribe-form button {
  padding: 12px 28px; background: var(--accent);
  color: #fff; border: none; border-radius: var(--radius);
  font-family: var(--serif-body); font-size: 0.9rem;
  font-weight: 600; cursor: pointer; transition: var(--transition);
}
.subscribe-form button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: var(--text-primary); color: rgba(255,255,255,0.7);
  padding: 48px 0 32px; margin-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px; margin-bottom: 36px;
}
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
.footer-col h4 {
  font-family: var(--serif-heading);
  color: #fff; font-size: 1rem; margin-bottom: 14px;
}
.footer-col p { font-size: 0.85rem; line-height: 1.65; }
.footer-col a {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 0.85rem; text-align: left;
  display: block; padding: 4px 0;
  transition: var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-disclaimer {
  font-size: 0.78rem; color: rgba(255,255,255,0.45);
  margin-top: 20px; line-height: 1.55; font-style: italic;
}

/* ── COOKIE MODAL ────────────────────────────────────── */
.cookie-modal {
  position: fixed; bottom: 20px; right: 20px; z-index: 9999;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 24px; max-width: 380px; width: calc(100% - 40px);
  animation: slideUp 0.5s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal h4 {
  font-family: var(--serif-heading);
  font-size: 1rem; margin-bottom: 8px;
}
.cookie-modal p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; }
.cookie-btns { display: flex; gap: 10px; }
.cookie-btns button {
  padding: 8px 20px; border-radius: var(--radius);
  font-family: var(--serif-body); font-size: 0.82rem;
  cursor: pointer; transition: var(--transition); border: none;
}
.btn-accept { background: var(--accent); color: #fff; font-weight: 600; }
.btn-accept:hover { background: var(--accent-hover); }
.btn-decline { background: var(--bg-warm); color: var(--text-secondary); border: 1px solid var(--border) !important; }
.btn-decline:hover { background: var(--border-light); }

/* ── LEGAL PAGES ─────────────────────────────────────── */
.legal-page { max-width: 780px; margin: 0 auto; padding: 48px 24px 60px; }
.legal-page h1 {
  font-family: var(--serif-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 32px; line-height: 1.25;
}
.legal-page h2 {
  font-family: var(--serif-heading);
  font-size: 1.2rem; font-weight: 600;
  margin: 32px 0 14px; color: var(--text-primary);
}
.legal-page p { margin-bottom: 14px; font-size: 0.95rem; color: var(--text-secondary); }
.legal-page ul { margin: 0 0 14px 24px; }
.legal-page li { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 6px; }

/* ── SUCCESS PAGE ────────────────────────────────────── */
.success-page {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 60vh; text-align: center; padding: 60px 24px;
}
.success-page .check-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent-light); display: flex;
  align-items: center; justify-content: center;
  margin-bottom: 24px; font-size: 2.2rem; color: var(--accent);
}
.success-page h1 {
  font-family: var(--serif-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}
.success-page p {
  color: var(--text-muted); font-size: 1.05rem; margin-bottom: 32px;
  max-width: 480px;
}
.btn-home {
  padding: 14px 36px; background: var(--accent); color: #fff;
  text-decoration: none; border-radius: var(--radius);
  font-family: var(--serif-body); font-weight: 600;
  transition: var(--transition);
}
.btn-home:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── 404 ─────────────────────────────────────────────── */
.page-404 {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 70vh; text-align: center; padding: 60px 24px;
}
.page-404 .big-num {
  font-family: var(--serif-heading);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 700; color: var(--accent);
  opacity: 0.15; line-height: 1;
}
.page-404 h1 {
  font-family: var(--serif-heading);
  font-size: 1.8rem; margin: -20px 0 12px;
}
.page-404 p { color: var(--text-muted); margin-bottom: 32px; }

/* ── HERO ACCENT ─────────────────────────────────────── */
.hero-bar {
  background: linear-gradient(135deg, var(--accent) 0%, #6B1D28 100%);
  color: #fff; padding: 48px 0; text-align: center;
}
.hero-bar h1 {
  font-family: var(--serif-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700; margin-bottom: 8px;
}
.hero-bar p { opacity: 0.85; font-size: 0.95rem; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 600px) {
  .subscribe-section { padding: 28px 20px; }
  .cookie-modal { bottom: 10px; right: 10px; padding: 18px; max-width: calc(100% - 20px); }
  .footer-bottom { flex-direction: column; text-align: center; }
}