/* =========================================================
   LAYOUT — header, nav, hero, footer, generic sections
   ========================================================= */

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(247,244,236,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--forest-dark);
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
}
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--forest); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 1rem;
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem;
  position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .2s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--forest-dark); font-weight: 700; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .2s;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 24px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: flex; }
  .nav-cta .btn-secondary { display: none; }
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-family: var(--font-mono); font-size: .78rem; color: var(--muted);
  padding: 18px 0 0;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb .sep { margin: 0 6px; }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 85% -10%, rgba(201,162,39,0.14), transparent 60%),
    var(--paper);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
}
.hero-copy .eyebrow { display: block; margin-bottom: 14px; }
.hero-copy p.lead { font-size: 1.08rem; color: var(--muted); max-width: 46ch; }
.hero-stats { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.hero-stat b {
  display: block; font-family: var(--font-mono); font-size: 1.5rem; color: var(--forest-dark);
}
.hero-stat span { font-size: .8rem; color: var(--muted); }

/* concentric growth-ring decoration */
.growth-rings {
  position: absolute; right: -80px; top: -60px; width: 380px; height: 380px;
  border-radius: 50%; pointer-events: none;
  background:
    repeating-radial-gradient(circle, transparent 0 22px, rgba(11,61,46,0.05) 22px 24px);
  opacity: .8;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---- Generic content section ---- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-title-row { max-width: 640px; margin: 0 0 32px; }

/* ---- Legal / article pages ---- */
.page-hero {
  padding: 44px 0 30px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11,61,46,0.05), transparent);
}
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.2em; color: var(--forest); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* ---- Footer ---- */
.site-footer { background: var(--forest-dark); color: #E7E4D8; margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  padding: 56px 0 32px;
}
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid a { color: #C7CBBD; text-decoration: none; display: block; padding: 6px 0; font-size: .92rem; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand p { color: #B9BEAD; max-width: 34ch; font-size: .92rem; }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid #2E4B3D;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.footer-bottom {
  border-top: 1px solid #21382B; padding: 20px 0; font-size: .82rem; color: #9AA192;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Back to top ---- */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--forest); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow-lift); opacity: 0; pointer-events: none; transition: .2s;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }

/* ---- Cookie consent ---- */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 620px; margin: 0 auto;
  background: var(--forest-dark); color: #EDEAE0;
  border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow-lift);
  display: none; gap: 14px; flex-direction: column;
}
.consent-banner.visible { display: flex; }
.consent-banner p { color: #D8D6C9; font-size: .9rem; margin: 0; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Ad slots ---- */
.ad-slot {
  border: 1px dashed var(--line); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-family: var(--font-mono); font-size: .75rem;
  background: rgba(220,213,194,0.25); min-height: 90px;
}
.ad-slot.header-ad { margin: 16px 0; }
.ad-slot.sidebar-ad { min-height: 250px; }
.ad-slot.incontent-ad { margin: 32px 0; }
.ad-slot.footer-ad { margin: 24px 0 0; }
