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

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Nunito:wght@400;500;600;700&display=swap');

html { scroll-behavior: smooth; }
a { display: inline-block; text-align: center; }

:root {
  --primary: #1a3a6b;
  --accent: #00a8a8;
  --bg: #f0f4ff;
  --bg-sec: #e8eef8;
  --text: #1a1a2e;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(26,58,107,0.10);
  --shadow-sm: 0 4px 16px rgba(26,58,107,0.07);
  --transition: 0.3s ease;
  --max-w: 780px;
}

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

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Lora', serif;
  color: var(--primary);
  line-height: 1.3;
}

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

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
.logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

/* Burger */
.burger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--primary); margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}
#mobile-toggle { display: none; }

@media(max-width:768px) {
  .burger { display: block; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%; height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    transition: right var(--transition);
    z-index: 200;
  }
  #mobile-toggle:checked ~ .nav-links { right: 0; }
  .nav-close {
    position: absolute; top: 1rem; right: 1.5rem;
    font-size: 1.8rem; color: var(--primary);
    text-decoration: none; cursor: pointer;
  }
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  max-width: var(--max-w);
  margin: 2rem auto 1rem;
  padding: 0 1.5rem;
  font-size: 0.88rem;
  color: #6b7b99;
}
.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { margin: 0 0.4rem; color: #b0b8cc; }

/* ===== ARTICLE ===== */
.article-wrapper {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  color: #6b7b99;
}
.article-meta .author { font-weight: 700; color: var(--primary); }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

article h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 1.2rem;
  color: var(--primary);
}
.lead {
  font-size: 1.15rem;
  color: #4a5568;
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 2.5rem;
  font-style: italic;
}
article h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}
article h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 50px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
article p { margin-bottom: 1.2rem; }

.pull-quote {
  background: linear-gradient(135deg, var(--bg-sec), var(--white));
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.8rem 2rem;
  margin: 2.5rem 0;
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.pull-quote::before {
  content: '\201C';
  font-size: 4rem;
  position: absolute;
  top: -10px; left: 12px;
  color: var(--accent);
  opacity: 0.3;
  font-family: 'Lora', serif;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
}
.tags a {
  background: var(--bg-sec);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.tags a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* Disclaimer */
.disclaimer {
  background: var(--bg-sec);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  font-size: 0.9rem;
  color: #5a6a80;
  border: 1px dashed #b0c4de;
}

/* ===== SUBSCRIBE ===== */
.subscribe-section {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}
.subscribe-box {
  background: linear-gradient(135deg, var(--primary), #244a7a);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.subscribe-box h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.subscribe-box p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.subscribe-form {
  display: flex;
  gap: 0.8rem;
  max-width: 460px;
  margin: 0 auto;
}
.subscribe-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border: none;
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  outline: none;
}
.subscribe-form input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(0,168,168,0.4);
}
.subscribe-form button {
  padding: 0.85rem 1.8rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
}
.subscribe-form button:hover {
  background: #009090;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,168,168,0.3);
}
@media(max-width:500px) {
  .subscribe-form { flex-direction: column; }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.footer-brand .logo { color: var(--white); font-size: 1.4rem; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.88rem; max-width: 300px; }
.footer-links { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.82rem;
  text-align: center;
}
.footer-disclaimer {
  max-width: 700px;
  margin: 1rem auto 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* ===== COOKIE MODAL (no JS) ===== */
#cookie-check { display: none; }
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(26,58,107,0.18);
  padding: 1.5rem;
  max-width: 360px;
  z-index: 999;
  animation: cookieSlide 0.5s ease;
}
@keyframes cookieSlide {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  font-size: 0.88rem;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.5;
}
.cookie-banner a { color: var(--accent); text-decoration: underline; font-size: 0.88rem; }
.cookie-actions { display: flex; gap: 0.6rem; }
.cookie-actions label, .cookie-actions a {
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.cookie-accept {
  background: var(--accent);
  color: var(--white);
  border: none;
}
.cookie-accept:hover { background: #009090; }
.cookie-decline {
  background: var(--bg-sec);
  color: var(--text);
}
.cookie-decline:hover { background: #d8e0f0; }
#cookie-check:checked ~ .cookie-banner { display: none; }

/* ===== HERO (home) ===== */
.hero {
  background: linear-gradient(135deg, var(--primary), #2a5298);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.hero h1 { color: var(--white); font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 1rem; }
.hero p { font-size: 1.15rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* ===== CARDS (home) ===== */
.cards-section {
  max-width: 1100px;
  margin: -2rem auto 3rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26,58,107,0.15);
}
.card h3 { margin-bottom: 0.8rem; font-size: 1.2rem; }
.card p { font-size: 0.93rem; color: #5a6a80; margin-bottom: 1rem; }
.card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.card a:hover { color: var(--primary); }

/* ===== SUCCESS PAGE ===== */
.success-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}
.success-page h1 { font-size: 2.4rem; margin-bottom: 1rem; }
.success-page p { font-size: 1.1rem; color: #5a6a80; margin-bottom: 2rem; }
.btn-home {
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
}
.btn-home:hover { background: #009090; transform: translateY(-2px); box-shadow: var(--shadow); }

/* ===== POLICY PAGES ===== */
.policy-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.policy-page h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--accent);
}
.policy-page h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.8rem;
}
.policy-page p {
  margin-bottom: 1rem;
  color: #4a5568;
}

/* ===== 404 ===== */
.page-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}
.page-404 .err-code {
  font-family: 'Lora', serif;
  font-size: clamp(6rem, 15vw, 10rem);
  color: var(--primary);
  opacity: 0.12;
  line-height: 1;
}
.page-404 h1 { font-size: 1.8rem; margin: 1rem 0 0.5rem; }
.page-404 p { color: #5a6a80; margin-bottom: 2rem; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.article-wrapper { animation: fadeUp 0.6s ease; }
