/* ============================================================
   LAYOUT — Header, Footer, Editorial Grid, Breadcrumbs
   ============================================================ */

/* ===== HEADER (Sticky + Glassmorphism) ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: calc(var(--z-sticky) + 100);
  transition: background var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.header--scrolled {
  background: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.header__logo-img {
  height: 62px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8125rem;
  line-height: 1.2;
}

.header__logo-text span {
  display: block;
  font-size: 0.625rem;
  font-weight: 400;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Main Nav */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

.nav__link {
  font-family: var(--font-accent);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text);
  padding: 0.4em 0.75em;
  border-radius: var(--radius-full);
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link--active {
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
}

/* Dropdown */
.nav__item {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 160px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xs);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  z-index: var(--z-dropdown);
}

.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: 0.5em 0.75em;
  font-size: var(--fs-small);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast);
}

.nav__dropdown-link:hover {
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
}

/* CTA in header */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.header__cta {
  font-size: var(--fs-small);
  padding: 0.55em 1.4em;
}
.header__ask {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: var(--fs-small);
  padding: 0.55em 1.2em;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-secondary);
  background: transparent;
  color: var(--color-secondary);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}
.header__ask:hover {
  background: var(--color-secondary);
  color: white;
}
.header__ask-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  height: 24px;
  justify-content: center;
  align-items: center;
  z-index: 1060;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform var(--duration) var(--ease-out), opacity var(--duration);
}

.burger--active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.burger--active span:nth-child(2) { opacity: 0; }
.burger--active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 248, 245, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration) var(--ease-out), visibility var(--duration);
}

.mobile-menu--open {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.mobile-menu .nav__link {
  font-size: var(--fs-h3);
  font-family: var(--font-head);
  font-weight: 700;
  padding: var(--space-md) var(--space-xl);
  text-align: center;
}

.mobile-menu .btn {
  margin-top: var(--space-lg);
  width: 80%;
  max-width: 300px;
  text-align: center;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  padding: var(--space-lg) 0 var(--space-sm);
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
}

.breadcrumbs__item::after {
  content: '›';
  margin-left: var(--space-xs);
  color: var(--color-border);
}

.breadcrumbs__item:last-child::after {
  display: none;
}

.breadcrumbs__link {
  color: var(--color-text-muted);
  transition: color var(--duration-fast);
}

.breadcrumbs__link:hover {
  color: var(--color-primary);
}

/* ===== ANCHOR NAV (sticky sub-menu) ===== */
.anchor-nav {
  position: sticky;
  top: var(--header-h);
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: var(--z-sticky);
  border-bottom: 1px solid var(--color-border-light);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.anchor-nav::-webkit-scrollbar { display: none; }

.anchor-nav__inner {
  display: flex;
  justify-content: center;
  gap: var(--space-2xs);
  padding: var(--space-sm) var(--space-lg);
  max-width: var(--container-max);
  margin: 0 auto;
}

.anchor-nav__link {
  font-family: var(--font-accent);
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.4em 0.75em;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
}

.anchor-nav__link:hover,
.anchor-nav__link--active {
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
}

/* ===== EDITORIAL GRIDS ===== */

/* 2-column split (50/50) */
.editorial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

/* 3-column */
.editorial-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* With sidebar (main + sidebar) */
.editorial-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-2xl);
  align-items: start;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--space-xl));
}

.sidebar__card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-lg);
  border: 1px solid var(--color-border-light);
}

.sidebar__card--cta {
  background: linear-gradient(135deg, var(--color-primary-pale), var(--color-gold-pale));
  border-color: var(--color-primary-muted);
}

.sidebar__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-small);
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.sidebar__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.sidebar__link {
  font-size: var(--fs-small);
  color: var(--color-text-sec);
  padding: 0.35em 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: color var(--duration-fast);
}

.sidebar__link:last-child { border-bottom: none; }
.sidebar__link:hover { color: var(--color-primary); }

/* ===== BENTO GRID ===== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-lg);
}

.bento-grid__item--wide { grid-column: span 8; }
.bento-grid__item--narrow { grid-column: span 4; }
.bento-grid__item--third { grid-column: span 4; }
.bento-grid__item--full { grid-column: span 12; }

/* ===== PAGE HERO ===== */
.page-hero,
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-pale) 0%, var(--color-bg) 40%, var(--color-gold-pale) 100%);
  overflow: hidden;
  padding: var(--space-4xl) 0 var(--space-3xl);
  margin-top: var(--header-h);
}

.hero-gradient {
  background: linear-gradient(135deg, var(--color-primary-pale) 0%, var(--color-bg) 40%, var(--color-gold-pale) 100%);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-gold-pale) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-secondary-pale) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.page-hero__overline {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: var(--fs-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  padding: 0.3em 0.8em;
  background: white;
  border-radius: var(--radius-full);
}

.page-hero__title {
  font-size: var(--fs-hero);
  margin-bottom: var(--space-md);
}

.page-hero__subtitle {
  font-size: var(--fs-body);
  color: var(--color-text-sec);
  line-height: 1.65;
  max-width: 480px;
}

/* ===== HERO WITH BACKGROUND IMAGE ===== */
.hero--bg {
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  padding: var(--space-4xl) 0 var(--space-3xl);
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero--bg__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91, 122, 114, 0.55) 0%, rgba(182, 109, 122, 0.45) 100%);
  z-index: 0;
}

.hero--bg .page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero--bg .container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-hero__overline--light {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

.page-hero__title--light {
  color: white;
}

.page-hero__subtitle--light {
  color: rgba(255, 255, 255, 0.85);
}

.text-gold {
  color: var(--color-gold);
}

.text-burgundy {
  color: var(--color-burgundy);
}

.hero--bg__badge {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-2xl);
  flex-shrink: 0;
}

.hero--bg__badge-number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.75rem;
  color: var(--color-gold-light);
  line-height: 1;
  flex-shrink: 0;
}

.hero--bg__badge-label {
  font-family: var(--font-accent);
  font-size: var(--fs-small);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

/* ===== BENTO GRID — 2x2 LAYOUT ===== */
.bento-grid--2x2 {
  grid-template-columns: repeat(2, 1fr);
}

.bento-grid--2x2 > * {
  grid-column: span 1;
}

/* ===== PULL QUOTE ===== */
.pull-quote {
  position: relative;
  padding: var(--space-xl) var(--space-2xl);
  margin: var(--space-2xl) 0;
  background: var(--color-bg-warm);
  border-radius: var(--radius-lg);
}

.pull-quote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: var(--space-lg);
  font-family: var(--font-head);
  font-size: 4rem;
  color: var(--color-primary-muted);
  line-height: 1;
}

.pull-quote__text {
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}

.pull-quote__author {
  margin-top: var(--space-md);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.footer__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.footer__brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.footer__brand p {
  color: rgba(255,255,255,0.5);
  font-size: var(--fs-small);
  max-width: 260px;
  margin-top: 0;
}

.footer__title {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  color: rgba(255,255,255,0.4);
}

.footer__link {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-small);
  padding: 0.3em 0;
  transition: color var(--duration-fast);
}

.footer__link:hover {
  color: var(--color-primary-light);
}

.footer__contact {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.7);
}

.footer__contact-icon {
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__socials {
  display: flex;
  gap: var(--space-xs);
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-caption);
  font-weight: 600;
  transition: background var(--duration-fast);
}

.footer__social:hover {
  background: var(--color-primary);
  color: white;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: var(--fs-caption);
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__bottom a {
  color: rgba(255,255,255,0.3);
}

.footer__bottom a:hover {
  color: rgba(255,255,255,0.6);
}