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

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
  --clr-bg: #FAF8F3;
  --clr-surface: #FFFFFF;
  --clr-text: #2B2B2B;
  --clr-text-muted: #6B6B6B;
  --clr-accent: #B8432F;
  --clr-accent-light: #E8C4BC;
  --clr-divider: #D4CFC6;
  --clr-dark: #1E1E1E;
  --clr-quote-bg: #F0ECE3;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --max-w: 780px;
  --max-w-wide: 1120px;
  --gap: 2rem;
}

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(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin: 2.5rem 0 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin: 2rem 0 0.8rem; }

p { margin-bottom: 1.2rem; }

/* ── SITE HEADER ── */
.site-header {
  background: var(--clr-dark);
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
}
.site-logo:hover { color: var(--clr-accent-light); }
.site-nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--clr-accent-light); }

/* ── BREADCRUMBS ── */
.breadcrumbs {
  max-width: var(--max-w);
  margin: 1.5rem auto 0;
  padding: 0 var(--gap);
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}
.breadcrumbs a { color: var(--clr-accent); text-decoration: none; font-size: 0.85rem; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 0.4rem; }

/* ── DISCLAIMER BANNER ── */
.disclaimer-banner {
  max-width: var(--max-w);
  margin: 1rem auto;
  padding: 0.7rem 1.2rem;
  background: var(--clr-quote-bg);
  border-left: 3px solid var(--clr-accent);
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  font-style: italic;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.2rem;
}

/* ── ARTICLE ── */
.article-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap) 3rem;
}
.article-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 1.5rem 0 1rem;
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  flex-wrap: wrap;
}
.article-meta .author { font-weight: 600; color: var(--clr-accent); }
.article-hero {
  margin: 1.5rem 0 2rem;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.article-hero img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.article-hero figcaption {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  padding: 0.5rem 0;
  font-style: italic;
}

/* ── DIVIDER ── */
.hr-divider {
  border: none;
  height: 1px;
  background: var(--clr-divider);
  margin: 2.5rem 0;
}

/* ── PULL QUOTE ── */
.pull-quote {
  background: var(--clr-quote-bg);
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
  border-left: 4px solid var(--clr-accent);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--clr-dark);
  position: relative;
}
.pull-quote::before {
  content: '\201C';
  font-size: 4rem;
  position: absolute;
  top: -0.2rem;
  left: 0.6rem;
  color: var(--clr-accent-light);
  font-family: var(--font-display);
  line-height: 1;
}

/* ── TIP BOX ── */
.tip-box {
  background: linear-gradient(135deg, #fdf6f0 0%, #f8ece2 100%);
  border: 1px solid var(--clr-accent-light);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.tip-box__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--clr-accent);
  margin-bottom: 0.6rem;
}

/* ── READ ALSO ── */
.read-also {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-divider);
  border-radius: 8px;
}
.read-also__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--clr-dark);
}
.read-also__list { list-style: none; }
.read-also__list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--clr-divider);
}
.read-also__list li:last-child { border-bottom: none; }
.read-also__list a {
  color: var(--clr-accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  text-align: left;
  display: block;
  transition: color 0.2s;
}
.read-also__list a:hover { color: var(--clr-dark); }

/* ── SUBSCRIBE ── */
.subscribe-section {
  background: var(--clr-dark);
  color: #fff;
  padding: 3rem 2rem;
  border-radius: 8px;
  margin: 3rem 0;
  text-align: center;
}
.subscribe-section h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.subscribe-section p { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }
.subscribe-form {
  display: flex;
  gap: 0.8rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--font-body);
}
.subscribe-form button {
  padding: 0.85rem 2rem;
  background: var(--clr-accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: var(--font-body);
}
.subscribe-form button:hover { background: #9a3626; transform: translateY(-1px); }

/* ── FOOTER ── */
.site-footer {
  background: var(--clr-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem var(--gap);
  margin-top: 4rem;
  font-size: 0.9rem;
}
.site-footer__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--clr-accent-light); }
.footer-disclaimer {
  max-width: 600px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

/* ── COOKIE MODAL ── */
.cookie-modal {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 380px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-divider);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  z-index: 9999;
  animation: slideUp 0.4s ease;
  font-size: 0.9rem;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.cookie-modal h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.cookie-modal p { color: var(--clr-text-muted); margin-bottom: 1rem; font-size: 0.85rem; }
.cookie-btns { display: flex; gap: 0.6rem; }
.cookie-btns button {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
  font-family: var(--font-body);
}
.btn-accept { background: var(--clr-accent); color: #fff; }
.btn-accept:hover { background: #9a3626; }
.btn-decline { background: var(--clr-quote-bg); color: var(--clr-text); }
.btn-decline:hover { background: var(--clr-divider); }

/* ── LEGAL PAGES ── */
.legal-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem var(--gap) 4rem;
}
.legal-container h1 { margin-bottom: 2rem; }
.legal-container h2 { font-size: 1.4rem; margin: 2rem 0 0.8rem; }
.legal-container p, .legal-container li { line-height: 1.8; }

/* ── SUCCESS PAGE ── */
.success-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 6rem var(--gap);
  text-align: center;
}
.success-container h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1rem; }
.success-container p { font-size: 1.15rem; color: var(--clr-text-muted); margin-bottom: 2.5rem; }
.btn-home {
  padding: 1rem 2.5rem;
  background: var(--clr-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.2s, transform 0.1s;
}
.btn-home:hover { background: #9a3626; transform: translateY(-2px); }

/* ── 404 ── */
.error-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 6rem var(--gap);
  text-align: center;
}
.error-container .error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--clr-accent-light);
  line-height: 1;
}
.error-container h1 { font-size: 2rem; margin: 1rem 0; }
.error-container p { color: var(--clr-text-muted); margin-bottom: 2rem; }

/* ── HOME FEATURED ── */
.featured-grid {
  max-width: var(--max-w-wide);
  margin: 3rem auto;
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.featured-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-divider);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.featured-card__body { padding: 1.5rem; }
.featured-card__body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.featured-card__body h3 a { color: var(--clr-dark); text-decoration: none; text-align: left; display: block; }
.featured-card__body h3 a:hover { color: var(--clr-accent); }
.featured-card__body p { font-size: 0.9rem; color: var(--clr-text-muted); }

/* ── SIDEBAR LAYOUT ── */
.layout-with-sidebar {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 0 var(--gap);
}
.sidebar { position: sticky; top: 5rem; align-self: start; }
.sidebar-box {
  background: var(--clr-surface);
  border: 1px solid var(--clr-divider);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-box h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--clr-accent);
}
.sidebar-box ul { list-style: none; }
.sidebar-box li { padding: 0.5rem 0; border-bottom: 1px solid var(--clr-divider); }
.sidebar-box li:last-child { border-bottom: none; }
.sidebar-box a { color: var(--clr-accent); text-decoration: none; text-align: left; display: block; font-size: 0.95rem; }
.sidebar-box a:hover { color: var(--clr-dark); }

@media (max-width: 820px) {
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: var(--clr-accent);
  color: #fff;
  padding: 2rem 2.5rem;
  border-radius: 8px;
  margin: 2.5rem 0;
}
.highlight-box h3 { color: #fff; margin-bottom: 0.6rem; }

/* ── NUMBER STEPS ── */
.step-item {
  display: flex;
  gap: 1.2rem;
  margin: 1.5rem 0;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--clr-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.step-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

@media (max-width: 600px) {
  .cookie-modal { left: 1rem; right: 1rem; max-width: none; }
  .pull-quote { padding: 1.5rem 1.5rem 1.5rem 2rem; font-size: 1.15rem; }
}
