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

:root {
  --mint: #e0f5f0;
  --mint-light: #f2faf7;
  --white: #ffffff;
  --teal: #5ba8a0;
  --teal-dark: #3a6b65;
  --teal-light: #8fd4cb;
  --teal-accent: #4d9e95;
  --gray-900: #1a1f21;
  --gray-700: #2d3436;
  --gray-500: #636e72;
  --gray-300: #b2bec3;
  --gray-100: #dfe6e9;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-bg-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-shadow: 0 8px 32px rgba(91, 168, 160, 0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1180px;
}

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

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: linear-gradient(160deg, var(--mint) 0%, var(--mint-light) 30%, var(--white) 70%);
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--gray-900); line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; margin-bottom: 0.8rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.9rem 1.2rem;
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 700;
  color: var(--teal-dark); letter-spacing: -0.02em;
}
.logo span { color: var(--teal-light); }

.nav-links { display: flex; gap: 1.6rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--gray-500); padding: 0.3rem 0;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--teal);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--teal-dark); }
.nav-links a:hover::after { width: 100%; }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.burger svg { width: 26px; height: 26px; stroke: var(--gray-700); }

@media (max-width: 768px) {
  .burger { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--glass-bg-strong); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.85rem 1.5rem; display: block; }
}

/* ── GLASS PANELS ── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.glass:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(91, 168, 160, 0.18);
}
.glass-static {
  background: var(--glass-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  padding: 4rem 1.2rem 3rem;
  background: linear-gradient(135deg, var(--mint) 0%, #d4f1eb 40%, var(--mint-light) 100%);
}
.hero::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(91,168,160,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -15%;
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(143,212,203,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 2;
}
.hero-panel {
  max-width: 720px; padding: 2.5rem;
}
.hero-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--teal); background: rgba(91,168,160,0.1);
  padding: 0.35rem 1rem; border-radius: 50px;
  margin-bottom: 1.2rem;
}
.hero h1 { margin-bottom: 1rem; }
.hero-lead {
  font-size: 1.1rem; color: var(--gray-500); max-width: 580px; margin-bottom: 1.5rem;
}
.hero-meta { font-size: 0.82rem; color: var(--gray-300); }

/* ── MAIN LAYOUT ── */
.main-wrap {
  max-width: var(--max-w); margin: 0 auto; padding: 2.5rem 1.2rem;
}
.content-grid {
  display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem;
  align-items: start;
}
@media (max-width: 960px) {
  .content-grid { grid-template-columns: 1fr; }
}

/* ── ARTICLE BODY ── */
.article-body p { margin-bottom: 1.2rem; font-size: 1.02rem; }
.article-body h2 { margin-top: 2.2rem; margin-bottom: 0.9rem; }
.article-body h3 { margin-top: 1.6rem; margin-bottom: 0.6rem; }

.section-divider {
  width: 60px; height: 3px; background: linear-gradient(90deg, var(--teal), var(--teal-light));
  border-radius: 3px; margin: 2rem 0;
}

/* ── QUOTE BAND ── */
.quote-band {
  background: linear-gradient(135deg, rgba(91,168,160,0.08), rgba(143,212,203,0.06));
  border-left: 4px solid var(--teal);
  padding: 1.8rem 2rem; margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  position: relative;
}
.quote-band::before {
  content: '\201C'; font-family: var(--font-display); font-size: 4rem;
  color: var(--teal-light); position: absolute; top: -0.2rem; left: 0.8rem;
  opacity: 0.4; line-height: 1;
}
.quote-band p {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.12rem; color: var(--gray-700); position: relative; z-index: 1;
}
.quote-band cite {
  display: block; margin-top: 0.6rem; font-size: 0.82rem;
  color: var(--gray-500); font-style: normal;
}

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: linear-gradient(135deg, var(--mint), var(--mint-light));
  border-radius: var(--radius); padding: 1.8rem;
  margin: 2rem 0; border: 1px solid rgba(91,168,160,0.15);
}
.highlight-box h3 { color: var(--teal-dark); margin-bottom: 0.8rem; }
.highlight-box ul {
  list-style: none; padding: 0;
}
.highlight-box li {
  padding: 0.45rem 0 0.45rem 1.6rem; position: relative;
  font-size: 0.95rem;
}
.highlight-box li::before {
  content: '✦'; position: absolute; left: 0; color: var(--teal);
  font-size: 0.75rem; top: 0.55rem;
}

/* ── CARDS ROW ── */
.cards-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem; margin: 2rem 0;
}
.card {
  padding: 1.8rem; text-align: center;
}
.card-icon {
  font-size: 2.2rem; margin-bottom: 0.8rem; display: block;
}
.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: var(--gray-500); }

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 5rem; }
.sidebar-block { padding: 1.6rem; margin-bottom: 1.5rem; }
.sidebar-block h3 {
  font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--teal-dark); margin-bottom: 1rem;
  padding-bottom: 0.6rem; border-bottom: 2px solid var(--teal-light);
}
.sidebar-link {
  display: block; padding: 0.7rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.92rem; color: var(--gray-700);
  transition: all var(--transition);
}
.sidebar-link:hover { color: var(--teal); padding-left: 0.5rem; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  display: inline-block; font-size: 0.78rem; font-weight: 500;
  color: var(--teal-dark); background: rgba(91,168,160,0.1);
  padding: 0.3rem 0.85rem; border-radius: 50px;
  transition: all var(--transition);
}
.tag:hover { background: var(--teal); color: var(--white); }

/* ── SUBSCRIBE ── */
.subscribe-section {
  padding: 3rem 1.2rem; text-align: center;
  background: linear-gradient(135deg, var(--mint), rgba(91,168,160,0.08));
  margin: 2rem 0;
  border-radius: var(--radius);
}
.subscribe-section h2 { margin-bottom: 0.6rem; }
.subscribe-section p { color: var(--gray-500); margin-bottom: 1.5rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.subscribe-form {
  display: flex; gap: 0.7rem; max-width: 440px; 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: 1px solid var(--glass-border); border-radius: 50px;
  background: var(--glass-bg); backdrop-filter: blur(8px);
  font-family: var(--font-body); font-size: 0.92rem;
  outline: none; transition: border-color var(--transition);
}
.subscribe-form input[type="email"]:focus { border-color: var(--teal); }
.subscribe-form button, .btn-primary {
  padding: 0.85rem 2rem; border: none; border-radius: 50px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white); font-family: var(--font-body);
  font-size: 0.92rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); min-height: 44px;
}
.subscribe-form button:hover, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91,168,160,0.35);
}

/* ── FULL-WIDTH BAND ── */
.full-band {
  padding: 3rem 1.2rem; margin: 2.5rem 0;
  background: linear-gradient(135deg, rgba(91,168,160,0.06), rgba(255,255,255,0.5));
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.full-band-inner { max-width: var(--max-w); margin: 0 auto; }

/* ── IMAGE BLOCK ── */
.img-block {
  margin: 2rem 0; border-radius: var(--radius); overflow: hidden;
  position: relative;
}
.img-block figcaption {
  font-size: 0.82rem; color: var(--gray-500); text-align: center;
  padding: 0.8rem; background: var(--glass-bg); font-style: italic;
}

/* ── TIPS STRIP ── */
.tips-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; margin: 2rem 0;
}
.tip-item {
  display: flex; align-items: flex-start; gap: 0.8rem;
  padding: 1.2rem;
}
.tip-num {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
  color: var(--teal-light); line-height: 1; flex-shrink: 0;
}
.tip-item p { font-size: 0.9rem; }

/* ── ARTICLE CARDS (for listings) ── */
.article-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin: 2rem 0;
}
.article-card { overflow: hidden; }
.article-card-body { padding: 1.5rem; }
.article-card-tag {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--teal);
}
.article-card h3 { margin: 0.5rem 0; font-size: 1.1rem; }
.article-card p { font-size: 0.88rem; color: var(--gray-500); }
.article-card-link {
  display: inline-block; margin-top: 0.8rem; font-size: 0.85rem;
  font-weight: 600; color: var(--teal);
}
.article-card-link:hover { color: var(--teal-dark); }

/* ── FOOTER ── */
.site-footer {
  background: var(--gray-900); color: var(--gray-300); padding: 3rem 1.2rem 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
.footer-brand .logo { color: var(--teal-light); margin-bottom: 0.8rem; display: inline-block; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }
.footer-col h4 {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--teal-light); margin-bottom: 1rem;
}
.footer-col a { display: block; font-size: 0.88rem; color: var(--gray-300); padding: 0.3rem 0; }
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom {
  max-width: var(--max-w); margin: 2rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem; color: var(--gray-500);
}
.footer-disclaimer {
  margin-top: 0.8rem; font-size: 0.75rem; color: var(--gray-500); line-height: 1.6;
}

/* ── COOKIE BANNER ── */
#cookie-toggle { display: none; }
.cookie-banner {
  position: fixed; bottom: 1rem; right: 1rem; z-index: 999;
  max-width: 380px; padding: 1.5rem;
  background: var(--glass-bg-strong); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  transition: all var(--transition);
}
#cookie-toggle:checked ~ .cookie-banner { display: none; }
.cookie-banner p { font-size: 0.85rem; margin-bottom: 1rem; color: var(--gray-700); }
.cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.cookie-accept {
  padding: 0.6rem 1.3rem; border: none; border-radius: 50px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white); font-size: 0.82rem; font-weight: 600; cursor: pointer;
  min-height: 44px; transition: all var(--transition);
}
.cookie-accept:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(91,168,160,0.3); }
.cookie-decline {
  padding: 0.6rem 1.3rem; border: 1px solid var(--gray-300); border-radius: 50px;
  background: transparent; color: var(--gray-500); font-size: 0.82rem;
  cursor: pointer; min-height: 44px; transition: all var(--transition);
}
.cookie-decline:hover { border-color: var(--gray-500); }
.cookie-link { font-size: 0.78rem; color: var(--teal); }

/* ── LEGAL PAGES ── */
.legal-page { max-width: 780px; margin: 0 auto; padding: 3rem 1.2rem; }
.legal-page h1 { margin-bottom: 1.5rem; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.legal-page h2 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: 0.6rem; color: var(--teal-dark); }
.legal-page p, .legal-page li { font-size: 0.92rem; line-height: 1.75; color: var(--gray-500); }
.legal-page ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-page li { margin-bottom: 0.5rem; }

/* ── SUCCESS / 404 ── */
.status-page {
  text-align: center; padding: 5rem 1.2rem;
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.status-page h1 { margin-bottom: 1rem; }
.status-page p { color: var(--gray-500); margin-bottom: 2rem; max-width: 480px; }
.status-page .btn-primary { display: inline-block; text-decoration: none; }

/* ── ARTICLE PAGE HERO ── */
.article-hero {
  padding: 3rem 1.2rem 2rem;
  background: linear-gradient(160deg, var(--mint) 0%, var(--mint-light) 100%);
  text-align: center;
}
.article-hero-inner { max-width: 720px; margin: 0 auto; }
.article-hero .hero-tag { margin-bottom: 1rem; }
.article-hero h1 { margin-bottom: 1rem; }
.article-hero .hero-lead { margin: 0 auto 1rem; }

/* ── NUMBERED LIST VISUAL ── */
.numbered-list { counter-reset: nl; margin: 2rem 0; }
.numbered-item {
  display: flex; gap: 1.2rem; padding: 1.2rem 0;
  border-bottom: 1px solid var(--gray-100);
  counter-increment: nl;
}
.numbered-item::before {
  content: counter(nl, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  color: var(--teal-light); flex-shrink: 0; min-width: 2.5rem;
}
.numbered-item div h3 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.numbered-item div p { font-size: 0.9rem; color: var(--gray-500); }

/* ── SCROLL ANIMATION ── */
.fade-in {
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ── INLINE ACCENT ── */
.accent { color: var(--teal-dark); font-weight: 600; }

/* ── STAT BAND ── */
.stat-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem; margin: 2rem 0; text-align: center;
}
.stat-item { padding: 1.5rem; }
.stat-num {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
  color: var(--teal); display: block;
}
.stat-label { font-size: 0.85rem; color: var(--gray-500); margin-top: 0.3rem; }
