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

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=IBM+Plex+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #FAFAF8;
  --bg-alt: #F0EFEB;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --accent: #2D5F5D;
  --accent-light: #3A7A77;
  --accent-bg: #E8F0EF;
  --border: #D4D2CC;
  --border-light: #E8E6E0;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --radius: 4px;
  --radius-lg: 8px;
  --max-w: 780px;
  --max-w-wide: 1140px;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-heading: 'DM Serif Display', serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: 0.25s ease;
}

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

/* ── HEADER ────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 24px;
}
.header-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.site-logo:hover { opacity: 0.7; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-links a:hover {
  color: var(--accent);
  background: var(--accent-bg);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: absolute;
  left: 6px;
  transition: var(--transition);
}
.nav-toggle span:nth-child(1) { top: 10px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 20px; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: left; padding: 10px 0; }
}

/* ── BREADCRUMBS ───────────────────────────── */
.breadcrumbs {
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
  text-align: left;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 6px; opacity: 0.4; }

/* ── ARTICLE ───────────────────────────────── */
.article-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 48px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 12px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.meta-tag {
  background: var(--accent-bg);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 2px;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.article-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 32px;
  font-weight: 400;
}

/* ── GALLERY BEFORE/AFTER ──────────────────── */
.gallery-ba {
  margin: 32px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.gallery-ba-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
}
.gallery-ba-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-ba-item:hover img { transform: scale(1.03); }
.gallery-ba-label {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--white);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 2px;
}
.gallery-ba-single {
  grid-column: 1 / -1;
}
@media (max-width: 560px) {
  .gallery-ba { grid-template-columns: 1fr; }
}

/* ── ARTICLE BODY ──────────────────────────── */
.article-body h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  margin: 40px 0 16px;
  color: var(--text);
  font-weight: 400;
}
.article-body h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
}
.article-body p {
  margin-bottom: 18px;
  color: var(--text);
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--accent-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}
.article-body .tip-box {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 28px 0;
}
.article-body .tip-box-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
}
.article-body .numbered-list {
  padding-left: 0;
  counter-reset: item;
  list-style: none;
  margin: 20px 0;
}
.article-body .numbered-list li {
  counter-increment: item;
  padding: 8px 0 8px 36px;
  position: relative;
}
.article-body .numbered-list li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

/* ── READ ALSO ─────────────────────────────── */
.read-also {
  margin: 48px 0 40px;
  padding: 32px 0 0;
  border-top: 1px solid var(--border-light);
}
.read-also-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.read-also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.read-also-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none;
  transition: var(--transition);
}
.read-also-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.read-also-card .card-category {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 8px;
}
.read-also-card .card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--text);
  line-height: 1.3;
}
.read-also-card .card-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  font-family: var(--font-mono);
}

/* ── SUBSCRIBE ─────────────────────────────── */
.subscribe-section {
  max-width: var(--max-w);
  margin: 0 auto 48px;
  padding: 0 24px;
}
.subscribe-box {
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
}
.subscribe-box h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--white);
  font-weight: 400;
}
.subscribe-box p {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 20px;
}
.subscribe-form {
  display: flex;
  gap: 10px;
}
.subscribe-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.12);
  color: var(--white);
  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: rgba(255,255,255,0.7); background: rgba(255,255,255,0.18); }
.subscribe-form button {
  padding: 12px 28px;
  background: var(--white);
  color: var(--accent);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.subscribe-form button:hover { opacity: 0.9; transform: translateY(-1px); }
@media (max-width: 560px) {
  .subscribe-form { flex-direction: column; }
  .subscribe-box { padding: 28px 20px; }
}

/* ── FOOTER ────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 40px 24px;
  margin-top: 0;
}
.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.footer-brand {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 8px;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  margin-top: 8px;
  opacity: 0.7;
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── COOKIE MODAL ──────────────────────────── */
.cookie-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 380px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  animation: slideUp 0.4s ease;
  font-size: 14px;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 400;
}
.cookie-modal p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.cookie-modal .cookie-btns {
  display: flex;
  gap: 10px;
}
.cookie-modal .btn-accept {
  padding: 8px 20px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.cookie-modal .btn-accept:hover { background: var(--accent-light); }
.cookie-modal .btn-decline {
  padding: 8px 20px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.cookie-modal .btn-decline:hover { border-color: var(--text-muted); color: var(--text); }
.cookie-hidden { display: none; }

/* ── POLICY / TERMS / COOKIES PAGES ────────── */
.legal-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.legal-page h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 38px);
  margin-bottom: 32px;
  font-weight: 400;
}
.legal-page h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin: 36px 0 14px;
  font-weight: 400;
}
.legal-page p {
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.8;
}
.legal-page .legal-updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ── SUCCESS PAGE ──────────────────────────── */
.success-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 120px 24px;
  text-align: center;
}
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.success-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
}
.success-page h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 6vw, 48px);
  margin-bottom: 12px;
  font-weight: 400;
}
.success-page p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.btn-home {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}
.btn-home:hover { background: var(--accent-light); transform: translateY(-1px); }

/* ── 404 PAGE ──────────────────────────────── */
.page-404 {
  max-width: 600px;
  margin: 0 auto;
  padding: 120px 24px;
  text-align: center;
}
.page-404 .err-code {
  font-family: var(--font-mono);
  font-size: clamp(72px, 15vw, 140px);
  font-weight: 500;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}
.page-404 h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: 400;
}
.page-404 p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ── HOME HERO ─────────────────────────────── */
.home-hero {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 64px 24px 0;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5.5vw, 52px);
  line-height: 1.15;
  color: var(--text);
  max-width: 700px;
  font-weight: 400;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 560px;
  font-weight: 300;
}

/* ── ANIMATIONS ────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeIn 0.6s ease forwards;
}
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-d1 { animation-delay: 0.1s; }
.fade-in-d2 { animation-delay: 0.2s; }
.fade-in-d3 { animation-delay: 0.3s; }
