/* ============================================================
   MAHI SAFETY SOLUTIONS — style.css
   ------------------------------------------------------------
   Sections:
   0.  Colour theme + tokens (EDIT COLOURS HERE)
   1.  Base / reset
   2.  Reusable helpers (buttons, headings, reveal)
   3.  Top bar
   4.  Header / navbar
   5.  Hero carousel
   6.  Marquee
   7.  About
   8.  Services
   9.  Why choose us
   10. How it works
   11. Gallery
   12. FAQ
   13. Testimonials
   14. Contact
   15. Footer
   16. Floating buttons + back-to-top
   17. Colour-sweep animation
   18. Responsive
   ============================================================ */

/* ============================================================
   0. COLOUR THEME — CHANGE THESE VARIABLES TO RE-SKIN THE SITE
   ============================================================ */
:root {
  /* --- Brand palette (edit freely) --- */
  --c-primary: #12395a;
  /* deep steel navy — trust & security */
  --c-primary-dark: #0d2b45;
  --c-secondary: #0f8f86;
  /* teal — clean, fresh air */
  --c-accent: #f5a524;
  /* safety amber — CTAs & highlights */
  --c-accent-dark: #e0900f;

  /* --- Neutrals --- */
  --c-ink: #16202b;
  /* primary text */
  --c-muted: #5c6b78;
  /* secondary text */
  --c-line: #e5ebf0;
  /* borders */
  --c-white: #ffffff;

  /* --- Section backgrounds (subtle variation, not one flat colour) --- */
  --c-bg: #ffffff;
  --c-bg-tint: #f3f7fb;
  /* cool light */
  --c-bg-tint2: #eef7f5;
  /* light teal */

  /* --- Type --- */
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* --- Shape & motion --- */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 6px 18px rgba(18, 57, 90, .08);
  --shadow-md: 0 14px 34px rgba(18, 57, 90, .12);
  --shadow-lg: 0 24px 60px rgba(18, 57, 90, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --container-pad: clamp(1rem, 3vw, 2rem);
}

/* ============================================================
   1. BASE / RESET
   ============================================================ */
* {
  box-sizing: border-box;
}

html,
body {
  /* prevents any decorative element from creating a horizontal scrollbar */
  overflow-x: clip;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.18;
  color: var(--c-primary);
}

p {
  margin: 0 0 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--c-accent);
  color: #fff;
}

/* ============================================================
   2. REUSABLE HELPERS
   ============================================================ */
.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  position: relative;
}

.section--tint {
  background: var(--c-bg-tint);
}

.section--tint2 {
  background: var(--c-bg-tint2);
}

/* Section heading block */
.section-head {
  max-width: 640px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.section-head--left {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--c-secondary);
  background: rgba(15, 143, 134, .10);
  padding: .35rem .85rem;
  border-radius: 50px;
  margin-bottom: .9rem;
}

.eyebrow--light {
  color: #fff;
  background: rgba(255, 255, 255, .18);
}

.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 .6rem;
}

.section-sub {
  color: var(--c-muted);
  font-size: 1.03rem;
  margin: 0;
}

/* Buttons — varied styles */
.btn-cta {
  --pad: .72rem 1.5rem;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  border: none;
  padding: var(--pad);
  border-radius: 50px;
  box-shadow: 0 10px 22px rgba(245, 165, 36, .32);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.btn-cta:hover {
  background: var(--c-accent-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(245, 165, 36, .42);
}

.btn-cta:active {
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, .7);
  padding: .62rem 1.4rem;
  border-radius: 50px;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

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

/* Scroll-reveal base state */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Floating decorative icons */
/* ============================================================
   3. TOP BAR
   ============================================================ */
.topbar {
  background: var(--c-primary-dark);
  color: rgba(255, 255, 255, .85);
  font-size: .85rem;
  padding: .5rem 0;
}

.topbar__link {
  color: rgba(255, 255, 255, .85);
  transition: color .25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.topbar__link:hover {
  color: var(--c-accent);
}

.topbar__link i {
  color: var(--c-accent);
}

.topbar__divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, .25);
}

.topbar__note {
  font-size: .82rem;
  color: rgba(255, 255, 255, .6);
}

.topbar__social a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transition: transform .3s var(--ease), background .3s var(--ease);
}

.topbar__social a:hover {
  background: var(--c-accent);
  transform: translateY(-2px);
}

/* ============================================================
   4. HEADER / NAVBAR (sticky, shrinks on scroll)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(18, 57, 90, .14);
}

.site-header .navbar {
  transition: padding .3s var(--ease);
}

.site-header.is-scrolled .navbar {
  padding: .5rem 0;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  color: #fff;
  font-size: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.18rem;
  line-height: 1;
  color: var(--c-primary);
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-weight: 800;
  color: var(--c-primary);
}

.brand-text small {
  font-size: .62rem;
  letter-spacing: .18em;
  color: var(--c-secondary);
  font-weight: 600;
}

.navbar-nav .nav-link {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--c-ink);
  padding: .5rem .9rem;
  position: relative;
  transition: color .25s var(--ease);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .35rem;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--c-primary);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: none;
  box-shadow: none;
  padding: .25rem .4rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(15, 143, 134, .25);
}

.header-cta {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   5. HERO CAROUSEL (background images; content on the left)
   ============================================================ */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s var(--ease), transform 6s linear;
}

/* crossfade via .is-active — no display toggling, so no flex/none conflict */
.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* fallback tint if an image is missing */
.hero__slides {
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.418) 0%, rgba(0, 0, 0, 0.404) 100%);
}

.hero__inner {
  position: relative;
  z-index: 4;
}

.hero__content {
  max-width: 760px;
  margin: 0 auto;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .05em;
  color: #fff;
  background: rgba(245, 165, 36, .22);
  border: 1px solid rgba(245, 165, 36, .5);
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.1rem;
  animation: fadeUp .7s .1s both;
}

.hero__title {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
  animation: fadeUp .7s .25s both;
}

.hero__title strong {
  color: var(--c-accent);
  font-weight: 800;
}

.hero__text {
  color: rgba(255, 255, 255, .9);
  font-size: 1.08rem;
  margin: 0 auto;
  max-width: 600px;
  animation: fadeUp .7s .4s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Controls */
.hero__controls {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.6rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero__arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  transition: background .3s var(--ease), transform .3s var(--ease);
}

.hero__arrow:hover {
  background: var(--c-accent);
  transform: scale(1.08);
}

.hero__dots {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.hero__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .4);
  padding: 0;
  cursor: pointer;
  transition: all .3s var(--ease);
}

.hero__dot.is-active {
  background: var(--c-accent);
  width: 30px;
  border-radius: 50px;
}

/* ============================================================
   6. MARQUEE (JS-driven with requestAnimationFrame)
   ============================================================ */
.marquee {
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
  overflow: hidden;
  padding: .95rem 0;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  width: max-content;
  will-change: transform;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
}

.marquee__item i {
  color: var(--c-accent);
}

/* ============================================================
   7. ABOUT
   ============================================================ */
.about__media {
  position: relative;
  padding: 0 1.5rem 2.5rem 0;
}

.about__img {
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
}

.about__img--big {
  height: 420px;
}

.about__img--small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  height: 210px;
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
}

/* fallback tints if images absent */
.about__img--big {
  background-color: var(--c-bg-tint);
}

.about__img--small {
  background-color: var(--c-bg-tint2);
}

.about__stamp {
  position: absolute;
  top: 1.2rem;
  left: -0.5rem;
  background: var(--c-accent);
  color: #fff;
  border-radius: 14px;
  padding: .9rem 1.1rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.about__stamp-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
}

.about__stamp-label {
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.15;
  display: block;
  margin-top: .25rem;
}

.about__lead {
  font-size: 1.1rem;
  color: var(--c-ink);
  font-weight: 500;
}

.about__body {
  color: var(--c-muted);
}

.about__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin: 1.6rem 0;
}

.about__stat {
  position: relative;
  padding-left: 1rem;
}

.about__stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2rem;
  bottom: .2rem;
  width: 4px;
  border-radius: 4px;
  background: var(--c-secondary);
}

.about__stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--c-primary);
  line-height: 1;
}

.about__stat-label {
  font-size: .88rem;
  color: var(--c-muted);
}

/* ============================================================
   8. SERVICES
   ============================================================ */
.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card__img {
  height: 210px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: var(--c-bg-tint);
}

.service-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(9, 28, 46, .35));
  opacity: 0;
  transition: opacity .35s var(--ease);
}

.service-card:hover .service-card__img::after {
  opacity: 1;
}

.service-card__body {
  padding: 1.15rem 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 .45rem;
}

.service-card__text {
  font-size: .9rem;
  color: var(--c-muted);
  margin: 0 0 1rem;
  flex: 1;
}

.service-card__cta {
  align-self: flex-start;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  gap: .1rem;
  transition: color .25s var(--ease), gap .25s var(--ease);
}

.service-card__cta i {
  color: var(--c-accent);
  font-size: 1.2rem;
  transition: transform .25s var(--ease);
}

.service-card:hover .service-card__cta {
  color: var(--c-secondary);
}

.service-card:hover .service-card__cta i {
  transform: translateX(4px);
}

/* ============================================================
   9. WHY CHOOSE US
   ============================================================ */
.why__panel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  background-size: cover;
  background-position: center;
  background-color: var(--c-primary);
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-md);
}

.why__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 57, 90, .35), rgba(13, 43, 69, .92));
}

.why__panel-inner {
  position: relative;
  z-index: 2;
  padding: 2rem;
  color: #fff;
}

.why__panel-title {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 .7rem;
}

.why__panel-text {
  color: rgba(255, 255, 255, .85);
  font-size: .98rem;
  margin-bottom: 1.4rem;
}

.why__card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  height: 100%;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
  overflow: hidden;
}

.why__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.why__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(15, 143, 134, .14), rgba(18, 57, 90, .14));
  color: var(--c-secondary);
  margin-bottom: 1rem;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}

.why__card:hover .why__icon {
  background: var(--c-secondary);
  color: #fff;
  transform: rotate(-6deg) scale(1.06);
}

.why__card-title {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 .4rem;
}

.why__card-text {
  font-size: .9rem;
  color: var(--c-muted);
  margin: 0;
}

/* ============================================================
   10. HOW IT WORKS (connected timeline)
   ============================================================ */
.how__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

/* connecting line behind the steps (desktop) */
.how__steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--c-secondary) 0 14px, transparent 14px 26px);
  opacity: .5;
  z-index: 0;
}

.how__step {
  position: relative;
  text-align: center;
  z-index: 1;
}

.how__num {
  width: 54px;
  height: 54px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
  transition: transform .35s var(--ease);
}

.how__step:hover .how__num {
  transform: translateY(-5px) scale(1.05);
}

.how__card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.4rem 1.1rem;
  height: 100%;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}

.how__step:hover .how__card {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.how__step-icon {
  font-size: 1.6rem;
  color: var(--c-accent);
  margin-bottom: .6rem;
  display: inline-block;
}

.how__step-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 .4rem;
}

.how__step-text {
  font-size: .88rem;
  color: var(--c-muted);
  margin: 0;
}

/* ============================================================
   11. GALLERY
   ============================================================ */
.gallery__item {
  margin: 0;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery__img {
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--c-bg-tint);
  transition: transform .6s var(--ease);
}

.gallery__item:hover .gallery__img {
  transform: scale(1.12);
}

.gallery__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem .9rem .8rem;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  background: linear-gradient(180deg, transparent, rgba(9, 28, 46, .85));
  transform: translateY(8px);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}

.gallery__item:hover .gallery__cap {
  transform: none;
  opacity: 1;
}

/* Clickable tiles + hover magnifier hint */
.gallery__item {
  cursor: zoom-in;
}

.gallery__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 57, 90, 0);
  transition: background .35s var(--ease);
  z-index: 1;
  pointer-events: none;
}

.gallery__item:hover::before {
  background: rgba(18, 57, 90, .28);
}

.gallery__zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.7);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.gallery__item:hover .gallery__zoom {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ============================================================
   11b. VIDEO
   ============================================================ */
.video__item {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #0b1c2e;
}

.video__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 10 / 9;
  height: auto;
  /* full frame always visible — no cropping / stretching, fullscreen stays actual size */
  object-fit: contain;
  background: #0b1c2e;
}

/* ============================================================
   GALLERY LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6, 18, 30, .93);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  transform: scale(.95);
  transition: transform .3s var(--ease);
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: clamp(.8rem, 2vw, 1.4rem);
  right: clamp(.8rem, 2vw, 1.4rem);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s var(--ease), transform .25s var(--ease);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, .3);
  transform: rotate(90deg);
}

/* ============================================================
   12. FAQ (custom accordion via <details>)
   ============================================================ */
.faq__list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq__item {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: .3rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.faq__item[open] {
  border-color: rgba(15, 143, 134, .4);
  box-shadow: var(--shadow-md);
}

.faq__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.03rem;
  color: var(--c-primary);
  padding: .95rem 0;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__mark {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(15, 143, 134, .12);
  color: var(--c-secondary);
  font-size: .9rem;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}

.faq__item[open] .faq__mark {
  transform: rotate(135deg);
  background: var(--c-accent);
  color: #fff;
}

.faq__a {
  color: var(--c-muted);
  font-size: .95rem;
  padding: 0 0 1rem;
  margin: 0;
}

/* smooth open */
.faq__item[open] .faq__a {
  animation: faqIn .35s var(--ease) both;
}

@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   13. TESTIMONIALS (translateX track — no display toggling)
   ============================================================ */
.tst__viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.tst__track {
  display: flex;
  will-change: transform;
  transition: transform .6s var(--ease);
}

.tst__slide {
  min-width: 100%;
  padding: .4rem;
}

@media (min-width: 768px) {
  .tst__slide {
    min-width: 50%;
  }
}

.tst__card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem 1.6rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  margin: 0;
}

.tst__quote {
  position: absolute;
  top: 1rem;
  right: 1.3rem;
  font-size: 3rem;
  color: rgba(15, 143, 134, .14);
  line-height: 1;
}

.tst__text {
  font-size: 1rem;
  color: var(--c-ink);
  font-style: italic;
  margin-bottom: 1.3rem;
}

.tst__by {
  display: flex;
  align-items: center;
  gap: .8rem;
  border: none;
}

.tst__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
}

.tst__by strong {
  display: block;
  font-family: var(--font-head);
  color: var(--c-primary);
  font-size: .98rem;
}

.tst__by small {
  color: var(--c-muted);
  font-size: .82rem;
}

.tst__stars {
  margin-top: .7rem;
  color: var(--c-accent);
  font-size: .9rem;
  display: flex;
  gap: .15rem;
}

.tst__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

.tst__arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: #fff;
  color: var(--c-primary);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}

.tst__arrow:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-2px);
}

.tst__dots {
  display: flex;
  gap: .5rem;
}

.tst__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(18, 57, 90, .25);
  padding: 0;
  cursor: pointer;
  transition: all .3s var(--ease);
}

.tst__dot.is-active {
  background: var(--c-accent);
  width: 26px;
  border-radius: 50px;
}

/* ============================================================
   14. CONTACT
   ============================================================ */
.contact__lead {
  color: var(--c-muted);
  margin-bottom: 1.6rem;
}

.contact__info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact__info li {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}

.contact__ic {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  box-shadow: var(--shadow-sm);
}

.contact__info strong {
  display: block;
  font-family: var(--font-head);
  color: var(--c-primary);
  font-size: .95rem;
  margin-bottom: .1rem;
}

.contact__info a {
  color: var(--c-muted);
  transition: color .25s var(--ease);
  word-break: break-word;
}

.contact__info a:hover {
  color: var(--c-secondary);
}

.contact__form {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-md);
}

.contact__form .form-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .88rem;
  color: var(--c-primary);
  margin-bottom: .35rem;
}

.contact__form .opt {
  color: var(--c-muted);
  font-weight: 400;
}

.contact__form .form-control,
.contact__form .form-select {
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
  font-size: .95rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.contact__form .form-control:focus,
.contact__form .form-select:focus {
  border-color: var(--c-secondary);
  box-shadow: 0 0 0 4px rgba(15, 143, 134, .14);
}

.contact__note {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
}

.contact__note.ok {
  color: var(--c-secondary);
}

.contact__note.err {
  color: #d64545;
}

/* ============================================================
   15. FOOTER
   ============================================================ */
.footer {
  background: var(--c-primary-dark);
  color: rgba(255, 255, 255, .72);
  padding: clamp(3rem, 5vw, 4.5rem) 0 1.5rem;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
}

.footer__brand .brand-text,
.footer__brand .brand-text strong {
  color: #fff;
}

.footer__brand .brand-text small {
  color: var(--c-accent);
}

.footer__about {
  font-size: .92rem;
  color: rgba(255, 255, 255, .65);
  max-width: 340px;
}

.footer__social {
  display: flex;
  gap: .6rem;
  margin-top: 1rem;
}

.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: background .3s var(--ease), transform .3s var(--ease);
}

.footer__social a:hover {
  background: var(--c-accent);
  transform: translateY(-3px);
}

.footer__head {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1.1rem;
}

.footer__links,
.footer__contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.footer__links a {
  font-size: .92rem;
  color: rgba(255, 255, 255, .68);
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}

.footer__links a:hover {
  color: var(--c-accent);
  padding-left: 5px;
}

.footer__contact li {
  font-size: .9rem;
  color: rgba(255, 255, 255, .68);
  display: flex;
  gap: .55rem;
  align-items: flex-start;
}

.footer__contact i {
  color: var(--c-accent);
  margin-top: .2rem;
}

.footer__contact a {
  color: rgba(255, 255, 255, .68);
  transition: color .25s var(--ease);
}

.footer__contact a:hover {
  color: var(--c-accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 2.5rem;
  padding-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
}

.footer__bottom p {
  margin: 0;
}

/* ============================================================
   16. FLOATING BUTTONS + BACK TO TOP
   ============================================================ */
.float-btn {
  position: fixed;
  bottom: 26px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease);
}

.float-btn:hover {
  transform: scale(1.1);
  color: #fff;
}

.float-btn--wa {
  left: 22px;
  background: #25d366;
  animation: pulse-wa 2s infinite;
}

.float-btn--call {
  right: 22px;
  background: var(--c-accent);
  animation: pulse-call 2s infinite;
}

@keyframes pulse-wa {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, .5);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes pulse-call {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 165, 36, .5);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(245, 165, 36, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 165, 36, 0);
  }
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: var(--c-primary);
  color: #fff;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s var(--ease);
  box-shadow: var(--shadow-sm);
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--c-secondary);
}

/* ============================================================
   17. COLOUR-SWEEP ANIMATION
   ------------------------------------------------------------
   Cards inside a [data-sweep] container light up one after the
   other, left → right, in a repeating wave. script.js adds the
   .sweep-on class and sets --i (card index) on each card.
   ============================================================ */
[data-sweep] .service-card,
[data-sweep] .why__card {
  position: relative;
}

[data-sweep].sweep-on .service-card,
[data-sweep].sweep-on .why__card {
  animation: sweepGlow 3.2s var(--ease) infinite;
  animation-delay: calc(var(--i, 0) * .28s);
}

@keyframes sweepGlow {

  0%,
  55%,
  100% {
    box-shadow: var(--shadow-sm);
    border-color: var(--c-line);
  }

  18% {
    box-shadow: 0 16px 36px rgba(245, 165, 36, .28);
    border-color: var(--c-accent);
  }
}

/* a thin accent bar that fills across each swept card */
[data-sweep].sweep-on .service-card::before,
[data-sweep].sweep-on .why__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--c-accent), var(--c-secondary));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 3;
  animation: sweepBar 3.2s var(--ease) infinite;
  animation-delay: calc(var(--i, 0) * .28s);
}

@keyframes sweepBar {

  0%,
  55%,
  100% {
    transform: scaleX(0);
  }

  18% {
    transform: scaleX(1);
  }

  40% {
    transform: scaleX(1);
    transform-origin: right;
  }

  54% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

/* ============================================================
   18. RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    background: #fff;
    margin-top: .8rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .header-cta {
    margin-top: .7rem;
    align-self: flex-start;
  }

  .hero {
    min-height: auto;
    padding: 3.5rem 0 5rem;
  }

  .hero__overlay {
    background: linear-gradient(180deg, rgba(9, 28, 46, .78), rgba(9, 28, 46, .74));
  }

  .how__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem 1rem;
  }

  .how__steps::before {
    display: none;
  }

  .about__media {
    padding-right: 0;
  }
}

@media (max-width: 575.98px) {
  .topbar {
    font-size: .78rem;
  }

  .topbar__contacts {
    gap: .6rem !important;
  }

  .about__stats {
    gap: 1.1rem;
  }

  .about__img--big {
    height: 300px;
  }

  .about__img--small {
    height: 150px;
  }

  .how__steps {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    justify-content: center;
    text-align: center;
  }

  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}

/* Respect reduced motion for user-triggered transitions only.
   NOTE: marquee & counters are JS-driven and intentionally keep
   running so the page never looks "frozen". */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition-duration: .01ms;
  }

  .hero__slide {
    transition: opacity .4s linear;
  }

  [data-sweep].sweep-on .service-card,
  [data-sweep].sweep-on .why__card,
  [data-sweep].sweep-on .service-card::before,
  [data-sweep].sweep-on .why__card::before {
    animation-duration: 4s;
  }
}

@media(max-width:767px)
{
	.cu-ds-nn{
		display:none!important
	}
	.cu-jf-cnter{
		justify-content:center!important
	}
}