/* ==========================================================================
   Grays Services Group — base styles
   Palette extracted from provided logo assets (see CLAUDE.md for source values)
   ========================================================================== */

:root {
  /* Brand core */
  --navy-deep: #02122E;      /* GMS wordmark "M" ink — primary dark bg/text */
  --navy-brand: #1B2854;     /* GSG group mark navy — slightly lighter, used for accents */
  --black: #000000;
  --grey-mid: #545454;
  --grey-divider: #A4A4A4;
  --grey-light: #E7E9EE;
  --off-white: #F6F7FA;
  --white: #FFFFFF;

  /* Sub-company accents */
  --residential: #661414;
  --maintenance-green: #016C23;
  --maintenance-blue: #344688;
  --mechanical-blue: #42AEE4;
  --mechanical-green: #8EC22C;
  --london-red: #AA1D33;

  /* Type */
  --font-base: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container-w: 1200px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(2, 18, 46, 0.08);
  --shadow-md: 0 8px 24px rgba(2, 18, 46, 0.12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--navy-deep);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1em; }
svg { width: 22px; height: 22px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-deep);
  color: var(--white);
  padding: 0.75em 1.25em;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--navy-deep); color: var(--white); }
.btn-primary:hover { background: var(--navy-brand); }

.btn-light { background: var(--white); color: var(--navy-deep); }
.btn-light:hover { background: var(--off-white); }

.btn-outline-light { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }

.btn-text-light { color: var(--white); padding-left: 0.25em; padding-right: 0.25em; }
.btn-text-light:hover { text-decoration: underline; }

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

.btn-sm { padding: 0.6em 1.1em; font-size: 0.85rem; }
.btn-lg { padding: 1em 1.75em; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 42px; width: auto; }

.main-nav ul {
  display: flex;
  gap: 1.75rem;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-deep);
  padding: 0.4em 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--mechanical-blue);
}

.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-deep);
}
.header-phone svg { color: var(--mechanical-blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-deep);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 64px 0 0;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media-img { width: 100%; height: 100%; object-fit: cover; object-position: 15% 65%; }
.hero-media-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, #050B1A 0%, rgba(5,11,26,0.94) 32%, rgba(5,11,26,0.66) 58%, rgba(5,11,26,0.3) 78%, rgba(5,11,26,0.35) 100%),
    linear-gradient(0deg, #050B1A 0%, transparent 30%);
  mix-blend-mode: normal;
}
.hero-inner { position: relative; z-index: 1; }
.hero-content { max-width: 640px; padding-bottom: 64px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mechanical-blue);
  margin-bottom: 0.9em;
}
.eyebrow-dark { color: var(--london-red); }
.hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); margin-bottom: 0.55em; letter-spacing: -0.01em; }
.hero-lead { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }

.hero-logo-strip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-logo-label {
  flex-shrink: 0;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.55);
}
.hero-logo-track-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.hero-logo-track-wrap::before,
.hero-logo-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(3px);
}
.hero-logo-track-wrap::before { left: 0; background: linear-gradient(to right, rgba(5,11,26,0.65), rgba(5,11,26,0)); }
.hero-logo-track-wrap::after { right: 0; background: linear-gradient(to left, rgba(5,11,26,0.65), rgba(5,11,26,0)); }
.hero-logo-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: hero-logo-marquee 24s linear infinite;
}
.hero-logo-track img { height: 46px; width: auto; flex-shrink: 0; }

@keyframes hero-logo-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--off-white);
  border-bottom: 1px solid var(--grey-light);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
  padding: 40px 0;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 0.35em; }
.stat-number { font-size: 1.6rem; font-weight: 800; color: var(--navy-deep); }
.stat-label { font-size: 0.85rem; color: var(--grey-mid); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.section-head .eyebrow { text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.section-lead { color: var(--grey-mid); font-size: 1.1rem; }
.section-cta { text-align: center; margin-top: 3rem; }

.card-grid { display: grid; gap: 1.5rem; }
.card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-4 { grid-template-columns: minmax(0, 1fr); }
.card-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Service cards */
.services-glance { background: var(--white); }
.service-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--icon-bg, var(--grey-light));
  color: var(--icon-fg, var(--navy-deep));
  margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.service-card p { color: var(--grey-mid); font-size: 0.92rem; margin: 0; }

/* Find your company */
.find-company { background: var(--off-white); }
.type-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.type-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--mechanical-blue);
}
.type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--navy-deep);
}
.type-label { font-weight: 600; font-size: 0.92rem; }

/* Our companies */
.our-companies {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #050B1A 0%, var(--navy-deep) 60%, #071534 100%);
  color: var(--white);
}
.our-companies .section-head h2 { color: var(--white); }
.our-companies .section-lead { color: rgba(255,255,255,0.7); }
.company-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 4px solid var(--company-accent, var(--mechanical-blue));
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.company-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--company-accent, var(--mechanical-blue));
}
.company-logo {
  height: 56px;
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 8px;
  padding: 10px 16px;
}
.company-logo img { height: 100%; width: auto; }
.company-desc { color: rgba(255,255,255,0.7); font-size: 0.9rem; flex-grow: 1; }

/* About preview */
.about-preview { background: var(--white); }
.about-preview-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.about-preview-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.about-preview-text p { color: var(--grey-mid); font-size: 1.05rem; max-width: 46ch; }

.about-preview-media { position: relative; }
.about-preview-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.about-preview-card {
  position: absolute;
  top: 12%;
  bottom: 12%;
  right: 0;
  width: 62%;
  background: rgba(2, 18, 46, 0.88);
  backdrop-filter: blur(2px);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 1rem;
}
.about-preview-item { display: flex; align-items: flex-start; gap: 0.85rem; }
.about-preview-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--mechanical-blue);
}
.about-preview-icon svg { width: 18px; height: 18px; }
.about-preview-item h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 0.25em; }
.about-preview-item p { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(160deg, #050B1A 0%, var(--navy-deep) 70%);
  color: rgba(255,255,255,0.85);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 64px 0 48px;
}
.footer-logo { height: 34px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer-phone { font-weight: 700; font-size: 1.1rem; color: var(--white); }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.1em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7em; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: var(--white); }
.footer-contact li { font-size: 0.9rem; color: rgba(255,255,255,0.75); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem 20px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* ==========================================================================
   Services page
   ========================================================================== */

/* ---------- Services hero ---------- */
/* .svc-hero composes with the shared .hero class (see "Hero" above) for the
   full-bleed background photo + overlay treatment — same pattern as Home. */
.svc-hero { padding-bottom: 56px; }
.svc-hero .hero-content { max-width: 680px; padding-bottom: 0; margin-bottom: 2.75rem; }

.svc-nav-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}
.svc-nav-tile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.svc-nav-tile:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); }
.svc-nav-tile .service-icon { width: 40px; height: 40px; margin-bottom: 0; flex-shrink: 0; }
.svc-nav-tile .service-icon svg { width: 20px; height: 20px; }
.svc-nav-tile-label { flex: 1; font-size: 0.88rem; font-weight: 600; color: var(--white); line-height: 1.3; }
.svc-nav-tile-arrow { width: 16px; height: 16px; flex-shrink: 0; color: rgba(255,255,255,0.5); transition: transform 0.2s ease; }
.svc-nav-tile:hover .svc-nav-tile-arrow { transform: translateX(3px); color: var(--white); }

.svc-hero-ctas { margin-top: 0; }

/* ---------- Explore Our Services ---------- */
.svc-expertise { background: var(--white); padding-bottom: 0; }
.svc-expertise .section-head { margin-bottom: 4rem; }

.svc-detail { padding: 56px 0; background: var(--white); }
.svc-detail-reverse { background: var(--off-white); }
.svc-detail-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.svc-detail-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.svc-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-number-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.svc-number-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-mid);
}
.svc-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3em 0.85em;
  background: var(--navy-deep);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.svc-number-row .svc-number { margin-bottom: 0; }
.svc-detail-content h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: 0.6em; }
.svc-detail-intro { font-weight: 600; color: var(--navy-deep); font-size: 1.05rem; }
.svc-detail-content > p:not(.svc-detail-intro) { color: var(--grey-mid); }
.svc-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem 1.5rem;
  margin: 1.5rem 0;
}
.svc-list li {
  position: relative;
  padding-left: 1.5em;
  font-size: 0.92rem;
  color: var(--grey-mid);
}
.svc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--mechanical-blue);
}
.svc-cta { display: inline-block; font-weight: 700; color: var(--navy-deep); margin-top: 0.5rem; }
.svc-cta:hover { text-decoration: underline; }

.svc-meta {
  border-top: 1px solid var(--grey-light);
  padding-top: 1.1rem;
  margin-top: 0.25rem;
}
.svc-meta p { font-size: 0.88rem; color: var(--grey-mid); margin-bottom: 0.5em; }
.svc-meta strong { color: var(--navy-deep); font-weight: 700; }

/* ---------- Maintenance & ongoing support ---------- */
.svc-maintenance {
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.svc-maintenance-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(5,11,26,0.94) 0%, rgba(2,18,46,0.9) 100%);
}
.svc-maintenance-inner { position: relative; z-index: 1; padding: 88px 0; }
.svc-maintenance .section-head h2 { color: var(--white); }
.svc-maintenance-lead { color: rgba(255,255,255,0.75) !important; }
.svc-support-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.svc-support-card h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.5em; }
.svc-support-card p { color: rgba(255,255,255,0.72); font-size: 0.92rem; margin: 0; }

/* ---------- Final CTA ---------- */
.svc-final-cta {
  background: linear-gradient(160deg, #050B1A 0%, var(--navy-deep) 60%, #071534 100%);
  color: var(--white);
  padding: 88px 0;
  text-align: center;
}
.svc-final-cta-inner { max-width: 680px; margin: 0 auto; }
.svc-final-cta h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.svc-final-cta p { color: rgba(255,255,255,0.8); font-size: 1.05rem; }
.svc-final-cta-actions { justify-content: center; margin-top: 2rem; }

/* ==========================================================================
   Case studies page
   ========================================================================== */

/* ---------- Hero category quick-links ---------- */
.cs-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}
.cs-category-link {
  padding: 0.5em 1.1em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.cs-category-link:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4); }

/* ---------- Featured project banner ---------- */
.cs-featured-banner {
  background: var(--navy-brand);
  padding: 28px 0;
  text-align: center;
}
.cs-featured-banner-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mechanical-blue);
  margin-bottom: 0.5em;
}
.cs-featured-banner-text {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Featured project ---------- */
.cs-featured { background: var(--white); }
.cs-featured-inner {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
.cs-featured-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.cs-featured-media img { width: 100%; height: 100%; object-fit: cover; }
.cs-category-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--london-red);
  margin-bottom: 0.6em;
}
.cs-project-name { font-size: 0.95rem; font-weight: 600; color: var(--grey-mid); margin-bottom: 0.9em; }
.cs-featured-content h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 0.7em; }
.cs-field-label { font-weight: 700; color: var(--navy-deep); margin-bottom: 0.5em; }
.cs-scope-list { margin-top: 0; }
.cs-meta-block {
  border-top: 1px solid var(--grey-light);
  padding-top: 1.1rem;
  margin: 0.5rem 0 1.5rem;
}
.cs-meta-block p { font-size: 0.92rem; color: var(--grey-mid); margin-bottom: 0.6em; }
.cs-meta-block strong { color: var(--navy-deep); font-weight: 700; }

/* ---------- Selected projects grid ---------- */
.cs-selected { background: var(--off-white); }
.cs-grid { display: grid; gap: 1.75rem; }
.cs-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.cs-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cs-card-media { aspect-ratio: 4 / 3; }
.cs-card-media img { width: 100%; height: 100%; object-fit: cover; }
.cs-card-body { padding: 1.75rem; display: flex; flex-direction: column; flex-grow: 1; }
.cs-card-body h3 { font-size: 1.15rem; margin-bottom: 0.6em; }
.cs-card-summary { color: var(--grey-mid); font-size: 0.92rem; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.25rem 0 1.25rem; }
.cs-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-deep);
  background: var(--off-white);
  border: 1px solid var(--grey-light);
  border-radius: 999px;
  padding: 0.35em 0.85em;
}
.cs-card-duration { font-size: 0.85rem; font-weight: 600; color: var(--grey-mid); margin-bottom: 0.75em; }
.cs-card-cta { margin-top: auto; font-weight: 700; color: var(--navy-deep); }
.cs-card-cta:hover { text-decoration: underline; }

/* ---------- Capability band ---------- */
.cs-capability {
  background: linear-gradient(160deg, #050B1A 0%, var(--navy-deep) 60%, #071534 100%);
  color: var(--white);
}
.cs-capability .section-head h2 { color: var(--white); }
.cs-capability-lead { color: rgba(255,255,255,0.72) !important; }

/* ==========================================================================
   About page
   ========================================================================== */

/* ---------- About hero ---------- */
/* .au-hero composes with the shared .hero class (see "Hero" above) for the
   full-bleed background photo + overlay treatment — same pattern as every other page. */
.au-hero { padding-bottom: 56px; }
.au-hero .hero-content { max-width: 680px; padding-bottom: 0; margin-bottom: 2.75rem; }
.au-hero .hero-content .hero-lead { margin-bottom: 1em; }

.au-value-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}
.au-value-tile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
}
.au-value-tile .service-icon { width: 40px; height: 40px; margin-bottom: 0; flex-shrink: 0; }
.au-value-tile .service-icon svg { width: 20px; height: 20px; }
.au-value-label { font-size: 0.9rem; font-weight: 600; color: var(--white); }
.au-hero-ctas { margin-top: 0; }

/* ---------- About the group ---------- */
.au-about { background: var(--white); }
.au-about-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.au-about-content h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.au-about-content p { color: var(--grey-mid); font-size: 1.02rem; }
.au-about-closing { font-weight: 600; color: var(--navy-deep); font-size: 1.08rem; }
/* Hidden below desktop rather than stacked beneath the text — re-shown as the second
   grid column at the min-width:900px breakpoint below. */
.au-about-media { display: none; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.au-about-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Directors ---------- */
.au-directors { background: var(--off-white); }
.au-director-grid { display: grid; gap: 1.75rem; }
.au-director-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-top: 4px solid var(--director-accent, var(--navy-deep));
  border-radius: var(--radius);
  padding: 1.5rem;
}
.au-director-photo {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--grey-light);
}
.au-director-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.au-director-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--director-accent, var(--navy-deep));
}
.au-director-photo-placeholder span { font-size: 1.6rem; font-weight: 800; color: rgba(255,255,255,0.9); letter-spacing: 0.05em; }
.au-director-body { flex: 1; min-width: 0; }
.au-director-body h3 { font-size: 1.2rem; margin-bottom: 0.2em; }
.au-director-role { font-weight: 600; color: var(--director-accent, var(--navy-deep)); font-size: 0.92rem; margin-bottom: 1.1em; }
.au-director-body p { color: var(--grey-mid); font-size: 0.92rem; }
.au-director-focus {
  font-size: 0.88rem;
  color: var(--grey-mid);
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--grey-light);
}
.au-director-focus strong { color: var(--director-accent, var(--navy-deep)); font-weight: 700; }

/* ---------- Company cards (About page additions) ---------- */
.company-card-heading { color: var(--white); font-size: 1.05rem; margin-bottom: 0.6em; }
.company-suited { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-bottom: 1.1em; }
.company-suited strong { color: var(--white); }

.au-group-statement {
  max-width: 680px;
  margin: 4rem auto 0;
  text-align: center;
}
.au-group-statement h3 { color: var(--white); font-size: 1.4rem; }
.au-group-statement p { color: rgba(255,255,255,0.72); }
.au-group-statement-link { color: var(--mechanical-blue); }

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-section { background: var(--off-white); }
.contact-inner {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
.contact-form-col h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 0.4em; }
.contact-intro { color: var(--grey-mid); margin-bottom: 2rem; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-row {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-row .form-group { margin-bottom: 0; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-deep);
  margin-bottom: 0.5em;
}
.form-optional { font-weight: 400; color: var(--grey-mid); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75em 1em;
  font-family: var(--font-base);
  font-size: 0.95rem;
  color: var(--navy-deep);
  background: var(--white);
  border: 1px solid var(--grey-divider);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--mechanical-blue);
  box-shadow: 0 0 0 3px rgba(66,174,228,0.18);
}
.contact-form.was-validated input:invalid,
.contact-form.was-validated textarea:invalid { border-color: var(--london-red); }

.contact-consent { font-size: 0.85rem; color: var(--grey-mid); margin: 0.25rem 0 1.5rem; }
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-submit { width: 100%; justify-content: center; }
.contact-form-status { margin: 1rem 0 0; font-size: 0.9rem; font-weight: 600; text-align: center; }
.contact-form-status.is-error { color: var(--london-red); }

.contact-confirmation {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-left: 4px solid var(--maintenance-green);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-confirmation h3 { color: var(--navy-deep); margin-bottom: 0.5em; }
.contact-confirmation p { color: var(--grey-mid); margin: 0; }

.contact-panel {
  background: var(--navy-deep);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-panel-intro { font-weight: 700; font-size: 1.05rem; margin-bottom: 1.75rem; }
.contact-panel-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.contact-panel-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-panel-item .service-icon { flex-shrink: 0; margin-bottom: 0; }
.contact-panel-item h3 { color: var(--white); font-size: 1rem; margin-bottom: 0.35em; }
.contact-panel-value { display: block; font-weight: 600; color: var(--mechanical-blue); margin-bottom: 0.35em; }
.contact-panel-item p:not(.contact-panel-value) { color: rgba(255,255,255,0.68); font-size: 0.88rem; margin: 0; }

.contact-footnote {
  max-width: 640px;
  margin: 3.5rem auto 0;
  text-align: center;
  color: var(--grey-mid);
}
.contact-footnote strong { color: var(--navy-deep); }

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */

/* Tablet and up */
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .svc-nav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .au-director-card { flex-direction: row; }
  .au-director-photo,
  .au-director-photo-placeholder { width: 120px; height: 120px; }
  .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .au-value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Desktop and up */
@media (min-width: 900px) {
  .card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .about-preview-inner { grid-template-columns: 1fr 1fr; }
  .svc-nav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cs-featured-inner { grid-template-columns: 0.95fr 1.05fr; }
  .svc-detail-inner { grid-template-columns: 1fr 1fr; }
  .svc-detail-reverse .svc-detail-inner { direction: rtl; }
  .svc-detail-reverse .svc-detail-content { direction: ltr; }
  .svc-detail-reverse .svc-detail-media { direction: ltr; }
  .au-about-inner { grid-template-columns: 1fr 0.9fr; }
  .au-about-media { display: block; }
  .au-director-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-inner { grid-template-columns: 1.6fr 1fr; }
}

@media (max-width: 899px) {
  .hero-media-img { object-position: 30% 65%; }
  .hero-media-overlay {
    background:
      linear-gradient(180deg, rgba(5,11,26,0.75) 0%, rgba(5,11,26,0.88) 55%, #050B1A 100%);
  }
  .about-preview-card {
    position: static;
    width: 100%;
    margin-top: 1rem;
    background: var(--navy-deep);
  }
  .hero-logo-strip { gap: 1.25rem; }
  .hero-logo-label { font-size: 0.72rem; }
  .hero-logo-track-wrap::before,
  .hero-logo-track-wrap::after { width: 36px; }
}

/* Mobile nav (below desktop nav breakpoint) */
@media (max-width: 899px) {
  .nav-toggle { display: flex; }
  .header-phone span { display: none; }
  .header-actions .btn-primary { display: none; }

  .main-nav {
    position: fixed;
    top: var(--header-h, 72px);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    padding: 24px 20px;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--grey-light); }
  .main-nav a { display: block; padding: 1em 0.25em; font-size: 1.05rem; }

  /* Persistent sticky call button while menu is closed */
  .mobile-call-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--navy-deep);
    color: var(--white);
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    padding: 14px;
    font-weight: 600;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
  }
  .mobile-call-bar svg { color: var(--mechanical-blue); }
  body { padding-bottom: 60px; }
}

@media (min-width: 900px) {
  .mobile-call-bar { display: none; }
}
