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

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Nunito:wght@400;500;600;700&display=swap');

:root {
  --primary: #7B9E6B;
  --primary-dark: #5A7A4A;
  --primary-light: #A8C49A;
  --secondary: #E8DCC8;
  --accent: #D4956A;
  --accent-light: #E8B892;
  --bg: #FAF7F2;
  --bg-alt: #F2EDE4;
  --text: #3D3832;
  --text-light: #6B6259;
  --white: #FFFFFF;
  --border: #E0D8CC;
  --shadow: 0 4px 24px rgba(61,56,50,0.07);
  --shadow-lg: 0 12px 40px rgba(61,56,50,0.10);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
  --max-w: 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(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 17px;
}

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

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

/* === HEADER === */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--primary-dark);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo:hover { color: var(--accent); }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover { background: var(--bg-alt); color: var(--primary-dark); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: var(--transition); }

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

/* === BREADCRUMBS === */
.breadcrumbs {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-light);
}
.breadcrumbs a { color: var(--primary); text-decoration: none; text-align: left; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 6px; opacity: 0.5; }

/* === HERO === */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 80px 0 60px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; top: -50%; right: -20%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-section h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-meta {
  display: flex; gap: 20px; align-items: center;
  font-size: 0.9rem; opacity: 0.85;
}
.hero-meta .tag {
  background: rgba(255,255,255,0.18);
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.82rem;
}

/* === ARTICLE === */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 48px 0;
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
}
.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin: 40px 0 16px;
  line-height: 1.3;
}
.article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
}
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol {
  margin: 0 0 18px 24px;
}
.article-content li { margin-bottom: 6px; }

.article-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 24px 0;
  box-shadow: var(--shadow);
}

/* === SIDEBAR === */
.sidebar { position: sticky; top: 90px; align-self: start; }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
}
.sidebar-card ul { list-style: none; }
.sidebar-card li { margin-bottom: 10px; }
.sidebar-card li a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition);
  text-align: left;
}
.sidebar-card li a:hover { color: var(--accent); }
.author-box { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; color: var(--white);
}
.author-name { font-weight: 700; font-size: 0.95rem; }
.author-role { font-size: 0.82rem; color: var(--text-light); }

/* === QUOTE BLOCK === */
.quote-block {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-alt) 100%);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px;
  margin: 32px 0;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  position: relative;
}
.quote-block::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent);
  position: absolute;
  top: -8px; left: 16px;
  opacity: 0.3;
}
.quote-author {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary-dark);
}

/* === TIP BOX === */
.tip-box {
  background: var(--white);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0;
  position: relative;
}
.tip-box::before {
  content: '\1F331';
  position: absolute;
  top: -14px; left: 20px;
  background: var(--bg);
  padding: 0 8px;
  font-size: 1.3rem;
}
.tip-box h4 {
  color: var(--primary-dark);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* === NUMBERED STEPS === */
.step-item {
  display: flex; gap: 20px; align-items: flex-start;
  margin: 24px 0;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.step-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.step-num {
  min-width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.step-text h4 { font-size: 1rem; margin-bottom: 6px; }
.step-text p { font-size: 0.92rem; color: var(--text-light); margin: 0; }

/* === EDITORIAL OPINION === */
.editorial-block {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 40px 0;
}
.editorial-block h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.editorial-block p { font-size: 0.95rem; line-height: 1.8; }

/* === READ ALSO === */
.read-also {
  padding: 40px 0;
}
.read-also h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 24px;
}
.read-also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.read-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
}
.read-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.read-card-img {
  height: 160px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.read-card-body { padding: 20px; }
.read-card-body h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.35;
}
.read-card-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

/* === SUBSCRIBE === */
.subscribe-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin: 48px 0;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.subscribe-section::after {
  content: '';
  position: absolute; bottom: -60px; left: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.subscribe-section h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.subscribe-section p { opacity: 0.85; margin-bottom: 24px; font-size: 0.95rem; }
.subscribe-form {
  display: flex; gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.subscribe-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}
.subscribe-form input::placeholder { color: rgba(255,255,255,0.6); }
.subscribe-form input:focus { border-color: var(--accent-light); background: rgba(255,255,255,0.18); }
.subscribe-form button {
  padding: 14px 28px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.subscribe-form button:hover { background: var(--accent-light); transform: scale(1.03); }
@media (max-width: 520px) {
  .subscribe-form { flex-direction: column; }
  .subscribe-section { padding: 32px 20px; }
}

/* === FOOTER === */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 28px;
  margin-top: 60px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.footer-grid a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  text-align: left;
  display: block;
  margin-bottom: 8px;
}
.footer-grid a:hover { color: var(--accent-light); }
.footer-disclaimer {
  font-size: 0.8rem;
  opacity: 0.6;
  line-height: 1.6;
  margin-top: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; margin: 0 6px; }
.footer-bottom a:hover { color: var(--accent-light); }

/* === COOKIE MODAL === */
.cookie-modal {
  position: fixed;
  bottom: 24px; right: 24px;
  max-width: 380px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  z-index: 9999;
  animation: slideUp 0.5s ease;
  border: 1px solid var(--border);
}
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.cookie-modal h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 10px; }
.cookie-modal p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 18px; line-height: 1.6; }
.cookie-btns { display: flex; gap: 10px; }
.cookie-btns button {
  flex: 1; padding: 10px 16px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 700; font-size: 0.88rem;
  cursor: pointer; transition: var(--transition); border: none;
}
.btn-accept { background: var(--primary); color: var(--white); }
.btn-accept:hover { background: var(--primary-dark); }
.btn-decline { background: var(--bg-alt); color: var(--text); border: 1px solid var(--border) !important; }
.btn-decline:hover { background: var(--secondary); }
@media (max-width: 480px) { .cookie-modal { left: 12px; right: 12px; max-width: none; bottom: 12px; } }

/* === LEGAL PAGES === */
.legal-page { padding: 60px 0; max-width: 800px; margin: 0 auto; }
.legal-page h1 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 32px; color: var(--primary-dark); }
.legal-page h2 { font-family: var(--font-display); font-size: 1.3rem; margin: 36px 0 14px; color: var(--text); }
.legal-page p { margin-bottom: 16px; font-size: 0.95rem; line-height: 1.8; color: var(--text-light); }

/* === SUCCESS === */
.success-page {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.success-icon {
  width: 100px; height: 100px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
  font-size: 3rem;
}
.success-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--primary-dark);
  margin-bottom: 14px;
}
.success-page p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 28px; }
.btn-home {
  display: inline-block;
  padding: 14px 36px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: var(--transition);
}
.btn-home:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* === 404 === */
.page-404 {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.page-404 h1 {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 10rem);
  color: var(--primary-light);
  opacity: 0.4;
  line-height: 1;
}
.page-404 h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 8px 0 14px;
  color: var(--text);
}
.page-404 p { color: var(--text-light); margin-bottom: 28px; }

/* === ANIMATIONS === */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeInUp 0.6s ease forwards; }
.fade-in-d1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-d2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-d3 { animation-delay: 0.3s; opacity: 0; }

/* Comparison grid */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 20px;
  margin: 28px 0;
}
.comparison-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 3px solid var(--primary-light);
}
.comparison-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.comparison-card h4 { font-size: 1rem; margin-bottom: 8px; color: var(--primary-dark); }
.comparison-card p { font-size: 0.88rem; color: var(--text-light); margin: 0; }

.checklist-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.checklist-icon { color: var(--primary); font-size: 1.2rem; margin-top: 2px; }
.checklist-text { font-size: 0.95rem; }

.highlight-stat {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin: 28px 0;
}
.stat-item {
  flex: 1; min-width: 140px;
  text-align: center;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
}
.stat-label { font-size: 0.82rem; color: var(--text-light); margin-top: 4px; }
