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

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

:root {
  --c-bg: #faf7f2;
  --c-surface: #ffffff;
  --c-text: #1e1e1e;
  --c-text-secondary: #5a5a5a;
  --c-primary: #1b3a4b;
  --c-accent: #c0713a;
  --c-accent-light: #e8a96820;
  --c-border: #d6cfc5;
  --c-border-light: #e8e2da;
  --c-light: #f0ebe3;
  --c-footer-bg: #1b3a4b;
  --c-footer-text: #d6cfc5;
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --max-w: 1140px;
  --gap: 2rem;
}

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

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gap); }

/* ── HEADER ── */
.site-header {
  background: var(--c-surface);
  border-bottom: 3px solid var(--c-primary);
  padding: 1rem 0;
  position: sticky; top: 0; z-index: 100;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.site-logo {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  color: var(--c-primary); text-decoration: none; letter-spacing: -0.5px;
}
.site-logo span { color: var(--c-accent); }
.site-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.site-nav a {
  font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--c-text-secondary);
  text-decoration: none; padding: 0.4rem 0.75rem; border-radius: 4px;
  transition: color 0.25s, background 0.25s;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--c-primary); background: var(--c-light);
}
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 1.5rem; color: var(--c-primary);
}

/* ── BREADCRUMBS ── */
.breadcrumbs {
  padding: 1.25rem 0 0.5rem; font-size: 0.82rem; color: var(--c-text-secondary);
}
.breadcrumbs a { color: var(--c-accent); text-decoration: none; text-align: left; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 0.4rem; opacity: 0.5; }

/* ── ARTICLE META ── */
.article-meta {
  display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center;
  font-size: 0.82rem; color: var(--c-text-secondary); text-transform: uppercase;
  letter-spacing: 1px; padding: 1rem 0; border-top: 1px solid var(--c-border-light);
  border-bottom: 1px solid var(--c-border-light); margin-bottom: 2rem;
}
.article-meta .category {
  background: var(--c-primary); color: #fff; padding: 0.2rem 0.6rem;
  font-size: 0.72rem; font-weight: 700; border-radius: 2px;
}

/* ── ARTICLE HEADING ── */
.article-title {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700; line-height: 1.2; color: var(--c-primary);
  margin: 1.5rem 0 1rem; letter-spacing: -0.5px;
}

/* ── ARTICLE LAYOUT ── */
.article-layout {
  display: grid; grid-template-columns: 1fr 280px; gap: 3rem;
  align-items: start;
}
.article-content h2 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--c-primary); margin: 2.5rem 0 1rem; padding-top: 1.5rem;
  border-top: 2px solid var(--c-border-light);
}
.article-content h3 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  color: var(--c-text); margin: 1.8rem 0 0.6rem;
}
.article-content p { margin-bottom: 1.25rem; }
.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.article-content li { margin-bottom: 0.4rem; }
.article-content img {
  width: 100%; border-radius: 6px; margin: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ── PULL QUOTE ── */
.pull-quote {
  border-left: 4px solid var(--c-accent); margin: 2rem 0; padding: 1.25rem 1.5rem;
  font-family: var(--font-display); font-style: italic; font-size: 1.2rem;
  color: var(--c-primary); background: var(--c-accent-light); border-radius: 0 6px 6px 0;
  line-height: 1.6;
}
.pull-quote::before { content: '\201E'; font-size: 2rem; display: block; color: var(--c-accent); line-height: 1; margin-bottom: 0.25rem; }

/* ── ASIDE ── */
.article-aside {
  position: sticky; top: 100px;
}
.aside-block {
  background: var(--c-surface); border: 1px solid var(--c-border-light);
  border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem;
}
.aside-block h4 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: var(--c-primary); margin-bottom: 1rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--c-accent);
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-cloud a {
  font-size: 0.78rem; background: var(--c-light); color: var(--c-text-secondary);
  padding: 0.3rem 0.65rem; border-radius: 20px; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.tag-cloud a:hover { background: var(--c-accent); color: #fff; }

.archive-cal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.archive-cal a {
  font-size: 0.78rem; padding: 0.4rem; background: var(--c-light);
  color: var(--c-text-secondary); border-radius: 4px; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.archive-cal a:hover { background: var(--c-primary); color: #fff; }

/* ── HORIZONTAL DIVIDER ── */
.hr-accent {
  border: none; height: 3px; background: linear-gradient(90deg, var(--c-accent), transparent);
  margin: 2.5rem 0;
}

/* ── READ ALSO ── */
.read-also {
  margin: 3rem 0; padding: 2.5rem 0; border-top: 3px solid var(--c-primary);
}
.read-also h3 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--c-primary); margin-bottom: 1.5rem;
}
.read-also-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem;
}
.read-also-card {
  background: var(--c-surface); border: 1px solid var(--c-border-light);
  border-radius: 8px; padding: 1.5rem; text-decoration: none; color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
}
.read-also-card:hover {
  transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.read-also-card .card-cat {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--c-accent); margin-bottom: 0.5rem;
}
.read-also-card h4 {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  color: var(--c-primary); line-height: 1.35;
}
.read-also-card .card-time {
  font-size: 0.78rem; color: var(--c-text-secondary); margin-top: 0.5rem;
}

/* ── SUBSCRIBE ── */
.subscribe-section {
  background: var(--c-primary); color: #fff; border-radius: 10px;
  padding: 2.5rem; margin: 2rem 0 3rem; text-align: center;
}
.subscribe-section h3 {
  font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.5rem;
}
.subscribe-section p { opacity: 0.85; margin-bottom: 1.5rem; font-size: 0.95rem; }
.subscribe-form {
  display: flex; gap: 0.75rem; max-width: 480px; margin: 0 auto; flex-wrap: wrap;
  justify-content: center;
}
.subscribe-form input[type=email] {
  flex: 1; min-width: 220px; padding: 0.75rem 1rem; border: 2px solid rgba(255,255,255,0.3);
  border-radius: 6px; background: rgba(255,255,255,0.1); color: #fff;
  font-size: 0.95rem; font-family: var(--font-body);
}
.subscribe-form input[type=email]::placeholder { color: rgba(255,255,255,0.6); }
.subscribe-form input[type=email]:focus {
  outline: none; border-color: var(--c-accent); background: rgba(255,255,255,0.15);
}
.subscribe-form button {
  padding: 0.75rem 2rem; background: var(--c-accent); color: #fff; border: none;
  border-radius: 6px; font-weight: 700; font-size: 0.9rem; cursor: pointer;
  text-transform: uppercase; letter-spacing: 1px; transition: background 0.25s, transform 0.15s;
  font-family: var(--font-body);
}
.subscribe-form button:hover { background: #d4833f; transform: translateY(-1px); }

/* ── FOOTER ── */
.site-footer {
  background: var(--c-footer-bg); color: var(--c-footer-text); padding: 3rem 0 1.5rem;
  margin-top: 0;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: #fff; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--c-footer-text); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--c-accent); }
.footer-disclaimer {
  font-size: 0.78rem; opacity: 0.7; margin-top: 1.5rem; line-height: 1.6; max-width: 700px;
}
.footer-copy {
  font-size: 0.78rem; opacity: 0.5; margin-top: 1rem; text-align: center;
}
.footer-home { display: inline-block; margin-top: 0.75rem; }
.footer-home a { color: var(--c-accent); text-decoration: none; font-size: 0.85rem; }
.footer-home a:hover { text-decoration: underline; }

/* ── COOKIE MODAL ── */
.cookie-modal {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 10px; padding: 1.5rem; max-width: 360px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15); animation: slideUp 0.5s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.cookie-modal h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.5rem; color: var(--c-primary); }
.cookie-modal p { font-size: 0.82rem; color: var(--c-text-secondary); margin-bottom: 1rem; line-height: 1.5; }
.cookie-modal .cookie-btns { display: flex; gap: 0.75rem; }
.cookie-modal .cookie-btns button {
  flex: 1; padding: 0.5rem 1rem; border-radius: 6px; border: none; cursor: pointer;
  font-weight: 600; font-size: 0.82rem; transition: background 0.2s; font-family: var(--font-body);
}
.cookie-accept { background: var(--c-primary); color: #fff; }
.cookie-accept:hover { background: #244e63; }
.cookie-decline { background: var(--c-light); color: var(--c-text-secondary); }
.cookie-decline:hover { background: var(--c-border-light); }

/* ── SUCCESS ── */
.success-page { text-align: center; padding: 6rem 2rem; min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.success-page h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.5rem); color: var(--c-primary); margin-bottom: 1rem; }
.success-page p { font-size: 1.1rem; color: var(--c-text-secondary); margin-bottom: 2rem; }
.btn-home {
  padding: 0.85rem 2.5rem; background: var(--c-accent); color: #fff;
  border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 0.95rem;
  transition: background 0.25s, transform 0.15s;
}
.btn-home:hover { background: #d4833f; transform: translateY(-2px); }

/* ── 404 ── */
.page-404 { text-align: center; padding: 6rem 2rem; min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.page-404 .num-404 { font-family: var(--font-display); font-size: clamp(5rem, 15vw, 10rem); font-weight: 700; color: var(--c-accent); line-height: 1; opacity: 0.2; }
.page-404 h1 { font-family: var(--font-display); font-size: 1.8rem; color: var(--c-primary); margin: 1rem 0 0.75rem; }
.page-404 p { color: var(--c-text-secondary); margin-bottom: 2rem; }

/* ── POLICY PAGES ── */
.policy-page { padding: 2rem 0 4rem; }
.policy-page h1 { font-family: var(--font-display); font-size: 2rem; color: var(--c-primary); margin-bottom: 0.5rem; }
.policy-page h2 { font-family: var(--font-display); font-size: 1.25rem; color: var(--c-primary); margin: 2rem 0 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--c-border-light); }
.policy-page p, .policy-page li { font-size: 0.95rem; color: var(--c-text-secondary); line-height: 1.8; margin-bottom: 0.75rem; }
.policy-page ul { margin: 0.5rem 0 1rem 1.5rem; }

/* ── HERO ── */
.hero-home {
  background: linear-gradient(135deg, var(--c-primary) 0%, #2a5a6b 100%);
  color: #fff; padding: 3.5rem 0; margin-bottom: 2rem;
}
.hero-home h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.25; margin-bottom: 0.75rem; }
.hero-home p { font-size: 1.05rem; opacity: 0.85; max-width: 560px; }

/* ── ANIMATIONS ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.article-content { animation: fadeIn 0.6s ease; }
.read-also-card { animation: fadeIn 0.6s ease backwards; }
.read-also-card:nth-child(2) { animation-delay: 0.1s; }
.read-also-card:nth-child(3) { animation-delay: 0.2s; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .footer-inner { grid-template-columns: 1fr; }
  .site-nav { display: none; flex-direction: column; width: 100%; gap: 0; background: var(--c-surface); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.75rem 1rem; border-bottom: 1px solid var(--c-border-light); text-align: left; }
  .menu-toggle { display: block; }
}
@media (max-width: 480px) {
  .subscribe-form { flex-direction: column; }
  .subscribe-form input[type=email] { min-width: unset; }
  .cookie-modal { left: 1rem; right: 1rem; max-width: none; bottom: 1rem; }
}
