/*
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,700;0,900;1,400;1,700&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=JetBrains+Mono:wght@400&display=swap');

:root {
  --navy: #1a1a2e;
  --navy-light: #2d2d44;
  --gold: #c9a96e;
  --gold-light: #e0c98f;
  --cream: #f8f6f1;
  --cream-dark: #ede9e0;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --text-muted: #9a9a9a;
  --white: #ffffff;
  --border: #d4cfc4;
  --accent-red: #b04a3a;
  --shadow: 0 2px 20px rgba(26,26,46,0.08);
  --shadow-lg: 0 8px 40px rgba(26,26,46,0.12);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-w: 1200px;
  --content-w: 760px;
  --transition: 0.3s 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: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border-radius: 4px; }

/* ── HEADER ── */
.site-header {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: var(--transition);
}
.site-logo:hover { color: var(--gold-light); }

.site-nav { display: flex; gap: 0.25rem; align-items: center; }
.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.site-nav a:hover { background: rgba(201,169,110,0.15); color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
  transition: var(--transition);
}

/* ── BREADCRUMBS ── */
.breadcrumbs {
  max-width: var(--content-w);
  margin: 2rem auto 0;
  padding: 0 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.breadcrumbs a {
  color: var(--text-light);
  text-decoration: none;
  text-align: left;
  transition: var(--transition);
}
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { margin: 0 0.4rem; }

/* ── ARTICLE META ── */
.article-meta {
  max-width: var(--content-w);
  margin: 1.5rem auto 0;
  padding: 0 2rem;
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  align-items: center;
}
.article-meta__divider {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.article-category {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.2rem 0.7rem;
  border-radius: 3px;
}

/* ── ARTICLE TITLE ── */
.article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--navy);
  max-width: var(--content-w);
  margin: 1.5rem auto 0;
  padding: 0 2rem;
  letter-spacing: -0.5px;
}

/* ── HORIZONTAL RULE ── */
.editorial-hr {
  max-width: var(--content-w);
  margin: 2rem auto;
  padding: 0 2rem;
}
.editorial-hr::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(to right, var(--gold), var(--border), transparent);
}

/* ── ARTICLE BODY ── */
.article-body {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 2rem 2rem;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  line-height: 1.25;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-light);
  margin: 2rem 0 0.75rem;
}
.article-body p {
  margin-bottom: 1.2rem;
  text-align: left;
}
.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.article-body li {
  margin-bottom: 0.5rem;
  text-align: left;
}
.article-body .lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.7;
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
  margin-bottom: 2rem;
}

/* ── PULL QUOTE ── */
.pull-quote {
  margin: 2.5rem -1rem;
  padding: 2rem 2rem 2rem 2.5rem;
  border-left: 4px solid var(--gold);
  background: linear-gradient(135deg, rgba(201,169,110,0.06), transparent);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--navy);
  position: relative;
}
.pull-quote::before {
  content: '\201E';
  position: absolute;
  top: -0.3rem;
  left: 0.7rem;
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.4;
  font-family: var(--font-display);
}

/* ── ARTICLE IMAGE ── */
.article-img-wrapper {
  margin: 2rem 0;
  position: relative;
}
.article-img-wrapper img {
  width: 100%;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.article-img-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
  text-align: center;
}

/* ── AUTHOR BOX ── */
.author-box {
  max-width: var(--content-w);
  margin: 2rem auto;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.author-box__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}
.author-box__info h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.author-box__info p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  text-align: left;
}

/* ── READ ALSO ── */
.read-also {
  max-width: var(--content-w);
  margin: 2rem auto;
  padding: 0 2rem;
}
.read-also h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold);
}
.read-also__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.read-also__card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.read-also__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.read-also__card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.read-also__card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  text-align: left;
}
.read-also__card-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ── SUBSCRIBE FORM ── */
.subscribe-section {
  max-width: var(--content-w);
  margin: 3rem auto;
  padding: 0 2rem;
}
.subscribe-box {
  background: var(--navy);
  border-radius: 10px;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.subscribe-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201,169,110,0.15), transparent 70%);
  border-radius: 50%;
}
.subscribe-box h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.5rem;
  position: relative;
}
.subscribe-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.subscribe-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.subscribe-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--navy-light);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}
.subscribe-form input[type="email"]::placeholder { color: var(--text-muted); }
.subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
}
.subscribe-form button {
  padding: 0.85rem 1.8rem;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.subscribe-form button:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── DISCLAIMER ── */
.disclaimer-text {
  max-width: var(--content-w);
  margin: 1rem auto;
  padding: 1.2rem 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid var(--border);
  line-height: 1.6;
  text-align: left;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 3rem 2rem 1.5rem;
  margin-top: 3rem;
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(201,169,110,0.2);
}
.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
}
.site-footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-footer__links a {
  color: var(--cream-dark);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}
.site-footer__links a:hover { color: var(--gold); }
.site-footer__bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.site-footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.site-footer__disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  max-width: 600px;
  text-align: left;
}

/* ── HOME HERO ── */
.home-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.home-hero__text h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.home-hero__text .lead {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}
.home-hero__img {
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

/* ── COOKIE MODAL ── */
.cookie-modal {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 380px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  animation: slideUp 0.4s ease-out;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.cookie-modal p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.5;
  text-align: left;
}
.cookie-modal p a { font-size: 0.85rem; color: var(--gold); }
.cookie-modal__btns {
  display: flex;
  gap: 0.75rem;
}
.cookie-modal__btns button {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.cookie-btn-accept {
  background: var(--gold);
  color: var(--navy);
}
.cookie-btn-accept:hover { background: var(--gold-light); }
.cookie-btn-decline {
  background: var(--cream-dark);
  color: var(--text);
}
.cookie-btn-decline:hover { background: var(--border); }
.cookie-modal.hidden { display: none; }

/* ── LEGAL PAGES ── */
.legal-page {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 3rem 2rem;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.legal-page .legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.legal-page p {
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.7;
  text-align: left;
}
.legal-page ul {
  margin: 0.75rem 0 1.25rem 1.5rem;
}
.legal-page li {
  margin-bottom: 0.4rem;
  text-align: left;
  line-height: 1.6;
}

/* ── SUCCESS PAGE ── */
.success-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 6rem 2rem;
  text-align: center;
}
.success-page__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--navy);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.success-page h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 1rem;
}
.success-page p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}
.btn-home {
  padding: 0.9rem 2.5rem;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
}
.btn-home:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ── 404 ── */
.page-404 {
  max-width: 600px;
  margin: 0 auto;
  padding: 6rem 2rem;
  text-align: center;
}
.page-404__number {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -4px;
  opacity: 0.8;
}
.page-404 h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  margin: 1rem 0 0.5rem;
}
.page-404 p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .site-nav { 
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid rgba(201,169,110,0.2);
  }
  .site-nav.active { display: flex; }
  .nav-toggle { display: block; }
  .home-hero { grid-template-columns: 1fr; }
  .home-hero__img { order: -1; }
  .subscribe-form { flex-direction: column; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .author-box__info p { text-align: center; }
  .site-footer__top { flex-direction: column; align-items: flex-start; }
  .cookie-modal { left: 1rem; right: 1rem; max-width: none; }
  .pull-quote { margin: 2rem 0; }
  .article-meta { flex-wrap: wrap; }
}
