:root {
  --navy: #101f35;
  --navy-light: #1b304b;
  --orange: #246ed0;
  --white: #ffffff;
  --light: #f4f6f8;
  --muted: #667085;
  --border: #e4e8ee;
}

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

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

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
}

.logo img {
  height: 90px;
  width: 110px;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1120px, 90%);
  margin: auto;
}

/* Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--orange);
  color: var(--navy);
  font-size: 21px;
  font-weight: 900;
  border-radius: 5px;
}

.brand small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.3px;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover {
  color: #bd7515;
}

.nav-cta {
  background: var(--navy);
  color: white !important;
  padding: 12px 18px;
  border-radius: 4px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--navy);
  font-size: 28px;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  min-height: 570px;
  display: flex;
  align-items: center;
}

/* Cinematic Background Slideshow */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--navy);
  pointer-events: none;
}

.hero-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(16, 31, 53, 0.9) 0%,
    rgba(16, 31, 53, 0.78) 45%,
    rgba(16, 31, 53, 0.3) 100%
  );
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  animation: heroSlideshow 21s infinite;
  will-change: opacity, transform;
}

/* Hero Images */
.hero-slide.slide-1 {
  background-image: url("assets/heading 1.jpg");
  animation-delay: 0s;
}

.hero-slide.slide-2 {
  background-image: url("assets/heading 2.jpg");
  animation-delay: 7s;
}

.hero-slide.slide-3 {
  background-image: url("assets/heading 3.jpg");
  animation-delay: 14s;
}

/* Slow Fade and Zoom */
@keyframes heroSlideshow {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  5% {
    opacity: 1;
  }

  28% {
    opacity: 1;
    transform: scale(1.07);
  }

  36% {
    opacity: 0;
    transform: scale(1.09);
  }

  100% {
    opacity: 0;
    transform: scale(1.09);
  }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 730px;
  padding: 90px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  height: 2px;
  width: 28px;
  background: var(--orange);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.06;
  letter-spacing: -2.5px;
  max-width: 720px;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--orange);
}

.hero p {
  max-width: 540px;
  color: #d0d9e4;
  font-size: 17px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-secondary {
  border-color: #8190a3;
  color: var(--white);
  background: rgba(16, 31, 53, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Respect Reduced-Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none;
  }

  .hero-slide.slide-1 {
    opacity: 1;
    transform: none;
  }
}

/* Highlights */
.highlights {
  background: var(--orange);
  padding: 25px 0;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 13px;
}

.highlight-number {
  font-size: 27px;
  font-weight: 900;
}

.highlight-text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

/* General Sections */
section {
  padding: 70px 0;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 38px;
}

.section-label {
  color: #2b67b5;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: clamp(25px, 4vw, 35px);
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 14px;
}

.section-heading p {
  color: var(--muted);
  font-size: 15px;
}

/* Services Carousel */
.services {
  background: var(--light);
  padding: 80px 0;
  overflow: hidden;
}

.services-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
}

.services-top .section-heading {
  margin-bottom: 0;
}

/* Carousel Layout */
.services-carousel {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 25px;
  align-items: center;
  gap: 10px;
  width: calc(100% + 80px);
  margin-left: -40px;
}

.services-viewport {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

/* Navigation Arrows */
.services-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 25px;
  height: 50px;
  flex-shrink: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.services-arrow svg {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#prevService:hover:not(:disabled) {
  color: var(--orange);
  transform: translateX(-3px);
}

#nextService:hover:not(:disabled) {
  color: var(--orange);
  transform: translateX(3px);
}

.services-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.services-arrow:focus-visible,
.service-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

/* Carousel Track - Three Cards on Desktop */
.service-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 34px) / 3);
  grid-template-columns: none;
  gap: 17px;
  align-items: start;
  transition: transform 0.4s ease;
  will-change: transform;
}

/* Service Cards */
.service-card {
  display: block;
  align-self: start;
  width: 100%;
  height: fit-content;
  min-width: 0;
  padding: 0;
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 12px 30px rgba(16, 31, 53, 0.08);
  transform: translateY(-3px);
}

/* Service Images */
.service-card .service-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

/* Video and Video Wrappers */
.service-card .service-media,
.service-card .service-video-wrapper {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

/* Videos - Follow Natural Proportions */
.service-card video,
.service-card .service-video {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* Service Text */
.service-content {
  height: auto;
  min-height: 0;
  padding: 2px 15px 24px;
  border-bottom: 3px solid var(--orange);
}

.service-content h3 {
  font-size: 20px;
  line-height: 1.35;
  margin: 14px 0 10px;
}

.service-content p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* Tablet */
@media (max-width: 900px) {
  .services-carousel {
    width: 100%;
    margin-left: 0;
    grid-template-columns: 25px minmax(0, 1fr) 25px;
    gap: 8px;
  }

  .service-grid {
    grid-auto-columns: calc((100% - 17px) / 2);
  }

  .services {
    padding: 65px 0;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .services {
    padding: 50px 0;
  }

  .services-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 28px;
  }

  .services-carousel {
    grid-template-columns: 20px minmax(0, 1fr) 20px;
    gap: 6px;
  }

  .services-arrow {
    width: 20px;
    height: 40px;
  }

  .services-arrow svg {
    width: 30px;
    height: 30px;
  }

  .service-grid {
    grid-auto-columns: 100%;
    gap: 14px;
  }

  .service-content {
    padding: 2px 15px 20px;
  }

  .service-content h3 {
    font-size: 18px;
  }

  .service-content p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
  }
}

/* About */

.about-panel {
  background: var(--navy);
  color: white;
  border-radius: 7px;
  padding: 42px;
  position: relative;
  overflow: hidden;
}

.about-panel::after {
  content: "A";
  position: absolute;
  right: -10px;
  bottom: -95px;
  color: rgba(255, 255, 255, 0.05);
  font-size: 290px;
  line-height: 1;
  font-weight: 900;
}

.about-panel h3 {
  position: relative;
  z-index: 1;
  font-size: 28px;
  line-height: 1.25;
  margin-bottom: 16px;
}

.about-panel p {
  position: relative;
  z-index: 1;
  color: #d0d9e4;
  font-size: 14px;
}

.about-copy h2 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 10px 0 18px;
}

.about-copy > p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 22px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  color: #a76612;
  font-weight: 900;
}

/* Clients Marquee */
.clients {
  padding: 55px 0;
  background: var(--light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.clients-title {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 28s linear infinite;
}

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

.marquee-group {
  display: flex;
  align-items: center;
  gap: 70px;
  padding-right: 67px;
}

.client-logo {
  width: 170px;
  height: 110px;

  flex-shrink: 0;

  opacity: 0.75;
  transition:
    filter 0.3s ease,
    opacity 0.3s ease;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.client-name {
  white-space: nowrap;
  font-size: 17px;
  font-weight: 800;
  color: #6c7887;
  letter-spacing: 0.2px;
}

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

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

/* FAQ */
.faq {
  max-width: 780px;
}

details {
  border: 1px solid var(--border);
  border-radius: 7px;
  margin-bottom: 10px;
  padding: 16px 20px;
}

summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--orange);
}

details p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}

/* Contact / RFP Section */
.contact {
  background: var(--navy);
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.contact h2 {
  font-size: clamp(30px, 4vw, 43px);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.contact p {
  color: #c7d2df;
  font-size: 15px;
}

.rfp-form {
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 36px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: #101f35;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: white;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--orange);
}

/* Footer */
.site-footer {
  background: #0d192c;
  color: var(--white);
  padding: 55px 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo img {
  display: block;
  width: 150px;
  height: auto;
  max-height: 75px;
  object-fit: contain;
}

.footer-brand p {
  max-width: 330px;
  color: #c5d0df;
  font-size: 14px;
  line-height: 1.8;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-column h4 {
  color: var(--white);
  font-size: 14px;
  margin-bottom: 7px;
}

.footer-column a,
.back-to-top {
  color: #c5d0df;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-column a:hover,
.back-to-top:hover {
  color: #78aaf0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
  color: #c5d0df;
  font-size: 12px;
  line-height: 1.7;
}

/* Tablet Footer */
@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 35px 25px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Small Footer */
@media (max-width: 480px) {
  .site-footer {
    padding-top: 40px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px 15px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

/* Tablet Layout */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-grid {
    gap: 35px;
  }

  .services {
    padding: 80px 0;
  }

  .services-carousel {
    grid-template-columns: 25px minmax(0, 1fr) 25px;
    gap: 10px;
  }

  .services-arrow {
    width: 25px;
    height: 50px;
  }

  .services-arrow svg {
    width: 30px;
    height: 30px;
  }

  /* Two cards on tablet */
  .service-grid {
    grid-auto-columns: calc((100% - 20px) / 2);
    gap: 20px;
  }
}

/* Navigation and General Responsive Layout */
@media (max-width: 800px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 22px 5%;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    text-align: center;
  }

  .hero {
    min-height: 510px;
  }

  .hero-content {
    padding: 75px 0;
  }

  .highlight-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

/* Mobile Layout */
@media (max-width: 600px) {
  .services {
    padding: 65px 0;
  }

  .services-top {
    gap: 12px;
  }

  .services-carousel {
    grid-template-columns: 22px minmax(0, 1fr) 22px;
    gap: 8px;
  }

  .services-arrow {
    width: 22px;
    height: 48px;
  }

  .services-arrow svg {
    width: 22px;
    height: 22px;
  }

  /* One card on mobile */
  .service-grid {
    grid-auto-columns: 100%;
    gap: 18px;
  }

  .service-content {
    padding: 22px 20px 24px;
  }
}

/* Small Mobile */
@media (max-width: 520px) {
  .brand {
    font-size: 13px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero h1 {
    letter-spacing: -1.5px;
  }

  .hero p {
    font-size: 15px;
  }

  section {
    padding: 65px 0;
  }

  .about-panel {
    padding: 30px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-track {
    animation: none;
  }

  .service-grid {
    transition: none;
  }
}

/* ========================================
   OUR WORK VIDEO CAROUSEL
======================================== */

.work-showcase {
  background: var(--light);
  padding: 50px 0;
  overflow: hidden;
}

.work-showcase-heading {
  margin-bottom: 25px;
}

.work-showcase-heading .section-heading {
  max-width: 620px;
}

.work-showcase-heading .section-heading p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ========================================
   CAROUSEL LAYOUT
======================================== */

.work-carousel {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 25px;
  align-items: center;
  gap: 4px;
  width: calc(100% + 120px);
  margin-left: -60px;
}

.work-viewport {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

/* ========================================
   CAROUSEL TRACK
   Three Wider Videos on Desktop
======================================== */

.work-track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 16px) / 3);
  grid-template-columns: none;
  gap: 8px;
  align-items: start;
  width: 100%;
  transition: transform 0.4s ease;
  will-change: transform;
}

/* ========================================
   VIDEO CARDS
======================================== */

.work-card {
  display: block;
  align-self: start;
  width: 100%;
  min-width: 0;
  height: fit-content;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #111;
  border: none;
  border-radius: 3px;
}

/* ========================================
   VIDEO DISPLAY
   Fill Cards with Video
======================================== */

.work-card video,
.work-card .work-video {
  display: block;
  width: 100%;
  height: 460px;
  min-height: 0;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #111;
}

/* ========================================
   NAVIGATION ARROWS
======================================== */

.work-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 25px;
  height: 50px;
  flex-shrink: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.work-arrow svg {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#prevWork:hover:not(:disabled) {
  color: var(--orange);
  transform: translateX(-3px);
}

#nextWork:hover:not(:disabled) {
  color: var(--orange);
  transform: translateX(3px);
}

.work-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.work-arrow:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {
  .work-showcase {
    padding: 42px 0;
  }

  .work-carousel {
    width: 100%;
    margin-left: 0;
    grid-template-columns: 25px minmax(0, 1fr) 25px;
    gap: 6px;
  }

  .work-track {
    grid-auto-columns: calc((100% - 7px) / 2);
    gap: 7px;
  }

  .work-card video,
  .work-card .work-video {
    height: 400px;
  }

  .work-arrow svg {
    width: 30px;
    height: 30px;
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {
  .work-showcase {
    padding: 32px 0;
  }

  .work-showcase-heading {
    margin-bottom: 18px;
  }

  .work-carousel {
    grid-template-columns: 20px minmax(0, 1fr) 20px;
    gap: 5px;
  }

  .work-track {
    grid-auto-columns: 100%;
    gap: 10px;
  }

  .work-card video,
  .work-card .work-video {
    height: 400px;
  }

  .work-arrow {
    width: 20px;
    height: 40px;
  }

  .work-arrow svg {
    width: 30px;
    height: 30px;
  }
}

/* ========================================
   ACCESSIBILITY
======================================== */

@media (prefers-reduced-motion: reduce) {
  .work-track,
  .work-arrow {
    transition: none;
  }
}

/* ========================================
   HOW IT WORKS
======================================== */

.our-process {
  padding: 85px 0;
  background: var(--white);
}

.process-heading {
  max-width: 650px;
  margin-bottom: 45px;
}

.process-heading h2 {
  margin-top: 12px;
  color: var(--navy);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.8px;
}

.process-heading p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.process-step {
  padding-top: 22px;
  border-top: 2px black solid;
  transition: border-color 0.25s ease;
}

.process-step:hover {
  border-color: var(--orange);
}

.process-number {
  display: inline-block;
  margin-bottom: 24px;
  color: black;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.process-step h3 {
  margin-bottom: 12px;
  color: black;
  font-size: 19px;
  font-weight: 600;
}

.process-step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* Tablet */

@media (max-width: 900px) {
  .our-process {
    padding: 75px 0;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px 28px;
  }
}

/* Mobile */

@media (max-width: 600px) {
  .our-process {
    padding: 60px 0;
  }

  .process-heading {
    margin-bottom: 35px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .process-step {
    padding-top: 18px;
  }

  .process-number {
    margin-bottom: 14px;
  }
}

/* ========================================
   WHATSAPP FLOATING BUTTON
======================================== */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;

  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  text-decoration: none;
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
}

.whatsapp-float:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  transition:
    background 0.2s,
    transform 0.2s;
}

@media (max-width: 600px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }
}

/* Automatic Services Carousel */
@media (prefers-reduced-motion: no-preference) {
  .service-grid {
    transition: transform 0.55s ease-in-out;
  }
}

.services-viewport {
  touch-action: pan-y;
}

.service-card {
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .service-grid {
    transition: none;
  }
}

/* ========================================
   CLIENT LOGO MARQUEE
======================================== */

.clients {
  padding: 50px 0;
  background: var(--light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.clients-title {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 1.8px;
  line-height: 1.6;
  text-transform: uppercase;
  margin: 0 auto 28px;
  padding: 0 16px;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: scroll 30s linear infinite;
  will-change: transform;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  gap: 60px;
  padding-right: 60px;
}

.client-logo {
  display: block;
  flex: 0 0 auto;
  width: 150px;
  height: 85px;
  object-fit: contain;
  object-position: center;
  opacity: 0.8;
  transition: opacity 0.25s ease;
}

.client-logo:hover {
  opacity: 1;
}

.client-name {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 800;
  color: #6c7887;
  letter-spacing: 0.2px;
}

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

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

/* Tablet */
@media (max-width: 768px) {
  .clients {
    padding: 40px 0;
  }

  .clients-title {
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-bottom: 22px;
  }

  .marquee-group {
    gap: 42px;
    padding-right: 42px;
  }

  .client-logo {
    width: 125px;
    height: 72px;
  }

  .client-name {
    font-size: 15px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .clients {
    padding: 32px 0;
  }

  .clients-title {
    max-width: 290px;
    font-size: 10px;
    letter-spacing: 1.2px;
    line-height: 1.8;
    margin-bottom: 18px;
  }

  .marquee-group {
    gap: 30px;
    padding-right: 30px;
  }

  .client-logo {
    width: 105px;
    height: 60px;
  }

  .client-name {
    font-size: 13px;
  }

  .marquee-track {
    animation-duration: 20s;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    will-change: auto;
  }
}

@media (max-width: 800px) {
  .menu-toggle {
    margin-left: auto;
    transform: translateX(10px);
  }
}

/* WhatsApp Floating Button - Continuous Bounce */
.whatsapp-float {
  animation: whatsappBounce 2s ease-in-out infinite;
  will-change: transform;
}

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

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

/* Pause bounce on hover */
.whatsapp-float:hover {
  animation-play-state: paused;
  transform: translateY(-2px);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    animation: none;
  }
}

/* Hide navbar on scroll down, reveal on scroll up */
header {
  transition: transform 0.3s ease;
}

header.navbar-hidden {
  transform: translateY(-100%);
}

/* Keep navbar visible while the mobile menu is open */
header.menu-open {
  transform: translateY(0);
}

/* Mobile-friendly service dropdown */
#rfpForm select#service {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 12px 40px 12px 14px;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.4;
  border-radius: 8px;
  cursor: pointer;
}

/* Keep the dropdown within the form on small screens */
@media (max-width: 600px) {
  #rfpForm select#service {
    width: 100%;
    max-width: 100%;
    min-height: 50px;
    font-size: 16px;
  }
}

/* South Africa Map */

/* Nationwide Coverage */
.coverage-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
  max-width: 1150px;
  min-height: auto;
  margin: 10px auto 0;
  padding: 30px 30px 0;
  padding-bottom: 35px;
}

.coverage-map {
  flex: 0 1 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.south-africa-map {
  display: block;
  width: 100%;
  max-width: 600px;
  height: 400px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(17%) sepia(24%) saturate(1350%)
    hue-rotate(167deg) brightness(90%) contrast(95%);
}

.coverage-content {
  flex: 1;
  max-width: 400px;
  padding-top: 20px;
  text-align: left;
}

.coverage-eyebrow {
  display: block;
  margin-bottom: 14px;
  color: #b7a16a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.coverage-content h2 {
  margin: 0 0 16px;
  color: #163653;
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1.15;
}

.coverage-content p {
  max-width: 350px;
  margin: 0;
  color: #596779;
  font-size: 16px;
  line-height: 1.8;
}

/* Coverage Description */
.coverage-description {
  max-width: 380px;
  color: #596779;
  font-size: 15px;
  line-height: 1.9;
}

.coverage-description span {
  color: #163653;
  font-weight: 600;
}

/* Mobile Layout */
@media (max-width: 700px) {
  .coverage-section {
    flex-direction: column;
    gap: 10px;
    min-height: auto;
    margin: 0 auto;
    padding: 20px 20px 0;
    padding-bottom: 35px;
  }

  .coverage-map {
    flex: auto;
    width: 100%;
  }

  .south-africa-map {
    width: 100%;
    max-width: 400px;
    height: 300px;
  }

  .coverage-content {
    max-width: 100%;
    padding-top: 0;
  }

  .coverage-content p {
    margin: 0;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-content h3 {
  min-height: 2.8em;
  line-height: 1.5;
  margin: 0 0 12px;
}

.service-content p {
  margin: 0;
  line-height: 1.6;
  margin-bottom: 13px;
}

/* Work Video Carousel Indicators */
.work-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin: 22px auto 0;
}

.work-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #cbd2d9;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.work-dot:hover {
  background: #b7a16a;
  transform: scale(1.2);
}

.work-dot.is-active {
  background: #163653;
  transform: scale(1.35);
}

.work-dot:focus-visible {
  outline: 2px solid #b7a16a;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .work-dot {
    transition: none;
  }
}

/* Service Carousel Dots — Mobile Only */
.services-dots {
  display: none;
}

@media (max-width: 700px) {
  .services-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 18px auto 0;
  }

  .services-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #cbd2d9;
    cursor: pointer;
    transition:
      background-color 0.25s ease,
      transform 0.25s ease;
  }

  .services-dot.is-active {
    background: #163653;
    transform: scale(1.35);
  }

  .services-dot:focus-visible {
    outline: 2px solid #b7a16a;
    outline-offset: 3px;
  }
}
