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

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

@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;1,400&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --cream: #FDF8F0;
  --cream-dark: #F3ECDF;
  --ink: #2C2418;
  --ink-light: #5A4E3C;
  --accent: #8B6F4E;
  --accent-warm: #C4956A;
  --accent-soft: #D4B896;
  --border: #E0D5C4;
  --white: #FFFFFF;
  --success-green: #5B8C5A;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;
  --max-width: 1140px;
  --content-width: 740px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(44,36,24,0.06);
  --shadow-md: 0 4px 16px rgba(44,36,24,0.08);
  --shadow-lg: 0 8px 32px rgba(44,36,24,0.12);
  --transition: 0.3s ease;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.8;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER / NAV ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.site-logo span { color: var(--accent); }
.site-nav { display: flex; gap: 8px; align-items: center; }
.site-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-light);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.site-nav a:hover { color: var(--accent); background: var(--cream-dark); }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; position: relative;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: var(--transition);
}

/* ── BREADCRUMBS ── */
.breadcrumbs {
  max-width: var(--content-width);
  margin: 32px auto 0;
  padding: 0 24px;
  font-size: 13px;
  color: var(--ink-light);
}
.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
  text-align: left;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 6px; opacity: 0.5; }

/* ── CATEGORY BADGE ── */
.category-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  background: rgba(139,111,78,0.08);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* ── ARTICLE ── */
.article-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px 60px;
}
.article-meta {
  margin-top: 24px;
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 12px 0 20px;
  letter-spacing: -0.5px;
}
.article-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.article-info .author-name { font-weight: 600; color: var(--ink); }
.reading-time {
  display: flex; align-items: center; gap: 4px;
}
.reading-time svg { width: 16px; height: 16px; fill: var(--accent); }

.article-body h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin: 48px 0 20px;
  color: var(--ink);
  line-height: 1.3;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 36px 0 14px;
  color: var(--ink);
}
.article-body p {
  margin: 0 0 20px;
  color: var(--ink);
}
.article-body ul, .article-body ol {
  margin: 0 0 24px;
  padding-left: 24px;
}
.article-body li { margin-bottom: 8px; }

.article-body img {
  width: 100%;
  border-radius: var(--radius);
  margin: 32px 0;
  box-shadow: var(--shadow-md);
}

/* ── BLOCKQUOTE ── */
.big-quote {
  font-family: var(--font-accent);
  font-size: clamp(20px, 3vw, 26px);
  font-style: italic;
  color: var(--accent);
  border-left: 4px solid var(--accent-warm);
  padding: 24px 32px;
  margin: 40px 0;
  background: rgba(139,111,78,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.6;
  position: relative;
}
.big-quote::before {
  content: '\201E';
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--accent-soft);
  position: absolute;
  top: -10px; left: 12px;
  line-height: 1;
}

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 36px 0;
  border: 1px solid var(--border);
}
.highlight-box h3 {
  font-family: var(--font-display);
  margin-top: 0;
  font-size: 18px;
  color: var(--accent);
}

/* ── NUMBERED TIPS ── */
.tip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 32px 0;
}
.tip-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.tip-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tip-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* ── READ ALSO ── */
.read-also {
  margin: 48px 0 40px;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.read-also h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 20px;
  color: var(--ink);
}
.read-also-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.read-also-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--cream);
  transition: var(--transition);
  text-align: left;
  font-weight: 500;
}
.read-also-link:hover {
  background: var(--cream-dark);
  color: var(--accent);
  transform: translateX(4px);
}
.read-also-link .arrow {
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}

/* ── SUBSCRIBE ── */
.subscribe-section {
  background: linear-gradient(135deg, var(--ink) 0%, #3D3426 100%);
  border-radius: var(--radius);
  padding: 48px 40px;
  margin: 48px 0;
  text-align: center;
  color: var(--cream);
}
.subscribe-section h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--cream);
}
.subscribe-section p {
  font-size: 15px;
  opacity: 0.85;
  margin: 0 0 24px;
  color: var(--cream);
}
.subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.subscribe-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}
.subscribe-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.subscribe-form input[type="email"]:focus { border-color: var(--accent-warm); background: rgba(255,255,255,0.15); }
.subscribe-form button {
  padding: 14px 28px;
  background: var(--accent-warm);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.subscribe-form button:hover { background: var(--accent); transform: translateY(-1px); }

/* ── DISCLAIMER ── */
.disclaimer {
  font-size: 13px;
  color: var(--ink-light);
  background: var(--cream-dark);
  border-left: 3px solid var(--accent-soft);
  padding: 16px 20px;
  margin: 36px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.7;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 32px;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
}
.footer-brand .footer-logo span { color: var(--accent-warm); }
.footer-brand p { font-size: 14px; line-height: 1.6; }
.footer-links h4 {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 16px;
  margin: 0 0 16px;
}
.footer-links a {
  display: block;
  text-align: left;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent-warm); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  text-align: center;
}
.footer-disclaimer {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 12px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── COOKIE MODAL ── */
.cookie-modal {
  position: fixed;
  bottom: 24px; right: 24px;
  max-width: 380px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  z-index: 9999;
  border: 1px solid var(--border);
  animation: cookieSlide 0.4s ease;
}
@keyframes cookieSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal h4 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--ink);
}
.cookie-modal p { font-size: 13px; color: var(--ink-light); margin: 0 0 16px; line-height: 1.6; }
.cookie-buttons { display: flex; gap: 10px; }
.cookie-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.cookie-accept { background: var(--accent); color: var(--white); }
.cookie-accept:hover { background: var(--ink); }
.cookie-decline { background: var(--cream-dark); color: var(--ink-light); border: 1px solid var(--border); }
.cookie-decline:hover { background: var(--border); }

/* ── POLICY / LEGAL PAGES ── */
.legal-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 48px 24px 60px;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: 36px;
  margin-bottom: 32px;
  color: var(--ink);
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 40px 0 16px;
  color: var(--ink);
}
.legal-page p { margin: 0 0 16px; color: var(--ink-light); line-height: 1.8; }

/* ── SUCCESS PAGE ── */
.success-page {
  min-height: 70vh;
  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(--success-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: successPop 0.5s ease;
}
@keyframes successPop {
  0% { transform: scale(0); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.success-icon svg { width: 36px; height: 36px; fill: var(--white); }
.success-page h1 {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--ink);
  margin-bottom: 12px;
}
.success-page p {
  font-size: 18px;
  color: var(--ink-light);
  margin-bottom: 32px;
}
.btn-home {
  padding: 14px 36px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  transition: var(--transition);
}
.btn-home:hover { background: var(--ink); transform: translateY(-2px); }

/* ── 404 ── */
.page-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.page-404 .err-num {
  font-family: var(--font-display);
  font-size: clamp(80px, 15vw, 160px);
  font-weight: 700;
  color: var(--accent-soft);
  line-height: 1;
  margin-bottom: 16px;
}
.page-404 h1 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 12px;
}
.page-404 p {
  color: var(--ink-light);
  margin-bottom: 32px;
}

/* ── HERO IMAGE ── */
.hero-img-wrap {
  margin: 0 0 36px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-img-wrap img { width: 100%; display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .footer-inner { grid-template-columns: 1fr; }
  .subscribe-form { flex-direction: column; }
  .cookie-modal { left: 16px; right: 16px; max-width: none; bottom: 16px; }
  .article-title { margin-top: 8px; }
  .big-quote { padding: 20px 20px 20px 24px; }
  .read-also { padding: 20px; }
  .subscribe-section { padding: 32px 20px; }
}
