/* ============================================================
   CleanRise - Global Design System
   White + Navy + Emerald | Corporate Australian Premium
   ============================================================ */

/* ---- Google Fonts (preloaded in HTML) ---- */
:root {
  /* Palette */
  --navy: #0A192F;
  --navy-light: #112240;
  --navy-lighter: #233554;
  --emerald: #368005;        /* Primary brand color */
  --emerald-dark: #064a05;       /* #077d05 Primary brand color */
  --emerald-light: #077d05;
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-400: #94A3B8;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;

  /* Typography */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-heading: 'Outfit', system-ui, sans-serif;

  /* Spacing */
  --section-py: 6rem;
  --container: 80rem;
  /* 1280px */

  /* Radius */
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 24px rgba(10, 25, 47, .12);
  --shadow-lg: 0 12px 48px rgba(10, 25, 47, .18);
  --shadow-glow: 0 0 24px rgba(16, 185, 129, .35);

  /* Transitions */
  --transition: 0.3s cubic-bezier(.4, 0, .2, 1);
}

/* Dark mode overrides */
.dark {
  --white: #020C1B;
  --off-white: #0A192F;
  --slate-100: #112240;
  --slate-200: #233554;
  --slate-600: #94A3B8;
  --slate-700: #CBD5E1;
  --slate-800: #E2E8F0;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--off-white);
  color: var(--slate-800);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---- Typography ---- */
.font-heading {
  font-family: var(--font-heading);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--navy);
}

.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5 {
  color: var(--slate-800);
}

/* ---- Scroll Progress Bar ---- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--emerald), var(--emerald-light));
  z-index: 9999;
  transition: width .1s linear;
}

/* ---- Glassmorphism ---- */
.glass {
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .5);
}

.dark .glass {
  background: rgba(17, 34, 64, .75);
  border-color: rgba(255, 255, 255, .06);
}

.glass-dark {
  background: rgba(10, 25, 47, .75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .08);
}

/* ---- Header & Navbar ---- */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.top-bar {
  display: none !important;
}

#navbar {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  box-shadow: none;
  padding: 1.45rem 0;
  transition: all var(--transition);
}

#navbar.scrolled,
body:not(.is-home) #navbar {
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
  padding: 1.1rem 0;
}

.dark #navbar {
  background: transparent;
  border-color: rgba(255, 255, 255, .06);
}

.dark #navbar.scrolled,
.dark body:not(.is-home) #navbar {
  background: rgba(255, 255, 255, .98);
  border-color: rgba(15, 23, 42, .08);
}

.nav-shell {
  max-width: 92rem;
  padding-left: .35rem;
  padding-right: .85rem;
  min-height: 6rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-brand img {
  height: 80px !important;
  width: auto;
  max-width: 320px !important;
  object-fit: contain;
}

.desktop-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  min-width: 0;
}

.nav-link {
  position: relative;
  padding: .35rem 0;
  color: rgba(255, 255, 255, .8);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
  transition: color var(--transition);
}

#navbar.scrolled .nav-link,
body:not(.is-home) #navbar .nav-link,
#navbar.scrolled .dropdown-toggle i,
body:not(.is-home) #navbar .dropdown-toggle i,
.dark #navbar.scrolled .nav-link,
.dark body:not(.is-home) #navbar .nav-link,
.dark #navbar.scrolled .dropdown-toggle i,
.dark body:not(.is-home) #navbar .dropdown-toggle i {
  color: var(--navy);
}

.dark .nav-link {
  color: rgba(255, 255, 255, .8);
}

.nav-link:hover,
.nav-link.active {
  color: #F3C443 !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -.85rem;
  left: 50%;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #F3C443;
  transform: translateX(-50%);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ---- Dropdown Menus ---- */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.dropdown-toggle i {
  font-size: 0.65rem;
  transition: transform var(--transition);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #82db23;
  border: 1px solid #7dcd2e;
  border-radius: 1.25rem;
  padding: 1rem 0;
  min-width: 18.5rem;
  box-shadow: 0 24px 42px rgba(77, 140, 17, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
  z-index: 100;
}

.dark .dropdown-menu {
  background: #9af241;
}

#navbar.scrolled .dropdown-menu,
body:not(.is-home) #navbar .dropdown-menu,
.dark #navbar.scrolled .dropdown-menu,
.dark body:not(.is-home) #navbar .dropdown-menu {
  background: #63a30a;
  border: 1px solid #7dcd2e;
  box-shadow: 0 24px 42px rgba(77, 140, 17, 0.28);
}

.dropdown-menu a {
  display: block;
  margin: 0 .55rem;
  padding: .85rem 1.15rem;
  color: #233554;
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  transition: all var(--transition);
  text-align: left;
  border-radius: .85rem;
}

#navbar.scrolled .dropdown-menu a,
body:not(.is-home) #navbar .dropdown-menu a,
.dark #navbar.scrolled .dropdown-menu a,
.dark body:not(.is-home) #navbar .dropdown-menu a {
  color: #233554;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.45);
  color: #0A192F;
  transform: translateX(6px);
  box-shadow: 0 10px 18px rgba(35, 53, 84, 0.12);
}

/* Hover behaviors */
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
  color: #F3C443;
}

.nav-dropdown:hover .dropdown-toggle::after,
.nav-dropdown.active .dropdown-toggle::after {
  width: 100%;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  flex-shrink: 0;
}

.nav-contact-link {
  display: flex;
  align-items: center;
  gap: .9rem;
  color: #fff;
}

.nav-contact-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.nav-contact-icon i {
  font-size: 1.05rem;
}

.nav-contact-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.nav-contact-copy strong {
  color: var(--emerald);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0;
}

.nav-contact-copy span {
  color: #F3C443;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
}

#navbar.scrolled .nav-contact-link,
body:not(.is-home) #navbar .nav-contact-link,
.dark #navbar.scrolled .nav-contact-link,
.dark body:not(.is-home) #navbar .nav-contact-link {
  color: var(--navy);
}

#navbar.scrolled .nav-contact-icon,
body:not(.is-home) #navbar .nav-contact-icon,
.dark #navbar.scrolled .nav-contact-icon,
.dark body:not(.is-home) #navbar .nav-contact-icon {
  background: rgba(15, 23, 42, .05);
  border-color: rgba(15, 23, 42, .10);
  color: var(--navy);
}

#navbar.scrolled .nav-contact-copy strong,
body:not(.is-home) #navbar .nav-contact-copy strong,
.dark #navbar.scrolled .nav-contact-copy strong,
.dark body:not(.is-home) #navbar .nav-contact-copy strong {
  color: var(--emerald);
}

#navbar.scrolled .nav-contact-copy span,
body:not(.is-home) #navbar .nav-contact-copy span,
.dark #navbar.scrolled .nav-contact-copy span,
.dark body:not(.is-home) #navbar .nav-contact-copy span {
  color: #C69214;
}

.btn.nav-quote-btn {
  min-width: 12.75rem;
  justify-content: center;
  padding: 1.15rem 2.55rem;
  border-radius: 1.35rem;
  background: #ff8e03;
  color: #fff !important;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 10px 24px rgba(215, 166, 28, .28);
  transition: all var(--transition);
}

.btn.nav-quote-btn:hover {
  background: #ca6f01;
  color: #077d05 !important;
  transform: translateY(-1.5px);
  box-shadow: 0 12px 28px rgba(215, 166, 28, 0.4);
}

@media (max-width: 1220px) {
  .desktop-nav {
    gap: 1rem;
  }

  .nav-link {
    font-size: 16px;
    letter-spacing: 0;
  }

  .nav-contact-copy strong {
    font-size: 17px;
  }

  .nav-contact-copy span {
    font-size: 11.5px;
  }

  .nav-cta-group {
    gap: 1.35rem;
  }

  .btn.nav-quote-btn {
    min-width: 11.25rem;
    padding: .95rem 1.95rem;
    font-size: 20px;
  }
}

/* Theme toggle is hidden in the new nav format */
.nav-action-btn {
  display: none !important;
}

#menuBtn {
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: .35rem;
  width: 2.8rem;
  height: 2.8rem;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}

#menuBtn:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .22);
}

#navbar.scrolled #menuBtn,
body:not(.is-home) #navbar #menuBtn,
.dark #navbar.scrolled #menuBtn,
.dark body:not(.is-home) #navbar #menuBtn {
  color: var(--navy);
  background: rgba(15, 23, 42, .04);
  border-color: rgba(15, 23, 42, .10);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: .9375rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-emerald {
  background: var(--emerald);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-emerald:hover {
  background: var(--emerald-dark);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(16, 185, 129, .4);
  filter: brightness(1.1);
}

.btn-outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}

.dark .btn-outline {
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(8, 16, 30, 0.05);
  border-color: var(--navy);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .1);
}

.dark .btn-outline:hover {
  background: rgba(255, 255, 255, .2);
  border-color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}

.btn-outline-emerald {
  border: 2px solid var(--emerald);
  color: var(--emerald);
  background: transparent;
}

.btn-outline-emerald:hover {
  background: var(--emerald);
  color: #fff;
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(8, 16, 30, .2);
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  overflow: hidden;
}

.dark .card {
  background: var(--navy-light);
  border-color: var(--navy-lighter);
}

.card:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* ---- Section Spacing ---- */
section {
  padding-block: var(--section-py);
}

/* ---- Dividers ---- */
.section-label {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--emerald);
  display: block;
  margin-bottom: .75rem;
}

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .9rem;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.badge-emerald {
  background: rgba(16, 185, 129, .15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, .3);
}

/* ---- Marquee / Logo Scroll ---- */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marqueeScroll 20s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-wrapper.reverse .marquee-track {
  animation-direction: reverse;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.marquee-logo {
  flex-shrink: 0;
  width: 9.5rem;
  height: 3.5rem;
  margin-inline: 1.25rem;
  padding: .45rem .85rem;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 1rem;
  opacity: 1;
  filter: grayscale(0);
  transition: all var(--transition);
  object-fit: contain;
}

.marquee-logo:hover {
  transform: scale(1.1);
}

/* Edge fades */
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6rem;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--off-white), transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--off-white), transparent);
}

/* ---- Homepage Client Logo Marquee ---- */
.client-logo-section {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background: #ffffff;
  border-block: 1px solid #e8ecf0;
}

.client-logo-header {
  max-width: 56rem;
  margin: 0 auto 2.25rem;
  padding-inline: 1.5rem;
  text-align: center;
}

.client-logo-heading {
  color: #4a5568;
  font-size: clamp(.9rem, 1.6vw, 1.1rem);
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.5;
}

.client-logo-marquee-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.client-logo-section .marquee-wrapper {
  padding-block: 0.5rem;
  padding-inline: 0.65rem;
  box-sizing: border-box;
}

.client-logo-section .marquee-wrapper::before,
.client-logo-section .marquee-wrapper::after {
  display: none;
}

.client-logo-track {
  animation-duration: 35s;
}

/* Card box — matches Cleaneroo style */
.marquee-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14.65rem;
  aspect-ratio: 249 / 102;
  margin-inline: 0.55rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0.85rem;
  box-shadow: none;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.marquee-logo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

/* Force all logos to the SAME displayed size and maintain full colors */
.marquee-logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.marquee-logo-card:hover img {
  transform: scale(1.05);
}

.marquee-logo-card img.logo-dark-bg {
  filter: invert(1);
}

/* Dark mode */
.dark .client-logo-section {
  background: rgba(10, 25, 47, .98);
  border-color: rgba(255, 255, 255, .06);
}

.dark .client-logo-heading {
  color: rgba(226, 232, 240, .8);
}

.dark .client-logo-section .marquee-wrapper::before {
  background: linear-gradient(to right, rgba(10, 25, 47, .98), transparent) !important;
}

.dark .client-logo-section .marquee-wrapper::after {
  background: linear-gradient(to left, rgba(10, 25, 47, .98), transparent) !important;
}

.dark .marquee-logo-card {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.dark .marquee-logo-card img {
  filter: grayscale(1) brightness(1.4) opacity(0.65);
}

.dark .marquee-logo-card:hover img {
  filter: grayscale(0) brightness(1.4) opacity(1);
}

/* ---- Value Proposition split layout ---- */
.val-prop-section {
  padding-block: 4rem;
  background: var(--white);
  border-bottom: 1px solid var(--slate-100);
  overflow-x: hidden;
}

.val-prop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

@media (min-width: 1025px) {
  .val-prop-grid {
    grid-template-columns: [full-start] 1fr [container-start] minmax(0, 40rem) minmax(0, 40rem) [container-end] 1fr [full-end];
    gap: 0;
  }

  .val-prop-img-col {
    grid-column: full-start / 3;
    position: relative;
    width: 100%;
    height: 520px;
  }

  .val-prop-img-wrap {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 2.5rem 2.5rem 0 !important;
  }

  .val-prop-list-col {
    grid-column: 3 / 4;
    padding-inline-start: 5rem;
    align-self: center;
    max-width: 580px;
  }
}

@media (max-width: 1024px) {
  .val-prop-img-col {
    padding-inline: 1.5rem;
    width: 100%;
    height: 380px;
    margin-inline: auto;
    max-width: 600px;
  }
  .val-prop-img-wrap {
    width: 100% !important;
    height: 100% !important;
    border-radius: 2.5rem !important;
  }
  .val-prop-list-col {
    padding-inline: 1.5rem;
    margin-inline: auto;
    max-width: 600px;
    width: 100%;
    margin-top: 1rem;
  }
}

.dark .val-prop-section {
  background: rgba(10, 25, 47, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* ---- Service Cards ---- */
.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.dark .service-card {
  background: var(--navy-light);
  border-color: var(--navy-lighter);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: var(--emerald);
}

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-body {
  padding: 1.5rem;
}

.service-card-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, .12);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.625rem;
  margin-bottom: 1rem;
  transition: transform var(--transition);
}

.service-card:hover .service-card-icon {
  transform: scale(1.1);
}

/* ---- Testimonial Carousel ---- */
.carousel-track {
  display: flex;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  gap: 1.5rem;
}

.testimonial-card {
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.dark .testimonial-card {
  background: var(--navy-light);
  border-color: var(--navy-lighter);
}

/* ---- FAQ Accordion ---- */
.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: .75rem;
}

.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--navy);
  text-align: left;
  transition: all var(--transition);
}

.dark .faq-btn {
  background: var(--navy-light);
  border-color: var(--navy-lighter);
  color: #fff;
}

.faq-btn:hover,
.faq-btn.open {
  border-color: var(--emerald);
  color: var(--emerald);
}

.faq-btn .faq-icon {
  transition: transform var(--transition);
  font-size: 1.25rem;
  color: var(--emerald);
}

.faq-btn.open .faq-icon {
  transform: rotate(45deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  background: var(--off-white);
  border: 1px solid var(--slate-200);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 0 1.5rem;
  color: var(--slate-600);
  font-size: .9375rem;
  line-height: 1.7;
}

.dark .faq-body {
  background: var(--navy-lighter);
  border-color: var(--navy-lighter);
  color: var(--slate-400);
}

.faq-body.open {
  max-height: 400px;
  padding: 1.25rem 1.5rem;
}

/* ---- Forms ---- */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: .85rem 1.1rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--off-white);
  color: var(--slate-800);
  font-size: .9375rem;
  font-family: var(--font-sans);
  transition: all var(--transition);
  outline: none;
}

.dark .form-input,
.dark .form-select,
.dark .form-textarea {
  background: var(--navy-lighter);
  border-color: var(--navy-lighter);
  color: #fff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .15);
}

.form-label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--navy);
}

.dark .form-label {
  color: var(--slate-400);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}

.field-error {
  display: block;
  margin-top: .4rem;
  color: #dc2626;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
}

.dark .field-error {
  color: #fca5a5;
}

/* ---- Toast ---- */
#toast-container {
  position: fixed;
  top: 5.5rem;
  right: 1.5rem;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 22rem;
  animation: slideInRight .35s cubic-bezier(.4, 0, .2, 1);
}

.dark .toast {
  background: var(--navy-light);
  border-color: var(--navy-lighter);
  color: #fff;
}

@keyframes slideInRight {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.exit {
  animation: slideOutRight .35s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes slideOutRight {
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* ---- Floating Actions ---- */
.left-sticky-quote {
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 42;
  width: 3rem;
  height: 15rem;
  border-radius: 0 1.1rem 1.5rem 0;
  background: linear-gradient(180deg, #f59e0b 0%, #f59e0b 100%);
  color: #fff;
  box-shadow: 0 18px 36px rgba(249, 115, 22, .26);
  border: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.left-sticky-quote:hover {
  transform: translateY(-50%) translateX(.35rem);
  box-shadow: 0 22px 40px rgba(249, 115, 22, .32);
  filter: brightness(1.04);
}

.left-sticky-quote-content {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  transform: rotate(-90deg);
  white-space: nowrap;
  font-size: 1.33rem;
  font-weight: 500;
  letter-spacing: -.01em;
}

.left-sticky-quote-content i {
  font-size: 1rem;
}

.dark .left-sticky-quote {
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 20px 36px rgba(0, 0, 0, .32);
}

.floating-actions {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: center;
}

.fab {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}

.fab:hover {
  transform: scale(1.12);
}

.fab-whatsapp {
  background: #25D366;
  color: #fff;
}

.fab-top {
  background: var(--navy);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
}

.fab-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Skeleton loaders ---- */
.skeleton {
  background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-200) 50%, var(--slate-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

/* ---- Trust Badges ---- */
.trust-badge {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255, 255, 255, .85);
  font-size: .875rem;
  font-weight: 500;
}

.trust-badge i {
  color: var(--emerald);
  font-size: 1.25rem;
}

/* ---- Stars ---- */
.stars {
  color: #F59E0B;
  display: flex;
  gap: .1rem;
}

/* ---- Particles container ---- */
#particles-js {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: .9rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--emerald), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: .2rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, .5);
  border: 3px solid var(--white);
}

.dark .timeline-dot {
  border-color: var(--navy);
}

/* ---- Scroll-animate helper ---- */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

[data-aos="fade-left"] {
  transform: translateX(32px);
}

[data-aos="fade-right"] {
  transform: translateX(-32px);
}

[data-aos="zoom-in"] {
  transform: scale(.92);
}

[data-aos="fade-left"].aos-animate,
[data-aos="fade-right"].aos-animate,
[data-aos="zoom-in"].aos-animate {
  transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  :root {
    --section-py: 4.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 3.5rem;
  }

  .container {
    padding-inline: 1.25rem;
  }

  .left-sticky-quote {
    display: none;
  }

  .nav-shell {
    padding-left: .9rem;
    padding-right: .9rem;
    min-height: 5rem;
  }

  .nav-brand img {
    height: 62px !important;
    max-width: 250px !important;
  }
}

@media (max-width: 480px) {
  :root {
    --section-py: 2.75rem;
  }

  .btn {
    padding: .7rem 1.25rem;
    font-size: .875rem;
  }

  .hide-sm {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .hide-md {
    display: none !important;
  }

  .desktop-nav {
    display: none !important;
  }

  #navPhone,
  .nav-cta-group > .nav-quote-btn,
  .nav-action-btn {
    display: none !important;
  }

  #menuBtn {
    display: flex !important;
  }
}

/* ---- Mobile sticky CTA ---- */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  padding: .875rem 1.25rem;
  background: var(--navy);
  border-top: 1px solid var(--navy-lighter);
  gap: .75rem;
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: flex;
  }
}

/* ---- Miscellaneous ---- */
.emerald-text {
  color: var(--emerald);
}

.navy-text {
  color: var(--navy);
}

.underline-emerald {
  text-decoration: underline;
  text-decoration-color: var(--emerald);
  text-underline-offset: 6px;
}

.hero-gradient {
  background: linear-gradient(135deg, rgba(10, 25, 47, .92) 0%, rgba(10, 25, 47, .7) 60%, rgba(5, 150, 105, .25) 100%);
}

.section-dark {
  background: var(--navy);
}

.dark .section-dark {
  background: #050F1E;
}

.cta-gradient {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, rgba(16, 185, 129, .25) 100%);
}

/* ---- ISO Cert Cards ---- */
.cert-card {
  border: 2px solid rgba(16, 185, 129, .2);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
  background: rgba(16, 185, 129, .04);
}

.cert-card:hover {
  border-color: var(--emerald);
  box-shadow: var(--shadow-glow);
}

/* ---- Pill nav (mobile menu) ---- */
#mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 18px 36px rgba(15, 23, 42, .14);
  padding: 1rem 1.5rem 1.5rem;
}

.dark #mobile-menu {
  background: rgba(255, 255, 255, .98);
  border-color: rgba(15, 23, 42, .08);
}

#mobile-menu.open {
  display: block;
}

#mobile-menu .nav-quote-btn {
  display: flex !important;
  justify-content: center;
  margin-top: 1rem;
}

.mobile-nav-link {
  display: block;
  padding: .75rem 0;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  transition: color var(--transition);
}

.mobile-nav-link:hover {
  color: #F3C443;
}

/* ---- Review Tabs ---- */
.review-tab {
  background: none;
  border: none;
  padding: 1.25rem .5rem;
  font-weight: 500;
  color: var(--slate-600);
  cursor: pointer;
  white-space: nowrap;
  font-size: .95rem;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.review-tab.active {
  border-bottom-color: var(--navy);
  font-weight: 600;
  color: var(--navy);
}

.dark .review-tab.active {
  border-bottom-color: var(--white);
  color: var(--white);
}

/* ---- Top Bar Styles ---- */
.top-bar {
  background: var(--navy);
  color: #fff;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  position: relative;
  z-index: 51;
}

.top-bar .star-row i {
  color: #F59E0B;
}

/* ---- Footer Styles ---- */
.footer-main {
  background: #06101e;
  color: rgba(255, 255, 255, .7);
  padding-block: 3.5rem 1.5rem;
}

.dark .footer-main {
  background: #020C1B;
}

@media(max-width:900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important
  }
}

@media(max-width:560px) {
  .footer-grid {
    grid-template-columns: 1fr !important
  }
}

/* Button Shine & Pulse Effects */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to bottom right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0) 60%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(45deg);
  transition: all 0s;
  animation: shine 3s infinite linear;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }

  20% {
    transform: translateX(100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.btn-pulse-emerald {
  animation: pulseEmerald 2s infinite;
}

@keyframes pulseEmerald {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.btn-pulse-navy {
  animation: pulseNavy 2s infinite;
}

@keyframes pulseNavy {
  0% {
    box-shadow: 0 0 0 0 rgba(8, 16, 30, 0.2);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(8, 16, 30, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(8, 16, 30, 0);
  }
}

/* =====================================================
   ENHANCED MOBILE RESPONSIVENESS
   ===================================================== */

/* Prevent content from being hidden behind the mobile sticky CTA bar */
@media (max-width: 768px) {
  body {
    padding-bottom: 4.5rem;
  }

  /* Push floating action buttons above the sticky CTA */
  .floating-actions {
    bottom: 5.75rem;
  }

  /* Toast: full width on small screens */
  #toast-container {
    left: 1rem;
    right: 1rem;
  }

  .toast {
    min-width: unset;
    width: 100%;
    font-size: .85rem;
  }

  /* Utility class: collapse any 2-column form grid on mobile */
  .form-row-2 {
    grid-template-columns: 1fr !important;
  }

  /* Value-prop image: fluid width instead of fixed 380px */
  .val-prop-img-wrap {
    width: 100% !important;
    height: 260px !important;
    max-width: 100% !important;
  }

  /* Hero container: reduce large block padding on mobile */
  .hero-content-wrap {
    padding-block: 5rem 3.5rem !important;
  }

  /* Vision / quote box: tighter padding */
  .vision-box {
    padding: 1.75rem !important;
  }

  /* About testimonials grid: always single column on mobile */
  .about-testimonials-grid {
    grid-template-columns: 1fr !important;
  }

  /* Comparison panels: tighter padding */
  .comparison-panel {
    padding: 1.75rem !important;
  }

  /* FAQ: tighter padding */
  .faq-question {
    padding: 1.1rem 1.25rem;
  }

  .faq-answer {
    padding: 0 1.25rem;
  }

  /* Top-bar offer text: wrap neatly */
  .top-bar-offer {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {

  /* Buttons: slightly smaller */
  .btn {
    padding: .65rem 1.1rem;
    font-size: .875rem;
  }

  /* Hero stat cards: compact */
  .hero-stat-card {
    padding: .875rem 1rem;
  }

  /* Hide the inline navbar "Get Free Quote" button – menu is available */
  #navbar .btn-emerald {
    display: none !important;
  }

  /* Top bar: more compact */
  .top-bar {
    padding: .3rem 0;
  }

  .top-bar-offer span {
    font-size: .72rem !important;
  }

  /* Marquee: tighter spacing on tiny screens */
  .marquee-logo {
    margin-inline: 1rem;
    height: 2rem;
  }
}

/* Footer newsletter form: stack vertically on very narrow screens */
@media (max-width: 400px) {
  footer form[onsubmit] {
    flex-direction: column;
  }

  footer form[onsubmit] button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .marquee-logo-card {
    width: 11.5rem;
    margin-inline: 0.45rem;
  }

  .client-logo-section .marquee-wrapper {
    padding-inline: 0.45rem;
  }
}

@media (max-width: 600px) {
  .client-logo-section {
    padding-block: 2rem;
  }

  .client-logo-heading {
    font-size: 0.95rem;
  }

  .marquee-logo-card {
    width: 8.9rem;
    margin-inline: 0.35rem;
    border-radius: 0.55rem;
  }

  .client-logo-track {
    animation-duration: 28s;
  }

  .client-logo-section .marquee-wrapper {
    padding-inline: 0.3rem;
  }
}

/* ============================================================
   Premium Success Card Styling
   ============================================================ */
.premium-success-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(10, 25, 47, 0.02) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  animation: successScaleUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dark .premium-success-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(17, 34, 64, 0.4) 100%);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

@keyframes successScaleUp {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(15px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.success-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
  border-radius: 50%;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.2);
}

.success-icon-wrapper::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(16, 185, 129, 0.4);
  animation: successRotateDashed 20s linear infinite;
}

@keyframes successRotateDashed {
  to { transform: rotate(360deg); }
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.dark .success-title {
  color: #fff;
}

.success-description {
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 485px;
  margin: 0 auto 2rem;
}

.dark .success-description {
  color: rgba(255, 255, 255, 0.7);
}

.timeline-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1.5rem;
}

.dark .timeline-steps {
  background: var(--navy-light);
  border-color: var(--navy-lighter);
}

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

.timeline-step {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--emerald);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.step-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
}

.dark .step-title {
  color: #fff;
}

.step-desc {
  font-size: 0.75rem;
  color: var(--slate-600);
  line-height: 1.4;
  margin-left: 2rem;
}

.dark .step-desc {
  color: rgba(255, 255, 255, 0.6);
}
