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

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

:root {
  --primary: #3d5a27;
  --accent: #7cb518;
  --bg: #f7f9f3;
  --bg-secondary: #eef2e6;
  --text: #1c2b0e;
  --radius: 2px;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Open Sans', sans-serif;
  --border: 1px solid #c8d8b0;
  --max-width: 780px;
  --content-width: 1200px;
}

html { scroll-behavior: smooth; }
a { display: inline-block; text-align: center; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── HEADER ── */
.site-header {
  background: var(--bg);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--content-width);
  margin: 0 auto;
  position: relative;
}
.logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -1px;
  line-height: 1;
}
.logo:hover { color: var(--accent); }

.nav-toggle { display: none; }
.site-nav { display: flex; gap: 2rem; align-items: center; }
.site-nav a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.site-nav a:hover { color: var(--primary); border-bottom-color: var(--accent); }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--primary);
  padding: 0.3rem 0.6rem;
  line-height: 1;
}

/* ── BREADCRUMBS ── */
.breadcrumbs {
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  border-bottom: var(--border);
  font-size: 0.82rem;
  color: var(--primary);
}
.breadcrumbs a { color: var(--primary); text-decoration: underline; }
.breadcrumbs span { color: #7a9060; }

/* ── ARTICLE OUTER ── */
.article-outer {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
}

/* ── ARTICLE META ── */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-size: 0.82rem;
  color: #6a8040;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: var(--border);
}

/* ── ARTICLE TITLE ── */
.article-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

/* ── LEAD ── */
.article-lead {
  font-size: 1.18rem;
  font-weight: 300;
  color: #3a5020;
  line-height: 1.9;
  margin-bottom: 2rem;
  padding-left: 1.2rem;
  border-left: 4px solid var(--accent);
}

/* ── HERO IMAGE ── */
.article-hero {
  width: 100%;
  border: var(--border);
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  aspect-ratio: 16/7;
  object-fit: cover;
}

/* ── ARTICLE BODY ── */
.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  border-top: var(--border);
}
.article-body p { margin-bottom: 1.2rem; }

/* ── PULL QUOTE ── */
.pull-quote {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--primary);
  border-left: 5px solid var(--accent);
  padding: 1.2rem 1.8rem;
  margin: 2.5rem 0;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  line-height: 1.55;
}

/* ── TAGS ── */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2.5rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: var(--border);
}
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: var(--bg-secondary);
  border: 1px solid #c8d8b0;
  border-radius: var(--radius);
  padding: 0.3rem 0.7rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.tag:hover { background: var(--primary); color: #fff; }

/* ── DISCLAIMER ── */
.article-disclaimer {
  font-size: 0.82rem;
  color: #7a9060;
  border: var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  background: var(--bg-secondary);
  margin: 2rem 0;
  line-height: 1.6;
}

/* ── BACK TO TOP ── */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-decoration: none;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 0.5rem 1.1rem;
  margin: 1rem 0 2.5rem;
  transition: background 0.2s, color 0.2s;
}
.back-to-top:hover { background: var(--primary); color: #fff; }

/* ── MISTAKES BLOCK ── */
.mistakes-block {
  background: var(--bg-secondary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
}
.mistakes-block h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}
.mistakes-list { list-style: none; padding: 0; }
.mistakes-list li {
  padding: 0.55rem 0 0.55rem 1.5rem;
  position: relative;
  border-bottom: var(--border);
  font-size: 0.97rem;
}
.mistakes-list li:last-child { border-bottom: none; }
.mistakes-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #b54a2f;
  font-weight: 700;
}

/* ── READ ALSO ── */
.read-also {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 2px solid var(--primary);
}
.read-also h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}
.read-also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.read-also-card {
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, background 0.2s;
  display: block;
}
.read-also-card:hover { border-color: var(--primary); background: var(--bg-secondary); }
.read-also-card-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: block;
  text-align: left;
}
.read-also-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  display: block;
  text-align: left;
}

/* ── SUBSCRIBE ── */
.subscribe-section {
  background: var(--bg-secondary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0 3rem;
  text-align: center;
}
.subscribe-section h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.subscribe-section p { font-size: 0.95rem; color: #5a7040; margin-bottom: 1.2rem; }
.subscribe-form {
  display: flex;
  gap: 0.6rem;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
}
.subscribe-form input[type="email"]:focus { border-color: var(--accent); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.65rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  letter-spacing: 0.04em;
}
.btn-primary:hover { background: var(--accent); }
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 0.65rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: var(--bg-secondary); }

/* ── FOOTER ── */
.site-footer {
  background: var(--primary);
  color: #d8e8c0;
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  align-items: flex-start;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -1px;
  line-height: 1;
}
.footer-copy { font-size: 0.82rem; color: #a0c070; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; align-items: center; }
.footer-nav a {
  color: #c0d8a0;
  font-size: 0.82rem;
  text-decoration: underline;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }
.footer-disclaimer {
  flex-basis: 100%;
  font-size: 0.78rem;
  color: #8ab060;
  line-height: 1.6;
  border-top: 1px solid #5a7a38;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

/* ── COOKIES BANNER ── */
.cookies-toggle { display: none; }
.cookies-banner {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  max-width: 310px;
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.2rem;
  z-index: 999;
}
.cookies-banner:has(.cookies-toggle:checked) { display: none; }
.cookies-banner p {
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 0.9rem;
}
.cookies-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.cookies-actions label {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  transition: background 0.2s, color 0.2s;
  display: inline-block;
  text-align: center;
}
.cookies-actions label.accept { background: var(--primary); color: #fff; }
.cookies-actions label.accept:hover { background: var(--accent); border-color: var(--accent); }
.cookies-actions label.decline { background: transparent; color: var(--primary); }
.cookies-actions label.decline:hover { background: var(--bg-secondary); }
.cookies-actions a { font-size: 0.78rem; color: #7a9060; text-decoration: underline; }

/* ── POLICY / TERMS / COOKIES PAGES ── */
.policy-outer {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.policy-outer h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.policy-outer .policy-date {
  font-size: 0.82rem;
  color: #7a9060;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: var(--border);
}
.policy-outer h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-top: 1.5rem;
  border-top: var(--border);
}
.policy-outer p { margin-bottom: 1rem; font-size: 0.97rem; line-height: 1.75; }
.policy-outer ul { margin: 0.5rem 0 1rem 1.5rem; }
.policy-outer ul li { margin-bottom: 0.4rem; font-size: 0.97rem; }

/* ── SUCCESS PAGE ── */
.success-outer {
  max-width: 560px;
  margin: 6rem auto;
  padding: 0 1.5rem;
  text-align: center;
}
.success-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
}
.success-outer h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.success-outer p {
  color: #5a7040;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.success-divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 1.5rem auto;
  border-radius: var(--radius);
  border: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .burger { display: block; }
  .site-nav { display: none; }
  .nav-toggle:checked ~ .site-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 2px solid var(--primary);
    padding: 1.5rem;
    gap: 1rem;
    z-index: 99;
  }
  .article-title { font-size: 1.8rem; }
  .pull-quote { font-size: 1.15rem; padding: 1rem 1.2rem; }
  .read-also-grid { grid-template-columns: 1fr; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form input[type="email"] { min-width: auto; width: 100%; }
  .btn-primary { width: 100%; text-align: center; }
  .footer-inner { flex-direction: column; gap: 1rem; }
  .cookies-banner { left: 1rem; right: 1rem; max-width: none; bottom: 1rem; }
  .mistakes-block { padding: 1rem 1.2rem; }
}
@media (max-width: 480px) {
  .article-meta { gap: 0.3rem 1rem; }
  .policy-outer h2 { font-size: 1.15rem; }
}
