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

:root {
  --pistachio: #C5D4A0;
  --pistachio-light: #DDE8C6;
  --pistachio-dark: #A8BC7E;
  --burgundy: #6B1D2A;
  --burgundy-light: #8A2E3C;
  --lilac: #D4C1E0;
  --lilac-light: #EDE5F3;
  --text: #1C1C1C;
  --text-muted: #4A4A4A;
  --white: #FAFAF5;
  --cream: #F5F0E8;
  --shadow: rgba(107,29,42,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  color: var(--text);
  background: var(--pistachio);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--burgundy); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--burgundy-light); }

/* === HEADER === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--burgundy);
  padding: 0;
}
.header-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.5rem;
}
.logo {
  font-size: 1.8rem; font-weight: 700; color: var(--pistachio);
  letter-spacing: 0.15em; text-transform: uppercase;
}
.logo span { color: var(--lilac); }
.nav-list {
  list-style: none; display: flex; gap: 1.8rem;
}
.nav-list a {
  color: var(--pistachio-light); font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  position: relative; padding-bottom: 2px;
}
.nav-list a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--lilac);
  transition: width 0.3s;
}
.nav-list a:hover { color: #fff; }
.nav-list a:hover::after { width: 100%; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.burger span { display: block; width: 26px; height: 2px; background: var(--pistachio); transition: 0.3s; }

/* === RIBBON HERO === */
.ribbon-hero {
  background: var(--burgundy);
  padding: 2rem 0 0;
  overflow: hidden;
}
.ribbon-strip {
  padding: 0.6rem 1.5rem;
  max-width: 1400px; margin: 0 auto;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.ribbon-strip:nth-child(1) {
  transform: translateX(-3%);
  background: var(--pistachio);
  padding: 2rem 2rem 1rem;
}
.ribbon-strip:nth-child(2) {
  transform: translateX(5%);
  background: var(--lilac);
  padding: 1rem 2rem;
}
.ribbon-strip:nth-child(3) {
  transform: translateX(-1%);
  background: var(--cream);
  padding: 1rem 2rem 2rem;
}
.ribbon-strip:hover { transform: translateX(0) !important; }
.hero-tag {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.25em; color: var(--burgundy);
  margin-bottom: 0.5rem; display: inline-block;
  border-bottom: 2px solid var(--burgundy);
  padding-bottom: 2px;
}
.hero-title {
  font-size: 2.5rem; line-height: 1.15;
  color: var(--burgundy); font-weight: 700;
  max-width: 700px;
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 600px; font-style: italic;
}
.hero-meta {
  font-size: 0.8rem; color: var(--text-muted);
  letter-spacing: 0.08em;
}
.hero-meta strong { color: var(--burgundy); }

/* === MAIN CONTENT === */
.main-content {
  max-width: 1400px; margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* === STAGGERED LAYOUT === */
.staggered-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.stagger-block {
  background: var(--white);
  padding: 2rem;
  border-radius: 2px;
  box-shadow: 0 4px 20px var(--shadow);
  animation: fadeUp 0.8s ease both;
}
.stagger-block:nth-child(even) {
  background: var(--lilac-light);
}
.stagger-block h2 {
  font-size: 1.6rem; color: var(--burgundy);
  margin-bottom: 1rem; line-height: 1.3;
  border-left: 4px solid var(--lilac);
  padding-left: 1rem;
}
.stagger-block h3 {
  font-size: 1.2rem; color: var(--burgundy);
  margin: 1.2rem 0 0.6rem;
}
.stagger-block p { margin-bottom: 1rem; }

/* === SIDEBAR LAYOUT === */
.sidebar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.sidebar {
  background: var(--burgundy);
  color: var(--pistachio-light);
  padding: 2rem;
  border-radius: 2px;
}
.sidebar h3 {
  color: var(--lilac); font-size: 1.1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.sidebar ul { list-style: none; }
.sidebar li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(197,212,160,0.2);
  font-size: 0.9rem;
}
.sidebar li:last-child { border-bottom: none; }
.sidebar a { color: var(--pistachio-light); }
.sidebar a:hover { color: #fff; }

/* === QUOTE BAND === */
.quote-band {
  background: var(--burgundy);
  color: var(--pistachio);
  padding: 3rem 2rem;
  margin: 2rem -1.5rem;
  position: relative;
  transform: rotate(-1deg);
}
.quote-band::before {
  content: '\201C'; font-size: 6rem;
  position: absolute; top: -1rem; left: 1rem;
  color: var(--lilac); opacity: 0.4;
  font-family: Georgia, serif;
}
.quote-band blockquote {
  font-size: 1.3rem; font-style: italic;
  max-width: 800px; margin: 0 auto;
  text-align: center; line-height: 1.6;
  transform: rotate(1deg);
}
.quote-band cite {
  display: block; margin-top: 1rem;
  font-size: 0.8rem; font-style: normal;
  color: var(--lilac); text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* === CARD GRID === */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
.tip-card {
  background: var(--white);
  padding: 1.8rem;
  border-radius: 2px;
  border-top: 4px solid var(--lilac);
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow);
}
.tip-card:nth-child(2) { border-top-color: var(--burgundy); }
.tip-card:nth-child(3) { border-top-color: var(--pistachio-dark); }
.tip-card:nth-child(4) { border-top-color: var(--burgundy-light); }
.tip-card .card-num {
  font-size: 2.5rem; font-weight: 700;
  color: var(--lilac); line-height: 1;
  margin-bottom: 0.5rem;
}
.tip-card h3 {
  color: var(--burgundy); font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

/* === HIGHLIGHT BOX === */
.highlight-box {
  background: var(--lilac-light);
  border-left: 6px solid var(--burgundy);
  padding: 2rem;
  margin: 2rem 0;
  font-size: 1.05rem;
}
.highlight-box strong { color: var(--burgundy); }

/* === IMAGE BLOCK === */
.img-block {
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}
.img-block img {
  width: 100%;
  border-radius: 2px;
  transition: transform 0.6s;
}
.img-block:hover img { transform: scale(1.03); }
.img-caption {
  background: var(--burgundy);
  color: var(--pistachio);
  padding: 0.8rem 1.2rem;
  font-size: 0.8rem; font-style: italic;
  display: inline-block;
  margin-top: -4px;
}

/* === SUBSCRIBE === */
.subscribe-section {
  background: var(--burgundy);
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem -1.5rem 0;
}
.subscribe-section h2 {
  color: var(--pistachio); font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.subscribe-section p {
  color: var(--lilac); margin-bottom: 1.5rem;
  font-style: italic;
}
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 500px; margin: 0 auto;
}
.subscribe-form input[type="email"] {
  padding: 0.9rem 1.2rem;
  border: 2px solid var(--pistachio);
  background: transparent;
  color: var(--pistachio);
  font-family: inherit;
  font-size: 1rem;
  border-radius: 0;
}
.subscribe-form input::placeholder { color: var(--pistachio-dark); }
.subscribe-form button {
  padding: 0.9rem 2rem;
  background: var(--lilac);
  color: var(--burgundy);
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  min-height: 48px;
}
.subscribe-form button:hover {
  background: var(--pistachio);
  transform: translateY(-2px);
}

/* === RELATED ARTICLES === */
.related-articles {
  margin: 3rem 0;
}
.related-articles h2 {
  font-size: 1.4rem; color: var(--burgundy);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
.related-card {
  background: var(--white);
  padding: 1.5rem;
  border-left: 4px solid var(--lilac);
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform 0.3s, border-color 0.3s;
}
.related-card:hover {
  transform: translateX(6px);
  border-left-color: var(--burgundy);
}
.related-card h3 { color: var(--burgundy); font-size: 1.05rem; margin-bottom: 0.4rem; }
.related-card p { font-size: 0.9rem; color: var(--text-muted); }
.read-more {
  display: inline-block; margin-top: 0.6rem;
  font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.15em; font-weight: 700;
  color: var(--burgundy);
  border-bottom: 2px solid var(--lilac);
  padding-bottom: 2px;
  transition: border-color 0.3s;
}
.read-more:hover { border-bottom-color: var(--burgundy); }

/* === FOOTER === */
.site-footer {
  background: var(--text);
  color: var(--pistachio-light);
  padding: 2.5rem 1.5rem;
  font-size: 0.85rem;
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 1rem;
  text-align: center;
}
.footer-brand {
  font-size: 1.3rem; font-weight: 700;
  letter-spacing: 0.15em; color: var(--pistachio);
}
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: var(--lilac); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-links a:hover { color: #fff; }
.footer-disclaimer {
  font-size: 0.75rem; color: rgba(197,212,160,0.6);
  max-width: 700px; margin: 0.5rem auto 0;
  line-height: 1.5;
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed; bottom: 1rem; right: 1rem;
  background: var(--text);
  color: var(--pistachio-light);
  padding: 1.5rem;
  max-width: 380px;
  z-index: 200;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  font-size: 0.85rem;
  transition: transform 0.4s, opacity 0.4s;
  border-left: 4px solid var(--lilac);
}
#cookie-toggle:checked ~ .cookie-banner { display: none; }
#cookie-toggle { display: none; }
.cookie-banner p { margin-bottom: 1rem; line-height: 1.5; }
.cookie-banner a { color: var(--lilac); text-decoration: underline; }
.cookie-btns { display: flex; gap: 0.5rem; }
.cookie-btn {
  padding: 0.6rem 1rem;
  font-family: inherit;
  font-size: 0.8rem;
  border: none; cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-height: 44px;
  min-width: 44px;
  transition: background 0.3s;
}
.cookie-accept {
  background: var(--pistachio);
  color: var(--burgundy);
}
.cookie-accept:hover { background: var(--pistachio-dark); }
.cookie-decline {
  background: transparent;
  color: var(--pistachio-light);
  border: 1px solid var(--pistachio-dark);
}
.cookie-decline:hover { background: rgba(197,212,160,0.1); }

/* === ARTICLE PAGE === */
.article-hero {
  background: var(--burgundy);
  padding: 3rem 1.5rem;
}
.article-hero .hero-tag { color: var(--lilac); border-color: var(--lilac); }
.article-hero h1 { color: var(--pistachio); font-size: 2.2rem; max-width: 800px; margin: 0.5rem 0; line-height: 1.2; }
.article-hero .hero-meta { color: var(--pistachio-dark); }
.article-body { max-width: 800px; margin: 0 auto; padding: 2rem 0; }
.article-body h2 {
  font-size: 1.5rem; color: var(--burgundy);
  margin: 2rem 0 1rem;
  border-left: 4px solid var(--lilac);
  padding-left: 1rem;
}
.article-body h3 { font-size: 1.2rem; color: var(--burgundy); margin: 1.5rem 0 0.6rem; }
.article-body p { margin-bottom: 1rem; }
.article-body ul { margin: 1rem 0 1rem 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }
.inline-highlight {
  background: var(--lilac-light);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--burgundy);
  font-style: italic;
}

/* === LEGAL PAGES === */
.legal-page { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }
.legal-page h1 { font-size: 2rem; color: var(--burgundy); margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.2rem; color: var(--burgundy); margin: 1.5rem 0 0.5rem; }
.legal-page p { margin-bottom: 0.8rem; font-size: 0.95rem; }

/* === SUCCESS PAGE === */
.success-page {
  text-align: center; padding: 5rem 1.5rem;
  max-width: 600px; margin: 0 auto;
}
.success-page h1 { font-size: 2.5rem; color: var(--burgundy); margin-bottom: 1rem; }
.success-page p { font-size: 1.1rem; margin-bottom: 2rem; color: var(--text-muted); }
.btn-home {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--burgundy);
  color: var(--pistachio);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: background 0.3s, transform 0.2s;
  min-height: 48px;
}
.btn-home:hover { background: var(--burgundy-light); transform: translateY(-2px); color: #fff; }

/* === 404 PAGE === */
.error-page { text-align: center; padding: 5rem 1.5rem; max-width: 600px; margin: 0 auto; }
.error-num { font-size: 8rem; font-weight: 700; color: var(--burgundy); line-height: 1; opacity: 0.3; }
.error-page h1 { font-size: 1.8rem; color: var(--burgundy); margin-bottom: 1rem; }
.error-page p { margin-bottom: 2rem; color: var(--text-muted); }

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
.stagger-block:nth-child(1) { animation-delay: 0.1s; }
.stagger-block:nth-child(2) { animation-delay: 0.2s; }
.stagger-block:nth-child(3) { animation-delay: 0.3s; }
.stagger-block:nth-child(4) { animation-delay: 0.4s; }
.stagger-block:nth-child(5) { animation-delay: 0.5s; }

/* === RESPONSIVE === */
@media (min-width: 768px) {
  .hero-title { font-size: 3.5rem; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr 1fr; }
  .sidebar-layout { grid-template-columns: 2fr 1fr; }
  .subscribe-form { flex-direction: row; }
  .staggered-grid { grid-template-columns: 1fr 1fr; }
  .stagger-block:nth-child(odd) { transform: translateY(30px); }
  .quote-band { margin: 3rem -1.5rem; padding: 4rem 3rem; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .nav-list { display: flex; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 4.2rem; }
  .ribbon-strip:nth-child(1) { transform: translateX(-5%); }
  .ribbon-strip:nth-child(2) { transform: translateX(8%); }
  .ribbon-strip:nth-child(3) { transform: translateX(-2%); }
  .card-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .main-content { padding: 4rem 2rem; }
  .quote-band { margin: 3rem -2rem; }
}

@media (max-width: 767px) {
  .nav-list { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--burgundy); padding: 1rem 1.5rem; gap: 0.8rem; border-top: 2px solid var(--lilac); }
  .nav-list.open { display: flex; }
  .burger { display: flex; }
  .header-inner { padding: 0.6rem 1rem; }
  .logo { font-size: 1.4rem; }
  .hero-title { font-size: 2rem; }
  .quote-band blockquote { font-size: 1.1rem; }
  .subscribe-section { margin: 2rem -1rem 0; }
}
