/* ===== RESET & TOKENS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:      #ffffff;
  --snow:       #f8fafc;
  --snow-dim:   #e8edf5;
  --navy:       #0d1b2a;
  --navy-2:     #1a2f47;
  --slate:      #1e3a5f;
  --blue:       #1d6fa4;
  --blue-dark:  #155d8a;
  --blue-light: #dbeafe;
  --text:       #1e293b;
  --text-muted: #64748b;
  --gold:       #b8860b;
  --gold-light: #fbbf24;
  --transition: 0.22s ease;
  --radius:     8px;
  --nav-h:      64px;
  --bar-h:      38px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--snow);
  padding-top: calc(var(--bar-h) + var(--nav-h));
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== PHONE BAR ===== */
.phone-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--bar-h);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  z-index: 1100;
  font-size: 0.82rem;
}
.phone-bar-text { color: rgba(255,255,255,0.5); }
.phone-bar-cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.phone-bar-cta:hover { color: var(--gold-light); }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: var(--bar-h); left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: var(--navy);
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 4px 20px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.logo-img {
  height: 36px; width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}
#navbar.scrolled .logo-img { filter: brightness(0); }
.logo-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
  white-space: nowrap;
}
#navbar.scrolled .logo-sub { color: var(--text-muted); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
#navbar.scrolled .nav-links a { color: var(--text-muted); }
#navbar.scrolled .nav-links a:hover,
#navbar.scrolled .nav-links a.active { color: var(--text); }

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
#navbar.scrolled .nav-toggle span { background: var(--text); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 6rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(13,27,42,0.82) 0%, rgba(13,27,42,0.45) 55%, rgba(13,27,42,0.15) 100%);
}
.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: "WONK" 1;
  font-size: clamp(2.8rem, 6.5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.06;
  color: #fff;
  margin-bottom: 1.25rem;
  max-width: 580px;
}
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-bottom: 2.2rem;
  line-height: 1.6;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  transition: border-color var(--transition), color var(--transition);
}
.btn-outline:hover { border-color: #fff; color: #fff; }

/* ===== STATS BAND ===== */
.stats-band {
  background: var(--slate);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 3rem;
  text-align: center;
}
.stat-item strong {
  font-family: 'Fraunces', serif;
  font-variation-settings: "WONK" 1;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.stat-item span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* ===== SECTIONS ===== */
.section { padding: 6rem 0; }
.section-slate { background: var(--slate); }
.section-dark  { background: var(--navy); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.eyebrow-light { color: var(--gold-light); }
.section-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: "WONK" 1;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}
.section-title em { font-style: italic; color: var(--blue); }
.title-light { color: #fff; }
.title-light em { color: var(--gold-light); }
.section-sub { font-size: 1rem; color: var(--text-muted); margin-top: 0.75rem; }

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--snow-dim);
  border: 1px solid var(--snow-dim);
  margin-bottom: 3rem;
}
.svc-card {
  background: var(--white);
  padding: 2rem 1.75rem;
  transition: background var(--transition), box-shadow var(--transition);
}
.svc-card:hover { background: var(--snow); }
.svc-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.svc-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.svc-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.services-cta { display: flex; justify-content: center; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.testimonial {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.testimonial p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1rem;
}
.testimonial cite {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  font-style: normal;
  letter-spacing: 0.04em;
}

/* ===== CLIENTS ===== */
.clients-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3rem;
}
.client-logo-item {
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity var(--transition), filter var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-logo-item:hover { opacity: 1; filter: grayscale(0); }
.client-logo-item img { height: 34px; width: auto; object-fit: contain; }
.client-logo-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.65;
  padding: 0.2rem 0.75rem;
  border: 1.5px solid var(--snow-dim);
  border-radius: var(--radius);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-items { display: flex; flex-direction: column; gap: 1.75rem; }
.contact-item { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-item-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.contact-item-val {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  transition: color var(--transition);
}
.contact-item-val:hover { color: var(--gold-light); }
.contact-item-val--sm { font-size: 1.1rem; line-height: 1.5; }
.contact-grid iframe {
  border-radius: var(--radius);
  filter: grayscale(0.4) brightness(0.8);
}

/* ===== FOOTER ===== */
footer { background: #080f18; padding: 2.5rem 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo-img {
  height: 36px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  margin-bottom: 0.35rem;
}
.footer-tagline {
  font-family: 'Fraunces', serif;
  font-variation-settings: "WONK" 1;
  font-style: italic;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.3);
}
.footer-right { text-align: right; font-size: 0.82rem; color: rgba(255,255,255,0.4); line-height: 1.9; }
.footer-copy { opacity: 0.5; }

/* ===== FAB ===== */
.fab-call {
  display: none;
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 58px; height: 58px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(29,111,164,0.45);
  transition: background var(--transition), transform var(--transition);
}
.fab-call:hover { background: var(--blue-dark); transform: scale(1.05); }

/* ===== FADE IN ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; --bar-h: 34px; }
  .phone-bar-text { display: none; }
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: calc(var(--bar-h) + var(--nav-h));
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem 2rem;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    pointer-events: none;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: all; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--snow-dim); }
  .nav-links a { display: block; padding: 0.9rem 0; color: var(--text) !important; font-size: 1rem; }
  .nav-cta { margin-top: 0.5rem; display: inline-flex !important; }

  #hero { padding-bottom: 3.5rem; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }

  .stats-band { gap: 0; padding: 1rem; }
  .stat-item { padding: 0.75rem 1.25rem; }
  .stat-divider { height: 30px; }

  .services-grid { grid-template-columns: 1fr; }
  .clients-logos { gap: 1.5rem 2rem; }
  .client-logo-item img { height: 26px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-right { text-align: left; }

  .fab-call { display: flex; }
}

@media (max-width: 480px) {
  .section { padding: 4rem 0; }
  .stats-band { flex-direction: column; }
  .stat-divider { width: 40px; height: 1px; }
  .contact-item-val { font-size: 1.35rem; }
}
