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

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

:root {
  --cream: #FFF8F0;
  --sand: #F5EDE3;
  --sage: #8BA888;
  --sage-light: #C5D8BF;
  --sage-dark: #6B8A66;
  --terra: #C4836A;
  --terra-light: #E0A78E;
  --brown: #6B4F3A;
  --brown-light: #8A7060;
  --text: #3D3028;
  --text-light: #7A6D62;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(107,79,58,0.08);
  --shadow-hover: 0 8px 32px rgba(107,79,58,0.14);
  --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
a { display: inline-block; text-align: center; }

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
  font-weight: 400;
}

h1,h2,h3,h4 {
  font-family: 'DM Serif Display', serif;
  color: var(--brown);
  line-height: 1.25;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.5em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.4em; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); margin-bottom: 0.3em; }

p { margin-bottom: 1.1em; }

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

/* ── LAYOUT ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--sand);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--brown);
  text-decoration: none;
}
.logo span { color: var(--sage); }

nav { display: flex; gap: 0.3rem; flex-wrap: wrap; }
nav a {
  color: var(--text-light);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
}
nav a:hover { color: var(--sage-dark); background: var(--sand); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--brown);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: var(--transition);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

@media(max-width:768px) {
  .hamburger { display: block; }
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--sand);
    display: none;
    box-shadow: var(--shadow);
  }
  nav.open { display: flex; }
  nav a { text-align: left; padding: 0.7rem 1rem; }
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ── BREADCRUMBS ── */
.breadcrumbs {
  padding: 1rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}
.breadcrumbs a {
  color: var(--sage-dark);
  text-decoration: none;
  text-align: left;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: var(--text-light); }

/* ── HERO ── */
.hero-section {
  padding: 3rem 0 2rem;
  text-align: center;
}
.hero-section .category-tag {
  display: inline-block;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.hero-section .meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.6rem;
}
.hero-section .meta span { margin: 0 0.5rem; }

/* ── ARTICLE LAYOUT ── */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  padding: 2rem 0 3rem;
  align-items: start;
}
@media(max-width:900px) {
  .article-grid { grid-template-columns: 1fr; }
}

.article-body p { text-align: justify; hyphens: auto; }
.article-body h2 { margin-top: 2rem; color: var(--sage-dark); }
.article-body h3 { margin-top: 1.5rem; }

.article-body blockquote {
  border-left: 4px solid var(--sage);
  background: var(--sand);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--brown-light);
}

.highlight-box {
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--sand) 100%);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
}
.highlight-box h3 { color: var(--sage-dark); margin-bottom: 0.6rem; }

.numbered-list {
  counter-reset: steps;
  padding: 0;
  list-style: none;
}
.numbered-list li {
  counter-increment: steps;
  padding: 0.8rem 0 0.8rem 3rem;
  position: relative;
  border-bottom: 1px solid var(--sand);
}
.numbered-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 2rem;
  height: 2rem;
  background: var(--sage);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 80px; }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--sage-light);
}
.sidebar-card a {
  display: block;
  text-align: left;
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0;
  font-size: 0.92rem;
  transition: var(--transition);
  border-bottom: 1px solid var(--sand);
}
.sidebar-card a:hover { color: var(--sage-dark); padding-left: 0.5rem; }
.sidebar-card a:last-child { border-bottom: none; }

.author-box { text-align: center; }
.author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-light), var(--terra-light));
  margin: 0 auto 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.author-box .author-name {
  font-family: 'DM Serif Display', serif;
  color: var(--brown);
  font-size: 1.05rem;
}
.author-box .author-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}

/* ── INFOGRAPHIC ── */
.infographic {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow);
}
.infographic h2 { text-align: center; margin-bottom: 1.5rem; }
.info-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.info-step {
  text-align: center;
  padding: 1.2rem;
  background: var(--sand);
  border-radius: var(--radius);
  transition: var(--transition);
}
.info-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.info-step .step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  font-size: 1.5rem;
}
.info-step h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.info-step p { font-size: 0.88rem; color: var(--text-light); margin: 0; }

/* ── COMMENTS ── */
.comments-section {
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.comments-section h2 { margin-bottom: 1.2rem; }
.comment {
  padding: 1rem 0;
  border-bottom: 1px solid var(--sand);
}
.comment:last-child { border-bottom: none; }
.comment-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}
.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--sage-dark);
  font-size: 0.85rem;
}
.comment-name { font-weight: 600; font-size: 0.95rem; }
.comment-date { font-size: 0.8rem; color: var(--text-light); }
.comment-text { font-size: 0.93rem; color: var(--text-light); }

/* ── READ ALSO ── */
.read-also {
  margin: 2.5rem 0;
}
.read-also h2 { margin-bottom: 1.2rem; }
.read-also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.read-also-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
}
.read-also-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.read-also-card .card-img {
  height: 160px;
  background: linear-gradient(135deg, var(--sage-light), var(--terra-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.read-also-card .card-body { padding: 1.2rem; }
.read-also-card .card-body h3 { font-size: 1.05rem; text-align: left; }
.read-also-card .card-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0.4rem 0 0;
}

/* ── SUBSCRIBE ── */
.subscribe-section {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin: 2.5rem 0;
  color: var(--white);
}
.subscribe-section h2 { color: var(--white); margin-bottom: 0.5rem; }
.subscribe-section p { color: rgba(255,255,255,0.85); margin-bottom: 1.2rem; }
.subscribe-form {
  display: flex;
  gap: 0.8rem;
  max-width: 460px;
  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: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}
.subscribe-form input::placeholder { color: rgba(255,255,255,0.6); }
.subscribe-form input:focus { border-color: var(--white); background: rgba(255,255,255,0.25); }
.subscribe-form button {
  padding: 0.85rem 2rem;
  background: var(--terra);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}
.subscribe-form button:hover { background: var(--terra-light); transform: scale(1.03); }

/* ── FOOTER ── */
.site-footer {
  background: var(--brown);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .logo { color: var(--cream); }
.footer-brand .logo span { color: var(--sage-light); }
.footer-brand p { font-size: 0.88rem; margin-top: 0.4rem; max-width: 300px; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--sage-light); }
.footer-bottom {
  padding-top: 1.2rem;
  font-size: 0.82rem;
  text-align: center;
  color: rgba(255,255,255,0.45);
}
.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.6rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ── COOKIE MODAL ── */
.cookie-modal {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  max-width: 360px;
  z-index: 999;
  animation: slideUp 0.5s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.cookie-modal p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 1rem; }
.cookie-modal a { color: var(--sage-dark); font-size: 0.85rem; }
.cookie-btns { display: flex; gap: 0.6rem; }
.cookie-btns button {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-accept { background: var(--sage); color: var(--white); }
.btn-accept:hover { background: var(--sage-dark); }
.btn-decline { background: var(--sand); color: var(--text); }
.btn-decline:hover { background: var(--sage-light); }

/* ── SUCCESS/404 ── */
.page-center {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}
.page-center h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.page-center p { color: var(--text-light); max-width: 500px; margin: 0.5rem auto 1.5rem; }
.btn-home {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: var(--sage);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
}
.btn-home:hover { background: var(--sage-dark); transform: scale(1.04); }

/* ── LEGAL PAGES ── */
.legal-page { padding: 2.5rem 0 3rem; }
.legal-page h1 { margin-bottom: 1.5rem; }
.legal-page h2 { margin-top: 2rem; margin-bottom: 0.6rem; color: var(--sage-dark); font-size: 1.3rem; }
.legal-content { max-width: 780px; }
.legal-content p { font-size: 0.95rem; color: var(--text-light); }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.6s ease-out both;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@media(max-width:480px) {
  .subscribe-section { padding: 1.8rem 1.2rem; }
  .cookie-modal { left: 1rem; right: 1rem; max-width: none; bottom: 1rem; }
}
