/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --color-primary: #8b1a1a;
  --color-accent: #c0392b;
  --color-bg: #fdf6ec;
  --color-bg-secondary: #f5ede0;
  --color-text: #2c1810;
  --color-white: #ffffff;
  --color-border: #d4c5b0;
  --radius: 8px;
  --shadow: 4px 4px 0px var(--color-primary);
  --shadow-sm: 2px 2px 0px var(--color-primary);
  --shadow-accent: 4px 4px 0px var(--color-accent);
  --max-width: 1140px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

a {
  display: inline-block;
  text-align: center;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-primary);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.site-logo:hover {
  color: var(--color-accent);
}

.nav-desktop {
  display: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s;
}

.nav-desktop a:hover::after {
  width: 100%;
}

.nav-desktop a:hover {
  color: var(--color-accent);
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .burger-toggle { display: none !important; }
}

/* Burger */
.burger-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.burger-toggle span {
  width: 26px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: var(--color-accent);
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: #8a7a6a;
}

.breadcrumbs a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  margin: 0 0.4rem;
}

/* ===== BANNER ===== */
.article-banner {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.article-banner img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

@media (min-width: 768px) {
  .article-banner img {
    height: 420px;
  }
}

/* ===== ARTICLE ===== */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #8a7a6a;
}

.article-meta .category-badge {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.2rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content h2 {
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

.article-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-primary);
  border-left: 4px solid var(--color-accent);
  padding-left: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Pull quote */
.pull-quote {
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--color-bg-secondary);
  border-left: 5px solid var(--color-accent);
  border-radius: var(--radius);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-primary);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.pull-quote::before {
  content: '\201C';
  font-size: 4rem;
  position: absolute;
  top: -10px;
  left: 12px;
  color: var(--color-accent);
  opacity: 0.3;
  font-style: normal;
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
}

.article-tags a {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: all 0.2s;
}

.article-tags a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Disclaimer */
.disclaimer-block {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--color-bg-secondary);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: #6b5b4b;
  line-height: 1.6;
}

.disclaimer-block strong {
  color: var(--color-primary);
}

/* ===== SUBSCRIPTION FORM ===== */
.subscribe-section {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 3rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 3rem 0;
  box-shadow: var(--shadow-accent);
}

.subscribe-section h2 {
  color: var(--color-white);
  border: none;
  margin-top: 0;
}

.subscribe-section p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
}

.subscribe-form input[type="email"] {
  padding: 0.85rem 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.3s;
}

.subscribe-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.6);
}

.subscribe-form input[type="email"]:focus {
  border-color: var(--color-white);
}

.subscribe-form button {
  padding: 0.85rem 2rem;
  background: var(--color-white);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.subscribe-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (min-width: 520px) {
  .subscribe-form {
    flex-direction: row;
  }
  .subscribe-form input[type="email"] {
    flex: 1;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 3rem 1.25rem 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand .site-logo {
  color: var(--color-bg);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.6;
}

.footer-links h4 {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
}

.footer-links a {
  display: block;
  text-align: left;
  color: var(--color-bg);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}

.footer-disclaimer {
  max-width: var(--max-width);
  margin: 1rem auto 0;
  font-size: 0.75rem;
  opacity: 0.5;
  text-align: center;
  line-height: 1.5;
}

/* ===== COOKIE MODAL (CSS ONLY) ===== */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  max-width: 380px;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 6px 6px 0px var(--color-primary);
  z-index: 999;
  font-size: 0.85rem;
  line-height: 1.5;
  transition: transform 0.3s, opacity 0.3s;
}

.cookie-banner:has(~ .cookie-accepted:checked),
.cookie-banner:has(~ .cookie-rejected:checked) {
  display: none;
}

.cookie-banner p {
  margin-bottom: 1rem;
}

.cookie-banner a {
  color: var(--color-primary);
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-actions label {
  flex: 1;
  padding: 0.5rem;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.15s;
}

.cookie-actions label:first-child {
  background: var(--color-primary);
  color: var(--color-white);
}

.cookie-actions label:last-child {
  background: var(--color-bg-secondary);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.cookie-actions label:hover {
  transform: scale(1.03);
}

.cookie-accepted,
.cookie-rejected {
  display: none;
}

/* ===== RELATED ARTICLES ===== */
.related-articles {
  margin: 3rem 0;
}

.related-articles h2 {
  text-align: center;
  border: none;
}

.related-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-card {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.related-card h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.related-card p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===== SUCCESS PAGE ===== */
.success-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 2rem;
}

.success-wrapper h1 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.success-wrapper p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  opacity: 0.8;
}

.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ===== POLICY PAGES ===== */
.policy-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 0;
}

.policy-content h1 {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--color-primary);
}

.policy-content h2 {
  margin-top: 2rem;
}

.policy-content p {
  margin-bottom: 1rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.article-content {
  animation: fadeInUp 0.6s ease-out;
}

.subscribe-section {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* ===== UTILITY ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
