/* ============================================================
   EYEQ CONSULTING — SHARED DESIGN SYSTEM
   Editorial / BCG-style: text-forward, restrained, confident
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&family=Spectral:ital,wght@0,300;0,400;1,300&family=DM+Sans:wght@300;400;500&display=swap');

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

/* ── TOKENS ── */
:root {
  /* Brand */
  --navy:        #0c1d38;
  --navy-80:     rgba(12,29,56,.8);
  --blue:        #2d6e99;
  --blue-mid:    #4a90b8;
  --blue-light:  #7ab8d4;
  --blue-pale:   #e8f3f9;
  --blue-tint:   #f4f9fc;

  /* Surfaces */
  --white:       #ffffff;
  --off-white:   #fafbfc;
  --grey-1:      #f4f6f8;
  --grey-2:      #eaecf0;
  --grey-3:      #d8dde5;

  /* Text */
  --ink:         #111827;
  --ink-2:       #374151;
  --ink-3:       #6b7280;
  --ink-4:       #9ca3af;

  /* Borders */
  --rule:        #e5e9ee;
  --rule-2:      #cdd5de;

  /* Typography */
  --display:     'Playfair Display', Georgia, serif;
  --body-serif:  'Spectral', Georgia, serif;
  --sans:        'DM Sans', system-ui, sans-serif;

  /* Sizing */
  --nav-height:  68px;
  --max-w:       1200px;
  --page-px:     clamp(1.5rem, 6vw, 5rem);

  /* Motion */
  --ease:        cubic-bezier(.4, 0, .2, 1);
  --ease-out:    cubic-bezier(0, 0, .2, 1);
}

/* ── BASE ── */
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}
/* overflow-x clipping on page-wrap, not body — body overflow:hidden breaks position:fixed on iOS */

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── NAVIGATION ── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--page-px);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .3s var(--ease);
}
#site-nav.elevated { box-shadow: 0 1px 24px rgba(12,29,56,.07); }

.nav-logo img {
  height: 30px; width: auto;
  mix-blend-mode: multiply;
}

.nav-center {
  display: flex; align-items: center; gap: 0;
  list-style: none;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-center li a {
  display: block;
  font-size: .72rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); padding: .5rem 1.1rem;
  transition: color .2s;
  position: relative;
}
.nav-center li a::after {
  content: ''; position: absolute; bottom: -.5rem; left: 1.1rem; right: 1.1rem; height: 1px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-center li a:hover { color: var(--ink); }
.nav-center li a:hover::after,
.nav-center li a.active::after { transform: scaleX(1); }
.nav-center li a.active { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-contact {
  font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--white); background: var(--navy);
  padding: .52rem 1.3rem; border-radius: 2px;
  transition: background .2s;
}
.nav-contact:hover { background: var(--blue); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px;
  touch-action: manipulation; cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 24px; height: 1.5px; background: var(--ink); flex-shrink: 0;
  transition: all .3s var(--ease);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  position: fixed; top: var(--nav-height); left: 0; right: 0; z-index: 490;
  background: var(--white); border-bottom: 1px solid var(--rule);
  padding: 1.5rem var(--page-px) 2rem;
  display: none; flex-direction: column; gap: .25rem;
  box-shadow: 0 8px 32px rgba(12,29,56,.08);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: .9rem; font-weight: 400; letter-spacing: .06em;
  color: var(--ink-2); padding: .65rem 0;
  border-bottom: 1px solid var(--rule);
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer .nav-contact {
  margin-top: .5rem; text-align: center;
  background: var(--navy); color: var(--white);
  padding: .75rem; border-radius: 2px;
}

/* ── FOOTER ── */
#site-footer {
  background: var(--white);
  border-top: 1px solid var(--rule);
  padding: 4rem var(--page-px) 2rem;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 2.5rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.footer-brand-logo img {
  height: 26px; margin-bottom: .9rem;
}
.footer-brand-text {
  font-size: .82rem; color: var(--ink-3); line-height: 1.8; max-width: 240px;
}
.footer-col h4 {
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1rem; font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-col ul a {
  font-size: .82rem; color: var(--ink-3);
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--navy); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: .69rem; color: var(--ink-4);
}

/* ── LAYOUT UTILITIES ── */
.page-wrap {
  padding-top: var(--nav-height);
  min-height: 100vh;
  display: flex; flex-direction: column;
  overflow-x: hidden;
}
.container {
  max-width: var(--max-w); margin: 0 auto; width: 100%;
}
.section { padding: 6rem var(--page-px); }
.section-sm { padding: 4rem var(--page-px); }
.section-lg { padding: 8rem var(--page-px); }

/* Alternating section backgrounds */
.bg-white  { background: var(--white); }
.bg-off    { background: var(--off-white); }
.bg-grey   { background: var(--grey-1); }
.bg-navy   { background: var(--navy); }
.bg-tint   { background: var(--blue-tint); }

/* ── TYPOGRAPHY SYSTEM ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .67rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1rem;
  font-family: var(--sans); font-weight: 400;
}
.eyebrow::before {
  content: ''; display: block; width: 1.5rem; height: 1px; background: var(--blue);
}

.display-xl {
  font-family: var(--display);
  font-size: clamp(3rem, 5.5vw, 6.5rem);
  font-weight: 400; line-height: 1.02;
  letter-spacing: -.02em; color: var(--navy);
}
.display-lg {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  font-weight: 400; line-height: 1.08;
  letter-spacing: -.015em; color: var(--navy);
}
.display-md {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.8vw, 3rem);
  font-weight: 400; line-height: 1.15;
  letter-spacing: -.01em; color: var(--navy);
}
.display-sm {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-weight: 400; line-height: 1.2; color: var(--navy);
}
em, .italic { font-style: italic; }

.body-lg { font-size: 1.05rem; color: var(--ink-2); line-height: 1.8; }
.body-md { font-size: .93rem; color: var(--ink-2); line-height: 1.85; }
.body-sm { font-size: .82rem; color: var(--ink-3); line-height: 1.8; }

/* ── HORIZONTAL RULE DIVIDER ── */
.rule { border: none; border-top: 1px solid var(--rule); margin: 0; }
.rule-dark { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-size: .73rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .8rem 1.8rem; border-radius: 2px;
  transition: all .2s var(--ease); text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--blue); transform: translateY(-1px); }
.btn-secondary { color: var(--navy); border: 1px solid var(--rule-2); }
.btn-secondary:hover { border-color: var(--blue-mid); color: var(--blue); }
.btn-text {
  color: var(--blue); padding: 0; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
}
.btn-text .arr { display: inline-block; transition: transform .2s; margin-left: .2rem; }
.btn-text:hover .arr { transform: translateX(4px); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--blue-pale); }
.btn-ghost-white { color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.25); }
.btn-ghost-white:hover { color: var(--white); border-color: rgba(255,255,255,.6); }

/* ── CARDS ── */
.card {
  background: var(--white); border: 1px solid var(--rule);
  transition: all .25s var(--ease);
}
.card:hover { border-color: var(--blue-light); box-shadow: 0 6px 28px rgba(12,29,56,.08); }
.card-lift:hover { transform: translateY(-3px); }

/* ── PILL / TAG ── */
.tag {
  display: inline-block;
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-pale);
  border: 1px solid rgba(45,110,153,.15);
  padding: .2rem .7rem; border-radius: 2px;
}
.tag-muted {
  color: var(--ink-3); background: var(--grey-1);
  border-color: var(--rule);
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 1; transform: none;
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.js-loaded .reveal {
  opacity: 0; transform: translateY(18px);
}
.js-loaded .reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* Fallback for environments where IntersectionObserver is blocked */
.reveal-done .reveal { opacity: 1; transform: none; transition: none; }

/* ── DIVIDER LINE WITH LABEL ── */
.section-divider {
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.section-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--rule);
}

/* ── STAT / CALLOUT ── */
.stat-block { display: flex; flex-direction: column; gap: .3rem; }
.stat-number {
  font-family: var(--display); font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 400; color: var(--navy); line-height: 1;
}
.stat-label { font-size: .8rem; color: var(--ink-3); letter-spacing: .05em; }

/* ── TWO-PHOTO FLIP UTILITY ── */
.photo-duo {
  position: relative; width: 100%;
}
.photo-duo-inner {
  position: relative; width: 100%; overflow: hidden;
}
.photo-duo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.photo-duo .photo-back {
  position: absolute; inset: 0;
  transition: opacity .7s var(--ease);
  opacity: 0;
}
.photo-duo:hover .photo-back { opacity: 1; }
.photo-duo:hover .photo-front { opacity: 0; }
.photo-duo .photo-front { transition: opacity .7s var(--ease); }
.photo-caption {
  font-size: .67rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-4); margin-top: .8rem; text-align: center;
}

/* ── CORNER BRACKETS ── */
.bracket-wrap { position: relative; }
.bracket::before, .bracket::after {
  content: ''; position: absolute; width: 40px; height: 40px;
  border-color: var(--blue-light); border-style: solid;
}
.bracket::before { top: -8px; left: -8px; border-width: 1.5px 0 0 1.5px; }
.bracket::after  { bottom: -8px; right: -8px; border-width: 0 1.5px 1.5px 0; }

/* ── RESPONSIVE BREAKPOINTS ── */
/* Tablet: 768px – 1024px */
@media (max-width: 1024px) {
  .nav-center { display: none; }
  .nav-hamburger { display: flex; }
  .nav-contact { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* Mobile: < 768px */
@media (max-width: 768px) {
  :root { --page-px: 1.4rem; }
  .section { padding: 4rem var(--page-px); }
  .section-lg { padding: 5rem var(--page-px); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

/* ══════════════════════════════════════
   CTA SECTION (shared across all pages)
══════════════════════════════════════ */
.cta-section {
  background: var(--navy);
  padding: 7rem var(--page-px);
  display: grid; grid-template-columns: 1fr auto;
  gap: 4rem; align-items: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; right: -5%; top: -80%;
  width: 50vw; height: 200%;
  background: radial-gradient(ellipse, rgba(74,144,184,.1), transparent 60%);
  pointer-events: none;
}
.cta-headline {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 4rem);
  font-weight: 400; color: var(--white); line-height: 1.1;
}
.cta-headline em { color: var(--blue-light); font-style: italic; }
.cta-sub { font-size: .92rem; color: rgba(255,255,255,.55); margin-top: .8rem; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── CTA FORM ── */
.cta-form { min-width: 420px; }
.cta-form form { display: flex; flex-direction: column; gap: .75rem; }
.cta-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.cta-form input,
.cta-form textarea {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 3px;
  padding: .75rem 1rem;
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 300;
  color: var(--white);
  transition: border-color .2s;
  outline: none;
}
.cta-form input::placeholder,
.cta-form textarea::placeholder { color: rgba(255,255,255,.35); }
.cta-form input:focus,
.cta-form textarea:focus { border-color: var(--blue-light); }
.cta-form textarea { resize: vertical; min-height: 110px; }
.cta-form .btn-white { align-self: flex-start; margin-top: .25rem; cursor: pointer; border: none; }
.cta-form .btn-white:hover { background: var(--blue-pale); }

/* Success/error states */
.cta-form .form-success {
  color: var(--blue-light);
  font-size: .88rem;
  padding: .75rem 0;
}

@media (max-width: 1024px) {
  .cta-section { grid-template-columns: 1fr; gap: 2rem; }
  .cta-form { min-width: 0; width: 100%; }
}
@media (max-width: 640px) {
  .cta-headline { font-size: 2rem; }
  .cta-form-row { grid-template-columns: 1fr; }
}
