/* ==========================================================================
   Vaultboxtrail.living — The Living Atlas Theme
   Color Palette: Black, Terracotta, Cream, Gold & Forest Green
   ========================================================================== */

:root {
  --bg-dark: #0d0b0a;
  --bg-card: #151312;
  --bg-card-hover: #1f1c1a;
  --text-light: #f7f4ed;
  --text-muted: #a69f95;

  --terracotta: #c85a32;
  --terracotta-hover: #b04b25;
  --gold: #d4af37;
  --gold-hover: #b8972b;
  --forest: #1b3b2b;
  --forest-light: #254d38;
  --cream: #f7f4ed;
  --cream-dark: #e8e3d5;
  --text-dark: #1a1615;

  --border-color: rgba(212, 175, 55, 0.15);
  --border-subtle: rgba(247, 244, 237, 0.08);

  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--terracotta);
}

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

/* Containers & Grids */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.max-w-md { max-width: 720px; }
.max-w-lg { max-width: 900px; }

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.gap-lg { gap: 2.25rem; }
.items-center { align-items: center; }

@media (max-width: 992px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Typography Helpers */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-terracotta { color: var(--terracotta); }
.bg-cream { background-color: var(--cream); }
.text-dark { color: var(--text-dark); }

.section-padding { padding: 4.5rem 0; }
.my-lg { margin-top: 2rem; margin-bottom: 2rem; }

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  line-height: 1.25;
  color: var(--text-light);
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
}

.page-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Badges & Buttons */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-terracotta {
  background-color: rgba(200, 90, 50, 0.18);
  color: var(--terracotta);
  border: 1px solid rgba(200, 90, 50, 0.4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; display: flex; }

.btn-primary { background-color: var(--forest); color: var(--text-light); }
.btn-primary:hover { background-color: var(--forest-light); color: var(--text-light); }

.btn-terracotta { background-color: var(--terracotta); color: #fff; }
.btn-terracotta:hover { background-color: var(--terracotta-hover); color: #fff; }

.btn-gold { background-color: var(--gold); color: #000; }
.btn-gold:hover { background-color: var(--gold-hover); color: #000; }

.btn-outline { border: 1px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: #000; }

.btn-outline-light { border: 1px solid var(--text-muted); color: var(--text-light); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }

/* SLIM UNSTUCK HEADER */
.site-header {
  position: relative; /* Unstuck - natural scroll off screen */
  width: 100%;
  background-color: rgba(13, 11, 10, 0.95);
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 0;
  z-index: 100;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-light);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-tld {
  color: var(--terracotta);
  font-weight: 400;
}

.main-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.925rem;
  font-weight: 500;
  padding: 0.3rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}

.hamburger-bar {
  width: 22px;
  height: 2px;
  background-color: var(--text-light);
  transition: transform 0.2s;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: var(--bg-card);
  border-left: 1px solid var(--border-color);
  z-index: 1000;
  padding: 1.5rem;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.75rem;
  cursor: pointer;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer-link {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.drawer-link.active, .drawer-link:hover {
  color: var(--gold);
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
}

/* HERO SECTION */
.hero-section {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 10, 0.4) 0%, rgba(13, 11, 10, 0.95) 100%);
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(27, 59, 43, 0.8);
  border: 1px solid var(--gold);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--cream-dark);
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.3rem; }
  .hero-subtitle { font-size: 1rem; }
}

/* PILLARS */
.section-pillars {
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-4px);
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.pillar-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ATLAS CARD COMPONENT */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.link-arrow {
  color: var(--gold);
  font-weight: 600;
}

.atlas-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.atlas-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.atlas-card:hover .card-img {
  transform: scale(1.05);
}

.card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(13, 11, 10, 0.85);
  border: 1px solid var(--terracotta);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex: 1;
}

/* EDITORIAL MANIFESTO */
.editorial-heading {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  margin: 0.75rem 0 1.25rem 0;
  color: var(--text-dark);
}

.editorial-lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.editorial-text p {
  color: #444;
  margin-bottom: 1.5rem;
}

.stats-row {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--terracotta);
  font-weight: 700;
}

.stat-label {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
}

.rounded-image {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* NEWSLETTER */
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.input-field {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-size: 0.95rem;
}

.input-field:focus {
  outline: none;
  border-color: var(--terracotta);
}

.atlas-search-box {
  margin-top: 1.5rem;
}

.search-input {
  background-color: rgba(255,255,255,0.05);
  font-size: 1.05rem;
  padding: 1rem;
}

/* ARTICLE / DOSSIER DETAIL */
.article-detail {
  max-width: 860px;
}

.article-header {
  margin-bottom: 2.5rem;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin: 1rem 0;
  line-height: 1.15;
}

.article-meta-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--gold);
  flex-wrap: wrap;
}

.article-featured-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  max-height: 500px;
  object-fit: cover;
}

.article-body-content h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--gold);
  margin: 2rem 0 1rem 0;
}

.article-body-content p {
  font-size: 1.05rem;
  color: var(--cream-dark);
  margin-bottom: 1.25rem;
}

.fact-box {
  background-color: rgba(27, 59, 43, 0.4);
  border: 1px solid var(--forest-light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
}

.fact-box h3 {
  color: var(--gold);
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
}

.fact-box ul {
  list-style: none;
}

.fact-box li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.pro-con-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.pro-card h3 { color: #4ade80; margin-bottom: 0.75rem; }
.con-card h3 { color: #f87171; margin-bottom: 0.75rem; }

.pro-con-card ul { padding-left: 1.25rem; }
.pro-con-card li { margin-bottom: 0.5rem; font-size: 0.9rem; }

/* CONTACT FORM & LEGAL */
.contact-info-panel, .contact-form-panel {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.atlas-form .form-group {
  margin-bottom: 1.25rem;
}

.atlas-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.alert-success {
  background-color: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #4ade80;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.hidden { display: none !important; }

.faq-item {
  margin-top: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--gold);
}

.faq-item p {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.legal-content .legal-section {
  margin-bottom: 2.25rem;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.legal-content p, .legal-content li {
  color: var(--cream-dark);
  font-size: 0.975rem;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  padding-left: 1.5rem;
}

/* MANDATORY FOOTER */
.site-footer {
  background-color: #070605;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
  font-size: 0.9rem;
}

.footer-top {
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-desc {
  color: var(--text-muted);
  margin: 1rem 0;
  font-size: 0.875rem;
}

.business-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-heading {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--terracotta);
}

.footer-bottom {
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 680px;
  background-color: rgba(21, 19, 18, 0.96);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-content p {
  font-size: 0.85rem;
  color: var(--cream-dark);
}

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

@media (max-width: 640px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
}