/* ============================================================
   ESA Engineering & Consultancy — Public Website
   Custom CSS · No framework · Mobile-first
   ============================================================ */

/* ── Design tokens ── */
:root {
  --red:        #c0392b;
  --red-hover:  #a93226;
  --red-light:  rgba(192, 57, 43, 0.08);
  --dark:       #1a1a2e;
  --dark-2:     #16213e;
  --text:       #1f2937;
  --text-mid:   #4b5563;
  --text-light: #9ca3af;
  --bg-light:   #f7f8fa;
  --bg-white:   #ffffff;
  --border:     #e5e7eb;
  --radius:     8px;
  --radius-lg:  14px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow:     0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.10);
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:      1200px;
  --header-h:   72px;
  --transition: 0.2s ease;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

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

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

/* Push all page content below the fixed header */
main {
  padding-top: var(--header-h);
}

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

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.section-eyebrow .line {
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-hover); border-color: var(--red-hover); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--text-mid); background: var(--bg-light); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }

.btn-sm { padding: 8px 18px; font-size: 0.875rem; }

.btn svg { width: 16px; height: 16px; }

/* ── Image placeholder ── */
.img-placeholder {
  background: var(--bg-light);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  overflow: hidden;
}
.img-placeholder svg { width: 36px; height: 36px; opacity: .4; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.site-header.scrolled .nav-link,
.site-header.scrolled .logo-text { color: var(--text); }
.site-header.scrolled .logo-mark { color: var(--red); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-logo {
  height: 40px;
  width: auto;
  display: block;
  /* Invert to white on dark header (transparent bg state) */
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}
/* Once header is scrolled (white bg), show the real logo colours */
.site-header.scrolled .site-logo {
  filter: none;
}
/* Footer logo — white version on dark background */
.site-logo-footer {
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: .85;
}

/* Desktop nav */
.main-nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover { background: rgba(255,255,255,.15); color: #fff; }
.site-header.scrolled .nav-link:hover { background: var(--bg-light); color: var(--text); }

/* Hidden on mobile — the "Request a Quote" button lives inside the mobile drawer */
.header-cta { display: none; margin-left: 8px; }

/* Mobile toggle */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #fff;
  border-radius: 6px;
}
.site-header.scrolled .nav-toggle { color: var(--text); }
.nav-toggle svg { width: 24px; height: 24px; }

/* Mobile drawer */
.mobile-nav {
  display: flex;
  flex-direction: column;
  /* padding: 0 when closed — padding renders visible even with max-height:0 */
  padding: 0 24px;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.mobile-nav.open {
  max-height: 500px;
  padding: 16px 24px 24px;
}
.mobile-nav-link {
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav-link:last-of-type { border-bottom: none; }
.mt-3 { margin-top: 12px; }

@media (min-width: 900px) {
  .main-nav   { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; } /* completely removed from layout on desktop */
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--dark);
  /* Pull up to sit behind the transparent header */
  margin-top: calc(-1 * var(--header-h));
  padding: var(--header-h) 0 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 70% 50%, rgba(192,57,43,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

/* Left text */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.hero-eyebrow .line { width: 28px; height: 2px; background: var(--red); flex-shrink: 0; }

.hero h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero-desc {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.7);
  /* max-width: 520px; */
  line-height: 1.75;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Full-bleed slideshow */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.03);
}
/* Slow "Ken Burns" zoom on the slide currently in view */
.hero-slide.is-active img {
  animation: heroKenBurns 6s ease-out forwards;
}
@keyframes heroKenBurns {
  from { transform: scale(1.03); }
  to   { transform: scale(1.13); }
}

/* Gradient overlay — heavy left for text, fades right */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(22,33,62,.93) 0%,
    rgba(22,33,62,.70) 50%,
    rgba(22,33,62,.35) 100%
  );
  pointer-events: none;
}

/* Lift hero content above slides + overlay */
.hero .container { position: relative; z-index: 2; width: 100%; }

/* Slide controls */
.slide-controls {
  position: absolute;
  bottom: 36px;
  right: 40px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
}
.slide-dots { display: flex; gap: 8px; }
.slide-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .3s, border-color .3s, transform .3s;
}
.slide-dot.is-active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.3);
}
.slide-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.12);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}
.slide-btn:hover { background: rgba(255,255,255,.28); }
.slide-btn svg { width: 16px; height: 16px; }

/* Metrics row */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 16px;
}
.metric {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.metric svg {
  width: 28px;
  height: 28px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}
.metric-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.metric-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
}

@media (min-width: 768px) {
  .hero-metrics { grid-template-columns: repeat(4, 1fr); }
}
/* @media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
} */

/* Responsive button labels — short variant hidden by default */
.btn-label-short { display: none; }

/* ── Mobile hero refinements ── */
@media (max-width: 600px) {
  .hero { padding-bottom: 56px; }

  /* Center the hero content */
  .hero-text   { text-align: center; }
  .hero-eyebrow { justify-content: center; }
  .hero h1     { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .hero-desc   { margin-bottom: 28px; }

  /* Keep both buttons side-by-side on a single line */
  .hero-actions {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
  }
  .hero-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    gap: 7px;
    padding: 12px 12px;
    font-size: 0.8125rem;
  }
  .hero-actions .btn svg { width: 16px; height: 16px; flex-shrink: 0; }
  /* Swap to the short label so text never overflows */
  .hero-actions .btn-label-full  { display: none; }
  .hero-actions .btn-label-short { display: inline; }

  /* Center the metrics block */
  .hero-metrics { margin-top: 8px; }
  .metric { justify-content: center; }
}

/* ── Mobile button groups — full-width, even widths ── */
@media (max-width: 600px) {
  /* About-section CTA: stack full width */
  .about-cta { flex-direction: column; }
  .about-cta .btn { width: 100%; justify-content: center; }

  /* Bottom CTA buttons: full width and centered */
  .cta-buttons { width: 100%; }
  .cta-buttons .btn {
    flex: 1 1 100%;
    width: 100%;
    justify-content: center;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ── ABOUT ── */
.about { padding: 96px 0; background: var(--bg-white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
.about-image .img-placeholder {
  aspect-ratio: 4/3;
  width: 100%;
  border-radius: var(--radius-lg);
}
.about-content .section-title { margin-top: 8px; }

.value-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.pillar {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.pillar:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pillar svg  { width: 28px; height: 28px; color: var(--red); margin-bottom: 10px; }
.pillar h4   { font-size: 0.9375rem; font-weight: 700; margin-bottom: 6px; }
.pillar p    { font-size: 0.8125rem; color: var(--text-mid); line-height: 1.5; margin: 0; }

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

/* ── SERVICES ── */
.services {
  padding: 96px 0;
  background: var(--bg-light);
}
.services-header { text-align: center; margin-bottom: 56px; }
.services-header .section-eyebrow { justify-content: center; }
.services-header .section-desc { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-icon {
  width: 56px;
  height: 56px;
  background: var(--red-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--red);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3  { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.service-card p   { font-size: 0.8125rem; color: var(--text-mid); line-height: 1.6; margin: 0; }

@media (min-width: 600px)  { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(6, 1fr); } }

/* ── PROJECTS ── */
.projects { padding: 96px 0; background: var(--bg-white); }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.project-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.project-card .img-placeholder { aspect-ratio: 16/9; border-radius: 0; border: none; }
.project-info { padding: 18px 20px; }
.project-info .meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 6px;
}
.project-info .meta svg { width: 12px; height: 12px; }
.project-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.project-type {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--red);
  font-weight: 600;
}

@media (min-width: 640px)  { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── EQUIPMENT ── */
.equipment { padding: 96px 0; background: var(--bg-light); }
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.equipment-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.equipment-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.equipment-card .img-placeholder { aspect-ratio: 4/3; border-radius: 0; border: none; }
.equipment-info { padding: 14px 16px 18px; }
.equipment-info h4 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 4px; }
.equipment-info p  { font-size: 0.8125rem; color: var(--text-mid); margin: 0; }
.equipment-condition {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #059669;
  background: #d1fae5;
  padding: 3px 8px;
  border-radius: 100px;
  margin-top: 6px;
}

@media (min-width: 640px)  { .equipment-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .equipment-grid { grid-template-columns: repeat(4, 1fr); } }

/* Subtle photo zoom on hover for project & equipment cards */
.project-card .img-placeholder img,
.equipment-card .img-placeholder img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-card:hover .img-placeholder img,
.equipment-card:hover .img-placeholder img {
  transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .project-card:hover .img-placeholder img,
  .equipment-card:hover .img-placeholder img { transform: none; }
}

/* ── TRUST / PROCESS ── */
.trust {
  padding: 96px 0;
  background: var(--bg-white);
}
.trust-header {
  max-width: 660px;
  margin: 0 auto 56px;
  text-align: center;
}
.trust-header .section-eyebrow { justify-content: center; }
.trust-header .section-title { margin-bottom: 14px; }

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.trust-panel {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.trust-panel:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.trust-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-col-title .line { width: 20px; height: 2px; background: var(--red); flex-shrink: 0; }

/* Why us */
.why-list { display: flex; flex-direction: column; gap: 20px; }
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.why-ico {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 30, 42, .08);
  color: var(--red);
  transition: background var(--transition), color var(--transition);
}
.why-ico svg { width: 20px; height: 20px; }
.why-item:hover .why-ico { background: var(--red); color: #fff; }
.why-body h4 { font-size: 0.9375rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.why-body p  { font-size: 0.8125rem; color: var(--text-mid); margin: 0; line-height: 1.55; }

/* Process timeline */
.process-steps { display: flex; flex-direction: column; }
.process-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 26px;
}
.process-step:last-child { padding-bottom: 0; }
.process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 42px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.step-num {
  width: 40px;
  height: 40px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step-body { padding-top: 7px; }
.step-body h4 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 4px; }
.step-body p  { font-size: 0.8125rem; color: var(--text-mid); margin: 0; line-height: 1.55; }

@media (min-width: 900px) {
  .trust-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ── CONTACT / CTA ── */
.cta-section {
  padding: 96px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 10% 50%, rgba(192,57,43,.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
}
.cta-icon {
  width: 64px;
  height: 64px;
  background: rgba(192,57,43,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--red);
}
.cta-icon svg { width: 30px; height: 30px; }
.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
}
.cta-section p { font-size: 1rem; color: rgba(255,255,255,.65); max-width: 480px; }
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.btn-cta-phone {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  font-size: 1rem;
  padding: 14px 28px;
}
.btn-cta-phone:hover { background: var(--red-hover); }
.btn-cta-email {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
  font-size: 1rem;
  padding: 14px 28px;
}
.btn-cta-email:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }

@media (min-width: 900px) {
  .cta-inner { grid-template-columns: 1fr auto; }
}

/* ── FOOTER ── */
.site-footer {
  background: var(--dark-2);
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-tagline { font-size: 0.875rem; line-height: 1.65; margin: 16px 0 20px; max-width: 260px; }
.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--red); color: #fff; }
.footer-social svg { width: 16px; height: 16px; }

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: #fff; }

.footer-contact { gap: 14px !important; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
}
.footer-contact svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--red); }
.footer-contact a { color: rgba(255,255,255,.6); }
.footer-contact a:hover { color: #fff; }

.footer-newsletter { margin-top: 20px; }
.footer-newsletter p { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); margin-bottom: 10px; }
.newsletter-form {
  display: flex;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  overflow: hidden;
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: #fff;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-form button {
  background: var(--red);
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #fff;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--red-hover); }
.newsletter-form button svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,.4);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-legal a:hover { color: rgba(255,255,255,.75); }

@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; } }

/* ── Scroll-reveal utility ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-slide.is-active img { animation: none; }
}

/* ============================================================
   INNER PAGE STYLES
   ============================================================ */

/* ── Page Hero (dark banner for sub-pages) ── */
.page-hero {
  background: var(--dark);
  /* Pull up to sit behind the transparent header, matching main's padding-top */
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 56px) 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 0% 50%, rgba(192,57,43,.14) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}
/* Optional background photo — set via inline --hero-bg on the section.
   A dark gradient keeps the white hero text readable. */
.page-hero.has-bg-image {
  background-image:
    linear-gradient(105deg, rgba(20,20,36,.93) 0%, rgba(22,22,40,.82) 42%, rgba(26,26,46,.55) 100%),
    var(--hero-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 14px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.page-hero .breadcrumb a:hover { color: rgba(255,255,255,.85); }
.page-hero .breadcrumb svg { width: 12px; height: 12px; }
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.page-hero p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.65);
  max-width: 560px;
  line-height: 1.7;
}
.page-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.page-stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.page-stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
  margin-top: 4px;
}

/* ── Filter / Tab bar ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 24px 0 32px;
}
.filter-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
}
.filter-tab {
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-mid);
  transition: background var(--transition), color var(--transition);
}
.filter-tab.active {
  background: #fff;
  color: var(--red);
  box-shadow: var(--shadow-sm);
}
.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  margin-left: auto;
}
.filter-search svg { width: 16px; height: 16px; color: var(--text-light); flex-shrink: 0; }
.filter-search input {
  border: none;
  outline: none;
  font-size: 0.875rem;
  background: transparent;
  color: var(--text);
  width: 200px;
}
.filter-search input::placeholder { color: var(--text-light); }

/* Mobile: search fills the row to match the category dropdown */
@media (max-width: 699px) {
  .filter-search { margin-left: 0; width: 100%; }
  .filter-search input { width: 100%; }
}

/* ── Full project table ── */
.project-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
}
.project-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8375rem;
}
.project-table thead th {
  background: var(--bg-light);
  padding: 12px 14px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.project-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
}
.project-table tbody tr:last-child td { border-bottom: none; }
.project-table tbody tr:hover td { background: var(--bg-light); }
.project-table .td-client { font-weight: 600; }
.project-table .td-amount { font-weight: 700; color: var(--text); white-space: nowrap; }
.project-table .td-scope  { color: var(--text-mid); }
.project-table .td-no     { color: var(--text-light); font-size: 0.75rem; }
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-completed  { background: #d1fae5; color: #065f46; }
.status-ongoing    { background: #dbeafe; color: #1d4ed8; }
.status-waiting    { background: #fef3c7; color: #92400e; }
.status-substantial{ background: #ede9fe; color: #5b21b6; }

.table-total-row td {
  font-weight: 700;
  background: var(--bg-light);
  border-top: 2px solid var(--border);
  color: var(--text);
}

/* ── Equipment page ── */
.equip-category-section { margin-bottom: 56px; }
.equip-category-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.equip-category-title svg { width: 22px; height: 22px; color: var(--red); }
.equip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.equip-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow var(--transition), transform var(--transition);
}
.equip-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.equip-icon {
  width: 44px;
  height: 44px;
  background: var(--red-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}
.equip-icon svg { width: 22px; height: 22px; }
.equip-name { font-size: 0.9375rem; font-weight: 700; margin-bottom: 4px; }
.equip-type { font-size: 0.8rem; color: var(--text-mid); }
.equip-brand { font-size: 0.8rem; font-weight: 600; color: var(--red); margin-top: 4px; }

@media (min-width: 600px)  { .equip-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .equip-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Team cards ── */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.team-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: box-shadow var(--transition);
}
.team-card:hover { box-shadow: var(--shadow); }
.team-avatar {
  width: 56px;
  height: 56px;
  background: var(--red-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}
.team-avatar svg { width: 26px; height: 26px; }
.team-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 0.8125rem; color: var(--red); font-weight: 600; margin-bottom: 10px; }
.team-contacts { display: flex; flex-direction: column; gap: 6px; }
.team-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8375rem;
  color: var(--text-mid);
  transition: color var(--transition);
}
.team-contact-link:hover { color: var(--red); }
.team-contact-link svg { width: 14px; height: 14px; flex-shrink: 0; }

@media (min-width: 640px)  { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── About page ── */
.about-page-section { padding: 80px 0; }
.about-page-section:nth-child(even) { background: var(--bg-light); }
.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.mv-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.mv-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.mv-card p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
}
@media (min-width: 768px) { .mission-vision-grid { grid-template-columns: 1fr 1fr; } }

.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-mid);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.spec-item svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; margin-top: 3px; }
@media (min-width: 768px) { .spec-list { grid-template-columns: repeat(3, 1fr); } }

.ref-table-wrap { overflow-x: auto; margin-top: 24px; }
.ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.ref-table th {
  background: var(--bg-light);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.ref-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.ref-table tbody tr:hover td { background: var(--bg-light); }

/* ── Certification cards ── */
.cert-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}
.cert-card-full {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cert-card-header {
  background: var(--red);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cert-card-header svg { width: 24px; height: 24px; color: rgba(255,255,255,.85); flex-shrink: 0; }
.cert-card-header h3 { font-size: 1rem; font-weight: 700; color: #fff; margin: 0; }
.cert-card-body { padding: 24px; }
.cert-card-body dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.cert-card-body dt { font-size: 0.78rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .06em; align-self: start; margin-top: 2px; }
.cert-card-body dd { font-size: 0.9rem; color: var(--text); }
.cert-valid-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #d1fae5;
  color: #065f46;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: 16px;
}
.cert-valid-badge svg { width: 13px; height: 13px; }

@media (min-width: 640px)  { .cert-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cert-cards-grid { grid-template-columns: repeat(3, 1fr); } }

.cert-view-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--red); font-weight: 600;
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: inherit;
}
.cert-view-btn:hover { text-decoration: underline; }

/* ── Document Modal ── */
.doc-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.78);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .22s, visibility .22s;
}
.doc-modal-backdrop.open { opacity: 1; visibility: visible; }
.doc-modal {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(18px) scale(.98);
  transition: transform .22s;
}
.doc-modal-backdrop.open .doc-modal { transform: none; }
.doc-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.doc-modal-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 0; }
.doc-modal-close {
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 6px;
  color: var(--text-mid); flex-shrink: 0;
  transition: background .15s, color .15s;
}
.doc-modal-close:hover { background: var(--bg-light); color: var(--text); }
.doc-modal-close svg { width: 18px; height: 18px; }
.doc-modal-body {
  flex: 1; overflow: auto;
  display: flex; align-items: center; justify-content: center;
  background: #f5f5f5;
  min-height: 200px;
}
.doc-modal-body img { max-width: 100%; max-height: 76vh; object-fit: contain; display: block; }
.doc-modal-body iframe { width: 100%; height: 76vh; border: none; display: block; }

/* ── Contact page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 80px 0;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-info-block { margin-bottom: 28px; }
.contact-info-block h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-info-block h3 svg { width: 18px; height: 18px; color: var(--red); }
.contact-info-block p,
.contact-info-block a {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.7;
}
.contact-info-block a:hover { color: var(--red); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}
.form-control {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-control:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-msg {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  display: none;
}
.form-msg.success { background: #d1fae5; color: #065f46; }
.form-msg.error   { background: #fee2e2; color: #991b1b; }

