/* Bergi Advocacia — Component & Section Styles */

/* ===== CARDS ===== */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-100);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}
.card-body { padding: var(--space-lg); display: flex; flex-direction: column; flex: 1; }
.card-eyebrow { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-500); margin-bottom: var(--space-sm); }
.card-title { font-family: var(--font-heading); font-size: 1.375rem; font-weight: 500; color: var(--color-900); margin-bottom: var(--space-sm); line-height: 1.25; }
.card-meta { font-size: 0.8125rem; color: var(--color-400); margin-bottom: var(--space-md); letter-spacing: 0.02em; }
.card-excerpt { font-size: 0.9375rem; color: #4a4a4a; line-height: 1.7; flex: 1; }
.card-link { display: inline-block; margin-top: var(--space-md); font-size: 0.875rem; font-weight: 600; color: var(--color-500); letter-spacing: 0.03em; }
.card-link:hover { color: var(--color-600); }

/* ===== TEAM CARD ===== */
.team-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  background: var(--color-white);
  border: 1px solid var(--color-100);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
}
.team-card:hover {
  box-shadow: 0 18px 48px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}
.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-500);
  z-index: 2;
}
.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--color-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.team-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,34,15,0.85) 0%, rgba(30,34,15,0.2) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition);
}
.team-card:hover .team-photo::after { opacity: 1; }
.team-photo svg { width: 72px; height: 72px; color: var(--color-400); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-info {
  padding: var(--space-lg);
  background: var(--color-white);
  display: flex;
  flex: 1;
  flex-direction: column;
}
.team-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-900);
  line-height: 1.22;
  margin-bottom: var(--space-xs);
  overflow-wrap: anywhere;
}
.team-role { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-500); margin-bottom: var(--space-md); }
.team-bio { font-size: 0.9rem; color: #4a4a4a; line-height: 1.65; margin: 0; }
.team-linkedin { display: inline-block; margin-top: var(--space-sm); color: var(--color-500); }
.team-linkedin:hover { color: var(--color-600); }

/* ===== AREA CARD (Home + Atuação overview) ===== */
.area-card {
  background: var(--color-700);
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--border-radius);
  border-top: 3px solid var(--color-400);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.area-card .area-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-400); margin-bottom: var(--space-xs); }
.area-card h3 { font-family: var(--font-heading); font-size: 1.375rem; color: var(--color-white); margin-bottom: var(--space-sm); }
.area-card p { font-size: 0.9375rem; color: var(--color-300); }
.area-card p { flex: 1; }
.area-card .area-link { display: inline-block; margin-top: var(--space-md); font-size: 0.875rem; font-weight: 600; color: var(--color-400); }
.area-card .area-link:hover { color: var(--color-white); }

/* ===== STAT BLOCK ===== */
.stat-block { text-align: center; padding: var(--space-lg); }
.stat-number { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 400; color: var(--color-500); line-height: 1; margin-bottom: var(--space-xs); }
.stat-label { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #4a4a4a; }

/* ===== QUOTE BAND ===== */
.quote-band {
  background: var(--color-900);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}
.quote-band::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: clamp(12rem, 20vw, 20rem);
  line-height: 1;
  color: var(--color-800);
  position: absolute;
  top: -2rem;
  left: 2rem;
  pointer-events: none;
  user-select: none;
}
.quote-band blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-white);
  margin: 0;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}
.quote-band cite {
  display: block;
  margin-top: var(--space-lg);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-500);
  font-style: normal;
  position: relative;
  z-index: 1;
}

/* ===== CTA BAND (global reusable) ===== */
.cta-band {
  background: var(--color-900);
  background-image: url('../images/pronto-para-falar.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: var(--space-2xl) 0;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 34, 15, 0.82);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--font-heading); font-size: 2.5rem; color: var(--color-white); margin-bottom: var(--space-md); }
.cta-band p { color: var(--color-300); max-width: 560px; margin: 0 auto var(--space-xl); }

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: -1;
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  animation: hero-zoom 15s ease-in-out infinite;
}
.hero-slide.active {
  opacity: 1;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(30, 34, 15, 0.92) 0%,
    rgba(30, 34, 15, 0.75) 50%,
    rgba(30, 34, 15, 0.4) 100%
  );
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; padding: 10rem 0 6rem; }
.hero-eyebrow { color: var(--color-400); }
.hero h1, .hero .display {
  color: var(--color-white);
  max-width: 100%;
  font-size: clamp(3.5rem, 5.5vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero .lead {
  color: var(--color-300);
  font-size: 1.0625rem;
  max-width: 480px;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding-left: var(--space-md);
  border-left: 2px solid var(--color-500);
  line-height: 1.7;
}

/* ===== SECTION HEADER — editorial split (eyebrow left / heading right) ===== */
.section-header-split {
  display: flex;
  align-items: flex-end;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-200);
}
.section-header-split .eyebrow {
  flex-shrink: 0;
  width: 140px;
  margin-bottom: 0;
  padding-bottom: 4px;
}
.section-header-split h2 {
  margin-bottom: 0;
  flex: 1;
}
.section-mid .section-header-split {
  border-bottom-color: var(--color-700);
}

.section-header-split .btn {
  flex-shrink: 0;
}

/* ===== SOBRE SECTION — editorial with decorative year ===== */
.sobre-deco {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 12vw, 11rem);
  font-weight: 300;
  line-height: 1;
  color: var(--color-100);
  user-select: none;
  pointer-events: none;
}

.area-deco-col {
  display: flex;
  align-items: center;
}
.area-deco-number {
  width: 100%;
  font-family: var(--font-heading);
  font-size: clamp(8rem, 14vw, 13rem);
  font-weight: 300;
  line-height: 1;
  color: var(--color-200);
  user-select: none;
}
.area-deco-number--right {
  color: var(--color-100);
  text-align: right;
}

/* Page hero (not full-screen) */
.page-hero {
  background: var(--color-900);
  padding: 9rem 0 5rem;
  position: relative;
}
.page-hero .eyebrow { color: var(--color-400); }
.page-hero h1 { color: var(--color-white); max-width: 680px; }
.page-hero .lead { color: var(--color-300); font-size: 1.0625rem; max-width: 600px; margin-top: var(--space-md); }

/* ===== PILAR CARD (Sobre — Os Quatro Pilares) ===== */
.pilar-card { background: var(--color-white); padding: var(--space-lg); border-left: 3px solid var(--color-500); }
.pilar-card h3 { font-family: var(--font-heading); font-size: 1.25rem; color: var(--color-black); margin-bottom: var(--space-sm); }
.pilar-card p { font-size: 0.9375rem; color: #4a4a4a; }

/* ===== ARTICLE CONTENT AREA ===== */
.article-body { font-size: 1.0625rem; color: #2a2a2a; line-height: 1.8; }
.article-body h2 { margin-top: var(--space-2xl); font-size: 1.875rem; }
.article-body h3 { margin-top: var(--space-xl); }
.article-body p { margin-bottom: var(--space-lg); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  color: var(--color-400);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Pull quote */
.pull-quote { background: var(--color-800); padding: var(--space-xl) var(--space-2xl); margin: var(--space-2xl) 0; }
.pull-quote p { font-family: var(--font-heading); font-size: 1.5rem; font-style: italic; color: var(--color-white); margin: 0; }

/* ===== SERVICE DEFINITION LIST ===== */
.service-list { list-style: none; }
.service-list li { padding: var(--space-lg) 0; border-bottom: 1px solid var(--color-100); }
.service-list li:last-child { border-bottom: none; }
.service-list h3 { font-size: 1.25rem; color: var(--color-black); margin-bottom: var(--space-sm); }
.service-list p { color: #4a4a4a; margin: 0; }

/* ===== CREDIBILITY NUMBERS ROW ===== */
.credibility-row { display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.credibility-item .number { font-family: var(--font-heading); font-size: 3rem; font-weight: 400; color: var(--color-500); line-height: 1; }
.credibility-item .label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6b6b6b; margin-top: 4px; }

/* ===== CONTACT FORM ===== */
.contact-form .form-group { margin-bottom: var(--space-md); }
.contact-form label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--color-black); margin-bottom: var(--space-xs); }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.875rem var(--space-md);
  border: 1px solid var(--color-200);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-black);
  background: var(--color-white);
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-500);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .lgpd-note { font-size: 0.8125rem; color: #6b6b6b; margin-top: var(--space-sm); line-height: 1.5; }

/* Contact info block */
.contact-info-item { display: flex; gap: var(--space-sm); align-items: flex-start; margin-bottom: var(--space-md); }
.contact-info-item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-500); margin-top: 2px; }
.contact-info-item span { font-size: 0.9375rem; color: #4a4a4a; line-height: 1.5; }
.contact-info-item a { color: var(--color-500); }
.contact-info-item a:hover { color: var(--color-600); }

/* Maps iframe */
.map-embed { width: 100%; height: 320px; border: none; border-radius: var(--border-radius); margin-top: var(--space-lg); }

/* ===== SOCIAL ICONS ROW ===== */
.social-row { display: flex; gap: var(--space-sm); align-items: center; }
.social-row a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--color-700); color: var(--color-300); transition: all var(--transition); }
.social-row a:hover { border-color: var(--color-400); color: var(--color-white); background: var(--color-700); }

/* ===== LGPD COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--color-900);
  border-top: 1px solid var(--color-700);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
#cookie-banner p { color: var(--color-300); font-size: 0.9rem; margin: 0; }
#cookie-banner a { color: var(--color-400); text-decoration: underline; }
.cookie-actions { display: flex; gap: var(--space-sm); align-items: center; flex-shrink: 0; }
#cookie-accept { background: var(--color-500); color: var(--color-white); border: none; padding: 0.625rem 1.5rem; border-radius: var(--border-radius); font-family: var(--font-body); font-weight: 600; font-size: 0.875rem; cursor: pointer; transition: background var(--transition); }
#cookie-accept:hover { background: var(--color-600); }
#cookie-policy-link { font-size: 0.875rem; color: var(--color-300); text-decoration: underline; }

/* ===== PAGE HERO — photo variant ===== */
/* Apply .page-hero--photo + override background-image per page */
.page-hero--photo {
  background-size: cover;
  background-position: center 30%;
}
.page-hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(30,34,15,0.95) 0%, rgba(30,34,15,0.7) 60%, rgba(30,34,15,0.4) 100%);
}
.page-hero--photo .container { position: relative; z-index: 1; }

/* Per-page background images */
.page-hero--sobre              { background-image: url('../images/hero-sobre.jpg'); }
.page-hero--equipe             { background-image: url('../images/hero-home.jpg'); background-position: center 30%; }
.page-hero--atuacao            { background-image: url('../images/hero-atuacao.jpg'); }
.page-hero--contato            { background-image: url('../images/hero-contato.jpg'); }
.page-hero--tributario         { background-image: url('../images/hero-tributario.jpg'); }
.page-hero--societario         { background-image: url('../images/hero-societario.jpg'); }
.page-hero--empresarial        { background-image: url('../images/hero-empresarial.jpg'); }
.page-hero--comercio-exterior  { background-image: url('../images/hero-comercio-exterior.jpg'); }
.page-hero--internacionalizacao { background-image: url('../images/hero-internacionalizacao.jpg'); }
.page-hero--publicacoes        { background-image: url('../images/hero-publicacoes.jpg'); }
.page-hero--publicacao         { background-image: url('../images/hero-publicacoes.jpg'); }

/* ===== DECORATIVE BACKGROUND NUMBER (dark sections) ===== */
.deco-bg-number {
  position: absolute;
  top: 50%;
  right: -2rem;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: clamp(12rem, 22vw, 22rem);
  font-weight: 300;
  line-height: 1;
  color: var(--color-800);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

/* ===== STAT BLOCK — bordered (credibility numbers) ===== */
.stat-block--bordered {
  text-align: center;
  padding: var(--space-lg) var(--space-sm);
  border-top: 2px solid var(--color-200);
}
.stat-block--bordered .stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--color-500);
  line-height: 1;
  margin-bottom: var(--space-xs);
}
.stat-block--bordered .stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6b6b;
}

/* ===== PILAR CARD — dark variant (section-mid) ===== */
.pilar-card--dark {
  background: var(--color-800);
  border-left-color: var(--color-500);
  padding: var(--space-xl) var(--space-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pilar-card--dark:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.pilar-card--dark h3 { color: var(--color-white); }
.pilar-card--dark p { color: var(--color-300); margin-bottom: 0; }

/* Decorative number inside cards (01, 02…) */
.card-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 300;
  color: var(--color-700);
  line-height: 1;
  margin-bottom: var(--space-md);
}
.pilar-card--dark .card-number { color: var(--color-700); }

/* ===== HIGHLIGHT PANEL (bullet list with border accent) ===== */
.highlight-panel {
  background: var(--color-50);
  border-left: 3px solid var(--color-500);
  padding: var(--space-lg) var(--space-xl);
}
.highlight-panel-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-100);
  font-size: 0.9375rem;
  color: #4a4a4a;
  line-height: 1.5;
}
.highlight-panel-item:last-child { border-bottom: none; }
.highlight-panel-icon {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--color-500);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== SCROLL REVEAL ANIMATION ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE HELPERS ===== */
@media (max-width: 768px) {
  .hero-inner { padding: 8rem 0 4rem; }
  .page-hero { padding: 7rem 0 4rem; }
  .quote-band blockquote { font-size: 1.5rem; }
  .cta-band h2 { font-size: 1.875rem; }
  .section-header-split {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
  }
  .section-header-split .eyebrow {
    width: auto;
    padding-bottom: 0;
  }
  .section-header-split h2 {
    width: 100%;
  }
  .section-header-split .btn {
    width: 100%;
    text-align: center;
  }
  #cookie-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 991.98px) {
  .area-deco-col {
    display: none !important;
  }
}

/* ===== SITE HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: var(--color-white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-color { display: block; }
.logo-pb { display: none; }
.site-header.scrolled .logo-color { display: block; }
.site-header.scrolled .logo-pb { display: none; }

.site-header.scrolled .nav-link { color: var(--color-900); }
.site-header.scrolled .nav-link:hover { color: var(--color-500); }
.site-header.scrolled .nav-link--cta {
  border-color: var(--color-900);
  color: var(--color-900);
}
.site-header.scrolled .nav-link--cta:hover {
  background: var(--color-900);
  color: var(--color-white);
}
.site-header.scrolled .nav-toggle span { background: var(--color-900); }

.page-has-hero .site-header:not(.scrolled) { background: transparent; }
body:not(.page-has-hero) .site-header { background: var(--color-white); box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
body:not(.page-has-hero) .logo-color { display: block; }
body:not(.page-has-hero) .logo-pb { display: none; }
body:not(.page-has-hero) .nav-link { color: var(--color-900); }
body:not(.page-has-hero) .nav-link:hover { color: var(--color-500); }
body:not(.page-has-hero) .nav-link--cta { border-color: var(--color-900); color: var(--color-900); }
body:not(.page-has-hero) .nav-link--cta:hover { background: var(--color-900); color: var(--color-white); }
body:not(.page-has-hero) .nav-toggle span { background: var(--color-900); }
body.nav-open { overflow: hidden; }

.nav-list { display: flex; align-items: center; list-style: none; gap: var(--space-lg); margin: 0; padding: 0; }
.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--color-white); }
.nav-link--cta {
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.5rem 1.25rem;
  border-radius: var(--border-radius);
}
.nav-link--cta:hover { border-color: var(--color-white); }

.nav-item--dropdown { position: relative; }
.nav-link--dropdown svg { transition: transform var(--transition); }
.nav-item--dropdown:hover .nav-link--dropdown svg,
.nav-item--dropdown:focus-within .nav-link--dropdown svg,
.nav-item--dropdown.is-open .nav-link--dropdown svg { transform: rotate(180deg); }
.dropdown-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1001;
  min-width: 240px;
  background: var(--color-900);
  border: 1px solid var(--color-700);
  border-radius: var(--border-radius);
  padding: calc(var(--space-sm) + 12px) 0 var(--space-sm);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all var(--transition);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.nav-item--dropdown:hover .dropdown-menu,
.nav-item--dropdown:focus-within .dropdown-menu,
.nav-item--dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown-link {
  display: block;
  padding: 0.625rem var(--space-lg);
  font-size: 0.875rem;
  color: var(--color-300);
  transition: color var(--transition), background var(--transition);
}
.dropdown-link:hover { color: var(--color-white); background: var(--color-800); }
.nav-link:focus-visible,
.dropdown-link:focus-visible {
  outline: 2px solid var(--color-400);
  outline-offset: 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-white); transition: all var(--transition); border-radius: 1px; }
.nav-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.45);
  color: var(--color-white);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 2rem;
  line-height: 1;
  padding: 0;
}
.nav-close:hover,
.nav-close:focus-visible {
  background: rgba(255,255,255,0.08);
  border-color: var(--color-white);
}
.nav-close span {
  display: block;
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 1002;
    width: auto;
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--color-900);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: all var(--transition);
  }
  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-close {
    display: flex;
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 1003;
  }
  .nav-list {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: 6rem var(--space-lg) 3rem;
    text-align: center;
  }
  .nav-item {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .nav-item--dropdown {
    align-items: center;
    flex-direction: column;
  }
  .nav-link {
    justify-content: center;
    max-width: 100%;
    font-size: 1.125rem;
    color: var(--color-white);
  }
  .site-header.scrolled .nav-menu .nav-link,
  body:not(.page-has-hero) .nav-menu .nav-link {
    color: var(--color-white);
  }
  .site-header.scrolled .nav-menu .nav-link:hover,
  body:not(.page-has-hero) .nav-menu .nav-link:hover {
    color: var(--color-300);
  }
  .nav-link--cta,
  .site-header.scrolled .nav-menu .nav-link--cta,
  body:not(.page-has-hero) .nav-menu .nav-link--cta {
    border-color: rgba(255,255,255,0.45);
    color: var(--color-white);
    min-width: 128px;
  }
  .nav-link--cta:hover,
  .site-header.scrolled .nav-menu .nav-link--cta:hover,
  body:not(.page-has-hero) .nav-menu .nav-link--cta:hover {
    background: var(--color-white);
    color: var(--color-900);
  }
  .dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    max-width: 320px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: var(--space-sm) 0 0;
    display: none;
  }
  .nav-item--dropdown.is-open .dropdown-menu { display: block; }
  .dropdown-link {
    color: var(--color-400);
    padding: 0.45rem var(--space-sm);
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 992px) and (max-height: 720px) {
  .nav-list {
    justify-content: flex-start;
  }
}

/* ===== SITE FOOTER ===== */
.site-footer { background: var(--color-900); color: var(--color-300); }
.footer-main { padding: var(--space-2xl) 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--space-2xl);
}
.footer-logo { margin-bottom: var(--space-md); }
.footer-tagline { font-size: 0.9375rem; color: var(--color-300); line-height: 1.6; max-width: 280px; }
.footer-heading { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-400); margin-bottom: var(--space-md); }
.footer-links ul, .footer-contact address { list-style: none; }
.footer-links li { margin-bottom: var(--space-sm); }
.footer-links a, .footer-contact a { font-size: 0.9375rem; color: var(--color-300); transition: color var(--transition); }
.footer-links a:hover, .footer-contact a:hover { color: var(--color-white); }
.footer-contact p { font-size: 0.9375rem; margin-bottom: var(--space-sm); line-height: 1.6; }
.footer-contact address { font-style: normal; }
.footer-bar {
  border-top: 1px solid var(--color-800);
  padding: var(--space-md) 0;
}
.footer-bar .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-md); }
.footer-bar p { font-size: 0.8125rem; color: var(--color-300); margin: 0; }
.footer-legal-links { display: flex; gap: var(--space-lg); }
.footer-legal-links a { font-size: 0.8125rem; color: var(--color-300); transition: color var(--transition); }
.footer-legal-links a:hover { color: var(--color-white); }

@media (max-width: 576px) {
  .footer-bar .container { flex-direction: column; align-items: flex-start; }
}
