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

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

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

:root {
  --bg: #FAF6EE;
  --text: #3D3229;
  --text-light: #6B5D50;
  --primary: #C4704B;
  --primary-hover: #A85A38;
  --secondary: #7B9E6B;
  --secondary-light: #A8C49A;
  --accent: #D4A85C;
  --card-bg: #FFFFFF;
  --card-shadow: 0 4px 24px rgba(61,50,41,0.07);
  --footer-bg: #3D3229;
  --footer-text: #FAF6EE;
  --border: #E8DFD3;
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --font-display: 'Quicksand', sans-serif;
  --font-body: 'Lora', serif;
  --max-w: 1140px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

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

/* === NAV === */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,246,238,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.site-logo span { color: var(--secondary); }
.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 50px;
  transition: var(--transition);
}
.nav-links a:hover {
  background: var(--primary);
  color: #fff;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* === HERO === */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(196,112,75,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(123,158,107,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--secondary);
  background: rgba(123,158,107,0.12);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem,5vw,3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  max-width: 720px;
  margin: 0 auto 18px;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 540px;
  margin: 0 auto;
}

/* === BREADCRUMBS === */
.breadcrumbs {
  padding: 18px 0 0;
  font-family: var(--font-display);
  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; }

/* === READING TIME WIDGET === */
.reading-widget {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(196,112,75,0.08), rgba(123,158,107,0.08));
  border-radius: var(--radius);
  margin: 24px 0 32px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-light);
  flex-wrap: wrap;
}
.reading-widget .rw-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.reading-widget .rw-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}
.reading-widget strong { color: var(--text); }

/* === ARTICLE === */
.article-content {
  max-width: 760px;
  margin: 0 auto;
}
.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  margin: 48px 0 16px;
  color: var(--text);
  position: relative;
  padding-left: 20px;
}
.article-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 5px;
  height: 28px;
  background: var(--primary);
  border-radius: 3px;
}
.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
}
.article-content p {
  margin: 0 0 18px;
}
.article-content img {
  width: 100%;
  border-radius: var(--radius);
  margin: 28px 0;
  box-shadow: var(--card-shadow);
}
.article-content ul, .article-content ol {
  margin: 0 0 18px;
  padding-left: 28px;
}
.article-content li {
  margin-bottom: 8px;
}

/* === QUOTE BLOCK === */
.quote-block {
  background: linear-gradient(135deg, rgba(212,168,92,0.1), rgba(196,112,75,0.06));
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px;
  margin: 36px 0;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--text);
  position: relative;
}
.quote-block::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent);
  position: absolute;
  top: -8px;
  left: 18px;
  opacity: 0.4;
  line-height: 1;
}
.quote-block cite {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 600;
}

/* === HIGHLIGHT BOX === */
.highlight-box {
  background: var(--card-bg);
  border: 2px solid var(--secondary-light);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 36px 0;
}
.highlight-box h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
  font-size: 1.05rem;
}
.highlight-box ul {
  list-style: none;
  padding: 0;
}
.highlight-box li {
  padding: 6px 0 6px 24px;
  position: relative;
}
.highlight-box li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

/* === TIP CARD === */
.tip-card {
  display: flex;
  gap: 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
  box-shadow: var(--card-shadow);
  align-items: flex-start;
}
.tip-card .tip-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.tip-card .tip-text {
  flex: 1;
}
.tip-card .tip-text strong {
  font-family: var(--font-display);
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

/* === READ ALSO === */
.read-also {
  margin: 56px 0 40px;
}
.read-also h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
  text-align: center;
}
.read-also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 20px;
}
.read-also-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  border: 1px solid transparent;
}
.read-also-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(196,112,75,0.12);
}
.read-also-card .ra-cat {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
  margin-bottom: 8px;
}
.read-also-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

/* === SUBSCRIBE === */
.subscribe-section {
  background: linear-gradient(135deg, var(--primary), #D98B6A);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  margin: 48px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.subscribe-section::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
}
.subscribe-section h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.subscribe-section p {
  opacity: 0.9;
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}
.subscribe-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.6);
}
.subscribe-form input[type="email"]:focus {
  border-color: #fff;
  background: rgba(255,255,255,0.22);
}
.subscribe-form button {
  padding: 14px 30px;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}
.subscribe-form button:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.04);
}

/* === FOOTER === */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 48px 0 28px;
  margin-top: 60px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(250,246,238,0.7);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer {
  font-size: 0.82rem;
  color: rgba(250,246,238,0.5);
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer-copy {
  font-size: 0.82rem;
  color: rgba(250,246,238,0.4);
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(250,246,238,0.1);
}
.footer-copy a {
  color: var(--accent);
  text-decoration: none;
}

/* === COOKIE MODAL === */
.cookie-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 380px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(61,50,41,0.18);
  padding: 28px;
  z-index: 999;
  animation: slideUp 0.5s ease-out;
  border: 1px solid var(--border);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.cookie-modal p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 18px;
  line-height: 1.55;
}
.cookie-modal .cookie-btns {
  display: flex;
  gap: 10px;
}
.cookie-modal .btn-accept {
  flex: 1;
  padding: 10px 0;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}
.cookie-modal .btn-accept:hover { background: var(--primary-hover); }
.cookie-modal .btn-decline {
  flex: 1;
  padding: 10px 0;
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}
.cookie-modal .btn-decline:hover { border-color: var(--text); color: var(--text); }

/* === SCROLL ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === POLICY / LEGAL PAGES === */
.legal-page {
  padding: 48px 0;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--text);
}
.legal-page p, .legal-page li {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 14px;
}
.legal-page ul {
  padding-left: 24px;
  margin-bottom: 14px;
}

/* === SUCCESS PAGE === */
.success-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.success-page .success-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin: 0 auto 28px;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.success-page h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.success-page p {
  color: var(--text-light);
  margin-bottom: 32px;
  font-size: 1.1rem;
}
.btn-home {
  display: inline-block;
  padding: 14px 36px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 700;
  transition: var(--transition);
}
.btn-home:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* === 404 === */
.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  position: relative;
}
.page-404 .big-404 {
  font-family: var(--font-display);
  font-size: clamp(6rem,18vw,12rem);
  font-weight: 700;
  color: rgba(196,112,75,0.1);
  position: absolute;
  pointer-events: none;
  user-select: none;
}
.page-404 h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}
.page-404 p {
  color: var(--text-light);
  margin-bottom: 28px;
  position: relative;
}

/* === HOME CARDS GRID === */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 24px;
  margin: 40px 0;
}
.article-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
}
.article-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(196,112,75,0.14);
}
.article-card .card-body {
  padding: 24px;
}
.article-card .card-cat {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
  margin-bottom: 8px;
}
.article-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  text-align: left;
}
.article-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.55;
  text-align: left;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-toggle { display: flex; }
  .hero { padding: 48px 0 36px; }
  .subscribe-section { padding: 36px 24px; }
  .cookie-modal { left: 12px; right: 12px; max-width: none; bottom: 12px; }
  .tip-card { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 20px; }
  .reading-widget { flex-direction: column; align-items: flex-start; gap: 10px; }
  .reading-widget .rw-divider { width: 40px; height: 1px; }
}
