/*
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,600;0,700;1,400&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --bg: #FDF8F0;
  --bg-alt: #F5EDE0;
  --text: #2E2A25;
  --text-light: #6B6460;
  --accent: #8B5E3C;
  --accent-dark: #6B4226;
  --accent-light: #C9A77C;
  --border: #DDD2C4;
  --white: #FFFFFF;
  --shadow: 0 2px 12px rgba(80,50,20,0.08);
  --shadow-lg: 0 8px 32px rgba(80,50,20,0.12);
  --radius: 6px;
  --heading-font: 'Playfair Display', 'Georgia', serif;
  --body-font: 'Source Serif 4', 'Times New Roman', serif;
  --max-w: 820px;
  --max-w-wide: 1140px;
  --transition: 0.3s ease;
}

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: var(--body-font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* === HEADER / NAV === */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo {
  font-family: var(--heading-font);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: color var(--transition);
}
.site-logo:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  position: absolute;
  left: 7px;
  transition: var(--transition);
}
.nav-toggle span { top: 17px; }
.nav-toggle span::before { content: ''; top: -7px; }
.nav-toggle span::after { content: ''; top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open span::after { transform: rotate(-45deg); top: 0; }

.main-nav { display: flex; gap: 8px; align-items: center; }
.main-nav a {
  font-family: var(--body-font);
  font-size: 0.92rem;
  color: var(--text-light);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
  font-weight: 400;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-dark);
  background: var(--bg-alt);
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; text-align: left; }
}

/* === BREADCRUMBS === */
.breadcrumbs {
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: 0.85rem;
  color: var(--text-light);
}
.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
  text-align: left;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 6px; opacity: 0.5; }

/* === COMMUNITY BLOCK === */
.community-block {
  max-width: var(--max-w);
  margin: 28px auto 0;
  padding: 0 24px;
}
.community-inner {
  background: linear-gradient(135deg, var(--bg-alt), var(--white));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.community-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  font-size: 1.2rem;
}
.community-inner p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}
.community-inner strong { color: var(--accent-dark); }

/* === ARTICLE === */
.article-header {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding: 0 24px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-light);
}
.article-meta .category {
  background: var(--accent);
  color: var(--white);
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.article-meta .reading-time { font-style: italic; }

.article-title {
  font-family: var(--heading-font);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.article-author {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 28px;
}
.article-author strong { color: var(--accent-dark); }

.article-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.article-body h2 {
  font-family: var(--heading-font);
  font-size: 1.6rem;
  color: var(--text);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-light);
  letter-spacing: -0.3px;
}
.article-body h3 {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  color: var(--accent-dark);
  margin: 28px 0 12px;
}
.article-body p { margin-bottom: 18px; }
.article-body .img-block {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-body .img-block img {
  width: 100%;
  height: auto;
  display: block;
}
.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}
.article-body .highlight-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0;
  box-shadow: var(--shadow);
}
.article-body .highlight-box h3 { margin-top: 0; }

/* === READ ALSO === */
.read-also {
  max-width: var(--max-w);
  margin: 48px auto 0;
  padding: 0 24px;
}
.read-also h2 {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--text);
}
.read-also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.read-also-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none;
  transition: all var(--transition);
  display: block;
  text-align: left;
}
.read-also-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}
.read-also-card .card-cat {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.read-also-card .card-title {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.4;
}

/* === SUBSCRIBE === */
.subscribe-section {
  max-width: var(--max-w);
  margin: 48px auto 0;
  padding: 0 24px;
}
.subscribe-inner {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
}
.subscribe-inner h2 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.subscribe-inner p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 24px;
}
.subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}
.subscribe-form input[type="email"] {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-radius: var(--radius);
  font-family: var(--body-font);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.subscribe-form input[type="email"]::placeholder { color: rgba(255,255,255,0.6); }
.subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--white);
  background: rgba(255,255,255,0.25);
}
.subscribe-form button {
  padding: 12px 28px;
  background: var(--white);
  color: var(--accent-dark);
  border: none;
  border-radius: var(--radius);
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.subscribe-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

@media (max-width: 500px) {
  .subscribe-form { flex-direction: column; }
}

/* === FOOTER === */
.site-footer {
  max-width: var(--max-w-wide);
  margin: 60px auto 0;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-brand .site-logo { font-size: 1.3rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition);
  text-align: left;
}
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 640px;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--text-light);
  opacity: 0.7;
}

@media (max-width: 600px) {
  .footer-top { flex-direction: column; }
  .article-title { font-size: 1.8rem; }
}

/* === COOKIE MODAL === */
.cookie-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 380px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal h3 {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text);
}
.cookie-modal p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}
.cookie-btns { display: flex; gap: 10px; }
.cookie-btns button {
  flex: 1;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-family: var(--body-font);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.cookie-btn-accept {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent) !important;
}
.cookie-btn-accept:hover { background: var(--accent-dark); }
.cookie-btn-decline {
  background: var(--white);
  color: var(--text-light);
}
.cookie-btn-decline:hover { background: var(--bg-alt); }
.cookie-modal.hidden { display: none; }

/* === POLICY / TERMS / COOKIES PAGES === */
.legal-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.legal-page h1 {
  font-family: var(--heading-font);
  font-size: 2rem;
  margin-bottom: 32px;
  color: var(--text);
  border-bottom: 2px solid var(--accent-light);
  padding-bottom: 16px;
}
.legal-page h2 {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  margin: 32px 0 12px;
  color: var(--accent-dark);
}
.legal-page p {
  margin-bottom: 14px;
  color: var(--text);
  line-height: 1.8;
}

/* === SUCCESS PAGE === */
.success-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.success-icon {
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 2.5rem;
  color: var(--white);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.success-page h1 {
  font-family: var(--heading-font);
  font-size: 2.4rem;
  color: var(--text);
  margin-bottom: 12px;
}
.success-page p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 480px;
}
.btn-home {
  padding: 14px 36px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
  font-family: var(--body-font);
  font-weight: 600;
  transition: all var(--transition);
}
.btn-home:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* === 404 === */
.page-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.page-404 .num-404 {
  font-family: var(--heading-font);
  font-size: 8rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0.6;
}
.page-404 h1 {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 12px;
}
.page-404 p {
  color: var(--text-light);
  margin-bottom: 28px;
  max-width: 400px;
}

/* === HOME HERO === */
.hero-banner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 40px 24px 0;
}
.hero-inner {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 60%, var(--accent-light) 100%);
  border-radius: var(--radius);
  padding: 48px 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-inner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner h1 {
  font-family: var(--heading-font);
  font-size: 2rem;
  margin-bottom: 12px;
  position: relative;
}
.hero-inner p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 560px;
  position: relative;
}

@media (max-width: 600px) {
  .hero-inner { padding: 32px 24px; }
  .hero-inner h1 { font-size: 1.5rem; }
}
