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

:root {
  --bg: #f0f0f0;
  --bg-alt: #e6e6e6;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --cobalt: #0047AB;
  --cobalt-light: #1a5ec7;
  --orange: #D4874D;
  --orange-light: #e09a5f;
  --white: #ffffff;
  --border: #d0d0d0;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, Helvetica, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Mono', monospace;
  --max-w: 1280px;
  --gap: 1.5rem;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cobalt); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--orange); }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--text);
  padding: 0 var(--gap);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
}
.logo span { color: var(--cobalt); }

.nav-list {
  display: flex; gap: 1.5rem; list-style: none;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600;
}
.nav-list a { color: var(--text); }
.nav-list a:hover { color: var(--cobalt); }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); margin: 5px 0; transition: 0.3s;
}

/* ===== HERO (Home) ===== */
.hero-asymmetric {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  padding: 2rem var(--gap);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text);
  max-width: 700px;
}
.hero-headline em {
  font-style: normal;
  color: var(--cobalt);
}
.hero-tag {
  display: inline-block;
  background: var(--cobalt);
  color: var(--white);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 4px 12px;
  margin-bottom: 1rem;
  font-weight: 700;
}
.hero-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  border-left: 3px solid var(--orange);
  padding-left: 1.25rem;
}
.hero-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ===== BROKEN GRID LAYOUT ===== */
.broken-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  padding: 0 var(--gap);
}
.content-main { order: 1; }
.content-sidebar { order: 2; }

.section-block {
  margin-bottom: 2.5rem;
}
.section-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  position: relative;
}
.section-block h2::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--cobalt);
  margin-bottom: 0.75rem;
}
.section-block h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--cobalt);
}
.section-block p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* ===== OVERSIZED QUOTE ===== */
.oversized-quote {
  max-width: var(--max-w);
  margin: 3rem auto;
  padding: 2.5rem var(--gap);
  position: relative;
}
.oversized-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.5rem);
  line-height: 1.3;
  color: var(--cobalt);
  letter-spacing: -0.5px;
  font-style: italic;
  border: none;
  padding-left: 2rem;
  border-left: 5px solid var(--orange);
}
.oversized-quote cite {
  display: block;
  font-size: 0.8rem;
  font-style: normal;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 1rem;
  padding-left: 2rem;
}

/* ===== THREE COLUMNS ===== */
.three-cols {
  max-width: var(--max-w);
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  padding: 0 var(--gap);
}
.col-narrow { }
.col-wide { }
.col-mid { }

.col-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--cobalt);
}
.col-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== VERTICAL NOTE ===== */
.vertical-note-section {
  max-width: var(--max-w);
  margin: 2rem auto;
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  align-items: start;
}
.vertical-note {
  writing-mode: horizontal-tb;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--orange);
  background: var(--bg-alt);
  padding: 1rem;
  text-align: center;
}
.vertical-note-content p { margin-bottom: 1rem; }

/* ===== CARDS ===== */
.cards-grid {
  max-width: var(--max-w);
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  padding: 0 var(--gap);
}
.card {
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.card:hover::before { transform: scaleX(1); }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.card-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--bg-alt);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: var(--text-muted); }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: var(--cobalt);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}
.highlight-box h3 { color: var(--orange-light); margin-bottom: 0.75rem; font-size: 1.1rem; }
.highlight-box p { font-size: 0.95rem; opacity: 0.9; }

/* ===== IMAGE SECTION ===== */
.img-block {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.img-block img {
  width: 100%;
  height: auto;
  transition: transform 0.6s;
}
.img-block:hover img { transform: scale(1.03); }
.img-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ===== SIDEBAR ===== */
.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.sidebar-box h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sidebar-box ul { list-style: none; }
.sidebar-box li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--bg-alt);
  font-size: 0.9rem;
}
.sidebar-box li:last-child { border: none; }
.sidebar-box li a { display: block; }
.sidebar-fact {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cobalt);
  font-weight: 700;
}
.sidebar-fact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== NEWSLETTER ===== */
.newsletter {
  max-width: var(--max-w);
  margin: 3rem auto;
  padding: 2.5rem var(--gap);
  background: var(--text);
  color: var(--white);
}
.newsletter-inner {
  max-width: 600px;
}
.newsletter h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.newsletter p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 1.25rem;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.95rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.3s;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input[type="email"]:focus { border-color: var(--orange); }
.newsletter-form button {
  padding: 0.75rem 2rem;
  background: var(--cobalt);
  color: var(--white);
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.3s;
  min-height: 48px;
  min-width: 44px;
}
.newsletter-form button:hover { background: var(--cobalt-light); }

/* ===== ARTICLE LIST ===== */
.article-list {
  max-width: var(--max-w);
  margin: 2rem auto;
  padding: 0 var(--gap);
}
.article-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
.article-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}
.article-card-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange);
  font-weight: 700;
}
.article-card h3 { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.3; }
.article-card p { font-size: 0.85rem; color: var(--text-muted); }
.article-card .read-more {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cobalt);
}
.article-card .read-more:hover { color: var(--orange); }

/* ===== TIPS STRIP ===== */
.tips-strip {
  max-width: var(--max-w);
  margin: 2rem auto;
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.tip-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-card);
  border-left: 4px solid var(--cobalt);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: border-color 0.3s;
}
.tip-item:hover { border-left-color: var(--orange); }
.tip-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cobalt);
  font-weight: 700;
  min-width: 32px;
}
.tip-text h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.tip-text p { font-size: 0.85rem; color: var(--text-muted); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 2.5rem var(--gap) 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 700;
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.75rem;
  line-height: 1.7;
}
.footer-disclaimer {
  margin-top: 1rem;
  font-size: 0.7rem;
  opacity: 0.5;
  line-height: 1.6;
}

/* ===== COOKIE BANNER ===== */
.cookie-toggle { display: none; }
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  max-width: 380px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 200;
  font-size: 0.8rem;
  line-height: 1.5;
  animation: slideUp 0.5s ease-out;
}
.cookie-toggle:checked ~ .cookie-banner { display: none; }
.cookie-banner p { margin-bottom: 0.75rem; color: var(--text-muted); }
.cookie-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius);
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: background 0.3s, color 0.3s;
}
.cookie-accept {
  background: var(--cobalt);
  color: var(--white);
}
.cookie-accept:hover { background: var(--cobalt-light); }
.cookie-decline {
  background: var(--bg-alt);
  color: var(--text);
}
.cookie-decline:hover { background: var(--border); }
.cookie-link {
  font-size: 0.7rem;
  color: var(--cobalt);
  text-decoration: underline;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 var(--gap);
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  color: var(--cobalt);
}
.legal-page p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== SUCCESS / 404 ===== */
.status-page {
  max-width: 600px;
  margin: 4rem auto;
  padding: 0 var(--gap);
  text-align: center;
}
.status-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}
.status-page .status-num {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 10rem);
  color: var(--bg-alt);
  line-height: 1;
  font-weight: 700;
}
.status-page p { color: var(--text-muted); margin-bottom: 1.5rem; }
.status-page .btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--cobalt);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  border-radius: var(--radius);
  min-height: 48px;
  line-height: 48px;
  padding: 0 2rem;
  transition: background 0.3s;
}
.status-page .btn:hover { background: var(--cobalt-light); color: var(--white); }

/* ===== SINGLE ARTICLE ===== */
.article-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem var(--gap);
}
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -1px;
  max-width: 750px;
}
.article-hero .hero-tag { margin-bottom: 0.75rem; }
.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--gap) 2rem;
}
.article-body p { margin-bottom: 1.25rem; font-size: 1rem; line-height: 1.75; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.5px;
}
.article-body h2::before {
  content: '';
  display: block;
  width: 30px;
  height: 3px;
  background: var(--orange);
  margin-bottom: 0.5rem;
}

/* ===== ANIMATIONS ===== */
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeIn 0.6s ease-out both;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-strip { grid-template-columns: repeat(2, 1fr); }
  .article-list-grid { grid-template-columns: repeat(2, 1fr); }
  .three-cols { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero-asymmetric {
    grid-template-columns: 1.4fr 0.6fr;
    padding: 3.5rem var(--gap);
    align-items: end;
  }
  .broken-grid {
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
  }
  .content-main { order: 1; }
  .content-sidebar { order: 2; }
  .three-cols {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }
  .vertical-note-section {
    grid-template-columns: 50px 1fr;
  }
  .vertical-note {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: 1.5rem 0.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .tips-strip { grid-template-columns: repeat(2, 1fr); }
  .article-card { grid-template-columns: 1fr; }
  .nav-mobile { display: none; }
}

@media (min-width: 1100px) {
  .tips-strip { grid-template-columns: repeat(4, 1fr); }
  .hero-asymmetric { padding: 4rem var(--gap); }
}

@media (max-width: 899px) {
  .nav-list { display: none; }
  .nav-list.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    padding: 1rem var(--gap);
    border-bottom: 3px solid var(--text);
    gap: 0.5rem;
  }
  .burger { display: block; }
}
