/* ===================================================
   OSP Contractors — Main Stylesheet
   WCAG 2.1 AA compliant
   =================================================== */

:root {
  --navy:        #2c2c2c;
  --navy-dark:   #1a1a1a;
  --navy-light:  #3d3d3d;
  --orange:      #cbc23f;           /* decorative / backgrounds only */
  --orange-text: #6b6600;           /* text on light backgrounds: 5.5:1+ */
  --control:     #767676;           /* non-text UI components: 4.5:1 on white */
  --error:       #b00020;
  --bg:          #ffffff;
  --bg-alt:      #f7f5f5;
  --text:        #1a1a1a;
  --text-muted:  #5a5a5a;
  --border:      #ddd;
  --white:       #ffffff;
  --font:        system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --max-w:       1200px;
  --radius:      6px;
  --transition:  0.2s ease;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

/* === Accessibility Utilities === */
.visually-hidden,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Focus Visible (WCAG 2.4.7) === */
:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Focus ring on dark backgrounds (header, footer, hero, overlays) needs 3:1 against them */
.site-header :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.our-company :focus-visible,
.stats-banner :focus-visible {
  outline-color: #ffffff;
  box-shadow: 0 0 0 6px #005fcc;
}

/* === Skip Link (WCAG 2.4.1) === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* === Header & Nav === */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo img {
  height: 48px;
  width: auto;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
}
.nav-logo span {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.nav-list {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.nav-list a {
  color: var(--white);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background var(--transition);
  white-space: nowrap;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: var(--navy-light);
}
.nav-list a[aria-current="page"] {
  font-weight: 700;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--white);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  font-size: 1.25rem;
  line-height: 1;
}

/* === Hero === */
.hero {
  background: var(--navy-dark);
  color: var(--white);
  padding: 7rem 1.5rem;
  /* Fill the rest of the first screen below the menu (72px) and the ESPA banner,
     so more of the background video is visible. Banner height = 2rem padding +
     image height (image is at most 720px wide, ratio 121/1024). */
  min-height: 480px;
  min-height: max(480px, calc(100vh - 72px - 2rem - min(720px, 100vw - 3rem) * 0.1182));
  min-height: max(480px, calc(100svh - 72px - 2rem - min(720px, 100vw - 3rem) * 0.1182));
  text-align: center;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.62);   /* worst case (white video frame) still gives white text >= 4.5:1 */
  z-index: -1;
}
.hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; width: 100%; }
.hero-eyebrow {
  display: inline-block;
  background: var(--orange);
  color: var(--navy-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: #a89e32; color: var(--navy); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); margin-left: 1rem; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); }

/* === Hero Video Pause Toggle (WCAG 2.2.2) === */
.hero-video-toggle {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--transition);
  line-height: 1;
}
.hero-video-toggle:hover { background: rgba(0, 0, 0, 0.8); }

/* === Our Company Section === */
.our-company {
  background-image: url('../images/company-bg-blur.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  isolation: isolate;
}
.our-company::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 10, 0.88);
  z-index: 0;
}
.our-company-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 7rem 2rem;
  text-align: center;
  color: var(--white);
}
.our-company-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.our-company-inner p {
  font-size: 1.05rem;
  line-height: 1.85;
  opacity: 0.9;
  margin-bottom: 1.25rem;
}
.our-company-inner p:last-child { margin-bottom: 0; }

/* === Page Hero (inner pages) === */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 4rem 1.5rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
.page-hero p { margin-top: 0.75rem; opacity: 0.85; font-size: 1.1rem; }

/* === Sections === */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--bg-alt); }
.container { max-width: var(--max-w); margin: 0 auto; }
.section-label {
  display: inline-block;
  color: var(--orange-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--orange);
  padding-left: 0.6rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 3rem;
}

/* === About (home) === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.75; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.stat-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--orange);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
}
.stat-number { font-size: 2rem; font-weight: 800; color: var(--navy); display: block; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }
.about-image { border-radius: var(--radius); overflow: hidden; }
.about-image img { width: 100%; height: 400px; object-fit: cover; }
.about-image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  opacity: 0.7;
}

/* === Services Grid === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.75rem;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover { box-shadow: 0 8px 24px rgba(27,53,100,0.12); transform: translateY(-2px); }
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--white);
  font-size: 1.5rem;
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.75rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; flex: 1; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.service-link:hover { color: var(--orange-text); }

/* Services page detail */
.service-detail { margin-bottom: 4rem; padding-bottom: 4rem; border-bottom: 1px solid var(--border); }
.service-detail:last-child { border-bottom: none; }
.service-detail h2 { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: 1rem; }
.service-detail p { color: var(--text-muted); line-height: 1.75; margin-bottom: 0.75rem; }
.service-detail ul { margin: 1rem 0 1rem 1.25rem; list-style: disc; color: var(--text-muted); }
.service-detail ul li { margin-bottom: 0.4rem; line-height: 1.6; }

/* === Stats Banner === */
.stats-banner {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 1.5rem;
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stats-item { padding: 1rem; }
.stats-number { font-size: clamp(2rem, 9vw, 3rem); overflow-wrap: anywhere; font-weight: 800; color: var(--orange); display: block; line-height: 1; }
.stats-label { font-size: 1rem; opacity: 0.85; margin-top: 0.5rem; }

/* === Clients === */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 1.5rem;
  align-items: center;
}
.client-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow var(--transition);
}
.client-item:hover { box-shadow: 0 4px 12px rgba(27,53,100,0.1); }
.client-item img { width: 100%; max-height: 110px; object-fit: contain; filter: grayscale(100%); transition: filter var(--transition); }
.client-item:hover img { filter: grayscale(0%); }
.client-item span { font-weight: 600; color: var(--navy); font-size: 0.9rem; text-align: center; }

/* === Certifications === */
.cert-wrapper {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.cert-image img { width: 100%; max-width: 380px; border-radius: var(--radius); }
.cert-text h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 0.75rem; }
.cert-text p { color: var(--text-muted); line-height: 1.7; }

/* === Projects Table === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
}
.project-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.project-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-card:hover { box-shadow: 0 6px 20px rgba(27,53,100,0.1); }
.project-card h2 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.75rem; }
.project-meta span { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; }
.project-stats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stat-badge {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.82rem;
  font-weight: 600;
}

/* === Contact === */
/* Contact page map + strip */
.contact-strip {
  height: 14px;
  background: #4e4e48;
}
.contact-section { padding: 5rem 1.5rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.contact-info-block {
  padding-top: 7rem;
  text-align: right;
  color: var(--text);
  line-height: 1.8;
  font-size: 1rem;
}
.contact-info-block strong { color: var(--navy); font-weight: 700; }
.contact-info-block a { color: var(--text); text-decoration: none; }
.contact-info-block a:hover { color: var(--orange); text-decoration: underline; }

/* Contact Form */
.contact-heading-large {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 2rem;
}
.contact-form-wrapper { background: transparent; padding: 0; border-radius: 0; }
.contact-form-wrapper h2 { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: 1.75rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.form-group label .required { color: #c0392b; margin-left: 0.2rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--control);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #767676;
  opacity: 1;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--navy);
}
.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] { border-color: var(--error); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-checkbox { display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 1rem; }
.form-checkbox input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; cursor: pointer; }
.form-checkbox label { font-size: 0.9rem; color: var(--text-muted); cursor: pointer; }
.form-checkbox a { color: var(--navy); text-decoration: underline; }
.form-submit { margin-top: 1.5rem; }
.form-submit .btn { justify-content: center; font-size: 1rem; padding: 0.75rem 2rem; }
.btn-success {
  background: #1c6e1c;
  color: #fff;
  border-color: #1c6e1c;
}
.btn-success:hover { background: #155514; border-color: #155514; }

/* === ESPA / EU Co-funding Banner (Regulation EU 1060/2021) === */
.espa-banner {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 1.5rem;
}
.espa-banner img {
  width: 100%;
  max-width: 720px;   /* the banner image is 1024px wide, so it stays sharp up to that width */
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.75rem;
}
.lang-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.22rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition), background var(--transition);
  line-height: 1.4;
}
.lang-btn:hover { opacity: 1; }
.lang-btn.active {
  opacity: 1;
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
}
@media (max-width: 680px) {
  .lang-switcher { margin-left: 0.25rem; }
}

/* === Footer === */
.site-footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 4rem 1.5rem 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 44px; margin-bottom: 1rem; }
.footer-brand p { opacity: 0.7; font-size: 0.9rem; line-height: 1.65; margin-bottom: 1rem; }
.footer-heading { font-weight: 700; font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.5; margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { opacity: 0.8; font-size: 0.92rem; transition: opacity var(--transition); }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-contact-item { display: flex; gap: 0.6rem; margin-bottom: 0.85rem; align-items: flex-start; }
.footer-contact-item span:first-child { opacity: 0.5; font-size: 0.9rem; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a, .footer-contact-item address { opacity: 0.8; font-size: 0.9rem; font-style: normal; transition: opacity var(--transition); }
.footer-contact-item a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { text-decoration: underline; }
.footer-bottom a:hover { opacity: 1; }

/* === Company Page === */
.company-about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: center;
}
.company-about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
.company-about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.company-fleet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.company-fleet-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }

/* Carousel */
.company-carousel-wrapper { position: relative; }
.company-carousel {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.company-carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}
.company-carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}
.company-carousel-slide img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}
.company-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.carousel-btn {
  background: var(--navy);
  color: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.carousel-btn:hover { background: var(--navy-light); }
.carousel-dots { display: flex; gap: 0.75rem; align-items: center; }
.carousel-dot { position: relative; }
/* enlarge the click/touch target without changing the visual size */
.carousel-dot::after { content: ''; position: absolute; inset: -9px; }
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--control);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition);
}
.carousel-dot.active { background: var(--navy); border-color: var(--navy); transform: scale(1.2); }

/* Timeline image */
.timeline-image-wrap {
  margin-top: 2rem;
  text-align: center;
}
.timeline-image-wrap img {
  max-width: 100%;
  border-radius: var(--radius);
}

.company-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.value-card { background: var(--bg-alt); padding: 2rem; border-radius: var(--radius); border-top: 4px solid var(--orange); }
.value-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.75rem; }
.value-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }

/* === Services Page === */
.svc-section { padding: 4rem 1.5rem; }
.svc-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--orange);
  display: inline-block;
}

/* 4-photo horizontal row (Engineering) */
.svc-photo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.svc-photo-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* text block */
.svc-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 0.85rem; }
.svc-text ul { list-style: disc; padding-left: 1.5rem; color: var(--text-muted); line-height: 2; margin-bottom: 0.85rem; }

/* image left + text right (or reversed) */
.svc-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.svc-two-col--reverse { direction: rtl; }
.svc-two-col--reverse > * { direction: ltr; }
.svc-main-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

/* 6-col photo gallery (default) */
/* Project filter bar */
.proj-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.proj-filter-btn {
  padding: 0.5rem 1.4rem;
  border: 2px solid var(--navy);
  border-radius: 2rem;
  background: transparent;
  color: var(--navy);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.proj-filter-btn:hover {
  background: var(--navy);
  color: var(--white);
}
.proj-filter-btn.active {
  background: var(--orange);
  border-color: var(--navy);
  color: var(--navy-dark);
}

/* Hidden project section (filtered out) */
.proj-section-hidden {
  display: none;
}

/* Project section header (icon left, info right) */
.proj-header {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: center;
}
.proj-icon img {
  width: 100%;
  height: auto;
  display: block;
}
.proj-info .svc-heading { margin-bottom: 0.75rem; }

.svc-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.svc-gallery--2x2 { grid-template-columns: repeat(2, 1fr); }
.svc-gallery--3col { grid-template-columns: repeat(3, 1fr); }
.svc-gallery--4col { grid-template-columns: repeat(4, 1fr); }
.svc-gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.svc-gallery-item img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* === Responsive === */
@media (max-width: 900px) {
  .about-grid, .company-intro, .company-about-grid, .company-fleet-grid, .contact-grid,
  .svc-two-col { grid-template-columns: 1fr; }
  .contact-info-block { padding-top: 0; text-align: left; }
  .proj-header { grid-template-columns: 1fr; }
  .svc-gallery--4col { grid-template-columns: repeat(2, 1fr); }
  .svc-two-col--reverse { direction: ltr; }
  .svc-photo-row { grid-template-columns: repeat(2, 1fr); }
  .svc-gallery { grid-template-columns: repeat(2, 1fr); }
  .svc-gallery--3col { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-list { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy-dark); padding: 1rem; gap: 0.25rem; }
  .nav-list.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 4rem 1.5rem; }
  .btn-outline { margin-left: 0; margin-top: 0.75rem; display: block; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .cert-wrapper { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 3rem 1rem; }
  .hero { padding: 3rem 1rem; }
  .page-hero { padding: 3rem 1rem; }
}

/* === Form validation messages (WCAG 3.3.1 / 3.3.3) === */
.field-error { color: var(--error); font-size: 0.9rem; font-weight: 600; margin-top: 0.4rem; }
.field-error::before { content: '\26A0\00a0'; }
.form-checkbox + .field-error { margin-top: 0.5rem; }
.form-summary {
  border: 2px solid var(--error);
  border-radius: var(--radius);
  background: #fdf1f2;
  color: var(--error);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.form-summary ul { margin: 0.5rem 0 0 1.25rem; list-style: disc; font-weight: 400; }
.form-summary a { text-decoration: underline; color: var(--error); }
.form-status {
  border: 2px solid #1c6e1c;
  border-radius: var(--radius);
  background: #f1faf1;
  color: #155514;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  font-weight: 600;
}
.form-summary[hidden], .field-error[hidden], .form-status[hidden] { display: none; }

/* === Reduced motion (WCAG 2.3.3 / good practice) === */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .service-card:hover, .svc-gallery-item img:hover { transform: none; }
}

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status.is-error { border-color: var(--error); background: #fdf1f2; color: var(--error); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* === Reflow safety (WCAG 1.4.10 / 1.4.12) === */
.stats-item, .stat-box, .proj-header > *, .about-grid > *, .company-about-grid > *,
.company-fleet-grid > *, .svc-two-col > *, .contact-grid > *, .footer-inner > * { min-width: 0; }
.stats-label, .stat-label, .footer-contact-item a, .footer-contact-item p { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr; }
}
h1, h2, h3, h4, p, li, a, span, label { overflow-wrap: break-word; }
.hero-inner { min-width: 0; }

/* === Accessible HTML versions of PDF documents (hr-policy.html, espa-poster.html) === */
.doc-content { color: var(--text); }
.doc-content h2 { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin: 2.5rem 0 1rem; }
.doc-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 2rem 0 0.75rem; }
.doc-content h4 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 1.5rem 0 0.75rem; }
.doc-content p, .doc-content li { line-height: 1.8; margin-bottom: 0.75rem; }
.doc-content ol { padding-left: 1.75rem; margin-bottom: 1rem; list-style: decimal; }
.doc-content ul:not(.doc-lettered) { padding-left: 1.5rem; margin-bottom: 1rem; list-style: disc; }
.doc-content ul.doc-lettered { padding-left: 0.5rem; margin-bottom: 1rem; list-style: none; }
.doc-content li > ul, .doc-content li > p + ul { margin-top: 0.5rem; }
.doc-content a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.doc-content a:hover { color: var(--orange-text); }
.doc-note { background: var(--bg-alt); border-left: 4px solid var(--orange); padding: 0.9rem 1.1rem; border-radius: var(--radius); margin-bottom: 2rem; }
.doc-sign { margin-top: 2.5rem; font-weight: 600; }
.doc-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; }
.doc-facts dt { font-weight: 700; color: var(--navy); }
.doc-facts dd { margin: 0; }
@media (max-width: 480px) { .doc-facts { grid-template-columns: 1fr; gap: 0.1rem; } .doc-facts dd { margin-bottom: 0.75rem; } }
/* Link to the accessible HTML version of the poster: hidden visually, available to
   screen readers, and revealed when it receives keyboard focus (WCAG 2.4.7 / 1.1.1) */
.espa-alt {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.espa-alt:focus-within {
  position: static; width: auto; height: auto; margin: 0.5rem 0 0; overflow: visible;
  clip: auto; white-space: normal; text-align: center; font-size: 0.9rem;
}
.espa-alt a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* === Skynet accessibility widget: always bottom-right ===
   The widget picks its own position class (aioa_top_center, aioa_middle_right, ...)
   depending on its server-side settings. Pin it here so it never covers the menu. */
body .accessibility-trigger button {
  top: auto !important;
  left: auto !important;
  bottom: 20px !important;
  right: 20px !important;
  transform: none !important;
}
body .accessibility-trigger button:hover,
body .accessibility-trigger button:focus-visible {
  transform: scale(1.1) !important;
}

/* Keep the video pause control clear of the widget (it sits bottom-right) */
.hero-video-toggle { right: auto; left: 1.5rem; }

/* On small screens the hero's last button spans the full width: leave room under it
   so the video pause button (bottom-left) never covers it. */
@media (max-width: 680px) {
  .hero { padding-bottom: 5.5rem; }
}
