/* ════════════════════════════════════════════════════
   TERRAZZA — Landing Page Styles
   ════════════════════════════════════════════════════ */

/* ── Animated border angle property ─────────────── */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ── CSS Variables ──────────────────────────────── */
:root {
  --color-primary:       #1B3A4B;
  --color-primary-dark:  #0F2633;
  --color-primary-rgb:   27, 58, 75;
  --color-accent:        #8FA3AD;
  --color-black:         #2D3436;
  --color-dark:          #3D4448;
  --color-grey-mid:      #6B7B83;
  --color-grey-light:    #F7F5F2;
  --color-white:         #FFFFFF;
  --color-whatsapp:      #25D366;
  --color-whatsapp-dark: #1ebe5c;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-accent:  'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  --transition: 300ms ease;
  --radius:     10px;
  --radius-sm:  6px;
  --shadow:      0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.14);

  --container-max:    1180px;
  --section-padding:  96px 0;
  --header-height:    80px;
  --safe-area-top:    env(safe-area-inset-top, 0px);
  --header-total-height: calc(var(--header-height) + var(--safe-area-top));
}

/* ── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-total-height) + 20px);
  overflow-x: clip;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
}

body {
  font-family: var(--font-body);
  color: var(--color-black);
  line-height: 1.65;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  background: var(--color-white);
  touch-action: pan-y pinch-zoom;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.032;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ── Container ──────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.35);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.65);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-animated {
  --border-angle: 0deg;
  color: var(--color-white);
  border: 2px solid transparent;
  background: var(--color-primary);
  background:
    linear-gradient(var(--color-primary), var(--color-primary)) padding-box,
    conic-gradient(from var(--border-angle), transparent 25%, rgba(255,255,255,0.9) 37%, rgba(255,255,255,0.9) 40%, transparent 55%) border-box;
  animation: border-spin 3s linear infinite;
}
.btn-animated:hover {
  background: var(--color-primary-dark);
  background:
    linear-gradient(var(--color-primary-dark), var(--color-primary-dark)) padding-box,
    conic-gradient(from var(--border-angle), transparent 25%, #fff 37%, #fff 40%, transparent 55%) border-box;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.35);
}

@keyframes border-spin {
  to { --border-angle: 360deg; }
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  border-color: var(--color-whatsapp);
  margin-top: 12px;
  padding: 10px 22px;
  font-size: 0.88rem;
}
.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark);
  border-color: var(--color-whatsapp-dark);
  transform: translateY(-2px);
}

.btn-lg  { padding: 17px 40px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Section Helpers ────────────────────────────── */
.section { padding: var(--section-padding); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  margin: 16px auto 0;
}
.section-header p {
  color: var(--color-grey-mid);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

.section-header--light h2 { color: var(--color-white); }
.section-header--light h2::after { background: rgba(255, 255, 255, 0.4); }
.section-header--light p  { color: rgba(255, 255, 255, 0.6); }

/* ── Fade-in Animations ─────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(5px);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Direction overrides by parent section */
.services-grid > .fade-in:nth-child(odd)  { transform: translateX(-50px); filter: blur(5px); }
.services-grid > .fade-in:nth-child(even) { transform: translateX(50px); filter: blur(5px); }
.services-grid > .fade-in.visible         { transform: translateX(0); filter: blur(0); }

.sectors-grid > .fade-in  { transform: scale(0.82); filter: blur(4px); }
.sectors-grid > .fade-in.visible { transform: scale(1); filter: blur(0); }

/* ════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-total-height);
  padding-top: var(--safe-area-top);
  transition: background var(--transition), box-shadow var(--transition);
}

#header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--safe-area-top);
  background: rgba(15, 38, 51, 0.94);
  pointer-events: none;
  transition: background var(--transition);
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#header.scrolled::before {
  background: rgba(255, 255, 255, 0.97);
}

/* Nav text goes dark on white header */
#header.scrolled .nav-links a {
  color: var(--color-black);
}
#header.scrolled .nav-links a:hover,
#header.scrolled .nav-links a.active {
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.07);
}
#header.scrolled .hamburger span {
  background: var(--color-black);
}
/* Nav CTA — outline-light over hero, solid on scroll */
.nav-cta.btn-primary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}
.nav-cta.btn-primary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}
#header.scrolled .nav-cta.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
#header.scrolled .nav-cta.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-logo  { flex-shrink: 0; line-height: 0; }
.logo-img  { height: 54px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}
.nav-links a {
  color: var(--color-white);
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
}

#header.scrolled .nav-links a:hover,
#header.scrolled .nav-links a.active {
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.07);
}

.nav-cta   { flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Scroll Progress Bar ────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  z-index: 1001;
  transform-origin: left;
  transform: scaleX(0);
  box-shadow: 0 0 8px rgba(var(--color-primary-rgb), 0.5);
}

/* ════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Background layers */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(108deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.8) 34%, rgba(0, 0, 0, 0.52) 62%, rgba(18, 18, 18, 0.7) 100%),
    linear-gradient(160deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.45) 100%),
    url("../img/hero-office-building.jpg") center center / cover no-repeat;
  transform: scale(1.02);
}
/* Subtle micro-grid */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.24) 100%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 60px 60px, 60px 60px;
}
/* Ambient red glow + animated gradient accent */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 72% 88% at 94% 42%, rgba(var(--color-primary-rgb), 0.52) 0%, rgba(var(--color-primary-rgb), 0.2) 34%, transparent 68%),
    radial-gradient(ellipse 58% 70% at 48% 48%, rgba(var(--color-primary-rgb), 0.36) 0%, rgba(var(--color-primary-rgb), 0.14) 30%, transparent 62%),
    radial-gradient(ellipse 42% 56% at 6% 82%, rgba(15, 38, 51, 0.48) 0%, rgba(15, 38, 51, 0.2) 34%, transparent 66%);
  background-size: 240% 240%;
  filter: saturate(1.24) contrast(1.22);
  animation: heroGlow 14s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0%   { background-position: 8% 42%; transform: scale(1); }
  35%  { background-position: 92% 24%; transform: scale(1.035); }
  65%  { background-position: 56% 92%; transform: scale(1.06); }
  100% { background-position: 18% 58%; transform: scale(1.025); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-total-height) + 48px);
  padding-bottom: 140px;
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 22px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.12;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 540px;
  margin-bottom: 42px;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Hero entrance animation ───────────────────── */
.hero-content .hero-badge,
.hero-content .hero-subtitle,
.hero-content .hero-ctas {
  opacity: 0;
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-content .hero-badge    { animation-delay: 0.15s; }
.hero-content .hero-subtitle { animation-delay: 0.65s; }
.hero-content .hero-ctas     { animation-delay: 0.85s; }

.hero-line {
  display: block;
  opacity: 0;
  clip-path: inset(100% 0 0 0);
  animation: heroLineReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-line:nth-child(1) { animation-delay: 0.3s; }
.hero-line:nth-child(2) { animation-delay: 0.5s; }

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroLineReveal {
  from {
    opacity: 0;
    clip-path: inset(100% 0 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

/* Stats bar at the bottom of hero */
.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.hero-stats-grid {
  display: flex;
  justify-content: center;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 56px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}
.hero-stat:last-child { border-right: none; }

.hero-stat-icon { color: var(--color-primary); flex-shrink: 0; }

.hero-stat strong {
  display: block;
  font-family: var(--font-accent);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}
.hero-stat span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ════════════════════════════════════════════════════
   SERVICES
   ════════════════════════════════════════════════════ */
.clients-band {
  position: relative;
  padding: 0;
  margin: 0;
  overflow: hidden;
}




.clients-marquee {
  position: relative;
  overflow: hidden;
}

.clients-marquee::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--color-grey-light) 0%, transparent 15%, transparent 85%, var(--color-grey-light) 100%);
}

.clients-track {
  display: flex;
  width: max-content;
  animation: clientsMarquee 24s linear infinite;
  will-change: transform;
}

.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}

.clients-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(32px, 4vw, 56px);
  padding-right: clamp(32px, 4vw, 56px);
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(170px, 17vw, 230px);
  height: 88px;
  padding: 0 12px;
}

.client-logo--wide {
  min-width: clamp(220px, 21vw, 290px);
}

.client-logo img {
  width: auto;
  max-width: 100%;
  max-height: 48px;
  opacity: 0.62;
  filter: grayscale(1) brightness(0) invert(0.12);
  transition: transform 300ms ease, opacity 300ms ease, filter 300ms ease;
}

.client-logo:hover img {
  opacity: 0.9;
  transform: translateY(-2px);
  filter: grayscale(1) brightness(0) invert(0.12);
}

@keyframes clientsMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.services { background: var(--color-grey-light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  perspective: 1200px;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 0 44px 44px;
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  transition: box-shadow 0.4s ease, border-color var(--transition), transform 0.4s ease;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.service-card:hover {
  box-shadow: var(--shadow-hover);
  border-top-color: var(--color-primary);
}

.service-card-media {
  margin: 0 -44px 32px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #d8d8d8;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.service-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 500ms ease;
}

.service-card:hover .service-card-media img,
.service-card:hover .service-card-media video {
  transform: scale(1.04);
}

.service-card-icon {
  color: var(--color-primary);
  margin-bottom: 26px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--color-black);
}

.service-card > p {
  color: var(--color-grey-mid);
  line-height: 1.77;
  margin-bottom: 28px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 34px;
}
.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--color-dark);
}
.service-features li svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.service-cta {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--color-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition), gap var(--transition);
}
.service-cta:hover {
  color: var(--color-primary-dark);
  gap: 8px;
}

/* ════════════════════════════════════════════════════
   WHY US
   ════════════════════════════════════════════════════ */
.why-us { background: var(--color-grey-light); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-item {
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--color-white);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.why-item:hover {
  border-color: rgba(var(--color-primary-rgb), 0.25);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(var(--color-primary-rgb), 0.1);
}

.why-icon {
  color: var(--color-primary);
  margin-bottom: 18px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Icon micro-animations — triggered via JS observer on .why-grid */
.why-grid.icons-visible .why-item:nth-child(1) .why-icon { animation: iconPulse 0.8s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.why-grid.icons-visible .why-item:nth-child(2) .why-icon { animation: iconSpin 0.9s 0.22s cubic-bezier(0.16, 1, 0.3, 1) both; }
.why-grid.icons-visible .why-item:nth-child(3) .why-icon { animation: iconBounce 0.8s 0.34s cubic-bezier(0.16, 1, 0.3, 1) both; }
.why-grid.icons-visible .why-item:nth-child(4) .why-icon { animation: iconFlip 0.9s 0.46s cubic-bezier(0.16, 1, 0.3, 1) both; }
.why-grid.icons-visible .why-item:nth-child(5) .why-icon { animation: iconPulse 0.8s 0.58s cubic-bezier(0.16, 1, 0.3, 1) both; }
.why-grid.icons-visible .why-item:nth-child(6) .why-icon { animation: iconSpin 0.9s 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }

@keyframes iconPulse {
  0%   { transform: scale(0.4); opacity: 0; }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes iconSpin {
  0%   { transform: rotate(-180deg) scale(0.4); opacity: 0; }
  100% { transform: rotate(0deg) scale(1); opacity: 1; }
}
@keyframes iconBounce {
  0%        { transform: translateY(-30px) scale(0.6); opacity: 0; }
  60%       { transform: translateY(6px) scale(1.05); }
  100%      { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes iconFlip {
  0%   { transform: rotateY(180deg) scale(0.5); opacity: 0; }
  100% { transform: rotateY(0deg) scale(1); opacity: 1; }
}

.why-item h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 10px;
}

.why-item p {
  font-size: 0.885rem;
  color: var(--color-grey-mid);
  line-height: 1.72;
}

/* ════════════════════════════════════════════════════
   SECTORS
   ════════════════════════════════════════════════════ */
.gallery {
  background: var(--color-white);
  padding-top: 52px;
  scroll-margin-top: calc(var(--header-total-height) + 20px);
}

.gallery .container {
  max-width: 1416px;
}

.gallery-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.gallery-viewport {
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.gallery-track {
  display: flex;
  gap: 24px;
  transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.gallery-slide {
  position: relative;
  flex: 0 0 calc((100% - 48px) / 3);
  margin: 0;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: #d8d8d8;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(14, 28, 36, 0.12);
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.gallery-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 18, 25, 0.02) 25%, rgba(7, 18, 25, 0.68) 100%);
}

.gallery-slide figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  pointer-events: none;
  color: var(--color-white);
  font-family: var(--font-accent);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-slide-trigger {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: none;
  background: transparent;
  cursor: zoom-in;
}

.gallery-slide-trigger:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.gallery-slide:hover img {
  transform: scale(1.04);
}

.gallery-nav {
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(var(--color-primary-rgb), 0.08);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.gallery-nav:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
}

.gallery-nav:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  background: rgba(var(--color-primary-rgb), 0.18);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), width var(--transition);
}

.gallery-dot.active {
  width: 30px;
  background: var(--color-primary);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(8, 14, 20, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.gallery-lightbox.open {
  opacity: 1;
}

.gallery-lightbox-dialog {
  margin: 0;
  max-width: min(92vw, 1240px);
  max-height: calc(100vh - 80px);
  transform: translateY(16px) scale(0.98);
  transition: transform 240ms ease;
}

.gallery-lightbox.open .gallery-lightbox-dialog {
  transform: translateY(0) scale(1);
}

.gallery-lightbox-dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 148px);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.gallery-lightbox-dialog figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  font-family: var(--font-accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-lightbox-nav,
.gallery-lightbox-close {
  position: fixed;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.gallery-lightbox-nav:hover,
.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.gallery-lightbox-close {
  top: max(20px, calc(env(safe-area-inset-top) + 12px));
  right: max(20px, calc(env(safe-area-inset-right) + 12px));
}

.gallery-lightbox-nav--prev {
  top: 50%;
  left: max(20px, calc(env(safe-area-inset-left) + 12px));
  transform: translateY(-50%);
}

.gallery-lightbox-nav--next {
  top: 50%;
  right: max(20px, calc(env(safe-area-inset-right) + 12px));
  transform: translateY(-50%);
}

.gallery-lightbox-nav--prev:hover,
.gallery-lightbox-nav--next:hover {
  transform: translateY(calc(-50% - 1px));
}

.sectors { background: var(--color-white); }

.sectors-grid {
  display: flex;
  gap: 20px;
}

.sector-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 16px;
  border-radius: var(--radius);
  border: 1px solid #EBEBEB;
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease, flex 0.4s ease, padding 0.4s ease, background 0.4s ease;
  cursor: default;
  flex: 1 1 0;
}
.sector-item:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  flex: 1.35 1 0;
  background: var(--color-grey-light);
  padding: 32px 20px;
}

/* Sibling items compress on hover */
.sectors-grid:hover .sector-item:not(:hover) {
  flex: 0.9 1 0;
  opacity: 0.72;
  transform: scale(0.97);
}

.sector-icon {
  color: var(--color-primary);
  margin-bottom: 14px;
  transition: transform var(--transition);
}
.sector-item:hover .sector-icon {
  transform: scale(1.08);
}

.sector-item h5 {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}

.sector-desc {
  font-size: 0.75rem;
  color: var(--color-grey-mid);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease, margin-top 0.4s ease;
}
.sector-item:hover .sector-desc {
  max-height: 60px;
  opacity: 1;
  margin-top: 10px;
}

/* ════════════════════════════════════════════════════
   STATS & TESTIMONIALS
   ════════════════════════════════════════════════════ */
.stats-section {
  background: linear-gradient(140deg, #1B3A4B 0%, #264E62 25%, #0F2633 50%, #1B3A4B 75%, #264E62 100%);
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
  position: relative;
  overflow: hidden;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* Decorative circles */
.stats-section::before {
  content: '';
  position: absolute;
  top: -120px; left: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.stats-section::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -40px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.07);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 72px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 20px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.stat-item:last-child { border-right: none; }

.stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-accent);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1;
}

.stat-item > p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.testimonials-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.testimonials-grid {
  position: relative;
  z-index: 1;
  height: 280px;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 40px;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
}
.testimonial-card.exit {
  opacity: 0;
  transform: translateX(-40px);
}

/* Carousel dots */
.testimonial-nav {
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.testimonial-nav:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.testimonial-nav:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.carousel-dot.active {
  background: var(--color-white);
  border-color: var(--color-white);
  transform: scale(1.2);
}

.testimonial-quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 5.5rem;
  line-height: 0.65;
  color: rgba(255, 255, 255, 0.18);
  margin-bottom: 16px;
  font-style: normal;
  user-select: none;
}

.testimonial-card > p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem;
  font-style: italic;
  line-height: 1.78;
  margin-bottom: 26px;
}

.testimonial-author strong {
  display: block;
  color: var(--color-white);
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 3px;
  letter-spacing: 0.02em;
}
.testimonial-author span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
}

/* ════════════════════════════════════════════════════
   CONTACT MODAL
   ════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  background: var(--color-white);
  border-radius: 14px;
  width: 100%;
  max-width: 920px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(32px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--color-grey-light);
  color: var(--color-grey-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.modal-close:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  padding: 48px 48px 8px;
}
.modal-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 6px;
}
.modal-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  margin: 12px auto 0;
}
.modal-header p {
  color: var(--color-grey-mid);
  font-size: 0.95rem;
}

.modal-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding: 32px 48px 48px;
}

.modal-form-col { min-width: 0; }

.modal-info-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--color-grey-light);
  border-radius: var(--radius);
  padding: 32px 28px;
  align-self: start;
}

.modal-info-hint {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--color-dark);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

/* Contact info styles (reused in modal) */
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-icon--whatsapp { background: var(--color-whatsapp); }

.contact-info-item h4 {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--color-dark);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-info-item a {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
  transition: color var(--transition);
}
.contact-info-item a:hover { color: var(--color-primary-dark); }
.contact-info-item p {
  font-size: 0.82rem;
  color: var(--color-grey-mid);
  margin-top: 2px;
  line-height: 1.5;
}

/* WhatsApp button — force white text + icon */
.btn-whatsapp,
.contact-info-item .btn-whatsapp  {
  color: var(--color-white);
}
.btn-whatsapp svg { fill: var(--color-white); }

/* Body scroll lock when modal is open */
body.modal-open { overflow: hidden; }

/* ── Form Styles ────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.form-row .form-group { margin-bottom: 0; }

.contact-form label {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #E0E0E0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-black);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.12);
}
.contact-form input.error,
.contact-form select.error,
.contact-form textarea.error {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.12);
}
.contact-form textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23666' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid #c8e6c9;
}

/* ════════════════════════════════════════════════════
   SECTION DIVIDERS
   ════════════════════════════════════════════════════ */
.section-divider {
  position: relative;
  z-index: 5;
  line-height: 0;
  margin-top: -1px;
}
.section-divider svg {
  display: block;
  width: 100%;
  height: clamp(32px, 5vw, 64px);
}

/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */
.footer { background: #1C2A30; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1.4fr;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 48px;
}

.footer-logo {
  height: 62px;
  width: auto;
  margin-bottom: 16px;
  border-radius: 6px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.46);
  line-height: 1.72;
  max-width: 240px;
}

.footer-nav h5,
.footer-services h5,
.footer-contacts h5 {
  font-family: var(--font-accent);
  font-weight: 600;
  color: var(--color-white);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-nav ul,
.footer-services ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a,
.footer-services a {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-nav a:hover,
.footer-services a:hover { color: var(--color-primary); }

.footer-contacts p,
.footer-contacts a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.46);
  margin-bottom: 8px;
  display: block;
  transition: color var(--transition);
}
.footer-contacts a:hover { color: var(--color-primary); }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.55) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  margin-bottom: 0 !important;
}
.footer-social a:hover {
  background: var(--color-primary);
  color: var(--color-white) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
}
.footer-bottom a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.38);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--color-primary); }

/* ════════════════════════════════════════════════════
   WHATSAPP FAB
   ════════════════════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 990;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 22px rgba(37, 211, 102, 0.42);
  animation: pulse-wa 2.8s infinite;
  transition: transform var(--transition), box-shadow var(--transition), animation 0s;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.58);
  animation: none;
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 22px rgba(37, 211, 102, 0.42); }
  50%       { box-shadow: 0 4px 22px rgba(37, 211, 102, 0.42), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

.whatsapp-tooltip {
  position: absolute;
  right: 74px;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--color-black);
  border-right: none;
}
.whatsapp-fab:hover .whatsapp-tooltip { opacity: 1; }

/* ════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1100px)
   ════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .client-logo--wide { min-width: clamp(200px, 26vw, 260px); }
  .services-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sectors-grid   { flex-wrap: wrap; }
  .sectors-grid .sector-item { flex: 1 1 calc(33.33% - 14px); min-width: calc(33.33% - 14px); }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-stat      { padding: 22px 36px; }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — Tablet portrait (≤ 992px)
   ════════════════════════════════════════════════════ */
@media (max-width: 992px) {
  :root { --section-padding: 80px 0; }

  .services-grid     { grid-template-columns: 1fr; }
  .why-grid          { grid-template-columns: 1fr 1fr; }
  .stats-grid        { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { height: 300px; }

  .modal-body { grid-template-columns: 1fr; gap: 28px; }

  /* Re-do stat borders for 2-col layout */
  .stat-item { border-right: none; }
  .stat-item:nth-child(odd)  { border-right: 1px solid rgba(255, 255, 255, 0.2); }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 0;
  }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 768px)
   ════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --header-height: 68px;
    --section-padding: 64px 0;
  }

  /* Header / Hamburger */
  .nav-links {
    position: fixed;
    top: var(--header-total-height);
    left: 0; right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a { padding: 12px 16px; font-size: 0.92rem; color: var(--color-black); }
  .nav-links a:hover, .nav-links a.active { color: var(--color-primary); }
  .nav-cta    { display: none; }
  .hamburger  { display: flex; }

  /* Hero */
  .hero-content {
    max-width: 100%;
    text-align: center;
    padding-top: calc(var(--header-total-height) + 24px);
    padding-bottom: 252px;
  }
  .hero-badge    { display: none; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-ctas     { justify-content: center; flex-direction: column; align-items: center; }
  .hero-stats-grid { flex-direction: column; }
  .hero-stat {
    border-right: none;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
  }
  .hero-stat:last-child { border-bottom: none; }

  /* Sections */
  .clients-band { padding: 0; margin: 0; }
  .clients-group { gap: 28px; padding-right: 28px; }
  .client-logo,
  .client-logo--wide { min-width: 150px; height: 72px; }
  .client-logo img { max-height: 38px; }
  .gallery { padding-top: 40px; }
  .gallery-carousel { grid-template-columns: 1fr; gap: 16px; }
  .gallery-track { gap: 18px; }
  .gallery-slide { flex-basis: 100%; }
  .gallery-nav { display: none; }
  .testimonials-shell { grid-template-columns: 1fr; gap: 0; }
  .testimonial-nav { display: none; }
  .gallery-lightbox { padding: 68px 16px 16px; }
  .gallery-lightbox-dialog { max-width: 100%; max-height: calc(100vh - 52px); }
  .gallery-lightbox-dialog img { max-height: calc(100vh - 110px); border-radius: 14px; }
  .gallery-lightbox-nav { width: 44px; height: 44px; }
  .gallery-lightbox-nav--prev { left: max(10px, calc(env(safe-area-inset-left) + 6px)); }
  .gallery-lightbox-nav--next { right: max(10px, calc(env(safe-area-inset-right) + 6px)); }
  .gallery-lightbox-close { top: max(12px, calc(env(safe-area-inset-top) + 8px)); right: max(12px, calc(env(safe-area-inset-right) + 8px)); width: 44px; height: 44px; }
  .section-header  { margin-bottom: 48px; }
  .service-card    { padding: 0 28px 32px; }
  .service-card-media { margin: 0 -28px 28px; }
  .why-grid        { grid-template-columns: 1fr; }
  .sectors-grid    { flex-wrap: wrap; }
  .sectors-grid .sector-item { flex: 1 1 calc(50% - 10px); min-width: calc(50% - 10px); }
  .stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,0.2); } 

  /* Form row stacks on mobile */
  .form-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
  .form-row .form-group { margin-bottom: 18px; }

  /* Modal mobile */
  .modal-overlay { padding: 12px; }
  .modal { max-height: calc(100vh - 24px); border-radius: 12px; }
  .modal-header { padding: 40px 24px 4px; }
  .modal-body { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .modal-info-col { padding: 24px 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 52px; padding-bottom: 36px; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }

  /* WhatsApp FAB */
  .whatsapp-fab  { bottom: 24px; right: 24px; width: 56px; height: 56px; }
  .whatsapp-tooltip { display: none; }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — Small mobile (≤ 480px)
   ════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .btn-lg { padding: 15px 26px; font-size: 0.95rem; }
  .clients-marquee::before {
    background:
      linear-gradient(90deg, rgba(247, 245, 242, 1) 0%, rgba(247, 245, 242, 0) 9%, rgba(247, 245, 242, 0) 91%, rgba(247, 245, 242, 1) 100%),
      radial-gradient(circle at 50% 50%, rgba(255, 248, 231, 0.88) 0%, rgba(255, 248, 231, 0.42) 14%, rgba(255, 248, 231, 0) 36%);
  }
  .hero-content { padding-bottom: 272px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .sectors-grid .sector-item { flex: 1 1 calc(50% - 7px); min-width: calc(50% - 7px); }
  .stats-grid   { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; }
  .clients-marquee:hover .clients-track { animation-play-state: running; }
}
