/* ============================================================
   PURMOLD — styles.css
   Single CSS file — edit custom properties at the top to
   change colours, fonts, or spacing site-wide.
   ============================================================ */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;600;700;800&family=Source+Sans+3:wght@400;600&display=swap');

/* ===== CUSTOM PROPERTIES ===== */
:root {
  /* Colours */
  --primary:        #1a3a5c;
  --primary-light:  #2a5a8c;
  --accent:         #e8a838;
  --accent-dark:    #c88a20;
  --dark:           #1a1a2e;
  --dark-alt:       #2d2d44;
  --light:          #f5f5f5;
  --white:          #ffffff;
  --text:           #333333;
  --text-light:     #666666;
  --text-on-dark:   #e0e0e0;
  --border:         #e0e0e0;

  /* Typography */
  --font-heading: 'Barlow', sans-serif;
  --font-body:    'Source Sans 3', sans-serif;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 4vw, 2rem);

  /* Misc */
  --radius:    4px;
  --radius-lg: 8px;
  --shadow:    0 2px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.16);
  --transition: .3s ease;
  --reveal-dur: .6s;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

.on-dark h1, .on-dark h2, .on-dark h3,
.section-dark h1, .section-dark h2, .section-dark h3 {
  color: var(--white);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ===== LAYOUT UTILITIES ===== */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: 80px; }
.section-sm { padding-block: 48px; }

.section-light { background: var(--light); }
.section-white { background: var(--white); }
.section-dark  { background: var(--dark);  color: var(--text-on-dark); }
.section-blue  { background: var(--primary); color: var(--text-on-dark); }

.text-center { text-align: center; }
.text-accent { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  letter-spacing: .02em;
}
.btn-accent {
  background: var(--accent);
  color: var(--dark);
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--dark);
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* section heading with bottom-border accent */
.section-heading {
  margin-bottom: 2.5rem;
}
.section-heading h2 {
  position: relative;
  display: inline-block;
  padding-bottom: .75rem;
}
.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 60px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-heading.centered h2 { display: block; text-align: center; }
.section-heading.centered h2::after { left: 50%; transform: translateX(-50%); }
.section-heading p {
  margin-top: .75rem;
  color: var(--text-light);
  max-width: 640px;
}
.section-heading.centered p { margin-inline: auto; text-align: center; }
.section-dark .section-heading h2,
.section-blue .section-heading h2 { color: var(--white); }
.section-dark .section-heading p,
.section-blue .section-heading p  { color: var(--text-on-dark); opacity: .8; }

/* ===== TOP BAR ===== */
#top-bar {
  background: var(--dark);
  color: var(--text-on-dark);
  font-size: .82rem;
  padding-block: .45rem;
}
#top-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-items: center;
  justify-content: flex-end;
}
#top-bar a { transition: color var(--transition); }
#top-bar a:hover { color: var(--accent); }
.topbar-item {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.topbar-icon {
  width: 14px; height: 14px;
  fill: var(--accent);
  flex-shrink: 0;
}

/* ===== HEADER / NAV ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  transition: box-shadow var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .75rem;
}

.site-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

/* NAV */
#site-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
}
#site-nav > ul > li {
  position: relative;
}
#site-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .6rem .85rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .9rem;
  color: var(--primary);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
#site-nav > ul > li > a:hover,
#site-nav > ul > li.active > a {
  color: var(--accent);
  background: rgba(26,58,92,.06);
}
.nav-arrow {
  width: 10px; height: 10px;
  fill: currentColor;
  transition: transform var(--transition);
}
#site-nav > ul > li:hover .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  pointer-events: none;
}
#site-nav > ul > li:hover .dropdown,
#site-nav > ul > li:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown a {
  display: block;
  padding: .65rem 1.25rem;
  font-size: .88rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition), background var(--transition), padding-left var(--transition);
  border-bottom: 1px solid var(--border);
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover {
  color: var(--accent);
  background: var(--light);
  padding-left: 1.6rem;
}
.dropdown li:last-child a {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Contact button in nav */
.nav-contact-btn {
  background: var(--accent) !important;
  color: var(--dark) !important;
  border-radius: var(--radius) !important;
  padding: .6rem 1.1rem !important;
}
.nav-contact-btn:hover {
  background: var(--accent-dark) !important;
  color: var(--dark) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--light); }
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO SLIDER ===== */
.hero {
  position: relative;
  height: clamp(480px, 75vh, 780px);
  overflow: hidden;
  background: var(--dark);
  touch-action: pan-y; /* allow vertical scroll, handle horizontal swipe in JS */
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  overflow: hidden;
}
.hero-slide.active { opacity: 1; }

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero-slide.active .hero-slide-bg { transform: scale(1); }

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26,26,46,.82) 0%,
    rgba(26,58,92,.55) 60%,
    rgba(26,26,46,.15) 100%
  );
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 2rem;
  max-width: 640px;
}

.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-on-dark);
  opacity: .9;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-detail {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(232,168,56,.18);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: .5rem 1rem;
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 1.75rem;
}

.hero-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .65rem;
  z-index: 10;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: 2px solid rgba(255,255,255,.6);
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}
.hero-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}

.hero-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.hero-nav:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.hero-nav svg { width: 18px; height: 18px; fill: currentColor; }
.hero-prev { left: 1.5rem; }
.hero-next { right: 1.5rem; }

/* ===== NEWS BANNER (Analytica) ===== */
.news-banner {
  background: var(--accent);
  color: var(--dark);
  padding-block: .75rem;
}
.news-banner .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.news-banner strong {
  font-family: var(--font-heading);
  font-weight: 700;
}
.news-banner-tag {
  background: var(--dark);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .65rem;
  border-radius: var(--radius);
  flex-shrink: 0;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}
.about-image-badge {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  background: var(--accent);
  color: var(--dark);
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: center;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  line-height: 1.2;
}
.about-image-badge .badge-num  { font-size: 2rem; font-weight: 800; display: block; }
.about-image-badge .badge-text { font-size: .85rem; display: block; }
.about-text .section-heading h2::after { left: 0; transform: none; }
.about-text p { color: var(--text-light); }

/* ===== SERVICE CARDS ===== */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow);
  border-bottom: 4px solid transparent;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  border-bottom-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card-icon {
  width: 56px; height: 56px;
  margin-bottom: 1.25rem;
}
.service-card-icon img { width: 100%; height: 100%; object-fit: contain; }
.service-card h3 { margin-bottom: .75rem; font-size: 1.15rem; }
.service-card p   { color: var(--text-light); flex: 1; font-size: .95rem; }
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .88rem;
  color: var(--accent);
  transition: gap var(--transition);
}
.service-card-link:hover { gap: .7rem; }
.service-card-link svg { width: 14px; height: 14px; fill: currentColor; }

/* ===== STATS STRIP ===== */
.stats-strip {
  background: var(--primary);
  color: var(--white);
  padding-block: 56px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item { }
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: block;
}
.stat-suffix { font-size: .6em; }
.stat-label {
  font-size: 1rem;
  color: var(--text-on-dark);
  opacity: .85;
  margin-top: .4rem;
}

/* ===== DISCOVER / MISSION-VISION ===== */
.discover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.discover-left { }
.discover-stat-row {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.discover-stat .stat-number { font-size: 2.8rem; }
.discover-stat .stat-label { color: var(--text-on-dark); opacity: .8; }

.mission-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.tab-btn {
  padding: .55rem 1.3rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-on-dark);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  transition: var(--transition);
  cursor: pointer;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}
.tab-content { display: none; color: var(--text-on-dark); opacity: .9; }
.tab-content.active { display: block; }

.value-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.value-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}
.value-card:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-3px);
}
.value-icon {
  width: 48px; height: 48px;
  margin: 0 auto 1rem;
  background: rgba(232,168,56,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.value-icon svg { width: 24px; height: 24px; fill: var(--accent); }
.value-card h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: .5rem;
}
.value-card p { font-size: .88rem; color: var(--text-on-dark); opacity: .8; margin: 0; }

/* ===== CLIENT LOGO BAR ===== */
.logo-bar {
  background: var(--white);
  padding-block: 40px;
  overflow: hidden;
  border-block: 1px solid var(--border);
}
.logo-bar-heading {
  text-align: center;
  margin-bottom: 2rem;
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-light);
}

.logo-track-wrapper {
  overflow: hidden;
  position: relative;
  touch-action: pan-y; /* don't block vertical scroll on touch devices */
}
.logo-track-wrapper::before,
.logo-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.logo-track-wrapper::before { left: 0;  background: linear-gradient(to right,  var(--white), transparent); }
.logo-track-wrapper::after  { right: 0; background: linear-gradient(to left, var(--white), transparent); }

.logo-track {
  display: flex;
  gap: 5rem;
  align-items: center;
  width: max-content;
  animation: logo-scroll 40s linear infinite;
}
/* Only pause on genuine hover (mouse), not on touch tap */
@media (hover: hover) {
  .logo-track:hover { animation-play-state: paused; }
}

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

.logo-track img {
  height: 90px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* ===== SOLUTIONS SECTION ===== */
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.solutions-content .section-heading h2::after { left: 0; transform: none; }
.solutions-content p { color: var(--text-light); }
.solutions-image { position: relative; }
.solutions-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.cert-badge {
  position: absolute;
  bottom: -1.5rem; right: -1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: 220px;
}
.cert-badge img { height: 56px; width: auto; object-fit: contain; }
.cert-badge-text { font-family: var(--font-heading); font-size: .82rem; font-weight: 700; color: var(--primary); line-height: 1.3; }
.cert-badge-sub { font-size: .74rem; font-weight: 400; color: var(--text-light); }

.quality-rate {
  display: inline-flex;
  align-items: baseline;
  gap: .25rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--light);
  padding: .65rem 1.25rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}
.quality-rate .rate-num { font-size: 2.2rem; font-weight: 800; color: var(--accent); }

/* ===== VIDEO SECTION ===== */
.video-thumb-wrap {
  position: relative;
  width: 65%;
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: block;
}
.video-thumb-wrap img {
  width: 100%;
  display: block;
  transition: transform .5s ease;
  user-select: none;
  pointer-events: none;
}
.video-thumb-wrap:hover img { transform: scale(1.03); }

/* Always-on dark overlay — keeps play button legible over any thumbnail */
.video-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, .38);
  pointer-events: none;
}

/* Play button — white semi-transparent circle + "Play" label */
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  pointer-events: none; /* clicks pass through to the wrap */
}
.video-play-circle {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: 3px solid rgba(255, 255, 255, .88);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 28px rgba(0, 0, 0, .45);
  transition: background var(--transition), transform var(--transition);
}
.video-play-circle svg {
  width: 38px; height: 38px;
  fill: var(--white);
  margin-left: 6px; /* optical offset for play triangle */
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
}
.video-play-label {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
}
.video-thumb-wrap:hover .video-play-circle {
  background: rgba(255, 255, 255, .3);
  transform: scale(1.1);
}

/* ===== VIDEO MODAL ===== */
/* display:none fully removes the <video> from rendering — more reliable than opacity/visibility */
.video-modal {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: fixed;
  inset: 0;
  z-index: 9998;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
}
.video-modal.open { display: flex; visibility: visible; opacity: 1; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.video-modal-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .7);
}
.video-modal-inner video {
  display: block;
  width: 100%;
  max-height: 80vh;
  background: #000;
}
.video-modal-close {
  position: fixed;
  top: 1.1rem; right: 1.4rem;
  z-index: 9999;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, .35);
  transition: background var(--transition), transform var(--transition);
}
.video-modal-close:hover {
  background: rgba(255, 255, 255, .28);
  transform: scale(1.12);
}

@media (max-width: 768px) {
  .video-thumb-wrap   { width: 92%; }
  .video-play-circle  { width: 70px; height: 70px; }
  .video-play-circle svg { width: 30px; height: 30px; margin-left: 4px; }
  .video-play-label   { font-size: .82rem; }
  .video-modal-inner video { max-height: 56vh; }
}
@media (max-width: 480px) {
  .video-thumb-wrap  { width: 100%; border-radius: var(--radius); }
  .video-play-circle { width: 58px; height: 58px; }
  .video-play-circle svg { width: 24px; height: 24px; margin-left: 3px; }
  .video-play-label  { font-size: .75rem; }
}

/* ===== PRE-FOOTER BANNER ===== */
.pre-footer-banner {
  position: relative;
  background: #0b1a2e;
  overflow: hidden;
  padding-block: 56px;
}
.pre-footer-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.13;
  pointer-events: none;
}
.pre-footer-inner {
  position: relative;
  z-index: 1;
}
.pre-footer-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: var(--white);
  max-width: 700px;
  line-height: 1.3;
}

/* ===== FOOTER ===== */
#site-footer {
  background: #0d1b2a;
  color: var(--text-on-dark);
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

/* Address column */
.footer-address-col { }
.footer-col-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer-address-col address {
  font-style: normal;
  font-size: .88rem;
  line-height: 1.9;
  color: rgba(224,224,224,.75);
}
.footer-address-col address strong {
  color: var(--white);
  font-weight: 700;
  display: block;
  margin-bottom: .2rem;
}

/* Contact person columns */
.footer-contact-col { }
.footer-contact-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: .3rem;
}
.footer-contact-role {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent);
  margin-bottom: .85rem;
}
.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .86rem;
  color: rgba(224,224,224,.72);
  line-height: 1.5;
}
.footer-email-link {
  color: #4ecdc4;
  transition: color var(--transition);
  word-break: break-all;
}
.footer-email-link:hover { color: #80e8e2; }

.footer-bottom {
  text-align: center;
  padding-block: 1.1rem;
  font-size: .82rem;
  color: rgba(224,224,224,.45);
}

/* ===== PAGE BANNER ===== */
.page-banner {
  background: var(--primary);
  background-image: linear-gradient(105deg, var(--dark) 0%, var(--primary) 60%);
  padding-block: 56px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  top: -30%; right: -5%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(232,168,56,.06);
  pointer-events: none;
}
.page-banner-inner {
  position: relative;
  z-index: 1;
}
.page-banner-category {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .65rem;
}
.page-banner h1 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .75rem;
  font-size: .84rem;
  opacity: .65;
  color: var(--text-on-dark);
}
.breadcrumb a:hover { color: var(--accent); opacity: 1; }
.breadcrumb-sep { opacity: .5; }

/* ===== PAGE CONTENT AREA ===== */
.page-content { padding-block: 64px; }

.content-intro {
  max-width: 820px;
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.75;
}
.content-intro p + p { margin-top: 1rem; }

/* Image + text side by side */
.image-text-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-block: 3rem;
}
.image-text-block.reversed { direction: rtl; }
.image-text-block.reversed > * { direction: ltr; }

.block-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.block-image img {
  width: 100%; height: 340px;
  object-fit: cover;
}
.block-text h3 { margin-bottom: 1rem; }
.block-text p { color: var(--text-light); }

/* Feature list */
.feature-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .95rem;
}
.feature-list li::before {
  content: '';
  flex-shrink: 0;
  margin-top: .35rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Photo gallery grid */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-block: 2rem;
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* Portfolio gallery */
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.portfolio-item {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.portfolio-item:hover img { transform: scale(1.07); }

/* Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 2rem;
  font-size: .93rem;
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.spec-table thead tr {
  background: var(--primary);
  color: var(--white);
}
.spec-table th, .spec-table td {
  padding: .85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.spec-table tbody tr:nth-child(even) { background: var(--light); }
.spec-table tbody tr:hover { background: rgba(26,58,92,.05); }
.spec-table td:first-child { font-weight: 600; color: var(--primary); }

/* Download cards */
.download-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-block: 2rem;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  text-decoration: none;
  color: inherit;
}
.download-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.download-card-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 110px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  border: 1px solid var(--border);
}
.download-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.download-card-body {
  flex: 1;
  min-width: 0;
}
.download-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .92rem;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: .6rem;
}
.download-card-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.download-card-label svg {
  width: 13px; height: 13px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 2rem;
  font-size: .9rem;
}
.comparison-table thead tr {
  background: var(--primary);
  color: var(--white);
}
.comparison-table th {
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: left;
}
.comparison-table td {
  padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.comparison-table tbody tr:nth-child(even) { background: var(--light); }
.comparison-table td:first-child {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.comparison-table td:nth-child(2) { color: var(--accent-dark); font-weight: 600; }

/* Quality policy list */
.policy-list {
  counter-reset: policy;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-block: 1.5rem;
}
.policy-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent);
  counter-increment: policy;
}
.policy-num {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  width: 40px;
  line-height: 1;
  margin-top: .05rem;
}
.policy-item h4 { font-size: 1rem; margin-bottom: .35rem; }
.policy-item p  { font-size: .9rem; color: var(--text-light); margin: 0; }

/* Certificate cards */
.cert-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-block: 2rem;
}
.cert-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.cert-card img { height: 80px; margin: 0 auto 1.25rem; object-fit: contain; }
.cert-card h4 { margin-bottom: .5rem; font-size: 1rem; }
.cert-card p  { font-size: .88rem; color: var(--text-light); margin: 0; }

/* Tolerances note */
.tolerance-note {
  background: rgba(232,168,56,.1);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .9rem;
  margin-block: 1.5rem;
}

/* Info boxes (dark bg pages) */
.info-box {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-block: 1.5rem;
}
.info-box p { opacity: .85; margin: 0; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox > img {
  max-width: 88vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  position: relative;
  z-index: 1;
}
.lightbox-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  transition: background var(--transition);
  z-index: 2;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }

.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  background: rgba(255,255,255,.12);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  z-index: 2;
}
.lightbox-nav:hover { background: var(--accent); }
.lightbox-nav svg { width: 24px; height: 24px; fill: var(--white); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.55);
  font-family: var(--font-heading);
  font-size: .85rem;
  letter-spacing: .08em;
  z-index: 2;
}

/* ===== FEATURED GALLERY ===== */
.gallery-section { margin-bottom: 3rem; }
.gallery-heading {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: .75rem;
}
.gallery-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.gallery-featured {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  touch-action: pan-y; /* allow vertical scroll while JS handles horizontal swipe */
  background: var(--dark);
  margin-bottom: .75rem;
}
.gallery-featured-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.gallery-featured:hover .gallery-featured-img { transform: scale(1.02); }

.gallery-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,26,46,.65) 0%, transparent 45%);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  pointer-events: none;
}
.gallery-featured:hover .gallery-featured-overlay { opacity: 1; }
.gallery-featured-caption {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .02em;
}

.gallery-expand-icon {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  background: rgba(0,0,0,.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.gallery-featured:hover .gallery-expand-icon { opacity: 1; }
.gallery-expand-icon svg { width: 18px; height: 18px; fill: var(--white); }

.gallery-counter {
  position: absolute;
  bottom: 1rem; right: 1rem;
  background: rgba(0,0,0,.5);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .8rem;
  border-radius: 20px;
  letter-spacing: .05em;
  z-index: 2;
  pointer-events: none;
}

.gallery-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(0,0,0,.4);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  transition: background .3s;
  backdrop-filter: blur(4px);
}
.gallery-nav:hover { background: var(--accent); }
.gallery-nav svg { width: 20px; height: 20px; fill: var(--white); }
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }

/* Thumbnail strip */
.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-track { background: var(--light); border-radius: 2px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.gallery-thumb {
  flex-shrink: 0;
  width: 110px; height: 74px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color .25s, box-shadow .25s;
  scroll-snap-align: start;
  position: relative;
}
.gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.gallery-thumb:hover img { transform: scale(1.08); }
.gallery-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.gallery-thumb:not(.active)::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(11,26,46,.28);
  transition: background .25s;
}
.gallery-thumb:hover::after,
.gallery-thumb.active::after { background: transparent; }

/* ===== CAPABILITY GRID ===== */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}
.capability-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  background: var(--light);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--accent);
  transition: background .25s, transform .25s, box-shadow .25s;
}
.capability-item:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.capability-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  fill: var(--accent);
  margin-top: .15rem;
}
.capability-item p {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .capability-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .capability-grid { grid-template-columns: 1fr; }
  .gallery-thumb { width: 80px; height: 56px; }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--reveal-dur) ease, transform var(--reveal-dur) ease;
}
.reveal.from-left  { transform: translateX(-28px); }
.reveal.from-right { transform: translateX(28px); }
.reveal.revealed   { opacity: 1; transform: none; }

/* Safety fallback: video thumbnail always becomes visible even if JS observer misses it */
.video-section .reveal {
  animation: reveal-fallback 0.6s 0.8s forwards;
}
@keyframes reveal-fallback {
  to { opacity: 1; transform: translateY(0); }
}
.video-section .reveal.revealed {
  animation: none; /* cancel fallback when JS fires — transition handles it */
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ===== PLACEHOLDER (missing images) ===== */
.placeholder {
  background: var(--light);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--text-light);
  font-family: var(--font-heading);
  text-align: center;
  padding: 1rem;
}

/* ===== TABLE SCROLL WRAPPER ===== */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  position: relative;
}
.table-scroll::after {
  content: '← scroll →';
  display: none;
  text-align: center;
  font-size: .75rem;
  color: var(--text-light);
  padding-top: .35rem;
}

/* ===== NAV ARROW (mobile open state) ===== */
#site-nav > ul > li.open > a .nav-arrow { transform: rotate(180deg); }

/* ===== RESPONSIVE — TABLET ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .about-grid, .discover-grid, .solutions-grid { gap: 2.5rem; }
}

@media (max-width: 900px) {
  .service-cards { grid-template-columns: 1fr 1fr; }
  .value-cards   { grid-template-columns: 1fr 1fr; }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 768px) {
  /* ── Nav ── */
  .hamburger { display: flex; }
  #site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    display: none;
    max-height: 80vh;
    overflow-y: auto;
    border-top: 3px solid var(--accent);
  }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; gap: 0; }
  #site-nav > ul > li > a {
    padding: .75rem 1rem;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    display: none;
    background: var(--light);
    margin: 0 .5rem .5rem;
    border-radius: var(--radius);
    pointer-events: auto;
  }
  #site-nav > ul > li.open .dropdown { display: block; }
  .dropdown a { padding: .6rem 1.25rem; border-bottom-color: var(--border); }

  /* ── Layout ── */
  .about-grid, .discover-grid, .solutions-grid, .image-text-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .image-text-block.reversed { direction: ltr; }
  .about-image-wrap img { height: 300px; }
  .about-image-wrap::after { display: none; } /* prevent decorative overflow */
  .service-cards  { grid-template-columns: 1fr; }
  .stats-grid     { grid-template-columns: 1fr; gap: 1.5rem; }
  .value-cards    { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .pre-footer-heading { font-size: 1.3rem; }
  .discover-stat-row { gap: 1.5rem; }
  .download-cards-grid { grid-template-columns: 1fr; }
  .hero-nav       { display: none; }  /* swipe replaces arrows on mobile */

  /* ── Cert badge: stack instead of hide ── */
  .cert-badge {
    flex-direction: column;
    text-align: center;
    bottom: -2rem; right: .5rem;
    max-width: 150px;
  }
  .cert-badge img { margin: 0 auto; }

  /* ── Tables ── */
  .comparison-table { font-size: .8rem; }
  .comparison-table th,
  .comparison-table td { padding: .65rem .85rem; }
  .table-scroll::after { display: block; }

  /* ── Top bar ── */
  #top-bar .container { justify-content: center; }
  .topbar-item:last-child { display: none; }

  /* ── News banner ── */
  .news-banner .container { flex-direction: column; text-align: center; gap: .5rem; }

  /* ── CTA buttons ── */
  .cta-section .btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 12px;
    text-align: center;
  }

  /* ── Parallax: iOS Safari doesn't support background-attachment: fixed ── */
  .section-parallax,
  .cta-section { background-attachment: scroll; }
}

@media (max-width: 480px) {
  .footer-grid    { grid-template-columns: 1fr; }
  .pre-footer-heading { font-size: 1.15rem; }
  .photo-gallery { grid-template-columns: 1fr 1fr; }
  .portfolio-gallery { grid-template-columns: 1fr 1fr; }
  .cert-cards { grid-template-columns: 1fr; }
  .page-banner { padding-block: 36px; }
  .hero { height: 420px; }

  /* ── Stats ── */
  .stats-grid { gap: 24px; }
  .stat-number { font-size: 2.25rem; }
}
