/* ============================================================
   SWITCH SMART ELECTRICAL CONTRACTORS
   pages.css — Components used across inner pages
   (about / services / sectors / projects / news / careers /
    sustainability / contact)
   ============================================================ */

/* ============================================================
   HOME HERO — VIDEO BACKGROUND
   Video sits inside .hero-photo (preserving the parallax wrapper).
   Pseudo-element overlays a dark gradient over the video so the
   white headline + sub-text remain readable.
   ============================================================ */

.hero-photo.has-video {
  background: #0d0d0d; /* fallback while video loads */
}

.hero-photo .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-photo.has-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(0,0,0,0.65) 0%,
      rgba(0,0,0,0.30) 55%,
      rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo .hero-video { display: none; }
}

/* ============================================================
   PAGE HERO  (smaller than home hero, with breadcrumb)
   ============================================================ */

.page-hero {
  margin-top: 70px;
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: #1a1a1a;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(15,15,15,0.85) 0%, rgba(15,15,15,0.45) 55%, rgba(196,18,48,0.55) 100%);
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 80px 80px;
}

.page-hero-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--red);
  animation: heroBarGrow 0.8s var(--ease-out) 0.1s both;
}

.page-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 40px 50px;
  max-width: 920px;
}

.page-hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: heroFadeUp 0.9s var(--ease-out) 0.2s both;
}

.page-hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--red);
  display: inline-block;
}

.page-hero-title {
  font-size: 54px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  animation: heroFadeUp 0.9s var(--ease-out) 0.35s both;
}

.page-hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  max-width: 640px;
  animation: heroFadeUp 0.9s var(--ease-out) 0.5s both;
}

/* Breadcrumb sits under page hero */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 40px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb a {
  color: var(--mid);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--red); }

.breadcrumb .sep {
  color: var(--border);
}

.breadcrumb .current {
  color: var(--black);
  font-weight: 600;
}

/* ============================================================
   GENERIC SECTION WRAPPERS
   ============================================================ */

.sect {
  padding: 90px 40px;
  position: relative;
}

.sect-tight   { padding: 60px 40px; }
.sect-wide    { padding: 110px 40px; }

.sect-bg-light { background: var(--bg); border-top: 1px solid var(--border); }
.sect-bg-white { background: var(--white); }
.sect-bg-dark  { background: var(--dark); color: rgba(255,255,255,0.7); }
.sect-bg-black { background: #0f0f0f; color: rgba(255,255,255,0.7); }

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 920px;
  margin: 0 auto;
}

/* Eyebrow above section titles */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--red);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--red);
}

.eyebrow.light { color: rgba(255,255,255,0.65); }
.eyebrow.light::before { background: rgba(255,255,255,0.4); }

.section-lead {
  font-size: 17px;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.75;
  max-width: 780px;
  margin-top: 18px;
}
.sect-bg-dark .section-lead,
.sect-bg-black .section-lead { color: rgba(255,255,255,0.65); }

.sect-bg-dark .section-title,
.sect-bg-black .section-title { color: var(--white); }

.section-title-lg {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--black);
  margin-bottom: 0;
}
.sect-bg-dark .section-title-lg,
.sect-bg-black .section-title-lg { color: var(--white); }

/* Two-column header (title left, body right) */
.split-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 60px;
}

.split-header p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--mid);
}
.sect-bg-dark .split-header p,
.sect-bg-black .split-header p { color: rgba(255,255,255,0.6); }

/* ============================================================
   STAT COUNTER ROW
   ============================================================ */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.stat-row.on-light {
  border-top-color: var(--border);
  border-bottom-color: var(--border);
}

.stat-card {
  padding: 50px 30px;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
  transition: background 0.25s;
}
.stat-card:last-child { border-right: none; }

.stat-row.on-light .stat-card { border-right-color: var(--border); }
.stat-row.on-light .stat-card:hover { background: var(--white); }
.stat-card:hover { background: rgba(255,255,255,0.025); }

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--red);
  transition: width 0.45s var(--ease-out);
}
.stat-card:hover::before { width: 100%; }

.stat-num {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-row.on-light .stat-num { color: var(--black); }

.stat-num .unit {
  font-size: 32px;
  color: var(--red);
  margin-left: 2px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
}
.stat-row.on-light .stat-label { color: var(--mid); }

/* ============================================================
   FEATURE BLOCK (alternating image/text rows)
   ============================================================ */

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}
.feature-block:last-child { border-bottom: none; }

.feature-block.reverse .feature-visual { order: 2; }
.feature-block.reverse .feature-body  { order: 1; }

.feature-visual {
  min-height: 460px;
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}

.feature-visual-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease-out);
}
.feature-block:hover .feature-visual-bg { transform: scale(1.04); }

.feature-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,15,15,0.55) 0%, rgba(15,15,15,0.2) 50%, rgba(196,18,48,0.35) 100%);
}

.feature-visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.feature-visual-tag {
  position: absolute;
  top: 28px; left: 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 6px 12px;
}

.feature-body {
  padding: 70px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}

.feature-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 18px;
}

.feature-text {
  font-size: 14px;
  line-height: 1.85;
  color: var(--mid);
  margin-bottom: 22px;
}

.feature-list {
  margin-bottom: 26px;
}

.feature-list li {
  font-size: 13px;
  color: var(--mid);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  border-bottom: 1px solid var(--red);
  padding-bottom: 4px;
  transition: gap 0.3s var(--ease-out);
}
.feature-link:hover { gap: 18px; }

/* ============================================================
   CARD GRID  (used for sectors / values / capabilities)
   ============================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 42px 36px 50px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--red);
  transition: width 0.4s var(--ease-out);
}
.card:hover::before { width: 100%; }
.card:hover { background: var(--bg); }

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--red);
}
.card-icon svg { width: 100%; height: 100%; }

.card-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--light);
  margin-bottom: 8px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.card:hover .card-title { color: var(--red); }

.card-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--mid);
}

.card-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  border-bottom: 1px solid var(--red);
  padding-bottom: 3px;
  transition: padding-left 0.2s;
}
.card-link:hover { padding-left: 4px; }

/* Dark variant card (used on dark sections) */
.card.card-dark {
  background: rgba(255,255,255,0.02);
  border-right-color: rgba(255,255,255,0.06);
  border-bottom-color: rgba(255,255,255,0.06);
}
.card-grid.dark {
  border-top-color: rgba(255,255,255,0.06);
  border-left-color: rgba(255,255,255,0.06);
}
.card.card-dark:hover { background: rgba(255,255,255,0.04); }
.card.card-dark .card-title { color: var(--white); }
.card.card-dark .card-eyebrow { color: rgba(255,255,255,0.4); }
.card.card-dark .card-desc { color: rgba(255,255,255,0.6); }

/* ============================================================
   ACCREDITATION / LOGO STRIP
   ============================================================ */

.cred-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cred {
  padding: 36px 18px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s;
}
.cred:last-child { border-right: none; }
.cred:hover { background: var(--bg); }

.cred-mark {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--black);
  font-style: italic;
  text-align: center;
}
.cred-mark.with-bar {
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
}

.cred-sub {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--light);
  text-align: center;
}

/* ============================================================
   TEAM CARD
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  cursor: pointer;
}

.team-photo {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center top;
  background-color: #1a1a1a;
  position: relative;
  transition: transform 0.6s var(--ease-out);
}
.team-card:hover .team-photo { transform: scale(1.04); }

.team-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,15,15,0.7) 0%, transparent 50%);
  transition: opacity 0.3s;
}

.team-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px 20px 22px;
  z-index: 2;
}

.team-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.team-role {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
}

.team-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--red);
  transition: width 0.4s var(--ease-out);
  z-index: 3;
}
.team-card:hover::after { width: 100%; }

/* ============================================================
   CTA BANNER (full-width red)
   ============================================================ */

.cta-banner {
  background: var(--red);
  padding: 70px 40px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.cta-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.cta-text {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: transform 0.15s, background 0.2s, color 0.2s, gap 0.3s var(--ease-out);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-white {
  background: var(--white);
  color: var(--black);
}
.btn-white:hover {
  background: var(--black);
  color: var(--white);
  gap: 18px;
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--red);
  gap: 18px;
}

.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover {
  background: var(--red-dark);
  gap: 18px;
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--red);
  gap: 18px;
}

.btn-arrow {
  display: inline-block;
  width: 18px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.3s var(--ease-out);
}
.btn-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -4px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid currentColor;
}
.btn:hover .btn-arrow { width: 28px; }

/* ============================================================
   QUOTE / TESTIMONIAL
   ============================================================ */

.quote-block {
  padding: 100px 40px;
  background: var(--dark);
  position: relative;
}

.quote-mark {
  font-size: 140px;
  font-weight: 700;
  color: var(--red);
  line-height: 0.6;
  margin-bottom: 30px;
  display: inline-block;
}

.quote-text {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--white);
  letter-spacing: -0.01em;
  max-width: 920px;
  margin-bottom: 28px;
}

.quote-attr {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quote-attr-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.quote-attr-role {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.quote-attr-divider {
  width: 28px;
  height: 1px;
  background: var(--red);
}

/* ============================================================
   FILTER PILLS  (projects / news)
   ============================================================ */

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-pill {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--mid);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-pill:hover {
  border-color: var(--red);
  color: var(--red);
}
.filter-pill.is-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ============================================================
   PROJECT CARD (richer than thumb)
   ============================================================ */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.proj-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #1a1a1a;
  display: block;
}

.proj-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease-out);
}
.proj-card:hover .proj-card-bg { transform: scale(1.06); }

.proj-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,15,15,0.85) 0%, rgba(15,15,15,0.15) 55%, transparent 100%);
}

.proj-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 26px 28px;
  transform: translateY(6px);
  transition: transform 0.35s var(--ease-out);
}
.proj-card:hover .proj-card-info { transform: translateY(0); }

.proj-card-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 6px;
}

.proj-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 8px;
}

.proj-card-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.proj-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--red);
  transition: width 0.45s var(--ease-out);
}
.proj-card:hover::after { width: 100%; }

/* Featured project (full-width row) */
.featured-proj {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  background: var(--dark);
  color: var(--white);
}

.featured-proj-visual {
  min-height: 540px;
  position: relative;
  overflow: hidden;
}

.featured-proj-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.featured-proj-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(196,18,48,0.3) 100%);
}

.featured-proj-body {
  padding: 70px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-proj-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--red);
  margin-bottom: 18px;
}

.featured-proj-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.featured-proj-text {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  margin-bottom: 30px;
}

.featured-proj-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.featured-proj-stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.featured-proj-stat-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   ARTICLE / NEWS CARD
   ============================================================ */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  display: block;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.2s;
}
.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--red);
}

.article-img {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  position: relative;
  overflow: hidden;
}

.article-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,15,15,0.4), rgba(196,18,48,0.2));
  transition: opacity 0.3s;
}
.article-card:hover .article-img-overlay { opacity: 0.5; }

.article-tag {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--white);
  background: var(--red);
  padding: 5px 10px;
  z-index: 2;
}

.article-body {
  padding: 26px 26px 30px;
}

.article-meta {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--light);
  margin-bottom: 12px;
}
.article-meta .dot { margin: 0 8px; color: var(--border); }

.article-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.35;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.article-card:hover .article-title { color: var(--red); }

.article-excerpt {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mid);
  margin-bottom: 18px;
}

.article-readmore {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: gap 0.25s var(--ease-out);
}
.article-card:hover .article-readmore { gap: 14px; }

/* Featured article (large) */
.featured-article {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  margin-bottom: 50px;
  background: var(--white);
  transition: border-color 0.2s, transform 0.3s var(--ease-out);
}
.featured-article:hover {
  border-color: var(--red);
}
.featured-article .article-img {
  aspect-ratio: auto;
  min-height: 380px;
}
.featured-article .article-body {
  padding: 50px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-article .article-title {
  font-size: 28px;
}

/* ============================================================
   JOB / VACANCY LIST
   ============================================================ */

.jobs-list {
  border-top: 1px solid var(--border);
}

.job-row {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: padding-left 0.25s;
}
.job-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--red);
  transition: width 0.3s var(--ease-out);
}
.job-row:hover::before { width: 3px; }
.job-row:hover { padding-left: 18px; }

.job-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  transition: color 0.2s;
}
.job-row:hover .job-title { color: var(--red); }

.job-meta {
  font-size: 12px;
  color: var(--mid);
  font-weight: 600;
}

.job-meta-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--light);
  margin-bottom: 4px;
}

.job-cta {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
}

/* ============================================================
   FORM
   ============================================================ */

.form-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.field { display: flex; flex-direction: column; }

.field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mid);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--black);
  border: 1px solid var(--border);
  background: var(--white);
  padding: 14px 16px;
  border-radius: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(196,18,48,0.08);
}

.field-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 4px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--mid);
  line-height: 1.6;
}
.checkbox-row input { margin-top: 3px; }
.checkbox-row a { color: var(--red); border-bottom: 1px solid var(--red); }

.form-submit {
  margin-top: 6px;
  align-self: flex-start;
}

/* Contact-side info card */
.contact-info {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 50px 44px;
}

.contact-info h3 {
  font-size: 20px;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-info-block {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact-info-block:last-child { border-bottom: none; }

.contact-info-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--red);
  margin-bottom: 8px;
}

.contact-info-value {
  font-size: 15px;
  color: var(--white);
  font-weight: 600;
  line-height: 1.6;
}
.contact-info-value a { color: var(--white); }
.contact-info-value a:hover { color: var(--red); }

.contact-info-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin-top: 4px;
}

/* Office card */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.office-card {
  padding: 44px 36px 50px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background 0.25s;
  position: relative;
}
.office-card:last-child { border-right: none; }
.office-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--red);
  transition: width 0.4s var(--ease-out);
}
.office-card:hover::before { width: 100%; }
.office-card:hover { background: var(--bg); }

.office-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 10px;
}

.office-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 14px;
}

.office-addr {
  font-size: 13px;
  line-height: 1.85;
  color: var(--mid);
  margin-bottom: 16px;
}

.office-tel {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
}
.office-tel:hover { color: var(--red); }

/* Map placeholder */
.map-placeholder {
  width: 100%;
  height: 360px;
  background:
    linear-gradient(135deg, rgba(196,18,48,0.18) 0%, rgba(15,15,15,0.6) 100%),
    repeating-linear-gradient(0deg, #2b2b2b 0px, #2b2b2b 1px, #1a1a1a 1px, #1a1a1a 60px),
    repeating-linear-gradient(90deg, #2b2b2b 0px, #2b2b2b 1px, #1a1a1a 1px, #1a1a1a 60px),
    #1a1a1a;
  position: relative;
  overflow: hidden;
}
.map-pin {
  position: absolute;
  top: 45%; left: 38%;
  width: 18px; height: 18px;
  background: var(--red);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(196,18,48,0.25), 0 6px 16px rgba(0,0,0,0.3);
  animation: pinPulse 2s ease-in-out infinite;
}
@keyframes pinPulse {
  0%,100% { box-shadow: 0 0 0 6px rgba(196,18,48,0.25), 0 6px 16px rgba(0,0,0,0.3); }
  50%     { box-shadow: 0 0 0 14px rgba(196,18,48,0.05), 0 6px 16px rgba(0,0,0,0.3); }
}

/* ============================================================
   TIMELINE  (about / sustainability)
   ============================================================ */

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--red);
}

.timeline-year {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline-event-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}

.timeline-event-text {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.75;
  max-width: 580px;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 30px;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.process-step {
  padding: 0 22px 0 0;
  position: relative;
  z-index: 1;
}

.process-num {
  width: 60px;
  height: 60px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 22px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  position: relative;
}
.process-step:hover .process-num {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.process-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}

.process-text {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.75;
}

/* On dark backgrounds */
.sect-bg-dark .process-grid::before,
.sect-bg-black .process-grid::before { background: rgba(255,255,255,0.1); }
.sect-bg-dark .process-num,
.sect-bg-black .process-num { background: var(--dark); border-color: rgba(255,255,255,0.15); }
.sect-bg-dark .process-title,
.sect-bg-black .process-title { color: var(--white); }
.sect-bg-dark .process-text,
.sect-bg-black .process-text { color: rgba(255,255,255,0.6); }

/* ============================================================
   EMERGENCY CALL-OUT
   ============================================================ */

.emergency {
  background: var(--black);
  color: var(--white);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  border-left: 5px solid var(--red);
}

.emergency-icon {
  width: 56px; height: 56px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.emergency-text strong {
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}
.emergency-text span {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

.emergency-tel {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}
.emergency-tel:hover { color: var(--red); }

/* ============================================================
   SECTOR HEADER ROW (sectors page - hero strip per sector)
   ============================================================ */

.sector-header {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: stretch;
  background: var(--white);
}

.sector-header-visual {
  min-height: 460px;
  position: relative;
  overflow: hidden;
}

.sector-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease-out);
}
.sector-header:hover .sector-header-bg { transform: scale(1.04); }

.sector-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,15,15,0.5) 0%, rgba(196,18,48,0.45) 100%);
}

.sector-header-num {
  position: absolute;
  top: 30px; left: 30px;
  font-size: 56px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
  opacity: 0.9;
}

.sector-header-body {
  padding: 60px 60px;
}

/* ============================================================
   PROFILE CARD ON DARK
   ============================================================ */

.profile-card {
  padding: 36px 32px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--red);
  transition: background 0.25s, transform 0.3s var(--ease-out);
}
.profile-card:hover {
  background: rgba(255,255,255,0.06);
  transform: translateX(3px);
}

.profile-card-num {
  font-size: 44px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 10px;
}

.profile-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.profile-card-text {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
}

/* ============================================================
   NEWSLETTER STRIP
   ============================================================ */

.newsletter {
  background: var(--bg);
  padding: 70px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  gap: 0;
}

.newsletter-form input {
  flex: 1;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 16px 20px;
  border-radius: 0;
  border-right: none;
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--red);
}

.newsletter-form button {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0 32px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--red-dark); }

/* ============================================================
   ON-LIGHT VARIANT FOR ABOUT-PILLARS (used outside dark banner)
   ============================================================ */

.about-pillars.on-light .pillar-name { color: var(--black); }
.about-pillars.on-light .pillar-desc { color: var(--mid); }

/* ============================================================
   CONTACT BUTTONS — Call + WhatsApp icon buttons
   Used in nav, footer, contact info, office cards, emergency
   ============================================================ */

/* Nav: tight icon-only square buttons */
.nav-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
  border: none;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-icon-btn svg { width: 18px; height: 18px; }
.nav-icon-btn:hover { transform: translateY(-1px); }
.nav-icon-btn.call    { background: var(--dark); }
.nav-icon-btn.call:hover { background: var(--red); }
.nav-icon-btn.whatsapp    { background: #25D366; }
.nav-icon-btn.whatsapp:hover { background: #1da851; }

/* Tooltip on hover for icon-only buttons */
.nav-icon-btn { position: relative; }
.nav-icon-btn::after {
  content: attr(aria-label);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--black);
  padding: 5px 9px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s, transform 0.18s var(--ease-out);
  z-index: 250;
}
.nav-icon-btn:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Footer / inline button-pair pattern (labelled) */
.contact-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}
.contact-btn svg { width: 14px; height: 14px; }
.contact-btn:hover { transform: translateY(-1px); }

/* Default (works on white/light bg) */
.contact-btn.call {
  background: var(--black);
  color: var(--white);
}
.contact-btn.call:hover { background: var(--red); }
.contact-btn.whatsapp {
  background: #25D366;
  color: var(--white);
}
.contact-btn.whatsapp:hover { background: #1da851; }

/* Variant for dark backgrounds (footer / contact-info card) */
.contact-btn.on-dark.call {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
.contact-btn.on-dark.call:hover {
  background: var(--red);
  border-color: var(--red);
}

/* Larger emergency button */
.contact-btn.lg {
  padding: 16px 28px;
  font-size: 13px;
  letter-spacing: 0.12em;
  gap: 10px;
}
.contact-btn.lg svg { width: 18px; height: 18px; }

/* Footer-address contact buttons sit below the address */
.footer-address .contact-buttons {
  margin-top: 14px;
}

/* Inline buttons inside contact-info-block */
.contact-info-block .contact-buttons {
  margin-top: 10px;
}

/* Office card: button group below address */
.office-card .contact-buttons {
  margin-top: 8px;
}

/* Emergency banner — center buttons in lieu of telephone display */
.emergency-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ============================================================
   RESPONSIVE  (basic mobile/tablet adjustments)
   ============================================================ */

@media (max-width: 1100px) {
  .nav-main > li > a { padding: 0 12px; font-size: 11px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card:nth-child(1), .stat-card:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .cred-strip { grid-template-columns: repeat(4, 1fr); }
  .cred:nth-child(4n) { border-right: none; }
  .cred:nth-child(n+5) { border-top: 1px solid var(--border); }
  .offices-grid { grid-template-columns: 1fr; }
  .office-card { border-right: none; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .process-grid::before { display: none; }
}

@media (max-width: 760px) {
  .nav-top { height: 60px; padding: 0 18px; flex-wrap: wrap; }
  .nav-right { gap: 12px; }
  .nav-phone { display: none; }
  .nav-cta-group .nav-icon-btn.call { display: none; }
  .nav-icon-btn { width: 36px; height: 36px; }
  .nav-contact-btn { padding: 8px 14px; font-size: 11px; }
  .hero { height: 480px; }
  .hero-content { padding: 0 22px 36px; }
  .hero-headline { font-size: 36px; }
  .page-hero { height: 340px; }
  .page-hero-title { font-size: 34px; }
  .page-hero-content { padding: 0 22px 32px; }
  .breadcrumb { padding: 12px 22px; font-size: 11px; }
  .three-panels { grid-template-columns: 1fr; }
  .panel { border-right: none; border-bottom: 1px solid var(--border); }
  .services-inner { grid-template-columns: 1fr; }
  .services-left { border-right: none; border-bottom: 1px solid var(--border); padding: 50px 22px; }
  .services-grid { grid-template-columns: 1fr; padding: 0; }
  .service-item { border-right: none; }
  .service-item:nth-child(n) { border-right: none; }
  .service-item:nth-child(6) { border-bottom: none; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about-banner { grid-template-columns: 1fr; gap: 40px; padding: 60px 22px; }
  .about-pillars { grid-template-columns: 1fr; gap: 22px; }
  .news-layout { grid-template-columns: 1fr; }
  .news-left { border-right: none; border-bottom: 1px solid var(--border); padding: 50px 22px; }
  .news-item { padding: 18px 22px; flex-direction: column; gap: 6px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; border-right: none; padding: 32px 22px; }
  .footer-col { padding: 32px 22px; }
  .footer-col:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
  .footer-col:nth-child(even) { border-right: none; }
  .footer-bottom { flex-direction: column; gap: 10px; padding: 18px 22px; }
  .sect, .sect-tight, .sect-wide { padding: 60px 22px; }
  .split-header { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 40px; }
  .feature-block { grid-template-columns: 1fr; }
  .feature-block.reverse .feature-visual { order: 1; }
  .feature-block.reverse .feature-body { order: 2; }
  .feature-body { padding: 50px 24px; }
  .feature-visual { min-height: 280px; }
  .feature-title { font-size: 26px; }
  .card-grid, .card-grid.cols-2, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cta-banner { padding: 50px 22px; }
  .cta-inner { grid-template-columns: 1fr; gap: 30px; }
  .cta-title { font-size: 28px; }
  .quote-block { padding: 60px 24px; }
  .quote-text { font-size: 22px; }
  .article-grid { grid-template-columns: 1fr; }
  .featured-article { grid-template-columns: 1fr; }
  .featured-article .article-body { padding: 32px 24px; }
  .featured-article .article-title { font-size: 22px; }
  .proj-grid { grid-template-columns: 1fr; }
  .featured-proj { grid-template-columns: 1fr; }
  .featured-proj-body { padding: 40px 24px; }
  .featured-proj-title { font-size: 26px; }
  .form-shell { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-info { padding: 36px 24px; }
  .sector-header { grid-template-columns: 1fr; }
  .sector-header-body { padding: 40px 24px; }
  .job-row { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .job-row:hover { padding-left: 12px; }
  .emergency { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .newsletter { padding: 50px 22px; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 24px; }
  .section-title-lg { font-size: 28px; }
  .section-title { font-size: 24px; }
}


/* ============================================================
   MOBILE NAVIGATION — Hamburger + Slide-in Drawer
   At <=960px the horizontal nav-main becomes a side drawer
   activated by a hamburger button. Drawer pushes in from the
   right, dropdowns expand inline as accordions.
   ============================================================ */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: 4px;
  position: relative;
  z-index: 260;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s, background 0.2s;
}
.nav-toggle.is-open span { background: var(--black); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  /* Drawer mode for nav-main */
  .nav-main {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 0;
    right: 0;
    width: 88%;
    max-width: 380px;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    box-shadow: -4px 0 32px rgba(0,0,0,0.18);
    transform: translateX(100%);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 250;
    overflow-y: auto;
    padding: 88px 0 32px;
    flex: 0 0 auto;
  }
  .nav-main.is-open { transform: translateX(0); }

  .nav-main > li {
    display: block;
    border-bottom: 1px solid var(--border);
    align-items: stretch;
    position: static;
  }
  .nav-main > li > a {
    display: flex;
    align-items: center;
    padding: 16px 28px;
    height: auto;
    font-size: 13px;
    border-bottom: none;
  }
  .nav-main > li > a::after { display: none; }

  .dropdown {
    position: static;
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    border: none;
    border-top: 1px solid #f0f0f0;
    box-shadow: none;
    background: var(--bg);
    min-width: 0;
    transition: none;
  }
  .nav-main > li:hover > .dropdown { transform: none; }
  .dropdown li a {
    padding: 12px 28px 12px 44px;
    font-size: 12px;
    color: var(--mid);
  }
  .dropdown li a:hover { padding-left: 50px; }
}


/* ============================================================
   MOBILE — TIGHTER LAYOUT TWEAKS (≤760px)
   ============================================================ */

@media (max-width: 760px) {
  /* Drop logo text — would crowd hamburger + cta */
  .nav-logo-text { display: none; }
  .nav-logo { margin-right: 12px; }

  /* Slimmer page-hero */
  .page-hero { height: 320px; }
  .page-hero-title { font-size: 30px; line-height: 1.1; }
  .page-hero-sub { font-size: 14px; }
  .page-hero-eyebrow { font-size: 10px; margin-bottom: 10px; }
  .page-hero-content { padding: 0 22px 28px; max-width: 100%; }

  /* Home hero proportions */
  .hero { height: 460px; }
  .hero-headline { font-size: 32px; }
  .hero-sub { font-size: 14px; }
  .hero-content { padding: 0 22px 32px; max-width: 100%; }

  /* Tighten right-side CTA group */
  .nav-cta-group { gap: 6px; }
  .nav-right { gap: 10px; }
  .nav-contact-btn { padding: 8px 12px; font-size: 10px; letter-spacing: 0.06em; }

  /* Stat row: keep 2x2 even at small mobile */
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 36px 22px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-card:nth-child(2n) { border-right: none; }
  .stat-card:nth-child(n+3) { border-bottom: none; }
  .stat-num { font-size: 42px; }

  /* Featured project mobile */
  .featured-proj-stats { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Article cards stacked on phone */
  .article-grid { grid-template-columns: 1fr; }

  /* Project card grid - 2 col on phone fits 12 thumbs in 6 rows */
  .proj-grid { grid-template-columns: 1fr 1fr; gap: 3px; }
  .proj-card-info { padding: 14px 12px; }
  .proj-card-title { font-size: 13px; }
  .proj-card-meta { font-size: 9px; }
  .proj-card-tag { font-size: 9px; }

  /* Team grid 2-col */
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .team-name { font-size: 14px; }
  .team-role { font-size: 10px; }

  /* Stats counter row 2x2 (override) */
  .stat-row { grid-template-columns: 1fr 1fr; gap: 0; }

  /* Process grid: 2-col grid */
  .process-grid { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
  .process-num { width: 48px; height: 48px; font-size: 16px; margin-bottom: 14px; }

  /* Forms — 16px input prevents iOS auto-zoom on focus */
  .field input, .field select, .field textarea { font-size: 16px; }

  /* Filter pills slightly larger touch targets */
  .filter-pill { padding: 10px 14px; font-size: 11px; }

  /* Quote block tighter */
  .quote-text { font-size: 20px; line-height: 1.4; }
  .quote-mark { font-size: 100px; margin-bottom: 18px; }

  /* About banner mobile fit */
  .about-banner-title { font-size: 26px; }
  .about-banner-body { font-size: 13px; }

  /* News item readability */
  .news-date { min-width: 0; font-size: 11px; }
  .news-title { font-size: 13px; }

  /* Sector header on mobile */
  .sector-header-num { font-size: 40px; top: 18px; left: 22px; }
  .sector-header-visual { min-height: 240px; }
  .sector-header-body { padding: 36px 22px; }

  /* Three panels mobile sizing */
  .panel-img-placeholder { aspect-ratio: 16/10; }
  .panel-body { padding: 22px 22px 26px; }
  .panel-title { font-size: 20px; }
  .panel-red { padding: 30px 22px; }

  /* Office cards tighter */
  .office-card { padding: 36px 22px 40px; }
  .office-name { font-size: 20px; }

  /* Job rows */
  .job-row { padding: 18px 0; }
  .job-title { font-size: 15px; }

  /* Emergency banner stays compact */
  .emergency-tel { font-size: 18px; }
  .emergency-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .emergency-actions .contact-btn { justify-content: center; }
}


/* ============================================================
   SMALL MOBILE (≤480px)
   Very tight layouts for 320–480px viewports
   ============================================================ */

@media (max-width: 480px) {
  .hero { height: 420px; }
  .hero-headline { font-size: 28px; }

  .page-hero { height: 280px; }
  .page-hero-title { font-size: 26px; }

  .nav-top { padding: 0 14px; height: 60px; }
  .nav-logo img { width: 36px; height: 36px; }

  .nav-icon-btn { width: 36px; height: 36px; }
  .nav-icon-btn svg { width: 16px; height: 16px; }
  .nav-toggle { width: 40px; height: 40px; margin-left: 2px; }
  .nav-contact-btn { padding: 7px 10px; font-size: 9px; }

  .stat-num { font-size: 36px; }
  .stat-card { padding: 28px 16px; }

  .section-title-lg { font-size: 24px; }
  .section-title { font-size: 22px; }

  .feature-title { font-size: 22px; }
  .feature-body, .featured-proj-body { padding: 36px 20px; }
  .feature-visual { min-height: 240px; }

  .featured-proj-title { font-size: 24px; }
  .featured-proj-stat-num { font-size: 22px; }

  .cta-title { font-size: 22px; }
  .cta-banner { padding: 44px 20px; }
  .quote-block { padding: 50px 20px; }

  .filter-row { gap: 6px; }
  .filter-pill { padding: 8px 10px; font-size: 10px; letter-spacing: 0.06em; }

  .three-panels .panel-img-placeholder { aspect-ratio: 16/9; }
  .panel-title { font-size: 18px; }

  .about-banner { padding: 50px 20px; }
  .about-banner-title { font-size: 22px; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-brand, .footer-col { border-right: none !important; }
  .footer-col { padding: 24px 22px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .footer-bottom { font-size: 10px; }
  .footer-bottom-links { flex-wrap: wrap; gap: 12px; }

  .breadcrumb { padding: 10px 18px; font-size: 10px; }

  /* Form action button full-width */
  .form-submit { width: 100%; justify-content: center; }
  .contact-btn.lg { width: 100%; justify-content: center; }

  /* Article cards fit comfortably */
  .article-body { padding: 20px 20px 24px; }
  .article-title { font-size: 16px; }

  /* News list items wrap better */
  .news-item { padding: 14px 22px; flex-direction: column; gap: 4px; }
  .news-date { padding-top: 0; }

  /* Service grid items */
  .service-item { padding: 22px 20px; }

  /* Cred strip wraps to 2 col */
  .cred-strip { grid-template-columns: 1fr 1fr; }
  .cred:nth-child(2n) { border-right: none; }
  .cred:nth-child(n+3) { border-top: 1px solid var(--border); }

  /* Timeline */
  .timeline { padding-left: 24px; }
  .timeline-item::before { left: -24px; width: 14px; height: 14px; border-width: 3px; }
  .timeline-event-title { font-size: 16px; }

  /* Map height shrinks */
  .map-placeholder { height: 280px; }
}


/* ============================================================
   TOUCH DEVICES — disable hover-only effects
   On touch screens, :hover triggers awkwardly on tap.
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
  /* Cards keep their default state on touch */
  .panel:hover { background: transparent; }
  .panel:hover .panel-img-placeholder svg { transform: none; opacity: 0.15; }
  .service-item:hover { background: transparent; }
  .card:hover { background: var(--white); }
  .card.card-dark:hover { background: rgba(255,255,255,0.02); }

  /* Don't add the "lift" transform on tap-and-hold */
  .nav-icon-btn:hover { transform: none; }
  .contact-btn:hover { transform: none; }
  .btn:hover { transform: none; }
  .article-card:hover { transform: none; }

  /* Tooltips on icon buttons would stay open after tap — hide */
  .nav-icon-btn::after { display: none; }
}
