/* ==========================================================================
   Affinity Engineering & Works — main stylesheet
   Palette: navy #0f2b46 · teal #0e7c7b · gold #f2b31c · paper #f7f9fb
   ========================================================================== */

:root {
  --navy: #0f2b46;
  --navy-deep: #0a1f33;
  --teal: #0e7c7b;
  --teal-dark: #0a5c5b;
  --gold: #f2b31c;
  --paper: #f7f9fb;
  --ink: #1c2b3a;
  --muted: #5a6b7c;
  --line: #dde6ee;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 43, 70, 0.08);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--navy); padding: 10px 18px;
  font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 700; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; margin-bottom: 14px; }
h3 { font-size: 1.18rem; font-weight: 600; }
h2.light, .light { color: var(--white); }

.kicker {
  text-transform: uppercase; letter-spacing: 2.5px; font-size: 0.78rem;
  font-weight: 700; color: var(--teal); margin-bottom: 10px;
}
.kicker-light { color: var(--gold); }

.eyebrow {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 16px;
}

.accent { color: var(--teal); }

.lede { font-size: 1.13rem; color: var(--muted); margin: 18px 0 26px; max-width: 56ch; }

.section-intro { max-width: 68ch; color: var(--muted); margin-bottom: 34px; }

.subheading { margin: 46px 0 18px; font-size: 1.35rem; }

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

.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand img { width: 94px; height: auto; transition: width 0.25s ease; }
.brand-text strong { display: block; font-size: 1.22rem; line-height: 1.2; font-family: var(--font-display); letter-spacing: 0.2px; }
.brand-text small { color: var(--muted); font-size: 0.76rem; letter-spacing: 0.8px; text-transform: uppercase; }

.site-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem;
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: var(--teal); border-bottom-color: var(--gold); }

.nav-cta {
  background: var(--navy); color: var(--white) !important;
  padding: 10px 20px !important; border-radius: 999px; border: none !important;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--teal); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 14px 28px; border-radius: 999px; font-size: 0.98rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #ffc63a; }
.btn-ghost { border: 2px solid var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-ghost-light { border: 2px solid rgba(255,255,255,0.5); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }
.btn-block { display: block; text-align: center; margin-bottom: 12px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(14, 124, 123, 0.10), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--white) 100%);
  padding: 70px 0 60px;
}

.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 38px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  border-top: 1px solid var(--line); padding-top: 26px;
}
.hero-stats dt { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; color: var(--navy); }
.hero-stats dd { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-media figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }

/* ---------- Value bar ---------- */
.value-bar { background: var(--navy); color: var(--white); padding: 34px 0; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.value-grid h3 {
  color: var(--gold); font-size: 0.95rem; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 6px; font-family: var(--font-body); font-weight: 700;
}
.value-grid p { font-size: 0.93rem; color: rgba(255,255,255,0.82); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--paper); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; margin-top: 26px; }
.about-copy p { margin-bottom: 16px; }

.check-list { list-style: none; margin-top: 20px; }
.check-list li {
  padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--ink);
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--teal); font-weight: 800;
}
.check-list.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 30px; }
.light-list li { color: rgba(255,255,255,0.88); }
.light-list li::before { color: var(--gold); }

.about-media { display: grid; gap: 18px; align-content: start; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

.mini-stat {
  background: var(--teal); color: var(--white); border-radius: var(--radius);
  padding: 22px 24px; display: flex; align-items: center; gap: 18px;
}
.mini-stat strong { font-family: var(--font-display); font-size: 2rem; }
.mini-stat span { font-size: 0.88rem; line-height: 1.45; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); }
.service-card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  opacity: 0; transition: opacity 0.2s;
}
.service-card:hover::after { opacity: 1; }

.service-num {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  color: var(--gold); letter-spacing: 1px; margin-bottom: 8px;
}
.service-card h3 { margin-bottom: 14px; }
.service-card ul { list-style: none; }
.service-card li {
  font-size: 0.9rem; color: var(--muted); padding: 5px 0 5px 18px; position: relative;
}
.service-card li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal); opacity: 0.55;
}

.lenders-note {
  margin-top: 34px; background: var(--navy); color: var(--white);
  border-radius: var(--radius); padding: 30px 34px;
}
.lenders-note h3 { color: var(--gold); margin-bottom: 8px; }
.lenders-note p { color: rgba(255,255,255,0.88); font-size: 0.97rem; max-width: 95ch; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

.data-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 0.94rem; }
.data-table th {
  background: var(--navy); color: var(--white); text-align: left;
  padding: 14px 18px; font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
}
.data-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.data-table tbody tr:nth-child(even) { background: var(--paper); }
.data-table tbody tr:hover { background: #eef6f6; }
.data-table td:first-child { font-weight: 600; color: var(--navy); }

.om-focus { margin-top: 40px; }
.om-focus h3 { margin-bottom: 12px; }

/* ---------- Track record ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }

.filter-btn {
  border: 1.5px solid var(--line); background: var(--white); color: var(--muted);
  border-radius: 999px; padding: 8px 18px; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; font-family: var(--font-body); transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--teal); color: var(--teal); }
.filter-btn.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }

.project-chip {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 4px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.project-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project-chip strong { color: var(--navy); font-size: 0.96rem; line-height: 1.3; }
.project-chip span { color: var(--muted); font-size: 0.85rem; }
.project-chip.is-hidden { display: none; }

.tag {
  font-style: normal; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.4px;
  border-radius: 999px; padding: 3px 10px; margin-top: 6px; align-self: flex-start;
}
.tag-done { background: #e2f4ec; color: #14684b; }
.tag-wip { background: #fdf1d7; color: #8a6410; }
.tag-eng { background: #e4eefc; color: #23538f; }

.wide-media { margin-top: 40px; }
.wide-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.wide-media figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }

/* ---------- Credentials ---------- */
.credentials { background: linear-gradient(160deg, var(--navy-deep), var(--navy) 55%, #123a5e); color: var(--white); }

.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 36px 0 46px; }

.cred-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 28px 24px;
}
.cred-card strong {
  display: block; font-family: var(--font-display); font-size: 2.2rem;
  color: var(--gold); margin-bottom: 8px;
}
.cred-card span { font-size: 0.9rem; color: rgba(255,255,255,0.85); line-height: 1.5; }

.owner-support h3 { color: var(--white); margin-bottom: 16px; }

/* ---------- Team ---------- */
.leader-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 26px; }

.leader-card {
  background: var(--paper); border-radius: var(--radius); padding: 30px 28px;
  border-top: 4px solid var(--teal);
}
.leader-card h3 { font-size: 1.25rem; }
.leader-role { color: var(--teal); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin: 6px 0 4px; }
.leader-quals { color: var(--muted); font-size: 0.82rem; margin-bottom: 12px; }
.leader-card > p:last-child { font-size: 0.92rem; color: var(--ink); }

/* ---------- Process ---------- */
.process-list { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }

.process-list li {
  counter-increment: step; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px 22px; position: relative;
}
.process-list li::before {
  content: "0" counter(step);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--white); background: var(--teal);
  border-radius: 8px; padding: 4px 10px; display: inline-block; margin-bottom: 12px;
}
.process-list strong { display: block; font-family: var(--font-display); color: var(--navy); font-size: 1.15rem; margin-bottom: 6px; }
.process-list span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(160deg, var(--teal-dark), var(--teal) 70%); color: var(--white); }

.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: start; }

.contact-lede { color: rgba(255,255,255,0.9); max-width: 52ch; margin-bottom: 28px; }

.contact-details { font-style: normal; }
.contact-details p { margin-bottom: 18px; color: rgba(255,255,255,0.88); }
.contact-details strong { color: var(--gold); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 1.5px; }
.contact-details a { color: var(--white); }

.contact-card {
  background: var(--navy); border-radius: var(--radius); padding: 34px 32px;
  box-shadow: 0 20px 50px rgba(10, 31, 51, 0.35);
}
.contact-card h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 8px; }
.contact-card > p { color: rgba(255,255,255,0.8); font-size: 0.93rem; margin-bottom: 22px; }
.contact-note { font-size: 0.78rem !important; color: rgba(255,255,255,0.6) !important; margin: 14px 0 0 !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.8); padding: 54px 0 24px; font-size: 0.9rem; }

.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,0.12); }

.footer-grid img { margin-bottom: 12px; background: var(--white); border-radius: 8px; padding: 5px; }
.footer-grid strong { color: var(--white); }

.site-footer nav ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 20px; font-size: 0.8rem; color: rgba(255,255,255,0.55); }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ==========================================================================
   Showcase components (TCE-style visual landing)
   ========================================================================== */

/* ---------- Full-screen hero slider ---------- */
.hero-slider { position: relative; height: min(92vh, 860px); min-height: 560px; overflow: hidden; background: var(--navy-deep); }

.hero-slider .slide {
  position: absolute; inset: 0; opacity: 0; z-index: 1;
  transition: opacity 1.1s ease;
  background:
    linear-gradient(75deg, rgba(10, 31, 51, 0.82) 0%, rgba(10, 31, 51, 0.55) 42%, rgba(10, 31, 51, 0.12) 75%),
    var(--bg) center / cover no-repeat;
  display: flex; align-items: center;
}
.hero-slider .slide.is-active { opacity: 1; z-index: 2; }

@media (prefers-reduced-motion: no-preference) {
  .hero-slider .slide.is-active { animation: kenburns 5.8s ease-out both; }
  @keyframes kenburns {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
  }
}

.slide-inner { width: 100%; color: var(--white); }

.slide-kicker {
  text-transform: uppercase; letter-spacing: 3px; font-size: 0.8rem;
  font-weight: 700; color: var(--gold); margin-bottom: 16px;
}

.hero-slider h1, .hero-slider h2 {
  color: var(--white); font-size: clamp(2.2rem, 5vw, 3.9rem);
  font-weight: 700; letter-spacing: -0.5px; line-height: 1.08; margin-bottom: 18px; max-width: 15ch;
}
.hero-slider .slide p:not(.slide-kicker) {
  font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255,255,255,0.88);
  max-width: 46ch; margin-bottom: 30px;
}

.slider-controls {
  position: absolute; left: 0; right: 0; bottom: 26px; z-index: 5;
  display: flex; align-items: center; gap: 18px;
}

.slider-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.14); color: var(--white);
  border: 1px solid rgba(255,255,255,0.3); border-radius: 50%;
  width: 42px; height: 42px; padding: 0; flex: 0 0 42px; cursor: pointer;
  transition: background 0.2s; backdrop-filter: blur(4px);
}
.slider-arrow svg { display: block; }
.slider-arrow:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.slider-dots { display: flex; gap: 10px; }
.slider-dots button {
  width: 34px; height: 5px; border-radius: 3px; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.35); transition: background 0.25s; padding: 0;
}
.slider-dots button.is-active { background: var(--gold); }

/* Transparent header over the hero */
.header-overlay { position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(180deg, rgba(10,31,51,0.55), transparent); border-bottom: 0; backdrop-filter: none; }
.header-overlay .brand, .header-overlay .brand-text strong { color: var(--white); }
.header-overlay .brand-text small { color: rgba(255,255,255,0.75); }
.header-overlay .site-nav a { color: var(--white); }
.header-overlay .site-nav a:hover { color: var(--gold); }
.header-overlay .nav-cta { background: var(--gold); color: var(--navy) !important; }
.header-overlay .nav-toggle span { background: var(--white); }
.header-overlay .brand img { background: var(--white); border-radius: 8px; padding: 3px; }

.header-overlay.is-stuck {
  position: fixed; background: rgba(10, 31, 51, 0.96); backdrop-filter: blur(8px);
  animation: headerDrop 0.3s ease; box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.header-overlay.is-stuck .brand img { width: 78px; }
@keyframes headerDrop { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background:
    linear-gradient(75deg, rgba(10, 31, 51, 0.85) 0%, rgba(10, 31, 51, 0.5) 55%, rgba(10, 31, 51, 0.2) 100%),
    var(--bg) center / cover no-repeat;
  padding: 110px 0 80px; color: var(--white);
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.1; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy); color: var(--white); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stats-grid strong { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.5rem); color: var(--gold); }
.stats-grid span { font-size: 0.85rem; color: rgba(255,255,255,0.8); }

/* ---------- Intro strip ---------- */
.intro-strip { padding: 70px 0; }
.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.intro-grid h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.intro-grid p { color: var(--muted); margin-bottom: 14px; }

.text-link { color: var(--teal); font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--gold); }

/* ---------- Photo cards ---------- */
.photo-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 30px; }

.photo-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform 0.2s, box-shadow 0.2s;
}
.photo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.photo-card img { width: 100%; height: 180px; object-fit: cover; transition: transform 0.4s ease; }
.photo-card:hover img { transform: scale(1.06); }
.photo-card-body { padding: 20px 22px 24px; }
.photo-card-body h3 { margin-bottom: 8px; }
.photo-card-body p { font-size: 0.9rem; color: var(--muted); margin-bottom: 12px; }

/* ---------- Showcase cards ---------- */
.showcase-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }

.showcase-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  min-height: 300px; text-decoration: none;
}
.showcase-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.showcase-card:hover img { transform: scale(1.07); }
.showcase-overlay {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 26px 24px;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 31, 51, 0.88) 100%);
}
.showcase-overlay strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); }
.showcase-overlay span { color: rgba(255,255,255,0.9); font-size: 0.95rem; }

.center-cta { text-align: center; margin-top: 36px; }

/* ---------- Contact band ---------- */
.contact-band { background: linear-gradient(160deg, var(--teal-dark), var(--teal) 70%); color: var(--white); padding: 64px 0; }
.contact-band-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.contact-band p { color: rgba(255,255,255,0.88); max-width: 52ch; }
.contact-band-actions { display: grid; gap: 14px; justify-items: stretch; }
.contact-band-actions .btn { text-align: center; }

/* ---------- Service detail rows ---------- */
.service-detail {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center;
  padding: 54px 0; border-bottom: 1px solid var(--line);
}
.service-detail.alt .service-detail-copy { order: 2; }
.service-detail.alt img { order: 1; }
.service-detail img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-height: 380px; object-fit: cover; }
.service-detail h2 { margin-bottom: 12px; }
.service-detail > .service-detail-copy > p { color: var(--muted); max-width: 58ch; }
.service-detail:last-of-type { border-bottom: 0; }

.cred-grid-light .cred-card { background: var(--paper); border-color: var(--line); }
.cred-grid-light .cred-card strong { color: var(--teal); }
.cred-grid-light .cred-card span { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid, .intro-grid, .contact-band-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .services-grid, .leader-grid, .process-list, .photo-cards { grid-template-columns: 1fr 1fr; }
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .showcase-cards { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 26px; }
  .service-detail.alt .service-detail-copy { order: 1; }
  .service-detail.alt img { order: 2; }
}

@media (max-width: 700px) {
  .services-grid, .leader-grid, .process-list, .value-grid,
  .check-list.two-col, .footer-grid, .photo-cards { grid-template-columns: 1fr; }
  .hero-stats, .stats-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .section { padding: 60px 0; }
  .hero-slider { min-height: 520px; height: 88vh; }
  .page-hero { padding: 90px 0 56px; }

  .nav-toggle { display: block; }
  .site-nav ul {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px 24px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav ul.is-open { display: flex; }
  .site-nav li a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 12px; text-align: center; border-radius: 12px; }
  .brand-text small { display: none; }
  .brand img { width: 72px; }
  .brand-text strong { font-size: 1.05rem; }
  .header-overlay .site-nav ul { background: var(--navy-deep); border-bottom-color: rgba(255,255,255,0.15); }
  .header-overlay .site-nav li a { border-bottom-color: rgba(255,255,255,0.12); }
}
