/* ==========================================================================
   Sunshield Manpower — Global Stylesheet
   ========================================================================== */

:root {
  /* Brand palette derived from the Sunshield logo */
  --navy: #1a1c7a;        /* "SUNSHIELD" deep indigo-blue — primary brand ink */
  --navy-dark: #121253;   /* "MANPOWER" darkest navy — dark section backgrounds */
  --blue: #007bda;        /* emblem bright azure — accent, links, buttons */
  --blue-light: #3fa0ec;  /* lighter azure */
  --gold: #f5a623;
  --gold-light: #ffc857;
  --gray-100: #f6f7fc;
  --gray-200: #eceef7;
  --gray-400: #a7adc7;
  --gray-600: #5a6079;
  --white: #ffffff;
  --dark-text: #1a1c40;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 14px rgba(26, 28, 122, 0.08);
  --shadow-md: 0 10px 30px rgba(26, 28, 122, 0.12);
  --shadow-lg: 0 20px 50px rgba(26, 28, 122, 0.18);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: "Segoe UI", "Segoe UI Semibold", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--navy); font-weight: 700; }

.section { padding: 90px 0; position: relative; }
.section-alt { background: var(--gray-100); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,123,218, 0.08);
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.section-tag i { color: var(--gold); }

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-title span { color: var(--blue); position: relative; }
.section-sub {
  color: var(--gray-600);
  font-size: 16.5px;
  max-width: 680px;
  margin-bottom: 40px;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn-primary, .btn-outline, .btn-quote {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-dark);
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(245, 166, 35, 0.45); }
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-quote {
  background: var(--navy);
  color: var(--white);
  padding: 12px 26px;
  font-size: 14px;
}
.btn-quote:hover { background: var(--blue); transform: translateY(-2px); }

/* ==========================================================================
   Preloader
   ========================================================================== */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader-shield {
  font-size: 54px;
  color: var(--gold);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.6; }
}

/* ==========================================================================
   Topbar
   ========================================================================== */
.topbar {
  background: var(--navy-dark);
  color: var(--gray-400);
  font-size: 13.5px;
  padding: 9px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar a { color: var(--gray-400); transition: var(--transition); }
.topbar a:hover { color: var(--gold-light); }
.topbar i { color: var(--gold-light); margin-right: 6px; }
.topbar-social { display: flex; gap: 10px; margin-left: 6px; }
.topbar-social a {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.topbar-social a:hover { background: var(--gold); color: var(--navy-dark); }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 21px; color: var(--navy); }
.logo-icon { color: var(--gold); font-size: 26px; }
.logo-accent { color: var(--blue); }
.logo-img { height: 80px; width: auto; display: block; }

/* Footer logo sits on a small white panel so the dark wordmark stays legible on the dark footer */
.logo-footer {
  display: inline-flex;
  background: var(--white);
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.logo-footer .logo-img { height: 88px; }

.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-links > a {
  padding: 10px 16px;
  font-weight: 500;
  color: var(--dark-text);
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  font-size: 15px;
  display: flex; align-items: center; gap: 6px;
}
.nav-links > a:hover, .nav-links > a.active { color: var(--blue); background: rgba(0,123,218,0.06); }
.nav-links > a i { font-size: 11px; }

.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 115%; left: 0;
  background: var(--white);
  min-width: 260px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 8px;
  font-size: 14.5px; color: var(--dark-text);
  transition: var(--transition);
}
.dropdown-menu a i { color: var(--blue); width: 18px; }
.dropdown-menu a:hover { background: var(--gray-100); color: var(--blue); padding-left: 18px; }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 30px; }
.hamburger span { height: 3px; width: 100%; background: var(--navy); border-radius: 3px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero (Home)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  background: var(--navy-dark) url('../images/hero-bg.svg') center/cover no-repeat;
  overflow: hidden;
  padding-top: 60px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(63,160,236,0.25), transparent 40%),
                     radial-gradient(circle at 80% 70%, rgba(245,166,35,0.18), transparent 45%);
}
.hero-particles { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-particles span {
  position: absolute;
  bottom: -50px;
  display: block;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(-110vh) translateX(40px); opacity: 0; }
}

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--gold-light);
  padding: 8px 18px; border-radius: 50px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.5px;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
}
.hero h1, .hero-slide h1 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.18;
  margin-bottom: 22px;
}
.hero h1 .highlight, .hero-slide h1 .highlight {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p, .hero-slide p { color: var(--gray-400); font-size: 17px; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 50px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats .stat-num { color: var(--gold-light); font-size: 32px; font-weight: 800; font-family: var(--font-heading); }
.hero-stats .stat-label { color: var(--gray-400); font-size: 13.5px; }

.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  animation: floatCard 5s ease-in-out infinite;
}
@keyframes floatCard { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-16px);} }
.hero-visual-card i { font-size: 60px; color: var(--gold); margin-bottom: 20px; }
.hero-visual-card h3 { color: var(--white); font-size: 22px; margin-bottom: 10px; }
.hero-visual-card p { color: var(--gray-400); font-size: 14.5px; margin: 0; }
.floating-chip {
  position: absolute;
  background: var(--white);
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 14px; color: var(--navy);
  animation: floatChip 4s ease-in-out infinite;
}
.floating-chip i { color: var(--blue); font-size: 20px; }
.chip1 { top: 0; right: -10px; animation-delay: 0.3s; }
.chip2 { bottom: 10px; left: -20px; animation-delay: 1s; }
@keyframes floatChip { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }

.hero-wave { position: absolute; bottom: -2px; left: 0; width: 100%; line-height: 0; z-index: 3; }

/* ==========================================================================
   Hero Slider
   ========================================================================== */
.hero-slider {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  background: var(--navy-dark);
}
.hero-slides { position: relative; min-height: 92vh; }
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  background-color: var(--navy-dark);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding-top: 60px;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.06);
  transition: opacity 1s ease, transform 6s ease, visibility 1s ease;
  z-index: 1;
}
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(18,18,83,0.86) 0%, rgba(26,28,122,0.68) 50%, rgba(18,18,83,0.52) 100%);
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}
.hero-slide .hero-inner { position: relative; z-index: 2; display: block; }
.hero-slide .hero-content { max-width: 720px; }

/* slide-in animation for active slide content.
   Only the ACTIVE slide's content starts hidden then animates in — so if JS/animation
   fails, non-active slides are hidden by the parent (.hero-slide) opacity anyway, and the
   active slide always ends visible. */
.hero-slide.active .hero-badge,
.hero-slide.active h1,
.hero-slide.active p,
.hero-slide.active .hero-actions { opacity: 0; transform: translateY(30px); }
.hero-slide.active .hero-badge { animation: heroUp 0.7s ease forwards 0.3s; }
.hero-slide.active h1 { animation: heroUp 0.7s ease forwards 0.5s; }
.hero-slide.active p { animation: heroUp 0.7s ease forwards 0.7s; }
.hero-slide.active .hero-actions { animation: heroUp 0.7s ease forwards 0.9s; }
@keyframes heroUp { to { opacity: 1; transform: translateY(0); } }

/* Safety: if animations are disabled (reduced motion), show content immediately */
@media (prefers-reduced-motion: reduce) {
  .hero-slide.active .hero-badge,
  .hero-slide.active h1,
  .hero-slide.active p,
  .hero-slide.active .hero-actions { opacity: 1; transform: none; animation: none; }
}

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  color: var(--white); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  z-index: 5; transition: var(--transition);
}
.hero-arrow:hover { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }

.hero-dots {
  position: absolute; bottom: 90px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 12px; z-index: 5;
}
.hero-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: var(--transition);
}
.hero-dot.active { background: var(--gold); width: 34px; border-radius: 7px; }

/* ==========================================================================
   Marquee / Trust bar
   ========================================================================== */
.marquee-section { background: var(--navy); padding: 22px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 60px; white-space: nowrap; animation: marquee 25s linear infinite; width: max-content; }
.marquee-track span { color: var(--gray-400); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.marquee-track span i { color: var(--gold); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   About snippet / Company overview
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.about-visual { position: relative; }
.about-visual-img {
  position: relative; z-index: 2;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-visual-img img { width: 100%; height: auto; display: block; }
.about-visual-main {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: var(--radius);
  padding: 50px 30px;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}
.about-visual-main i { font-size: 70px; color: var(--gold-light); margin-bottom: 16px; }
.about-visual-main h3 { color: var(--white); font-size: 26px; }
.about-visual-main p { color: var(--gray-400); margin-top: 8px; }
.about-badge {
  position: absolute; bottom: -30px; right: -20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px 26px;
  text-align: center;
  z-index: 3;
}
.about-badge .num { font-size: 30px; font-weight: 800; color: var(--gold); font-family: var(--font-heading); }
.about-badge .label { font-size: 13px; color: var(--gray-600); }

.feature-list { display: grid; gap: 20px; margin-top: 30px; }
.feature-item { display: flex; gap: 18px; align-items: flex-start; }
.feature-icon {
  min-width: 54px; height: 54px; border-radius: 14px;
  background: rgba(0,123,218,0.08);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  transition: var(--transition);
}
.feature-item:hover .feature-icon { background: var(--blue); color: var(--white); transform: rotate(-8deg) scale(1.05); }
.feature-item h4 { font-size: 17px; margin-bottom: 4px; }
.feature-item p { color: var(--gray-600); font-size: 14.5px; margin: 0; }

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* --- Service card -------------------------------------------------------- */
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  display: flex;              /* equal heights, link pinned to the bottom */
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s ease;
}

/* Media: photo with a gradient scrim so the overlaid label stays readable. */
.service-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-200);
}
.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(18, 18, 83, 0.82) 0%,
    rgba(18, 18, 83, 0.34) 42%,
    rgba(18, 18, 83, 0.04) 100%
  );
  transition: opacity 0.35s ease;
}
.service-card:hover .service-card-media img { transform: scale(1.07); }
.service-card:hover .service-card-media::after { opacity: 0.88; }

/* Icon chip — sits fully inside the media box, so nothing is ever clipped. */
.service-card-media .service-icon {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin: 0;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(18, 18, 83, 0.28);
  z-index: 2;
}
.service-card:hover .service-card-media .service-icon {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
  transform: none;                 /* no rotation — keeps icons legible */
}

/* Title overlaid on the photo: strong hierarchy, frees up body space. */
.service-card-media h3 {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  margin: 0;
  z-index: 2;
  color: var(--white);
  font-size: 18px;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Body */
.service-card-body {
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;                        /* pushes the link to the bottom edge */
}
.service-card p {
  color: var(--gray-600);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 16px;
}

.service-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;               /* aligns links across every card */
  align-self: flex-start;
}
.service-link i { transition: transform 0.3s ease; }
.service-card:hover .service-link i { transform: translateX(5px); }

/* Accent bar sweeps in on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

/* Keyboard focus should look the same as hover. */
.service-card:focus-within {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:focus-within::before { transform: scaleX(1); }
.service-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Shared icon base (also used elsewhere on the site). */
.service-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,123,218,0.1), rgba(245,166,35,0.1));
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 22px;
  transition: var(--transition);
}

/* Detailed service block (services.php) */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 70px 0;
  border-bottom: 1px solid var(--gray-200);
  scroll-margin-top: 110px;
}
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse .service-detail-media { order: 2; }
.service-detail-media {
  position: relative;
  border-radius: var(--radius);
  min-height: 320px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.service-detail-media img {
  width: 100%; height: 100%; min-height: 320px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-detail:hover .service-detail-media img { transform: scale(1.05); }
.service-detail-media .media-icon {
  position: absolute;
  top: 20px; right: 20px;
  width: 60px; height: 60px;
  border-radius: 16px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 26px;
}
.service-detail-body .num-tag {
  font-size: 14px; font-weight: 700; color: var(--gold);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; display: block;
}
.service-detail-body h2 { font-size: 30px; margin-bottom: 16px; }
.service-detail-body p { color: var(--gray-600); margin-bottom: 20px; }
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--dark-text); }
.check-list i { color: var(--blue); background: rgba(0,123,218,0.1); width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }

/* Individual service page hero grid */
.service-single-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 55px;
  align-items: center;
}
.service-single-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 360px;
}
.service-single-media img {
  width: 100%; height: 100%; min-height: 360px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-single-media:hover img { transform: scale(1.05); }
.service-single-media .media-icon {
  position: absolute;
  top: 22px; right: 22px;
  width: 64px; height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 28px;
}
.service-single-body .check-list { grid-template-columns: 1fr 1fr; }

/* ==========================================================================
   Stats / Counters
   ========================================================================== */
.stats-section {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 70px 0;
  position: relative;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-box i { font-size: 30px; color: var(--gold-light); margin-bottom: 14px; }
.stat-box .counter { font-size: 42px; font-weight: 800; color: var(--white); font-family: var(--font-heading); }
.stat-box .counter-label { color: var(--gray-400); font-size: 14.5px; margin-top: 6px; }

/* ==========================================================================
   Network / Offices
   ========================================================================== */
.offices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.office-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  transition: var(--transition);
  border-top: 4px solid transparent;
}
.office-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-8px); border-top-color: var(--gold); }
.office-card .office-tag {
  display: inline-block; background: rgba(0,123,218,0.08); color: var(--blue);
  padding: 5px 14px; border-radius: 50px; font-size: 12px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px;
}
.office-card h3 { font-size: 20px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.office-card h3 i { color: var(--gold); }
.office-card address { font-style: normal; color: var(--gray-600); font-size: 14.5px; margin-bottom: 14px; line-height: 1.7; }
.office-card .office-phone { display: flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; font-size: 15px; }
.office-card .office-phone i { color: var(--blue); }

.network-summary { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; margin-bottom: 60px; }
.network-summary .item { text-align: center; }
.network-summary .item .big { font-size: 48px; font-weight: 800; color: var(--blue); font-family: var(--font-heading); }
.network-summary .item .small { color: var(--gray-600); font-weight: 600; }

/* ==========================================================================
   Certificates
   ========================================================================== */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cert-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}
.cert-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-lg); }
.cert-badge {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  font-size: 38px; color: var(--navy-dark);
  box-shadow: 0 10px 25px rgba(245,166,35,0.35);
}
.cert-card h3 { font-size: 19px; margin-bottom: 10px; }
.cert-card p { color: var(--gray-600); font-size: 14px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.testimonial-stars { color: var(--gold); margin-bottom: 14px; font-size: 14px; }
.testimonial-card p.quote { color: var(--gray-600); font-size: 15px; margin-bottom: 22px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px;
}
.testimonial-author h5 { font-size: 15px; margin-bottom: 2px; }
.testimonial-author span { font-size: 13px; color: var(--gray-600); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

/* ==========================================================================
   CTA Strip
   ========================================================================== */
.cta-strip {
  background: linear-gradient(135deg, var(--blue), var(--navy));
  border-radius: var(--radius);
  margin: 0 24px;
  max-width: 1152px;
  margin-inline: auto;
  padding: 46px 50px;
  position: relative;
  overflow: hidden;
  top: 60px;
  z-index: 5;
}
.cta-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-strip h3 { color: var(--white); font-size: 24px; margin-bottom: 6px; }
.cta-strip p { color: var(--gray-400); margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy-dark); color: var(--gray-400); padding-top: 130px; position: relative; overflow: hidden; }
.footer-shapes { position: absolute; inset: 0; z-index: 0; }
.footer-shapes .shape { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.03); }
.shape1 { width: 300px; height: 300px; top: -100px; right: -100px; }
.shape2 { width: 200px; height: 200px; bottom: -50px; left: -50px; }

.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer .logo { color: var(--white); margin-bottom: 18px; }
.footer-about p { font-size: 14.5px; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--navy-dark); transform: translateY(-4px); }

.footer-col h4 { color: var(--white); font-size: 17px; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 36px; height: 3px; background: var(--gold); border-radius: 3px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col ul a { font-size: 14.5px; display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.footer-col ul a i { font-size: 10px; color: var(--gold); }
.footer-col ul a:hover { color: var(--white); padding-left: 4px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.footer-contact i { color: var(--gold); margin-top: 4px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; position: relative; z-index: 1; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; }
.footer-bottom i { color: #e63946; }

/* Back to top */
#backToTop {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: var(--transition);
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: var(--gold); color: var(--navy-dark); }

/* Floating WhatsApp chat button (site-wide) */
.wa-float {
  position: fixed; bottom: 88px; right: 28px; z-index: 500;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
  animation: waPulse 2.4s ease-in-out infinite;
}
.wa-float:hover { background: #1ebe5b; transform: scale(1.08); color: #fff; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 0 0 12px rgba(37,211,102,0.12); }
}

/* WhatsApp send button inside the contact form */
.btn-whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  background: #25d366; color: #fff;
  padding: 14px 28px; border-radius: 50px;
  font-weight: 600; font-size: 15px;
  margin-bottom: 20px;
  transition: var(--transition);
}
.btn-whatsapp i { font-size: 20px; }
.btn-whatsapp:hover { background: #1ebe5b; transform: translateY(-2px); color: #fff; }

/* ==========================================================================
   Page Header (inner pages)
   ========================================================================== */
.page-header {
  background-color: var(--navy-dark);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 140px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header-overlay {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,18,83,0.68), rgba(18,18,83,0.82));
  z-index: 1;
}
.page-header-inner { position: relative; z-index: 2; }
.page-header h1 { color: var(--white); font-size: clamp(30px, 4.5vw, 46px); margin-bottom: 14px; }
.breadcrumb { display: flex; justify-content: center; gap: 10px; color: var(--gray-400); font-size: 14.5px; }
.breadcrumb a { color: var(--gray-400); transition: var(--transition); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .sep { color: var(--gray-400); }
.breadcrumb .current { color: var(--gold-light); font-weight: 600; }

/* ==========================================================================
   Team Gallery
   ========================================================================== */
.team-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 20px;
}
.team-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}
.team-item-lg { grid-column: span 2; grid-row: span 2; }
.team-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.team-item:hover { box-shadow: var(--shadow-lg); }
.team-item:hover img { transform: scale(1.06); }
.team-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(18,18,83,0.85));
  color: var(--white);
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  opacity: 0; transform: translateY(10px);
  transition: var(--transition);
}
.team-item:hover .team-caption { opacity: 1; transform: translateY(0); }
.team-caption i { color: var(--gold-light); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(6, 8, 40, 0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 30px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 92vw; max-height: 82vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-caption {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: var(--white); font-size: 15px; font-weight: 600;
  background: rgba(0,0,0,0.4); padding: 8px 20px; border-radius: 50px;
}
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white); border-radius: 50%;
  width: 48px; height: 48px; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--gold); color: var(--navy-dark); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  display: flex; gap: 18px;
  margin-bottom: 20px;
  transition: var(--transition);
}
.contact-info-card:hover { box-shadow: var(--shadow-md); transform: translateX(6px); }
.contact-info-card .icon {
  min-width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.contact-info-card h4 { font-size: 16.5px; margin-bottom: 6px; }
.contact-info-card p, .contact-info-card a { color: var(--gray-600); font-size: 14.5px; display: block; }

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14.5px;
  transition: var(--transition);
  background: var(--gray-100);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue); background: var(--white);
  box-shadow: 0 0 0 4px rgba(0,123,218,0.1);
}
.form-msg { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14.5px; font-weight: 500; }
.form-msg.success { background: rgba(34,197,94,0.1); color: #16803c; border: 1px solid rgba(34,197,94,0.3); }
.form-msg.error { background: rgba(239,68,68,0.1); color: #b91c1c; border: 1px solid rgba(239,68,68,0.3); }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); margin-top: 60px; }
.map-wrap iframe { width: 100%; height: 400px; border: 0; display: block; }

/* ==========================================================================
   Information Available page
   ========================================================================== */
.info-list { display: grid; gap: 18px; }
.info-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  display: flex; align-items: center; gap: 18px;
  transition: var(--transition);
}
.info-item:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateX(6px); }
.info-item .info-num {
  min-width: 42px; height: 42px; border-radius: 10px;
  background: rgba(0,123,218,0.08); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-heading);
}
.info-item p { margin: 0; font-size: 15px; }

/* ==========================================================================
   About page extras
   ========================================================================== */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card { text-align: center; padding: 34px 22px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); transition: var(--transition); }
.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.value-card i { font-size: 36px; color: var(--gold); margin-bottom: 16px; }
.value-card h4 { font-size: 17px; margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--gray-600); margin: 0; }

.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--gray-200); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item::before {
  content: ''; position: absolute; left: -34px; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold); border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item h4 { font-size: 17px; margin-bottom: 6px; }
.timeline-item p { color: var(--gray-600); font-size: 14.5px; margin: 0; }

/* ==========================================================================
   Animations (fallback for AOS)
   ========================================================================== */
[data-aos] { transition-property: transform, opacity; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid, .cert-grid, .testimonials-grid, .offices-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail.reverse .service-detail-media { order: 0; }
  .service-single-grid { grid-template-columns: 1fr; }
  .service-single-body .check-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 300px; max-width: 85vw;
    background: var(--white); flex-direction: column; align-items: flex-start;
    padding: 100px 30px 30px; box-shadow: var(--shadow-lg);
    transition: right 0.4s ease; z-index: 999; overflow-y: auto;
  }
  .nav-links.open { right: 0; }
  .nav-links > a { width: 100%; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; margin-left: 10px; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .hamburger { display: flex; }
  .btn-quote { display: none; }
  .topbar-right .topbar-social { display: none; }
  .hero-arrow { width: 44px; height: 44px; font-size: 15px; }
  .hero-prev { left: 10px; }
  .hero-next { right: 10px; }
  .hero-slide .hero-content { text-align: center; margin: 0 auto; }
  .hero-slide .hero-actions { justify-content: center; }
  .hero-dots { bottom: 70px; }
}

@media (max-width: 768px) {
  .services-grid, .cert-grid, .testimonials-grid, .offices-grid, .value-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-strip-inner { text-align: center; justify-content: center; }
  .network-summary { gap: 30px; }

  /* Tighter vertical rhythm on tablets/large phones */
  .section { padding: 60px 0; }
  .hero-slider, .hero-slides, .hero-slide { min-height: 78vh; }
  .page-header { padding: 110px 0 60px; }
  .topbar { font-size: 12.5px; }
  .contact-form-card { padding: 26px; }
  .map-wrap iframe { height: 320px; }

  /* Team gallery: 2 columns, uniform tiles */
  .team-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .team-item-lg { grid-column: span 2; grid-row: span 1; }
}

/* Small phones */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }

  /* Topbar: keep it compact, drop secondary items */
  .topbar-left, .topbar-right { gap: 12px; }
  .topbar-right span:first-child { display: none; }

  .logo-img { height: 60px; }
  .logo-footer .logo-img { height: 70px; }

  .hero-slider, .hero-slides, .hero-slide { min-height: 82vh; }
  .hero h1, .hero-slide h1 { font-size: 27px; line-height: 1.25; }
  .hero p, .hero-slide p { font-size: 15px; }
  .hero-actions .btn-primary, .hero-actions .btn-outline { width: 100%; justify-content: center; }
  .hero-actions { width: 100%; }
  .hero-arrow { display: none; }               /* rely on swipe + dots on tiny screens */
  .hero-dots { bottom: 56px; }

  .section-title { font-size: 24px; }
  .section-sub { font-size: 15px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stat-box .counter { font-size: 34px; }

  .page-header { padding: 100px 0 50px; }
  .page-header h1 { font-size: 28px; }
  .breadcrumb { font-size: 13px; flex-wrap: wrap; }

  /* Service single/detail media not too tall on phones */
  .service-single-media, .service-single-media img,
  .service-detail-media, .service-detail-media img { min-height: 240px; }

  .btn-primary, .btn-outline, .btn-quote { padding: 13px 24px; font-size: 14px; }
  .cta-strip { padding: 34px 24px; }
  .cta-strip h3 { font-size: 20px; }

  .contact-info-card { flex-direction: column; gap: 12px; }
  .map-wrap iframe { height: 260px; }

  /* Team gallery: single column on phones */
  .team-gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .team-item-lg { grid-column: span 1; grid-row: span 1; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }

  /* Prevent overflow on long office addresses / emails */
  .office-card address, .footer-contact li, .contact-info-card a { word-break: break-word; }
}

/* ==========================================================================
   Mobile overflow fixes
   Three confirmed causes of sideways scrolling on phones:
     1. .about-badge sits at right:-20px, pushing past its parent
     2. Form controls keep their intrinsic width (min-width:auto) inside a
        grid, so they refuse to shrink below ~261px
     3. Long unbroken strings (emails, URLs) can widen their container
   ========================================================================== */

/* Form controls must never exceed their column. */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-width: 0;          /* override the intrinsic min-width inside grid/flex */
  max-width: 100%;
}
.form-row > .form-group,
.contact-form-card,
.contact-form-card form { min-width: 0; }

@media (max-width: 860px) {
  /* Keep the floating badge inside the viewport on phones and tablets. */
  .about-badge {
    right: 0;
    bottom: -22px;
    padding: 16px 20px;
  }
  .about-badge .num { font-size: 26px; }

  /* Long email addresses and URLs shouldn't stretch their container. */
  .contact-info-card a,
  .footer-col a,
  .info-item p,
  .office-card address { overflow-wrap: anywhere; }
}

@media (max-width: 480px) {
  .about-badge {
    position: static;             /* stack it under the visual instead */
    display: inline-block;
    margin-top: 18px;
  }
  .about-visual { text-align: center; }
  .about-visual-main { padding: 40px 22px; }
  .about-visual-main h3 { font-size: 22px; }
  .about-visual-main i { font-size: 54px; }
}

/* Belt-and-braces: nothing should ever create a horizontal scrollbar. */
html { overflow-x: hidden; }

/* ==========================================================================
   Touch target sizes (phones/tablets)
   Visuals stay identical — the tappable area is enlarged with padding and
   invisible pseudo-elements so small controls are comfortable to hit.
   ========================================================================== */
@media (max-width: 860px) {
  /* Hero dots: keep the 12px look, give them a 44px hit area. */
  .hero-dots { gap: 4px; }
  .hero-dot { position: relative; }
  .hero-dot::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
  }

  /* Hamburger: pad out to a full 44px square. */
  .hamburger {
    width: 44px; height: 44px;
    justify-content: center;
    align-items: center;
    padding: 0;
  }
  .hamburger span { width: 26px; }

  /* Phone/email links in the top bar and "Learn More" links. */
  .topbar a { display: inline-flex; align-items: center; padding: 6px 0; }
  .service-link { padding: 8px 0; }

  /* Nav items in the slide-out menu. */
  .nav-links > a,
  .dropdown-menu a { padding-top: 12px; padding-bottom: 12px; }
}

/* The decorative wave sits above the slider dots; let taps pass through it. */
.hero-wave { pointer-events: none; }

/* ==========================================================================
   Service cards — responsive behaviour
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid { gap: 22px; }
  .service-card-media h3 { font-size: 17px; }
}

@media (max-width: 768px) {
  .service-card-media { aspect-ratio: 16 / 9; }
  .service-card-body { padding: 16px 18px 18px; }
}

@media (max-width: 480px) {
  .services-grid { gap: 18px; }
  .service-card-media { aspect-ratio: 3 / 2; }
  .service-card-media h3 { font-size: 17.5px; left: 16px; right: 16px; }
  .service-card-media .service-icon { width: 40px; height: 40px; font-size: 16px; }
  .service-card p { font-size: 14px; }
  /* Touch devices get no hover, so keep the lift subtle. */
  .service-card:hover { transform: none; }
}

/* Respect users who prefer less motion. */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card-media img,
  .service-link i { transition: none !important; }
  .service-card:hover { transform: none; }
  .service-card:hover .service-card-media img { transform: none; }
}
