/*
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;}

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

:root {
  --primary: #5B7C5E;
  --primary-light: #8BA88E;
  --primary-dark: #3F5A42;
  --secondary: #C4956A;
  --secondary-light: #D4B08A;
  --bg: #FAF6F1;
  --bg-alt: #F0EBE3;
  --bg-card: #FFFFFF;
  --text: #3D3530;
  --text-light: #7A6F66;
  --accent: #D4A574;
  --border: #E5DDD3;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(61,53,48,0.07);
  --shadow-hover: 0 8px 32px rgba(61,53,48,0.12);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
  --max-w: 1140px;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 0.75rem; }

p { margin-bottom: 1.2rem; }

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

/* ── HEADER ── */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.92);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: color var(--transition);
}
.site-logo:hover { color: var(--primary-dark); }
.site-logo span { color: var(--secondary); }

.main-nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.main-nav a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 30px;
  transition: all var(--transition);
}
.main-nav a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ── BREADCRUMBS ── */
.breadcrumbs {
  padding: 16px 0 8px;
  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 / ARTICLE TOP ── */
.article-hero {
  padding: 24px 0 0;
}
.article-hero h1 {
  margin-bottom: 16px;
}
.category-badge {
  display: inline-block;
  background: var(--primary-light);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
}

/* ── READING TIME WIDGET ── */
.reading-widget {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  margin: 20px 0 32px;
  flex-wrap: wrap;
}
.reading-widget .rw-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
}
.reading-widget .rw-icon {
  width: 20px;
  height: 20px;
  fill: var(--primary);
}

/* ── STEP-BY-STEP BLOCK ── */
.steps-block {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 32px;
  margin: 32px 0;
}
.steps-block h2 {
  color: #fff;
  margin-bottom: 24px;
  font-size: 1.6rem;
}
.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}
.step-item:last-child { margin-bottom: 0; }
.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}
.step-content h3 { color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.step-content p { margin: 0; opacity: 0.9; font-size: 0.95rem; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.step-item:nth-child(1) { animation-delay: 0.1s; }
.step-item:nth-child(2) { animation-delay: 0.2s; }
.step-item:nth-child(3) { animation-delay: 0.3s; }
.step-item:nth-child(4) { animation-delay: 0.4s; }
.step-item:nth-child(5) { animation-delay: 0.5s; }

/* ── ARTICLE CONTENT ── */
.article-body {
  max-width: 760px;
  font-size: 1.05rem;
}
.article-body h2 {
  margin-top: 2.5rem;
}
.article-body h3 {
  margin-top: 1.8rem;
}

/* ── LAYOUT: ARTICLE + SIDEBAR ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  padding: 0 0 48px;
}
.sidebar {
  position: sticky;
  top: 90px;
}
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--primary-dark);
}
.sidebar-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ── QUOTE BLOCK ── */
.quote-block {
  border-left: 4px solid var(--secondary);
  padding: 24px 28px;
  margin: 32px 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
}
.quote-author {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 12px;
  display: block;
}

/* ── TIP / HIGHLIGHT BOX ── */
.tip-box {
  background: linear-gradient(135deg, #f0f7f1, #e8f0e3);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0;
}
.tip-box strong {
  color: var(--primary-dark);
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

/* ── READ ALSO ── */
.read-also {
  margin: 48px 0 32px;
}
.read-also h2 { margin-bottom: 24px; }
.read-also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.read-also-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  text-align: left;
}
.read-also-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}
.read-also-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}
.read-also-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
}

/* ── SUBSCRIBE FORM ── */
.subscribe-section {
  background: linear-gradient(135deg, var(--bg-alt), #f5efe7);
  border-radius: var(--radius);
  padding: 48px 40px;
  margin: 40px 0;
  text-align: center;
}
.subscribe-section h2 {
  margin-bottom: 10px;
}
.subscribe-section p {
  color: var(--text-light);
  margin-bottom: 24px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.subscribe-form input[type="email"] {
  flex: 1 1 240px;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg-card);
  transition: border-color var(--transition);
  outline: none;
}
.subscribe-form input[type="email"]:focus {
  border-color: var(--primary);
}
.subscribe-form button {
  padding: 14px 32px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
}
.subscribe-form button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(91,124,94,0.3);
}

/* ── IMAGE BLOCKS ── */
.img-block {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.img-block img {
  width: 100%;
  display: block;
  border-radius: 0;
}
.img-caption {
  font-size: 0.82rem;
  color: var(--text-light);
  text-align: center;
  padding: 12px 16px;
  background: var(--bg-alt);
  font-style: italic;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 32px;
  margin-top: 64px;
  font-size: 0.9rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand .site-logo { color: #fff; font-size: 1.5rem; margin-bottom: 12px; }
.footer-brand .site-logo span { color: var(--secondary-light); }
.footer-brand p { max-width: 300px; line-height: 1.6; }
.footer-links h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  text-align: left;
  padding: 5px 0;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--secondary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-disclaimer {
  max-width: 700px;
  margin: 12px auto 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.4);
}

/* ── COOKIE MODAL ── */
.cookie-modal {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  z-index: 9999;
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { opacity:0; transform: translateY(20px); }
  to { opacity:1; transform: translateY(0); }
}
.cookie-modal h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.cookie-modal p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 18px;
}
.cookie-btns {
  display: flex;
  gap: 10px;
}
.cookie-btns button {
  flex: 1;
  padding: 10px 16px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.cookie-accept {
  background: var(--primary);
  color: #fff;
}
.cookie-accept:hover { background: var(--primary-dark); }
.cookie-decline {
  background: var(--bg-alt);
  color: var(--text-light);
  border: 1px solid var(--border) !important;
}
.cookie-decline:hover { background: var(--border); }

/* ── LEGAL PAGES ── */
.legal-page {
  padding: 48px 0;
  max-width: 800px;
  margin: 0 auto;
}
.legal-page h1 {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.legal-page h2 {
  margin-top: 2rem;
  color: var(--primary-dark);
}
.legal-page p, .legal-page li {
  color: var(--text-light);
  line-height: 1.8;
}

/* ── SUCCESS PAGE ── */
.success-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
}
.success-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--primary);
  margin-bottom: 16px;
}
.success-content p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 32px;
}
.btn-home {
  display: inline-block;
  padding: 16px 40px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  transition: all var(--transition);
}
.btn-home:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(91,124,94,0.3);
}

/* ── 404 PAGE ── */
.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.page-404 .big-num {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 700;
  color: var(--primary-light);
  opacity: 0.3;
  line-height: 1;
}
.page-404 h1 { font-size: 2rem; margin: 16px 0; }
.page-404 p { color: var(--text-light); margin-bottom: 32px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 680px) {
  .hamburger { display: block; }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 12px;
  }
  .main-nav.active { display: flex; }
  .main-nav a { width: 100%; text-align: left; }
  .steps-block { padding: 28px 20px; }
  .subscribe-section { padding: 32px 20px; }
  .cookie-modal { left: 16px; right: 16px; max-width: none; bottom: 16px; }
}
