/* Civlink Consulting — Website Mockup v3
   Brand: Navy #1F3F66, Gold #B8995A */

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

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #1F3F66;
  --navy-dark: #15314F;
  --navy-deep: #0E2240;
  --gold: #B8995A;
  --gold-bright: #C9A969;
  --off-white: #F8F6F1;
  --grey-50: #F8F9FA;
  --grey-100: #EFF1F4;
  --grey-200: #DDE1E8;
  --grey-500: #6B7785;
  --text: #1A2533;
  --text-muted: #5A6573;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html { overflow-x: hidden; }

h1, h2, h3, h4 {
  font-family: 'Inter Tight', 'Inter', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15, 34, 64, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; max-width: 1400px; margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 18px; padding: 4px 0; transition: opacity 0.2s; }
.nav-logo:hover { opacity: 0.85; }
.nav-logo img.nav-mark { height: 80px; width: auto; }
.nav-logo-text {
  display: inline-flex; flex-direction: column; align-items: center;
  color: #fff; font-family: 'Inter Tight', sans-serif; font-weight: 900;
  font-size: 32px; line-height: 1;
}
.nav-logo-text .brand-main {
  letter-spacing: 0.16em;
  padding-left: 0.16em; /* counter-balance trailing letter-spacing for visual centering */
}
.nav-logo-text .brand-sub {
  color: var(--gold); font-weight: 600; font-size: 13px;
  letter-spacing: 0.56em; margin-top: 8px;
  padding-left: 0.56em; /* counter-balance trailing letter-spacing */
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.92); font-size: 14px; font-weight: 500;
  letter-spacing: 0.04em; transition: color 0.2s; position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -8px; width: 100%;
  height: 2px; background: var(--gold); transform: scaleX(0);
  transform-origin: left; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--gold-bright); }
.nav-cta {
  background: var(--gold); color: var(--navy-deep) !important;
  padding: 12px 22px; border-radius: 2px; font-weight: 700 !important;
  font-size: 13px !important; letter-spacing: 0.06em;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--gold-bright); color: var(--navy-deep) !important; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(184,153,90,0.3); }

/* Hamburger menu button (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent; border: none; cursor: pointer;
  padding: 10px; position: relative;
  z-index: 110;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: #fff; margin: 4px auto;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--gold); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--gold); }

/* HERO */
.hero {
  position: relative; overflow: hidden;
  color: #fff;
  padding: 240px 0 160px;
  background: var(--navy-deep);
  min-height: 92vh;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('assets/hero-motorway.jpg');
  background-size: cover; background-position: center;
  opacity: 0.38;
  transform: scale(1.06);
  animation: kenburns 30s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.06) translate(0, 0); }
  to { transform: scale(1.12) translate(-1%, -1%); }
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(120deg,
      rgba(14, 34, 64, 0.92) 0%,
      rgba(21, 49, 79, 0.72) 60%,
      rgba(14, 34, 64, 0.55) 100%),
    linear-gradient(180deg, transparent 60%, rgba(14, 34, 64, 0.45) 100%);
}
.hero::before {
  content: ''; position: absolute; right: -200px; top: -100px; width: 900px; height: 900px; z-index: 2;
  background: radial-gradient(circle, rgba(184,153,90,0.22) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 3; max-width: 880px; width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--gold); font-size: 13px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 32px;
}
.hero-eyebrow::before {
  content: ''; display: inline-block; width: 36px; height: 1px; background: var(--gold);
}
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.6rem); font-weight: 900; line-height: 1.0;
  letter-spacing: -0.03em; margin-bottom: 36px;
}
.hero h1 em { color: var(--gold); font-style: normal; position: relative; display: inline-block; }

/* HERO ROTATING WORD */
.rotating-words {
  display: inline-block; position: relative;
  vertical-align: bottom; min-width: 6.5ch;
  text-align: left;
  overflow: hidden; height: 1.1em;
}
.rotating-words .rotator-track {
  display: inline-flex; flex-direction: column;
  animation: word-rotate 5.5s cubic-bezier(0.86, 0, 0.07, 1) forwards;
  color: var(--gold);
}
.rotating-words .rotator-track.settled {
  animation: word-rotate 8s cubic-bezier(0.86, 0, 0.07, 1) infinite;
}
.rotating-words .rotator-track span {
  height: 1.1em; line-height: 1.1em; display: block;
  white-space: nowrap;
}
@keyframes word-rotate {
  0%, 22% { transform: translateY(0); }
  28%, 47% { transform: translateY(-1.1em); }
  53%, 72% { transform: translateY(-2.2em); }
  78%, 100% { transform: translateY(-3.3em); }
}
@media (prefers-reduced-motion: reduce) {
  .rotating-words .rotator-track { animation: none; }
}

/* HERO STAGGER LINES */
.hero h1 .line {
  display: block;
  opacity: 0; transform: translateY(28px);
  animation: line-rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero h1 .line:nth-child(1) { animation-delay: 0.15s; }
.hero h1 .line:nth-child(2) { animation-delay: 0.30s; }
.hero h1 .line:nth-child(3) { animation-delay: 0.45s; }
@keyframes line-rise {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .line { opacity: 1; transform: none; animation: none; }
}
.hero p.lead {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem); color: rgba(255,255,255,0.85);
  max-width: 680px; margin-bottom: 48px; line-height: 1.6;
  font-weight: 400;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 2px; font-weight: 700; font-size: 15px;
  letter-spacing: 0.04em; transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: var(--gold); }
.btn-arrow { font-size: 18px; }
.hero-meta { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 18px; }

/* TRUST STRIP — LOGO MARQUEE */
.trust {
  background: #fff; padding: 96px 0; border-bottom: 1px solid var(--grey-100);
  position: relative;
}
.trust-label {
  text-align: center; color: var(--text-muted); font-size: 13px; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 56px;
}
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee-track {
  display: flex; gap: 96px; align-items: center;
  animation: marquee 70s linear infinite;
  width: max-content;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track img {
  height: 110px; width: auto; max-width: 280px; min-width: 130px; object-fit: contain;
  opacity: 0.95;
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
  padding: 12px 16px;
}
.marquee-track img:hover {
  opacity: 1;
  transform: scale(1.07);
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* SECTION GENERIC */
section { padding: 120px 0; }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 72px; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--gold); font-size: 12px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 20px;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ''; display: inline-block; width: 24px; height: 1px; background: var(--gold);
  opacity: 0.6;
}
.section-header h2 {
  font-size: clamp(2.3rem, 4.4vw, 3.8rem); color: var(--navy); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.08; margin-bottom: 22px;
}
.section-header p {
  font-size: 1.15rem; color: var(--text-muted); line-height: 1.65;
}

/* SERVICES GRID */
.services { background: var(--off-white); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  background: #fff; padding: 40px 36px; border-radius: 6px;
  border: 1px solid var(--grey-100); transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative; overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: ''; position: absolute; left: 0; top: 0; right: 0;
  height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover {
  border-color: rgba(31, 63, 102, 0.15);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -16px rgba(14, 34, 64, 0.18);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px; background: var(--navy); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 26px;
  transition: background 0.3s;
}
.service-card:hover .service-icon { background: var(--gold); }
.service-icon svg { width: 26px; height: 26px; color: var(--gold); transition: color 0.3s; }
.service-card:hover .service-icon svg { color: var(--navy); }
.service-card h3 {
  color: var(--navy); font-size: 1.25rem; font-weight: 700; margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.service-card p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.65; }
.services-cta { text-align: center; margin-top: 56px; }
.services-cta a {
  color: var(--navy); font-weight: 700; font-size: 15px; letter-spacing: 0.04em;
  border-bottom: 2px solid var(--gold); padding-bottom: 4px;
}
.services-cta a:hover { color: var(--gold); }

/* WHY CIVLINK */
.why { background: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.about-intro-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
@media (max-width: 900px) {
  .about-intro-grid { grid-template-columns: 1fr; gap: 32px; }
}
.why-item h3 {
  color: var(--navy); font-size: 1.35rem; font-weight: 700; margin-bottom: 16px;
}
.why-item p { color: var(--text-muted); line-height: 1.65; }
.why-number {
  font-size: 3.5rem; font-weight: 800; color: var(--grey-100); line-height: 1;
  margin-bottom: 8px; font-family: Georgia, 'Times New Roman', serif; font-style: italic;
}

/* RECENT WORK */
.work { background: var(--navy-deep); color: #fff; }
.work .section-header h2 { color: #fff; }
.work .section-header p { color: rgba(255,255,255,0.7); }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  padding: 32px; border-radius: 4px; transition: all 0.3s;
}
.work-card:hover { background: rgba(255,255,255,0.07); border-color: var(--gold); }
.work-client {
  color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 10px;
}
.work-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; line-height: 1.25; }
.work-card p { color: rgba(255,255,255,0.7); font-size: 0.95rem; }

/* CTA BAND */
.cta-band {
  background: linear-gradient(135deg, var(--gold) 0%, #A88748 100%);
  padding: 80px 0; text-align: center; color: var(--navy-deep);
}
.cta-band h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: 18px;
  letter-spacing: -0.015em;
}
.cta-band p {
  font-size: 1.15rem; margin-bottom: 36px; max-width: 600px; margin-left: auto;
  margin-right: auto; opacity: 0.85;
}
.cta-band .btn {
  background: var(--navy-deep); color: #fff;
}
.cta-band .btn:hover { background: var(--navy); }

/* FOOTER */
footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 88px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 64px; }
.footer-brand img { height: 64px; margin-bottom: 24px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand p { color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 340px; font-size: 0.96rem; }
.footer-col h4 {
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a, .footer-col span {
  color: rgba(255,255,255,0.65); font-size: 0.95rem; transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 0.88rem; color: rgba(255,255,255,0.45);
}

/* FEATURE IMAGE BAND */
.feature-band {
  position: relative; padding: 140px 0; overflow: hidden;
  background: var(--navy-deep); color: #fff;
}
.feature-band-bg {
  position: absolute; inset: 0;
  background-image: url('assets/motorway-curve.jpg');
  background-size: cover; background-position: center;
  opacity: 0.55;
}
.feature-band::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg,
    rgba(14, 34, 64, 0.75) 0%, rgba(14, 34, 64, 0.55) 50%, rgba(14, 34, 64, 0.85) 100%);
}
.feature-band .container { position: relative; z-index: 2; text-align: center; }
.feature-band h2 {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 24px; max-width: 800px; margin-left: auto; margin-right: auto;
}
.feature-band h2 em { color: var(--gold); font-style: normal; }
.feature-band p {
  font-size: 1.15rem; color: rgba(255,255,255,0.82);
  max-width: 720px; margin: 0 auto;
}

/* PAGE HERO (smaller hero for inner pages) */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 180px 0 90px; background: var(--navy-deep);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; opacity: 0.32;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg,
    rgba(14, 34, 64, 0.92) 0%, rgba(21, 49, 79, 0.85) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .hero-eyebrow { margin-bottom: 16px; }
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 800; line-height: 1.05;
  letter-spacing: -0.02em; margin-bottom: 20px; max-width: 820px;
}
.page-hero p.lead {
  font-size: clamp(1rem, 1.4vw, 1.2rem); color: rgba(255,255,255,0.82);
  max-width: 720px; line-height: 1.55;
}

/* WORK CARD IMAGES */
.work-card { padding: 0; overflow: hidden; cursor: default; }
.work-card-img {
  height: 240px; background-size: cover; background-position: center;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover .work-card-img { transform: scale(1.05); }
.work-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(14,34,64,0) 30%, rgba(14,34,64,0.7) 100%);
}
.work-card-body { padding: 32px 36px 36px; position: relative; z-index: 2; }
.work-card .work-client {
  color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: 0.24em;
  text-transform: uppercase; margin-bottom: 12px;
}
.work-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 14px; line-height: 1.2; letter-spacing: -0.015em; }

/* FEATURED CAPABILITY CALLOUT (services page) */
.featured-callout {
  background: var(--off-white);
  padding: 80px 0;
  border-bottom: 1px solid var(--grey-100);
  position: relative;
}
.featured-callout::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--gold);
}
.featured-callout-inner {
  max-width: 880px;
}
.featured-callout-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--gold); font-size: 12px; font-weight: 800;
  letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 22px;
}
.featured-callout-eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--gold);
}
.featured-callout h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--navy); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 22px;
}
.featured-callout p {
  font-size: 1.08rem; color: var(--text);
  line-height: 1.7; margin-bottom: 30px;
}
.featured-callout .featured-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff;
  padding: 14px 26px; border-radius: 2px;
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}
.featured-callout .featured-btn:hover {
  background: var(--gold); color: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(184,153,90,0.3);
}

/* SERVICES LIST (services page) */
.services-list { background: #fff; padding-top: 96px; padding-bottom: 120px; }
.service-row {
  display: grid; grid-template-columns: 100px 1fr 220px; gap: 40px;
  padding: 44px 0; border-bottom: 1px solid var(--grey-100);
  align-items: center;
  transition: background 0.3s, padding 0.3s;
}
.service-row:hover { background: linear-gradient(to right, transparent, rgba(248,246,241,0.6), transparent); }
.service-row:last-child { border-bottom: none; }
.service-icon-block {
  width: 88px; height: 88px;
  background: var(--navy);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-row:hover .service-icon-block {
  background: var(--gold);
  transform: rotate(-3deg) scale(1.05);
}
.service-icon-block svg {
  width: 44px; height: 44px; color: var(--gold);
  transition: color 0.3s;
}
.service-row:hover .service-icon-block svg { color: var(--navy); }
.service-num-badge {
  position: absolute; top: -8px; right: -8px;
  background: var(--gold); color: var(--navy-deep);
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  padding: 4px 9px; border-radius: 4px;
  box-shadow: 0 4px 12px rgba(14,34,64,0.18);
}
.service-row:hover .service-num-badge {
  background: var(--navy); color: var(--gold);
}
.service-body h3 {
  color: var(--navy); font-size: 1.45rem; font-weight: 700;
  margin-bottom: 12px; letter-spacing: -0.015em;
}
.service-body p { color: var(--text-muted); font-size: 1.02rem; line-height: 1.7; }
.service-tag {
  display: inline-block; background: var(--off-white); color: var(--navy);
  padding: 8px 16px; border-radius: 2px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.3s;
}
.service-row:hover .service-tag {
  border-color: var(--gold);
  background: #fff;
}
@media (max-width: 800px) {
  .service-row { grid-template-columns: 72px 1fr; gap: 24px; padding: 32px 0; }
  .service-row .service-tag { grid-column: 2; justify-self: start; margin-top: 8px; }
  .service-icon-block { width: 72px; height: 72px; }
  .service-icon-block svg { width: 36px; height: 36px; }
}

/* PRINCIPALS (about page) */
.principals { background: var(--off-white); }
.principal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.principal-card {
  background: #fff; padding: 40px; border-radius: 4px;
  border-top: 4px solid var(--gold);
  box-shadow: 0 4px 24px rgba(31,63,102,0.06);
}
.principal-name {
  color: var(--navy); font-size: 1.6rem; font-weight: 800; margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.principal-role {
  color: var(--gold); font-size: 13px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 20px;
}
.principal-creds {
  font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px;
  padding-bottom: 24px; border-bottom: 1px solid var(--grey-100);
  line-height: 1.7;
}
.principal-bio { color: var(--text); line-height: 1.7; }
.principal-bio strong { color: var(--navy); font-weight: 800; }
.principal-contact {
  display: flex; gap: 20px; margin-top: 24px; padding-top: 24px;
  border-top: 1px solid var(--grey-100); font-size: 0.92rem;
}
.principal-contact a { color: var(--navy); font-weight: 600; }
.principal-contact a:hover { color: var(--gold); }

/* VALUES (about page) */
.values { background: #fff; }
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.value-item {
  text-align: center; padding: 32px 20px;
  border: 1px solid var(--grey-100); border-radius: 4px;
  transition: all 0.3s;
}
.value-item:hover { border-color: var(--gold); transform: translateY(-2px); }
.value-icon {
  width: 56px; height: 56px; background: var(--off-white); margin: 0 auto 20px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.value-icon svg { width: 26px; height: 26px; }
.value-item h4 { color: var(--navy); font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.value-item p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

/* MISSION */
.mission {
  background: var(--navy-deep); color: #fff; text-align: center;
  padding: 100px 0; position: relative; overflow: hidden;
}
.mission-bg {
  position: absolute; inset: 0;
  background-image: url('assets/highway-night.jpg');
  background-size: cover; background-position: center; opacity: 0.18;
}
.mission .container { position: relative; z-index: 2; }
.mission .section-eyebrow { color: var(--gold); }
.mission blockquote {
  font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.3;
  max-width: 820px; margin: 24px auto 0; letter-spacing: -0.015em;
}
.mission blockquote::before {
  content: '"'; color: var(--gold); font-size: 4rem; font-family: Georgia, serif;
  line-height: 0; vertical-align: -0.4em; margin-right: 8px;
}

/* CONTACT PAGE */
.contact-block { background: var(--off-white); padding: 120px 0; }
.contact-block-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px;
  max-width: 1100px; margin: 0 auto;
}
.contact-form-wrap {
  background: #fff; padding: 48px; border-radius: 6px;
  border-top: 4px solid var(--gold);
  box-shadow: 0 8px 32px rgba(31,63,102,0.08);
}
.contact-form-wrap h2 {
  color: var(--navy); font-size: 1.6rem; font-weight: 800;
  margin-bottom: 8px; letter-spacing: -0.02em;
}
.contact-form-wrap .form-sub {
  color: var(--text-muted); font-size: 0.95rem; margin-bottom: 32px; line-height: 1.6;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 12px; font-weight: 700; color: var(--navy);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px;
}
.form-field input, .form-field textarea, .form-field select {
  font-family: inherit; font-size: 0.98rem; color: var(--text);
  padding: 12px 14px; border: 1.5px solid var(--grey-200); border-radius: 4px;
  background: #fff; transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  width: 100%; max-width: 100%; box-sizing: border-box;
  min-width: 0;
}
.form-field textarea { resize: vertical; width: 100%; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,153,90,0.15);
}
.form-field textarea { min-height: 120px; }
.form-submit {
  margin-top: 8px; background: var(--navy); color: #fff;
  padding: 14px 28px; border: none; border-radius: 2px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer;
  transition: all 0.2s;
}
.form-submit:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-1px); }
.form-success {
  background: #E8F4EA; border-left: 4px solid #2E9E46;
  padding: 16px 20px; border-radius: 4px; margin-bottom: 16px;
  color: #1A5F2A; font-size: 0.95rem;
}
.contact-direct {
  display: flex; flex-direction: column; gap: 28px;
}
.contact-direct h3 {
  color: var(--navy); font-size: 1.25rem; font-weight: 800;
  margin-bottom: 16px; letter-spacing: -0.015em;
}
.contact-direct-card {
  background: #fff; padding: 32px; border-radius: 6px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 4px 18px rgba(31,63,102,0.06);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-direct-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(31,63,102,0.16);
}
.contact-direct-header {
  display: flex; gap: 18px; align-items: center; margin-bottom: 20px;
  padding-bottom: 18px; border-bottom: 1px solid var(--grey-100);
}
.contact-direct-card h4 { color: var(--navy); font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.015em; }
.contact-direct-card .role { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }

@media (max-width: 900px) {
  .contact-block-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* Hidden — legacy contact card class for backward compat */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; max-width: 980px; margin: 0 auto; }
.contact-card {
  background: #fff; padding: 44px; border-radius: 6px;
  border-top: 4px solid var(--gold);
  box-shadow: 0 4px 24px rgba(31,63,102,0.06);
  display: flex; flex-direction: column;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -16px rgba(31,63,102,0.18);
}
.contact-card-header {
  display: flex; gap: 24px; align-items: center; margin-bottom: 28px;
  padding-bottom: 24px; border-bottom: 1px solid var(--grey-100);
}
.contact-photo {
  width: 110px; height: 140px; border-radius: 6px;
  object-fit: cover; object-position: center 25%;
  box-shadow: 0 4px 16px rgba(14, 34, 64, 0.12);
  flex-shrink: 0;
}
.contact-card h3 { color: var(--navy); font-size: 1.55rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.02em; }
.contact-card .role { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }
.contact-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--grey-100); }
.contact-line:first-of-type { border-top: none; }
.contact-line svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.contact-line a, .contact-line span { color: var(--text); font-size: 0.95rem; font-weight: 500; }
.contact-line a:hover { color: var(--gold); }
.contact-instructions {
  background: var(--navy-deep); color: #fff; padding: 60px 0; margin-top: 80px;
}
.contact-instructions ul { list-style: none; max-width: 720px; margin: 24px auto 0; }
.contact-instructions li {
  padding: 14px 0 14px 32px; position: relative; border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}
.contact-instructions li::before {
  content: '✓'; position: absolute; left: 0; top: 14px;
  color: var(--gold); font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  /* Show hamburger, turn nav-links into a dropdown panel */
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(15, 34, 64, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 28px 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 32px rgba(0,0,0,0.22);
    transform: translateY(-8px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    gap: 0;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1; pointer-events: auto;
  }
  .nav-links a:not(.nav-cta) {
    display: block !important;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 16px;
    width: 100%;
  }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta {
    margin-top: 16px;
    text-align: center;
    padding: 14px 22px !important;
  }
  .services-grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .work-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .principal-grid, .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 60px 1fr; }
  .service-row .service-tag { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
  /* Container + section spacing */
  .container, .container-wide { padding: 0 18px; }
  section { padding: 64px 0; }

  /* Nav — much tighter logo and links */
  .nav-inner { padding: 10px 16px; }
  .nav-logo { gap: 10px; }
  .nav-logo img.nav-mark { height: 42px; }
  .nav-logo-text { font-size: 17px; }
  .nav-logo-text .brand-sub {
    font-size: 8.5px; margin-top: 4px;
    letter-spacing: 0.38em; padding-left: 0.38em;
  }
  .nav-links { gap: 8px; }
  .nav-cta { padding: 8px 14px; font-size: 11px !important; letter-spacing: 0.04em; }

  /* Hero */
  .hero { padding: 110px 0 60px; min-height: auto; }
  .hero h1 { font-size: 2.1rem; line-height: 1.05; margin-bottom: 22px; }
  .hero p.lead { font-size: 1rem; margin-bottom: 32px; }
  .hero-eyebrow { font-size: 11px; letter-spacing: 0.22em; margin-bottom: 22px; }
  .hero-eyebrow::before { width: 24px; }
  .btn { padding: 14px 24px; font-size: 14px; }

  /* Sections */
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 1.7rem; line-height: 1.12; }
  .section-header p { font-size: 1rem; }
  .section-eyebrow { font-size: 11px; letter-spacing: 0.22em; }
  .section-eyebrow::before, .section-eyebrow::after { width: 16px; }

  /* Grids — single column */
  .services-grid, .why-grid, .work-grid, .footer-grid,
  .principal-grid, .contact-grid, .contact-block-grid,
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 28px; }
  .contact-block-grid { gap: 24px; }

  /* Trust strip + marquee — smaller logos */
  .trust { padding: 48px 0; }
  .trust-label { font-size: 10px; letter-spacing: 0.24em; margin-bottom: 28px; padding: 0 16px; }
  .marquee-track { gap: 48px; }
  .marquee-track img { height: 56px; max-width: 140px; min-width: 80px; padding: 6px 8px; }

  /* Service cards */
  .service-card { padding: 28px 22px; }
  .service-card h3 { font-size: 1.1rem; }
  .service-card p { font-size: 0.92rem; }
  .service-icon { width: 44px; height: 44px; margin-bottom: 20px; }
  .service-icon svg { width: 22px; height: 22px; }
  .services-cta { margin-top: 36px; }

  /* Why Civlink */
  .why-grid { gap: 36px; }
  .why-item h3 { font-size: 1.15rem; }
  .why-number { font-size: 2.5rem; }

  /* Feature band */
  .feature-band { padding: 72px 0; }
  .feature-band h2 { font-size: 1.6rem; line-height: 1.18; }
  .feature-band p { font-size: 1rem; }

  /* Recent work */
  .work-card-img { height: 180px; }
  .work-card-body { padding: 22px 22px 26px; }
  .work-card h3 { font-size: 1.2rem; }

  /* CTA band */
  .cta-band { padding: 60px 0; }
  .cta-band h2 { font-size: 1.6rem; }
  .cta-band p { font-size: 1rem; }

  /* Footer */
  footer { padding: 56px 0 24px; }
  .footer-brand img { height: 48px; margin-bottom: 16px; }
  .footer-brand p { font-size: 0.9rem; }
  .footer-bottom { flex-direction: column; gap: 6px; font-size: 0.8rem; }

  /* Page hero (inner pages) */
  .page-hero { padding: 110px 0 50px; }
  .page-hero h1 { font-size: 1.9rem; line-height: 1.08; }
  .page-hero p.lead { font-size: 1rem; }

  /* About — principals */
  .principals { padding: 60px 0; }
  .principal-card { padding: 28px 22px; }
  .principal-name { font-size: 1.35rem; }
  .principal-creds { font-size: 0.85rem; }

  /* About — mission */
  .mission { padding: 64px 0; }
  .mission blockquote { font-size: 1.25rem; line-height: 1.35; }

  /* Services page — service rows */
  .services-list { padding-top: 56px; padding-bottom: 72px; }
  .service-row {
    grid-template-columns: 60px 1fr; gap: 16px; padding: 24px 0;
    align-items: start;
  }
  .service-row .service-tag {
    grid-column: 1 / -1; justify-self: start; margin-top: 6px; font-size: 10px;
  }
  .service-icon-block { width: 60px; height: 60px; border-radius: 6px; }
  .service-icon-block svg { width: 30px; height: 30px; }
  .service-num-badge { font-size: 9px; padding: 3px 6px; top: -6px; right: -6px; }
  .service-body h3 { font-size: 1.1rem; }
  .service-body p { font-size: 0.92rem; }

  /* Contact form */
  .contact-block { padding: 60px 0; }
  .contact-form-wrap { padding: 28px 22px; }
  .contact-form-wrap h2 { font-size: 1.3rem; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
  .contact-direct-card { padding: 24px 20px; }
  .contact-direct-header { gap: 14px; padding-bottom: 16px; margin-bottom: 16px; }
  .contact-photo { width: 80px; height: 100px; }
  .contact-card h3, .contact-direct-card h4 { font-size: 1.1rem; }
  .contact-card .role, .contact-direct-card .role { font-size: 10px; letter-spacing: 0.18em; }
}

@media (max-width: 380px) {
  .nav-logo-text { font-size: 15px; }
  .nav-logo-text .brand-sub { font-size: 7.5px; }
  .nav-logo img.nav-mark { height: 36px; }
  .nav-cta { padding: 6px 11px; font-size: 10px !important; }
  .nav-links { gap: 6px; }
  .hero h1 { font-size: 1.85rem; }
  .section-header h2 { font-size: 1.5rem; }
}
