/* ============================================================
   BRIGHTWORK CONSULTING — SHARED THEME
   This file owns the site's "look and feel": colors, type, nav,
   buttons, footer, and the shared wave/scroll-reveal effects.
   Swap this file for a different one to reskin every page at
   once — page-specific layout (hero copy position, grids, forms)
   stays in each page's own <style> block and reads its colors
   from the custom properties defined here.
   ============================================================ */

:root {
  --navy:       #08182A;
  --navy-mid:   #1A3550;
  --navy-dark:  #0F2035;
  --fog:        #F2F4F6;
  --white:      #FFFFFF;
  --gold:       #D4A843;
  --gold-light: #C8A96E;
  --brass:      #C4973A;
  --sky:        #689AE2;
  --text:       #1C2B3A;
  --muted:      #64798C;
  --divider:    #D8DEE3;
  --error:      #C0392B;
  --success:    #27AE60;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Barlow', system-ui, sans-serif;
  --nav-h: 76px;
  --radius: 6px;
  --shadow-md: 0 8px 32px rgba(8,24,42,0.12);
}

/* ─── Reset & base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--fog); color: var(--text); line-height: 1.65; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 300; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 400; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 600; }
h4 { font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 600; }
h5 { font-size: 0.95rem; font-weight: 600; }
p { font-size: clamp(0.95rem, 1.4vw, 1.05rem); }
.big-text { text-shadow: 2px 2px 4px rgba(0,0,0,0.42); }

/* ─── Scroll progress bar ─── */
#bw-progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--brass), var(--gold)); z-index: 9999;
  transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.1s linear; }
/* Where scroll-driven animations exist, the compositor drives the bar with no JS.
   Elsewhere the page script sets scaleX — transform either way, never width. */
@supports (animation-timeline: scroll()) {
  #bw-progress-bar { transition: none; animation: bw-progress linear both; animation-timeline: scroll(root block); }
  @keyframes bw-progress { to { transform: scaleX(1); } }
}

/* ─── Header / nav ─── */
#header { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 1000;
  background: rgba(8,24,42,0.0); transition: background 0.35s, height 0.3s, box-shadow 0.3s; }
#header.scrolled { height: 64px; background: rgba(8,24,42,0.94); backdrop-filter: blur(14px); box-shadow: 0 4px 24px rgba(0,0,0,0.2); }
.nav-inner { height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 40px; width: auto; }
.nav-logo .logo-dark { display: none; }
#header.scrolled .logo-dark { display: block; }
#header.scrolled .logo-light { display: none; }
.nav-links { display: flex; align-items: center; gap: 2.25rem; }
.nav-links a { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.85); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.current { color: var(--gold); }
.nav-cta { background: var(--gold); color: var(--navy) !important; padding: 0.6rem 1.4rem; border-radius: var(--radius); font-weight: 700 !important; transition: background 0.2s, transform 0.2s; }
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-drawer { position: fixed; inset: 0; background: rgba(8,24,42,0.98); backdrop-filter: blur(16px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; z-index: 999;
  opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.mobile-drawer.open { opacity: 1; pointer-events: all; }
.mobile-drawer a { font-family: var(--font-display); font-size: 1.8rem; color: #fff; }
.mobile-drawer a:hover { color: var(--gold); }

/* ─── Section base ─── */
section { padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 4rem); position: relative; }
.section-inner { max-width: 1180px; margin: 0 auto; position: relative; z-index: 1; }
.bw-section-fog   { background: var(--fog); }
.bw-section-navy  { background: var(--navy-mid); color: #fff; }
.bw-section-navy h2, .bw-section-navy h3, .bw-section-navy h4 { color: #fff; }
.bw-section-white { background: var(--white); }
.bw-section-dark  { background: var(--navy-dark); color: #fff; }
.bw-section-dark h2, .bw-section-dark h3, .bw-section-dark h4 { color: #fff; }

.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.25rem; }
.eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--gold-light); }
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::after { content: ''; display: block; width: 24px; height: 1px; background: var(--gold-light); }
.eyebrow.sky { color: var(--sky); }
.eyebrow.sky::before { background: var(--sky); }
.eyebrow.gold { color: var(--gold); }
.eyebrow.gold::before, .eyebrow.gold::after { background: var(--gold); }

.section-head { text-align: left; max-width: 62ch; margin-bottom: 3rem; }
.section-head.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); margin-top: 1rem; line-height: 1.75; }
.bw-section-navy .section-head p, .bw-section-dark .section-head p { color: rgba(255,255,255,0.65); }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.85rem 1.85rem; border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s; }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,168,67,0.3); }
.btn-primary { background: var(--brass); color: #fff; }
.btn-primary:hover { background: #a97f2e; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,151,58,0.3); }
.btn-outline { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.85); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.btn-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--brass); border-bottom: 1px solid transparent; transition: border-color 0.2s, gap 0.2s; }
.btn-link:hover { border-color: var(--brass); gap: 0.6rem; }
.btn-link svg { width: 14px; height: 14px; }

/* ─── Wave dividers (static ribbon, shared shape) ─── */
.wave-ribbon { line-height: 0; overflow: hidden; display: block; font-size: 0; margin-top: -1px; margin-bottom: -1px; }
.wave-ribbon svg { display: block; width: 100%; height: 60px; }

/* ─── Scroll reveal ─── */
[data-bw-animate] { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease, transform 0.8s ease; }
[data-bw-animate].bw-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { [data-bw-animate], * { transition: none !important; animation: none !important; } }

/* ─── Hero photo background (About / Services / Contact use this directly;
       Home's multi-image slideshow is page-specific but shares bwKenBurns) ─── */
@keyframes bwKenBurns { from { transform: scale(1); } to { transform: scale(1.12); } }
.hero-bg-photo { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center;
  animation: bwKenBurns 24s ease-in-out infinite alternate; }
.hero-bg-photo::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,24,42,0.92) 0%, rgba(8,24,42,0.72) 45%, rgba(8,24,42,0.45) 100%); }
.grid-lines { position: absolute; inset: 0; z-index: 1; opacity: 0.09; pointer-events: none;
  background-image: linear-gradient(#0F1F3D 1px, transparent 1px), linear-gradient(90deg, #0F1F3D 1px, transparent 1px);
  background-size: 80px 80px; }

/* ─── Animated wave bands (hero + footer transition) ─── */
@keyframes bwScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.bw-hero-waves { position: absolute; bottom: 0; left: 0; right: 0; height: 160px; overflow: hidden; pointer-events: none; z-index: 2; line-height: 0; }
.bw-hero-waves .bw-wave { position: absolute; bottom: 0; width: 200%; height: 100%; }
.bw-hero-waves .bw-wave:nth-child(1) { animation: bwScroll 12s linear infinite; opacity: 0.45; }
.bw-hero-waves .bw-wave:nth-child(2) { animation: bwScroll 18s linear infinite reverse; opacity: 0.25; top: 18px; }
.bw-hero-waves .bw-wave:nth-child(3) { animation: bwScroll 9s linear infinite; opacity: 0.15; top: 38px; }
@media (max-width: 768px) { .bw-hero-waves { height: 90px; } }

.bw-footer-waves { position: relative; height: 140px; overflow: hidden; line-height: 0; }
.bw-footer-waves .bw-wave { position: absolute; bottom: 0; width: 200%; height: 160px; }
.bw-footer-waves .bw-wave:nth-child(1) { animation: bwScroll 12s linear infinite; }
.bw-footer-waves .bw-wave:nth-child(2) { animation: bwScroll 18s linear infinite reverse; }
.bw-footer-waves .bw-wave:nth-child(3) { animation: bwScroll 9s linear infinite; }

/* ─── Footer (identical on every page) ─── */
footer { position: relative; overflow: hidden; background: var(--navy-dark); color: rgba(255,255,255,0.65); padding: 4rem clamp(1.25rem, 5vw, 4rem) 2rem; }
footer::before { content: ''; position: absolute; inset: 0; z-index: 0;
  background: url('/assets/images/2026-hero4.webp') center/cover; opacity: 0.9; }
footer::after { content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(8,24,42,0.55) 0%, rgba(8,24,42,0.8) 100%); }
.footer-inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; }
.footer-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; margin-bottom: 3.5rem; }
.footer-top img { height: 90px; width: auto; }
.footer-top h2 { color: #fff; max-width: 18ch; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2.5rem; }
.footer-col h5 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.footer-col a { display: flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; color: rgba(255,255,255,0.62); margin-bottom: 0.75rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-col svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--brass); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom img { height: 58px; width: auto; }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ─── Shared responsive breakpoints ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-cols { grid-template-columns: 1fr; text-align: center; }
  .footer-col a { justify-content: center; }
}
@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; text-align: center; }
}
