/*
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: #F5F0E8;
  --cream-light: #FAF7F2;
  --brown-dark: #3A2A1A;
  --brown-mid: #6B4E35;
  --brown-accent: #8B4513;
  --gold: #C97D3C;
  --gold-light: #E8A84C;
  --text: #2E2218;
  --text-muted: #7A6A5A;
  --border: #D4C8B8;
  --shadow: rgba(58,42,26,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: 'Lora', Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.78;
  font-size: 17px;
  min-height: 100vh;
}

/* ─── HEADER / NAV ─── */
.site-header {
  background: var(--brown-dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px var(--shadow);
}
.site-header__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  min-height: 62px;
}
.site-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-logo:hover { color: var(--gold-light); }
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  font-family: 'Lora', serif;
}
.site-nav a:hover { background: rgba(255,255,255,0.1); color: var(--gold-light); }
.nav-toggle { display: none; background: none; border: none; color: var(--cream); font-size: 1.5rem; cursor: pointer; padding: 8px; }

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

/* ─── ARTICLE ─── */
.article-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 60px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.article-meta__tag {
  background: var(--gold);
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.article-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1.22;
  margin: 12px 0 28px;
}
.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  color: var(--brown-dark);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.article-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--brown-mid);
  margin: 28px 0 10px;
}
.article-body p { margin-bottom: 18px; }
.article-body img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 24px 0;
  box-shadow: 0 4px 20px var(--shadow);
}
.article-body ul, .article-body ol {
  margin: 0 0 18px 28px;
}
.article-body li { margin-bottom: 6px; }

/* ─── QUOTE / HIGHLIGHT ─── */
.pull-quote {
  border-left: 4px solid var(--gold);
  padding: 20px 28px;
  margin: 32px 0;
  background: var(--cream-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--brown-mid);
  position: relative;
}
.pull-quote::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--gold);
  position: absolute;
  top: -8px;
  left: 10px;
  line-height: 1;
}
.tip-box {
  background: linear-gradient(135deg, #FFF8EE 0%, #FDF5E6 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 28px 0;
}
.tip-box__title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
  font-size: 1rem;
}

/* ─── WIDE BANNER ─── */
.wide-banner {
  background: var(--brown-dark);
  color: var(--cream);
  text-align: center;
  padding: 48px 24px;
  margin: 40px -24px;
  font-family: 'Playfair Display', serif;
}
.wide-banner h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gold-light);
  border: none;
  padding: 0;
}
.wide-banner p { font-family: 'Lora', serif; font-size: 0.95rem; opacity: 0.85; max-width: 560px; margin: 0 auto; }

/* ─── READ ALSO ─── */
.read-also {
  margin: 48px 0;
}
.read-also__heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--brown-dark);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}
.read-also__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.read-also__card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: var(--text);
}
.read-also__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px var(--shadow);
}
.read-also__card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--brown-dark);
  margin-bottom: 8px;
  border: none;
  padding: 0;
}
.read-also__card p { font-size: 0.85rem; color: var(--text-muted); }

/* ─── SUBSCRIBE ─── */
.subscribe-section {
  background: linear-gradient(160deg, var(--brown-dark) 0%, #4A3525 100%);
  border-radius: var(--radius);
  padding: 40px 32px;
  margin: 48px 0;
  text-align: center;
  color: var(--cream);
}
.subscribe-section h2 {
  font-family: 'Playfair Display', serif;
  color: var(--gold-light);
  font-size: 1.5rem;
  margin-bottom: 10px;
  border: none;
  padding: 0;
}
.subscribe-section p { font-size: 0.92rem; opacity: 0.85; margin-bottom: 22px; }
.subscribe-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.subscribe-form input[type="email"] {
  flex: 1 1 220px;
  padding: 12px 18px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
}
.subscribe-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.subscribe-form input[type="email"]:focus { outline: none; border-color: var(--gold); }
.subscribe-form button {
  padding: 12px 28px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
.subscribe-form button:hover { background: var(--gold-light); }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--brown-dark);
  color: var(--cream);
  padding: 48px 24px 28px;
  margin-top: 0;
}
.site-footer__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}
.site-footer__brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}
.site-footer__copy { font-size: 0.82rem; opacity: 0.6; margin-top: 6px; }
.site-footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer__links a { color: var(--cream); font-size: 0.85rem; text-decoration: none; opacity: 0.75; }
.site-footer__links a:hover { opacity: 1; color: var(--gold-light); }
.site-footer__disclaimer {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  opacity: 0.5;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  margin-top: 8px;
  text-align: center;
  font-style: italic;
}

/* ─── COOKIE MODAL ─── */
.cookie-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 380px;
  width: calc(100% - 40px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  padding: 26px;
  z-index: 9999;
  animation: slideUp 0.4s ease-out;
  border: 1px solid var(--border);
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-modal h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--brown-dark);
  margin-bottom: 10px;
}
.cookie-modal p { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 16px; }
.cookie-modal__btns { display: flex; gap: 10px; }
.cookie-modal__btns button {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-family: 'Lora', serif;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.cookie-modal__accept { background: var(--gold); color: #fff; }
.cookie-modal__accept:hover { background: var(--gold-light); }
.cookie-modal__decline { background: var(--cream); color: var(--text); border: 1px solid var(--border) !important; }
.cookie-modal__decline:hover { background: #eee; }
.cookie-modal.hidden { display: none; }

/* ─── LEGAL PAGES ─── */
.legal-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 60px;
}
.legal-container h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--brown-dark);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--gold);
}
.legal-container h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--brown-mid);
  margin: 32px 0 12px;
}
.legal-container p { margin-bottom: 14px; font-size: 0.95rem; }

/* ─── SUCCESS PAGE ─── */
.success-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}
.success-container h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--brown-dark);
  margin-bottom: 16px;
}
.success-container p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 32px; }
.success-container a.btn {
  background: var(--gold);
  color: #fff;
  padding: 14px 36px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-family: 'Lora', serif;
  transition: background 0.2s;
}
.success-container a.btn:hover { background: var(--gold-light); }

/* ─── 404 ─── */
.page-404 {
  max-width: 600px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}
.page-404 h1 {
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}
.page-404 h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--brown-dark);
  margin-bottom: 16px;
}
.page-404 p { color: var(--text-muted); margin-bottom: 32px; }
.page-404 a.btn {
  background: var(--gold);
  color: #fff;
  padding: 14px 36px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-family: 'Lora', serif;
  transition: background 0.2s;
}
.page-404 a.btn:hover { background: var(--gold-light); }

/* ─── AUTHOR BOX ─── */
.author-box {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 32px 0;
}
.author-box__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}
.author-box__info h4 {
  font-family: 'Playfair Display', serif;
  color: var(--brown-dark);
  font-size: 1rem;
  margin-bottom: 2px;
}
.author-box__info p { font-size: 0.84rem; color: var(--text-muted); margin: 0; }

/* ─── NUMBER CARDS ─── */
.num-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.num-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  transition: transform 0.25s;
}
.num-card:hover { transform: translateY(-2px); }
.num-card__number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.num-card__label { font-size: 0.85rem; color: var(--text-muted); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0; background: var(--brown-dark); padding: 16px; gap: 4px; box-shadow: 0 8px 20px var(--shadow); }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .wide-banner { margin: 40px -24px; }
}
