/* =========================================================
   Modern Media Communications + EZ Electric, LLC
   Shared stylesheet
   Colors sampled directly from the real logo files:
     EZ Electric navy:  #002161   EZ Electric orange: #FF8C34
     Modern Media blue: #0054A9   Modern Media red:    #E51E25
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap');

:root {
  /* Brand colors */
  --navy: #002161;
  --navy-light: #0a3a8f;
  --orange: #FF8C34;
  --orange-dark: #e6741c;
  --blue: #0054A9;
  --blue-light: #1a72d1;
  --red: #E51E25;
  --red-dark: #c9151b;

  /* Neutrals */
  --ink: #14213d;
  --ink-soft: #4a5573;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --border: #e3e8f0;
  --white: #ffffff;

  /* Type */
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: 'Poppins', var(--font-body);

  /* Layout */
  --container: 1180px;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(0, 33, 97, 0.25);
  --shadow-sm: 0 4px 14px -6px rgba(0, 33, 97, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }
.section-pad { padding: clamp(56px, 8vw, 96px) 0; }
.text-center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.eyebrow.is-orange { color: var(--orange-dark); }
.eyebrow.is-red { color: var(--red); }

.lede {
  font-size: 1.15rem;
  max-width: 640px;
}
.text-center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow); }

.btn-orange {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(255, 140, 52, 0.55);
}

.btn-red {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(229, 30, 37, 0.5);
}

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-lockup img { height: 40px; width: auto; }
.brand-divider {
  width: 1px;
  height: 30px;
  background: var(--border);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); border-color: var(--orange); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 11px 22px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 30px 24px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, var(--navy-light), var(--navy) 55%, #001542 100%);
  color: var(--white);
  padding: clamp(70px, 12vw, 130px) 0 clamp(70px, 10vw, 110px);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: float 12s ease-in-out infinite;
  z-index: 1;
}
.hero-blob.b1 { width: 380px; height: 380px; background: var(--orange); top: -120px; right: -80px; }
.hero-blob.b2 { width: 300px; height: 300px; background: var(--red); bottom: -100px; left: -60px; animation-delay: -4s; }
.hero-blob.b3 { width: 220px; height: 220px; background: var(--blue-light); top: 40%; right: 20%; animation-delay: -8s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.08); }
}

/* ---------- Homepage hero: real project photos behind the headline ---------- */
.hero-photo-split {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 0;
}
.hero-photo {
  position: relative;
  width: 50%;
  height: 100%;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  animation: heroKenBurns 26s ease-in-out infinite alternate;
}
.hero-photo-right img { animation-delay: -13s; }

@keyframes heroKenBurns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.14) translate(-1.5%, -1.5%); }
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg,
    rgba(0, 17, 51, 0.96) 0%,
    rgba(0, 21, 66, 0.93) 32%,
    rgba(0, 33, 97, 0.72) 52%,
    rgba(0, 53, 127, 0.42) 75%,
    rgba(0, 53, 127, 0.3) 100%);
}

/* ---------- Modern Media hero: abstract "advanced technology" background ---------- */
.hero-tech {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(26, 114, 209, 0.35), transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(229, 30, 37, 0.22), transparent 40%),
    radial-gradient(circle at 75% 90%, rgba(26, 114, 209, 0.28), transparent 45%),
    linear-gradient(135deg, #011a38 0%, #012e5c 50%, #013f74 100%);
}

.hero-tech-grid {
  position: absolute;
  inset: -10% -10% -10% -10%;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(600px) rotateX(3deg);
  animation: techGridDrift 34s linear infinite;
}
@keyframes techGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 88px 44px, 88px 44px; }
}

.hero-tech-node {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 14px 4px rgba(26, 114, 209, 0.85);
  animation: techPulse 3.4s ease-in-out infinite;
  z-index: 1;
}
.hero-tech-node.is-red {
  background: var(--red);
  box-shadow: 0 0 14px 4px rgba(229, 30, 37, 0.8);
}
@keyframes techPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.75); }
  50% { opacity: 1; transform: scale(1.35); }
}

.hero-tech-line {
  position: absolute;
  height: 1px;
  width: 160px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  z-index: 1;
  animation: techLineFlow 5.5s ease-in-out infinite;
}
@keyframes techLineFlow {
  0% { opacity: 0; transform: translateX(-60px); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(60px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-tech-grid, .hero-tech-node, .hero-tech-line { animation: none; }
}

/* Blue/red-tinted overlay variant for Modern Media's brand hero */
.hero-photo-overlay-blue {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg,
    rgba(1, 21, 45, 0.96) 0%,
    rgba(1, 46, 92, 0.93) 30%,
    rgba(0, 84, 169, 0.65) 52%,
    rgba(0, 84, 169, 0.4) 75%,
    rgba(0, 84, 169, 0.28) 100%);
}

@media (max-width: 760px) {
  .hero-photo-right { display: none; }
  .hero-photo-left { width: 100%; }
  .hero-photo-overlay {
    background: linear-gradient(180deg, rgba(0, 17, 51, 0.85) 0%, rgba(0, 21, 66, 0.94) 55%, rgba(0, 21, 66, 0.97) 100%);
  }
  .hero-photo-overlay-blue {
    background: linear-gradient(180deg, rgba(1, 21, 45, 0.85) 0%, rgba(1, 46, 92, 0.94) 55%, rgba(1, 46, 92, 0.97) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo img, .hero-blob { animation: none; }
}

.hero-inner { position: relative; z-index: 2; }
.hero h1 { color: var(--white); }
.hero .lede { color: rgba(255,255,255,0.85); font-size: 1.2rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.hero-small {
  padding: clamp(56px, 8vw, 84px) 0 clamp(46px, 6vw, 64px);
}
.hero-small h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

/* logo pair floating card on homepage hero */
.hero-logo-pair {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-top: 40px;
  backdrop-filter: blur(6px);
  width: fit-content;
}
.hero-logo-pair img { height: 42px; width: auto; background: #fff; border-radius: 6px; padding: 4px 8px; }
.hero-logo-pair span { color: rgba(255,255,255,0.7); font-family: var(--font-head); font-weight: 700; }

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 0;
  text-align: center;
}
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--blue);
}
.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
@media (max-width: 800px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Two-business showcase cards ---------- */
.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 820px) { .duo-grid { grid-template-columns: 1fr; } }

.biz-card {
  border-radius: var(--radius);
  padding: 36px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.biz-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.biz-card.mm { background: linear-gradient(145deg, var(--blue), #013a75); }
.biz-card.ez { background: linear-gradient(145deg, var(--navy), #001133); }
.biz-card .biz-logo { height: 44px; width: auto; background: #fff; border-radius: 8px; padding: 6px 10px; margin-bottom: 20px; }
.biz-card ul { list-style: none; margin: 20px 0; padding: 0; }
.biz-card li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-weight: 500;
}
.biz-card li:first-child { border-top: none; }
.biz-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 14px;
  height: 14px;
  border-radius: 3px;
}
.biz-card.mm li::before { background: var(--red); }
.biz-card.ez li::before { background: var(--orange); }

/* ---------- Story split (text + real project photo) ---------- */
.story-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .story-split { grid-template-columns: 1fr; } }
.story-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Project / work gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 16px 14px;
  background: linear-gradient(0deg, rgba(0,17,51,0.92), rgba(0,17,51,0));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
}

/* photo attached to a service card */
.service-card-photo {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
  aspect-ratio: 16 / 10;
}
.service-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Featured project case studies ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }

.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.case-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-body { padding: 22px 24px 26px; }
.case-industry {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(229, 30, 37, 0.08);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 12px;
}
.case-card h3 { margin-bottom: 6px; font-size: 1.15rem; }
.case-body p { margin-bottom: 0; font-size: 0.94rem; }

/* full-bleed banner with dark overlay for illustrative (non-project) photos */
.photo-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
  color: #fff;
}
.photo-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.photo-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0,17,51,0.88), rgba(0,17,51,0.55));
  z-index: 1;
}
.photo-banner-content { position: relative; z-index: 2; padding: 40px; max-width: 560px; }
.photo-banner-content h2 { color: #fff; }
.photo-banner-content p { color: rgba(255,255,255,0.85); margin-bottom: 0; }

/* ---------- Feature / value cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
  border-color: var(--blue-light);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.3rem;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { margin-bottom: 0; font-size: 0.95rem; }

/* Custom on-brand icon panel: placeholder for a service card until a real
   photo is available. Deliberately not a stock photo (see HTML comments
   next to each usage for licensing notes / suggested search terms). */
.service-tech-panel {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(26, 114, 209, 0.35), transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(229, 30, 37, 0.22), transparent 50%),
    linear-gradient(135deg, #011a38 0%, #012e5c 55%, #013f74 100%);
}
.service-tech-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}
.service-tech-panel .tech-panel-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(26, 114, 209, 0.35);
  filter: blur(28px);
  animation: techPulse 3.4s ease-in-out infinite;
}
.service-tech-panel svg {
  position: relative;
  width: 54px;
  height: 54px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
}

/* service detail grid used on modern-media.html / ez-electric.html */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
@media (max-width: 760px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 30px;
  border-left: 5px solid var(--blue);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.service-card.theme-red { border-left-color: var(--red); }
.service-card.theme-orange { border-left-color: var(--orange); }
.service-card h3 { display: flex; align-items: center; gap: 12px; }
.service-card ul { margin: 14px 0 0; padding-left: 20px; color: var(--ink-soft); }
.service-card li { margin-bottom: 6px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Timeline (About page) ---------- */
.timeline {
  position: relative;
  margin: 40px 0 0;
  padding-left: 28px;
  border-left: 3px solid var(--border);
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--border);
}
.timeline-item .year {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blue);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

.testi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.testi-quote { font-size: 2.4rem; font-family: var(--font-head); color: var(--orange); line-height: 0; position: relative; top: 14px; }
.testi-text { font-style: italic; color: var(--ink); margin-bottom: 16px; }
.testi-name { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.testi-source { font-size: 0.82rem; color: var(--ink-soft); }
.testi-card.placeholder { border-style: dashed; background: var(--bg-alt); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--blue));
  color: var(--white);
  border-radius: var(--radius);
  padding: 50px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 0; }

/* ---------- Contact page layout ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.info-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 20px;
  border-top: 4px solid var(--blue);
}
.info-card.ez { border-top-color: var(--orange); }
.info-card h3 { display: flex; align-items: center; gap: 10px; }
.info-card .info-logo { height: 30px; width: auto; }
.info-line { display: flex; gap: 10px; margin-bottom: 8px; font-size: 0.95rem; color: var(--ink-soft); }
.info-line strong { color: var(--ink); min-width: 0; }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 84, 169, 0.12);
}
.form-row textarea { resize: vertical; min-height: 120px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }

.biz-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .biz-choice { grid-template-columns: 1fr; } }
.biz-choice label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.biz-choice input { accent-color: var(--blue); width: 17px; height: 17px; }
.biz-choice input:checked + span { color: var(--navy); }
.biz-choice label:has(input:checked) { border-color: var(--blue); background: rgba(0,84,169,0.06); }

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* honeypot field - hidden from real users, catches basic bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #001133;
  color: rgba(255,255,255,0.75);
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--orange); }
.footer-logos { display: flex; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-logos img { height: 34px; background: #fff; border-radius: 6px; padding: 4px 8px; }

.social-links { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.social-links a:hover { transform: translateY(-2px); filter: brightness(1.12); }
.social-links a.social-mm { background: linear-gradient(135deg, var(--blue-light), var(--blue)); }
.social-links a.social-ez { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.social-links svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Misc ---------- */
.divider-fade {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

.badge-license {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}
