/* =====================================================================
   STAR HAIRS — Landing Page Stylesheet
   All colours are CSS variables (see :root) for easy theme changes.
   Fonts: Fraunces (display) + Plus Jakarta Sans (body/UI)
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. THEME VARIABLES  — change these to re-colour the whole site
   --------------------------------------------------------------------- */
:root {
  /* Brand blues (from logo) */
  --c-primary: #01509f;
  /* logo royal blue        */
  --c-primary-dark: #023a73;
  /* deep navy              */
  --c-primary-darker: #01264d;
  /* darkest navy           */
  --c-secondary: #1f8fd8;
  /* bright azure           */
  --c-accent: #14c2d0;
  /* fresh cyan / teal      */

  /* Tints & neutrals */
  --c-tint-1: #eef5fc;
  /* pale blue section bg   */
  --c-tint-2: #e9fbfc;
  /* pale cyan section bg   */
  --c-white: #ffffff;
  --c-ink: #0f2338;
  /* headings text          */
  --c-body: #46586c;
  /* body text              */
  --c-line: #e2ebf4;
  /* borders / dividers     */

  /* Gradients */
  --grad-brand: linear-gradient(120deg, var(--c-primary) 0%, var(--c-secondary) 55%, var(--c-accent) 120%);
  --grad-deep: linear-gradient(135deg, var(--c-primary-darker) 0%, var(--c-primary) 100%);

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  /* Effects */
  --shadow-sm: 0 6px 18px rgba(1, 38, 77, .06);
  --shadow-md: 0 16px 40px rgba(1, 38, 77, .10);
  --shadow-lg: 0 30px 70px rgba(1, 38, 77, .16);
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-body);
  background: var(--c-white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: clip;
  /* guard against horizontal scroll */
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--c-ink);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}

p {
  margin: 0 0 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color .3s var(--ease);
}

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

.container {
  max-width: 1200px;
}

/* ---------------------------------------------------------------------
   3. SHARED SECTION HELPERS
   --------------------------------------------------------------------- */
.section {
  padding: clamp(64px, 8.5vw, 116px) 0;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.eyebrow.center {
  justify-content: center;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 600;
}

.section-title .hl {
  font-style: italic;
  font-weight: 500;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-sub {
  max-width: 620px;
  color: var(--c-body);
  font-size: 1.05rem;
}

.section-head.center {
  text-align: center;
  margin: 0 auto 3.2rem;
}

.section-head.center .section-sub {
  margin-inline: auto;
}

/* Buttons — custom, prefixed to avoid clashing with Bootstrap .btn-* */
.btn-c {
  --btn-bg: var(--grad-brand);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  padding: .85rem 1.7rem;
  border-radius: 100px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background-image: var(--btn-bg);
  background-size: 160% 100%;
  background-position: 0 0;
  box-shadow: 0 12px 26px rgba(1, 80, 159, .28);
  transition: background-position .5s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}

.btn-c:hover {
  background-position: 100% 0;
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(1, 80, 159, .36);
  color: #fff;
}

.btn-c.ghost {
  background: transparent;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
  box-shadow: none;
  padding: .78rem 1.6rem;
}

.btn-c.ghost:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-3px);
}

.btn-c.light {
  background: #fff;
  color: var(--c-primary);
  box-shadow: var(--shadow-md);
}

.btn-c.light:hover {
  color: var(--c-primary-dark);
}

/* Scroll-reveal base state (JS adds .in) */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

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

.reveal.d1 {
  transition-delay: .08s;
}

.reveal.d2 {
  transition-delay: .16s;
}

.reveal.d3 {
  transition-delay: .24s;
}

.reveal.d4 {
  transition-delay: .32s;
}

/* ---------------------------------------------------------------------
   4. TOP BAR
   --------------------------------------------------------------------- */
.topbar {
  background: var(--grad-deep);
  color: #dbe9f7;
  font-size: .84rem;
  padding: .5rem 0;
}

.topbar a:hover {
  color: #fff;
}

.topbar .tb-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar .tb-left,
.topbar .tb-right {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  flex-wrap: wrap;
}

.topbar .tb-item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.topbar .tb-socials {
  display: inline-flex;
  gap: .7rem;
}

.topbar .tb-socials a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  transition: background .3s var(--ease), transform .3s var(--ease);
}

.topbar .tb-socials a:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .topbar .tb-right .tb-item.addr {
    display: none;
  }

  .topbar {
    font-size: .78rem;
  }

  .topbar .tb-inner {
    justify-content: center;
    text-align: center;
    gap: .55rem;
  }

  .topbar .tb-left,
  .topbar .tb-right {
    justify-content: center;
    width: 100%;
    gap: .35rem 1.1rem;
  }

  .container {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}

/* ---------------------------------------------------------------------
   5. STICKY HEADER / NAV
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .3s var(--ease), padding .3s var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.brand img {
  height: 100px;
  width: 100%;
  margin-left: 10px;
}

.brand .brand-txt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--c-primary-dark);
  line-height: 1;
}

.brand .brand-txt small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .62rem;
  letter-spacing: .28em;
  color: var(--c-accent);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--c-ink);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--grad-brand);
  transition: width .35s var(--ease);
}

.nav-links a:hover {
  color: var(--c-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-right: 10px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--c-ink);
  border-radius: 3px;
  margin: 5px 0;
  transition: .3s var(--ease);
}

@media (max-width: 991px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    height: 100vh;
    width: min(82%, 330px);
    background: #fff;
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.4rem;
    transform: translateX(105%);
    transition: transform .4s var(--ease);
    box-shadow: var(--shadow-lg);
    z-index: 1045;
    overflow-y: auto;
  }

  .nav-links.open {
    transform: none;
  }

  .nav-toggle {
    display: block;
    z-index: 1050;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .nav-cta-desktop {
    display: none;
  }
}

/* Mobile menu backdrop (dims page behind the open panel) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 20, 44, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
  z-index: 1035;
}

.nav-backdrop.show {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

@media (min-width: 992px) {
  .nav-backdrop {
    display: none;
  }
}

/* ---------------------------------------------------------------------
   6. HERO CAROUSEL  (background images set INLINE in HTML)
   Content is LEFT-aligned (side, never centred)
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(90vh, 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 top;
  opacity: 0;
  transition: opacity 1.3s var(--ease), transform 6s ease;
  transform: scale(1.08);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide::after {
  /* readability gradient, stronger on the LEFT */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.66) 42%, rgba(0, 0, 0, 0.12) 78%, rgba(1, 38, 77, 0) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 620px;
  color: #fff;
}

/* LEFT column */
.hero-content .eyebrow {
  color: #a6ecff;
}

.hero-content .eyebrow::before {
  background: var(--c-accent);
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.4vw, 4.3rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-content h1 .hl {
  font-style: italic;
  color: #7fe6f0;
}

.hero-content .lead {
  color: #dbe8f6;
  font-size: 1.12rem;
  max-width: 520px;
  margin-bottom: 1.9rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* small trust row under CTAs */
.hero-trust {
  display: flex;
  gap: 2rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}

.hero-trust .ht {
  color: #fff;
}

.hero-trust .ht b {
  font-family: var(--font-display);
  font-size: 1.7rem;
  display: block;
  line-height: 1;
}

.hero-trust .ht span {
  font-size: .8rem;
  color: #b9d2ec;
  letter-spacing: .04em;
}

/* slide dots */
.hero-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .6rem;
  z-index: 3;
}

.hero-dots button {
  width: 30px;
  height: 5px;
  border-radius: 4px;
  border: 0;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: background .3s var(--ease);
  padding: 0;
}

.hero-dots button.active {
  background: var(--c-accent);
  width: 46px;
}

@media (max-width: 767px) {
  .hero {
    min-height: 82vh;
  }

  .hero-slide::after {
    background: linear-gradient(180deg, rgba(1, 38, 77, .72) 0%, rgba(1, 38, 77, .82) 100%);
  }

  .hero-trust {
    gap: 1.4rem;
    margin-top: 1.8rem;
  }
}

/* ---------------------------------------------------------------------
   7. MARQUEE  (driven by requestAnimationFrame in script.js — always on)
   --------------------------------------------------------------------- */
.marquee {
  background: var(--grad-brand);
  color: #fff;
  overflow: hidden;
  padding: 1rem 0;
  white-space: nowrap;
  position: relative;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  will-change: transform;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 500;
  padding: 0 1.4rem;
}

.marquee-item .dot {
  font-size: 1rem;
  color: #bff3f8;
  font-style: normal;
}

/* ---------------------------------------------------------------------
   8. ABOUT  (split: image collage + content — not cards)
   --------------------------------------------------------------------- */
.about {
  background: var(--c-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual .img-main {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 6/5;
  object-fit: cover;
  width: 100%;
}

.about-visual .img-float {
  position: absolute;
  width: 44%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 6px solid #fff;
  object-fit: cover;
  aspect-ratio: 1/1;
  right: -22px;
  bottom: -30px;
  animation: floatY 5s ease-in-out infinite;
}

.about-visual .exp-badge {
  position: absolute;
  top: -22px;
  left: -22px;
  background: var(--grad-deep);
  color: #fff;
  border-radius: 20px;
  padding: 1rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-visual .exp-badge b {
  font-family: var(--font-display);
  font-size: 2rem;
  display: block;
  line-height: 1;
}

.about-visual .exp-badge span {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #b9d2ec;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem 1.4rem;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-weight: 600;
  color: var(--c-ink);
}

.about-list li svg {
  flex: 0 0 auto;
  margin-top: 3px;
}

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    max-width: 460px;
    margin: 0 auto 2.5rem;
  }

  .about-list {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------
   9. STATS STRIP (animated counters via IntersectionObserver)
   --------------------------------------------------------------------- */
.stats {
  background: var(--grad-deep);
  color: #fff;
  padding: clamp(40px, 5vw, 64px) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat b {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.2vw, 4rem);
  display: block;
  line-height: 1;
}

.stat b .plus {
  color: var(--c-accent);
}

.stat>span {
  font-size: 1.05rem;
  color: #cfe0f2;
  letter-spacing: .04em;
  margin-top: .55rem;
  display: block;
}

.stat {
  position: relative;
}

.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -.75rem;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: rgba(255, 255, 255, .15);
}

@media (max-width: 767px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
  }

  .stat::after {
    display: none;
  }
}

/* ---------------------------------------------------------------------
   10. SERVICES  (ZIG-ZAG alternating rows; mobile = image first)
   --------------------------------------------------------------------- */
.services {
  background: linear-gradient(180deg, var(--c-tint-1) 0%, #fff 100%);
}

.svc-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.svc-row+.svc-row {
  margin-top: clamp(3rem, 6vw, 6rem);
}

.svc-row.reverse {
  grid-template-columns: 7fr 5fr;
}

.svc-row.reverse .svc-media {
  order: 2;
}

/* zig-zag: image jumps side */

.svc-media {
  position: relative;
}

.svc-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/4;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.svc-media:hover img {
  transform: scale(1.03) rotate(-.6deg);
}

.svc-media .svc-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, .95);
  color: var(--c-primary-dark);
  font-weight: 700;
  font-size: .82rem;
  padding: .5rem .95rem;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
}

.svc-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--c-accent);
  font-weight: 600;
}

.svc-body h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: .3rem 0 .8rem;
}

.svc-feats {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .7rem;
}

.svc-feats li {
  font-size: .84rem;
  font-weight: 600;
  color: var(--c-primary-dark);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 100px;
  padding: .35rem .85rem;
  transition: transform .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}

.svc-feats li:hover {
  transform: translateY(-3px);
  border-color: var(--c-accent);
  color: var(--c-accent);
}

@media (max-width: 991px) {

  .svc-row,
  .svc-row.reverse {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .svc-row .svc-media,
  .svc-row.reverse .svc-media {
    order: -1;
  }

  /* mobile: image ALWAYS first */
}

/* ---------------------------------------------------------------------
   11. WHY CHOOSE US  (sequential COLOUR-WAVE blink cards, left→right)
   --------------------------------------------------------------------- */
.why {
  background: var(--c-tint-2);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.why-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  border: 2px solid var(--c-line);
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  /* the wave: each card lit in turn via staggered delay (set inline: --i) */
  animation: blinkWave 5.2s var(--ease) infinite;
  animation-delay: calc(var(--i, 0) * .55s);
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.why-card .why-ic {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--c-tint-1);
  color: var(--c-primary);
  margin-bottom: 1.1rem;
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}

.why-card:hover .why-ic {
  background: var(--grad-brand);
  color: #fff;
  transform: rotate(-6deg) scale(1.06);
}

.why-card h4 {
  font-size: 1.2rem;
  margin-bottom: .5rem;
}

.why-card p {
  font-size: .93rem;
  margin: 0;
}

.why-card .why-bar {
  /* top bar that lights during the wave */
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  background: var(--c-line);
  transition: background .4s var(--ease);
}

/* the blink: border + shadow + top-bar colour pulse — flows across the row */
@keyframes blinkWave {

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

  8% {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 4px rgba(20, 194, 208, .18), var(--shadow-md);
  }

  16% {
    border-color: var(--c-line);
    box-shadow: var(--shadow-sm);
  }
}

.why-card:nth-child(1) .why-bar {
  animation: barWave 5.2s var(--ease) infinite;
  animation-delay: 0s;
}

.why-card:nth-child(2) .why-bar {
  animation: barWave 5.2s var(--ease) infinite;
  animation-delay: .55s;
}

.why-card:nth-child(3) .why-bar {
  animation: barWave 5.2s var(--ease) infinite;
  animation-delay: 1.1s;
}

.why-card:nth-child(4) .why-bar {
  animation: barWave 5.2s var(--ease) infinite;
  animation-delay: 1.65s;
}

@keyframes barWave {

  0%,
  100% {
    background: var(--c-line);
  }

  8% {
    background: var(--grad-brand);
  }

  16% {
    background: var(--c-line);
  }
}

@media (max-width: 991px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------
   12. HOW IT WORKS  (connected step timeline — not cards)
   --------------------------------------------------------------------- */
.how {
  background: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.steps::before {
  /* the connecting line behind the nodes */
  content: "";
  position: absolute;
  top: 34px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--c-secondary) 0 12px, transparent 12px 22px);
  z-index: 0;
}

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

.step .node {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--c-line);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--c-primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}

.step:hover .node {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  transform: translateY(-6px) scale(1.05);
}

.step h4 {
  font-size: 1.15rem;
  margin-bottom: .4rem;
}

.step p {
  font-size: .9rem;
  margin: 0;
}

@media (max-width: 991px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem 1rem;
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 575px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------
   13. GALLERY  (desktop 4 / row · mobile 2 / row)
   --------------------------------------------------------------------- */
.gallery {
  background: linear-gradient(180deg, #fff 0%, var(--c-tint-1) 100%);
}

.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.gal-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.gal-item:hover img {
  transform: scale(1.1);
}

.gal-item .gal-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 1rem .9rem;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(0deg, rgba(1, 38, 77, .85), transparent);
  transform: translateY(6px);
  opacity: 0;
  transition: .4s var(--ease);
}

.gal-item:hover .gal-cap {
  transform: none;
  opacity: 1;
}

@media (max-width: 767px) {
  .gal-grid {
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
  }
}

/* ---------------------------------------------------------------------
   14. TESTIMONIALS  (custom carousel)
   --------------------------------------------------------------------- */
.testi {
  background: var(--grad-deep);
  color: #fff;
  overflow: hidden;
}

.testi .section-title,
.testi .eyebrow {
  color: #fff;
}

.testi .eyebrow {
  color: #8fe4ef;
}

.testi-viewport {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testi-track {
  display: flex;
  transition: transform .6s var(--ease);
}

.testi-slide {
  min-width: 100%;
  padding: 0 .5rem;
}

.testi-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  text-align: center;
  backdrop-filter: blur(6px);
}

.testi-stars {
  color: #ffd469;
  letter-spacing: .18em;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.testi-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  color: #f2f8ff;
  line-height: 1.5;
  margin-bottom: 1.6rem;
}

.testi-who {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
}

.testi-who .av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
}

.testi-who .nm b {
  display: block;
}

.testi-who .nm span {
  font-size: .82rem;
  color: #b9d2ec;
}

.testi-nav {
  display: flex;
  justify-content: center;
  gap: .8rem;
  margin-top: 1.8rem;
}

.testi-nav button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: .3s var(--ease);
  display: grid;
  place-items: center;
}

.testi-nav button:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  transform: translateY(-3px);
}

/* ---------------------------------------------------------------------
   15. FAQ  (custom accordion)
   --------------------------------------------------------------------- */
.faq {
  background: #fff;
}

.faq-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--c-line);
  border-radius: 14px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.faq-item.open {
  border-color: var(--c-secondary);
  box-shadow: var(--shadow-sm);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--c-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-q .icn {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-tint-1);
  color: var(--c-primary);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}

.faq-item.open .faq-q .icn {
  transform: rotate(45deg);
  background: var(--grad-brand);
  color: #fff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}

.faq-a p {
  padding: 0 1.4rem 1.2rem;
  margin: 0;
  color: var(--c-body);
}

/* ---------------------------------------------------------------------
   16. CONTACT  (form + info panel)
   --------------------------------------------------------------------- */
.contact {
  background: var(--c-tint-1);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: stretch;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-md);
}

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

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: .84rem;
  color: var(--c-ink);
  margin-bottom: .35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--c-line);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--c-ink);
  background: #fbfdff;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-secondary);
  box-shadow: 0 0 0 4px rgba(31, 143, 216, .14);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  font-size: .82rem;
  color: var(--c-body);
  margin-top: .3rem;
}

.contact-info {
  background: var(--grad-deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.contact-info h3 {
  color: #fff;
}

.ci-item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}

.ci-item .ci-ic {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  display: grid;
  place-items: center;
  color: #8fe4ef;
}

.ci-item b {
  display: block;
  font-family: var(--font-body);
}

.ci-item a,
.ci-item span {
  color: #cfe0f2;
  font-size: .95rem;
}

.ci-item a:hover {
  color: #fff;
}

.ci-socials {
  display: flex;
  gap: .7rem;
  margin-top: auto;
}

.ci-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  display: grid;
  place-items: center;
  transition: .3s var(--ease);
}

.ci-socials a:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  transform: translateY(-3px);
}

@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------
   17. FOOTER
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--c-primary-darker);
  color: #a9c3de;
  padding-top: clamp(48px, 6vw, 72px);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.foot-brand img {
  height: 90px;
  margin-bottom: 1rem;
}

.foot-brand p {
  font-size: .92rem;
  max-width: 320px;
}

.site-footer h5 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

.foot-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .6rem;
}

.foot-links a {
  font-size: .93rem;
}

.foot-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.foot-contact li {
  display: flex;
  gap: .6rem;
  margin-bottom: .7rem;
  font-size: .92rem;
  align-items: flex-start;
}

.foot-socials {
  display: flex;
  gap: .7rem;
  margin-top: 1rem;
}

.foot-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  display: grid;
  place-items: center;
  transition: .3s var(--ease);
}

.foot-socials a:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  transform: translateY(-3px);
  color: #fff;
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.3rem 0;
  text-align: center;
  font-size: .86rem;
}

.foot-bottom a {
  color: #8fe4ef;
}

@media (max-width: 991px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
}

@media (max-width: 575px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------
   18. FLOATING BUTTONS  (WhatsApp = left · Call = right)
   --------------------------------------------------------------------- */
.float-btn {
  position: fixed;
  bottom: 24px;
  z-index: 1050;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease);
}

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

.float-wa {
  left: 24px;
  background: #25d366;
  animation: pulseWA 2.2s infinite;
}

.float-call {
  right: 24px;
  background: var(--c-primary);
  animation: pulseCall 2.2s infinite;
}

.float-btn svg {
  width: 28px;
  height: 28px;
}

@keyframes pulseWA {
  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 pulseCall {
  0% {
    box-shadow: 0 0 0 0 rgba(1, 80, 159, .5);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(1, 80, 159, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(1, 80, 159, 0);
  }
}

@media (max-width: 575px) {
  .float-btn {
    width: 50px;
    height: 50px;
    bottom: 18px;
  }

  .float-wa {
    left: 16px;
  }

  .float-call {
    right: 16px;
  }
}

/* ---------------------------------------------------------------------
   19. REDUCED MOTION  — respected for decorative animations.
   NOTE: the marquee is intentionally kept running (core brand element);
   it is JS-driven and not gated here.
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }

  .hero-slide {
    transition: opacity .3s linear;
    transform: none;
  }

  .about-visual .img-float,
  .why-card,
  .why-card .why-bar,
  .float-wa,
  .float-call {
    animation: none !important;
  }
}