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

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

:root {
  --bg: #FAFBFC;
  --surface: #FFFFFF;
  --text: #1A2332;
  --text-light: #5A6A7E;
  --accent: #2E8B6E;
  --accent-light: #E8F5EF;
  --accent-dark: #1D6B4F;
  --border: #E2E8F0;
  --shadow: 0 2px 12px rgba(26,35,50,0.06);
  --shadow-lg: 0 8px 30px rgba(26,35,50,0.10);
  --radius: 12px;
  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'Fraunces', serif;
  --max-w: 820px;
  --max-w-wide: 1140px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700;9..144,800&display=swap');

*, *::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;
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAV ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.site-nav-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: var(--font-heading);
  font-weight: 800; font-size: 1.4rem;
  color: var(--accent); text-decoration: none;
  letter-spacing: -0.5px;
}
.site-logo:hover { color: var(--accent-dark); }
.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-light);
  font-size: 0.92rem; font-weight: 500;
  padding: 6px 14px; border-radius: 8px;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--accent); background: var(--accent-light); }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger svg { width: 24px; height: 24px; stroke: var(--text); }

@media (max-width: 768px) {
  .burger { display: block; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 4px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: left; padding: 10px 14px; }
}

/* ── HERO ── */
.hero-section {
  background: linear-gradient(135deg, var(--accent-light) 0%, #f0faf5 50%, var(--bg) 100%);
  padding: 72px 24px 56px;
  text-align: center;
}
.hero-section h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; color: var(--text);
  max-width: 700px; margin: 0 auto 16px;
  line-height: 1.2; letter-spacing: -1px;
}
.hero-meta {
  color: var(--text-light); font-size: 0.9rem;
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.hero-meta span { display: flex; align-items: center; gap: 5px; }

/* ── BREADCRUMBS ── */
.breadcrumbs {
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: 0.85rem; color: var(--text-light);
  display: flex; gap: 6px; flex-wrap: wrap;
}
.breadcrumbs a { color: var(--accent); text-decoration: none; text-align: left; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ── ARTICLE ── */
.article-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.article-wrap h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem; font-weight: 700;
  margin: 40px 0 16px; color: var(--text);
  letter-spacing: -0.3px;
}
.article-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 600;
  margin: 32px 0 12px; color: var(--text);
}
.article-wrap p { margin-bottom: 18px; color: var(--text); }
.article-wrap ul, .article-wrap ol {
  margin: 0 0 18px 24px; color: var(--text);
}
.article-wrap li { margin-bottom: 8px; }

.pull-quote {
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent-dark);
  line-height: 1.7;
}

.tip-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0;
  box-shadow: var(--shadow);
}
.tip-box-title {
  font-weight: 700; color: var(--accent);
  margin-bottom: 8px; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 1px;
}

.img-block {
  margin: 32px 0; text-align: center;
}
.img-block img {
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
}
.img-block img:hover { transform: scale(1.02); }
.img-caption {
  font-size: 0.82rem; color: var(--text-light);
  margin-top: 10px;
}

/* ── PREV / NEXT ── */
.prev-next {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin: 48px 0 40px;
}
.prev-next a {
  text-decoration: none; text-align: left;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  display: flex; flex-direction: column; gap: 4px;
}
.prev-next a:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.prev-next .label { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }
.prev-next .pn-title { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.prev-next .next-link { text-align: right; }
@media (max-width: 600px) { .prev-next { grid-template-columns: 1fr; } }

/* ── READ ALSO ── */
.read-also { margin: 0 0 48px; }
.read-also h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem; margin-bottom: 20px;
}
.read-also-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.read-also-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  transition: var(--transition);
  text-align: left;
}
.read-also-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.read-also-card .card-cat { font-size: 0.78rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.read-also-card .card-title { font-weight: 600; color: var(--text); line-height: 1.4; }

/* ── SUBSCRIBE ── */
.subscribe-block {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  margin: 48px 0;
  color: #fff;
}
.subscribe-block h3 {
  font-family: var(--font-heading);
  color: #fff; font-size: 1.4rem; margin-bottom: 8px;
}
.subscribe-block p { color: rgba(255,255,255,0.85); margin-bottom: 20px; font-size: 0.95rem; }
.sub-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.sub-form input {
  flex: 1; padding: 12px 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 8px; background: rgba(255,255,255,0.15);
  color: #fff; font-size: 0.95rem; font-family: var(--font-body);
  outline: none; transition: var(--transition);
}
.sub-form input::placeholder { color: rgba(255,255,255,0.6); }
.sub-form input:focus { border-color: #fff; background: rgba(255,255,255,0.25); }
.sub-form button {
  padding: 12px 28px; border: none;
  background: #fff; color: var(--accent-dark);
  font-weight: 700; font-size: 0.95rem;
  border-radius: 8px; cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition);
  white-space: nowrap;
}
.sub-form button:hover { background: var(--accent-light); transform: scale(1.03); }
@media (max-width: 500px) { .sub-form { flex-direction: column; } }

/* ── DISCLAIMER ── */
.disclaimer {
  background: #FFF9E6; border: 1px solid #F0E4B8;
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 0.85rem;
  color: #7A6B30;
  margin: 32px 0 0;
  line-height: 1.6;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--text); color: rgba(255,255,255,0.7);
  padding: 48px 24px 32px;
  margin-top: 64px;
}
.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  align-items: start;
}
.footer-brand .footer-logo {
  font-family: var(--font-heading);
  font-weight: 800; font-size: 1.3rem;
  color: #fff; text-decoration: none;
}
.footer-brand p { margin-top: 8px; font-size: 0.85rem; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.footer-links a {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 0.9rem; transition: var(--transition); text-align: right;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-w-wide);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem; text-align: center;
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links { align-items: center; }
}

/* ── COOKIE MODAL ── */
.cookie-modal {
  position: fixed; bottom: 20px; right: 20px; z-index: 9999;
  background: var(--surface);
  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-out;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.cookie-modal h4 { font-family: var(--font-heading); margin-bottom: 8px; font-size: 1.05rem; }
.cookie-modal p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 16px; line-height: 1.5; }
.cookie-btns { display: flex; gap: 10px; }
.cookie-btns button {
  flex: 1; padding: 10px; border-radius: 8px;
  font-weight: 600; font-size: 0.88rem; cursor: pointer;
  font-family: var(--font-body); transition: var(--transition); border: none;
}
.cookie-accept { background: var(--accent); color: #fff; }
.cookie-accept:hover { background: var(--accent-dark); }
.cookie-decline { background: var(--bg); color: var(--text-light); border: 1px solid var(--border) !important; }
.cookie-decline:hover { background: var(--border); }

/* ── LEGAL PAGES ── */
.legal-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.legal-wrap h1 {
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 800;
  margin-bottom: 32px; color: var(--text);
}
.legal-wrap h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem; font-weight: 700;
  margin: 36px 0 14px; color: var(--text);
}
.legal-wrap p { margin-bottom: 16px; color: var(--text-light); font-size: 0.95rem; }

/* ── SUCCESS ── */
.success-wrap {
  text-align: center; padding: 120px 24px;
  max-width: 600px; margin: 0 auto;
}
.success-wrap .check-icon {
  width: 80px; height: 80px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.success-wrap .check-icon svg { width: 40px; height: 40px; stroke: var(--accent); }
.success-wrap h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem; font-weight: 800;
  margin-bottom: 12px; color: var(--text);
}
.success-wrap p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 32px; }
.btn-home {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent); color: #fff;
  text-decoration: none; border-radius: 8px;
  font-weight: 700; font-size: 1rem;
  transition: var(--transition);
}
.btn-home:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ── 404 ── */
.page-404 {
  text-align: center; padding: 100px 24px;
  max-width: 600px; margin: 0 auto;
}
.page-404 .big-404 {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
}
.page-404 h1 {
  font-family: var(--font-heading);
  font-size: 1.6rem; margin: 16px 0 12px;
}
.page-404 p { color: var(--text-light); margin-bottom: 32px; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.6s ease-out both; }
.fade-in-d1 { animation-delay: 0.1s; }
.fade-in-d2 { animation-delay: 0.2s; }
.fade-in-d3 { animation-delay: 0.3s; }

/* ── HOME CARDS ── */
.home-articles {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 48px 24px;
}
.home-articles h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem; font-weight: 700;
  margin-bottom: 28px; text-align: center;
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.home-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.home-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.home-card-body { padding: 24px; flex: 1; text-align: left; }
.home-card-cat { font-size: 0.75rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.home-card-title { font-family: var(--font-heading); font-weight: 700; color: var(--text); font-size: 1.1rem; line-height: 1.3; margin-bottom: 10px; }
.home-card-excerpt { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
