/* ============================================================
   SAP OVERLAND — Main Stylesheet
   Theme: Blue (#0A2472 / #1B3A8C), Red (#D32F2F), Yellow (#F4C430)
   ============================================================ */

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

:root {
  /* Palette */
  --blue-dark:   #0A2472;
  --blue:        #1B3A8C;
  --blue-mid:    #2952B3;
  --blue-light:  #3A6FD8;
  --red:         #D32F2F;
  --red-dark:    #B71C1C;
  --red-light:   #EF5350;
  --yellow:      #F4C430;
  --yellow-dark: #D4A017;
  --yellow-light:#FFD966;
  --white:       #FFFFFF;
  --off-white:   #F4F6FB;
  --gray-100:    #F1F3F7;
  --gray-200:    #E2E6EE;
  --gray-400:    #9BA5B7;
  --gray-600:    #5A6070;
  --gray-800:    #2C3140;
  --text:        #1A1F2E;

  /* Typography */
  --font-body:   'Inter', sans-serif;
  --font-head:   'Barlow Condensed', sans-serif;

  /* Spacing */
  --section-py:  52px;
  --container:   1200px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(10,36,114,0.08);
  --shadow-md:   0 4px 24px rgba(10,36,114,0.12);
  --shadow-lg:   0 8px 48px rgba(10,36,114,0.18);

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;

  /* Transitions */
  --transition:  0.25s ease;
}

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

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

/* ---------- PRELOADER ---------- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--blue-dark);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__logo {
  width: 180px;
  animation: preloaderLogoFade 0.7s ease forwards;
}
.preloader__spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(244, 196, 48, 0.25);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: preloaderSpin 0.85s linear infinite;
}
@keyframes preloaderLogoFade {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes preloaderSpin {
  to { transform: rotate(360deg); }
}

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

a { text-decoration: none; color: inherit; transition: color var(--transition); }

ul { list-style: none; }

/* ---------- UTILITY ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-yellow  { color: var(--yellow); }
.text-red     { color: var(--red); }
.text-blue    { color: var(--blue); }
.text-white   { color: var(--white); }
.text-white-70 { color: rgba(255,255,255,0.7); }

.section { padding: var(--section-py) 0; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn--red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(211,47,47,0.35); }

.btn--yellow {
  background: var(--yellow);
  color: var(--blue-dark);
  border-color: var(--yellow);
}
.btn--yellow:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(244,196,48,0.4); }

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline-white:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn--green {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn--green:hover { background: #1ebe5d; transform: translateY(-1px); }

.btn--full { width: 100%; justify-content: center; }

/* ---------- SECTION HEADER ---------- */
.section__header { text-align: center; margin-bottom: 56px; }

.section__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(211,47,47,0.08);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.section__eyebrow--yellow {
  color: var(--yellow);
  background: rgba(244,196,48,0.15);
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--blue-dark);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section__subtitle {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
}

.section__header--light .section__title { color: var(--white); }

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 18px 0;
}

.header.scrolled {
  background: var(--blue-dark);
  box-shadow: 0 2px 20px rgba(10,36,114,0.25);
  padding: 12px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

/* NAV */
.nav { display: flex; align-items: center; gap: 4px; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav__link:hover, .nav__link.active {
  color: var(--yellow);
  background: rgba(255,255,255,0.08);
}

.nav__arrow { font-size: 10px; }

.nav__cta { margin-left: 16px; padding: 10px 22px; font-size: 14px; }

/* Dropdown */
.nav__dropdown { position: relative; }

.nav__sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}

.nav__dropdown:hover .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__sub li a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav__sub li a:hover {
  background: var(--blue-dark);
  color: var(--white);
  padding-left: 22px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--blue-mid) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(244,196,48,0.06) 0%, transparent 70%),
    radial-gradient(circle at 10% 80%, rgba(211,47,47,0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Diagonal stripe decorations */
.hero::after {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 500px; height: 700px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 2px,
    transparent 2px,
    transparent 18px
  );
  pointer-events: none;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Hero truck image — centered background layer */
.hero__truck {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, black 50%, transparent 100%);
  mask-image: linear-gradient(to top, black 50%, transparent 100%);
  animation: heroTruckBgEntry 1.6s ease both;
}

.hero__truck img {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: center bottom;
  animation: heroTruckZoom 10s ease-in-out 1.6s infinite;
}

@keyframes heroTruckBgEntry {
  from { opacity: 0; }
  to   { opacity: 0.25; }
}

@keyframes heroTruckZoom {
  0%, 100% { transform: scale(1.06); }
  50%       { transform: scale(1.00); }
}

@keyframes heroTruckFadeIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 0.92; transform: translateX(0); }
}

@media (max-width: 900px) {
  .hero__content { flex-direction: column; }
  .hero__text    { display: contents; }
  .hero__eyebrow { order: 1; }
  .hero__title   { order: 2; }
  .hero__truck   {
    order: 3;
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin: 16px 0;
    -webkit-mask-image: none;
    mask-image: none;
    animation: heroTruckFadeIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero__desc    { order: 4; }
  .hero__actions { order: 5; }
  .hero__stats   { order: 6; }
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

.hero__text {
  max-width: 700px;
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(244,196,48,0.12);
  border: 1px solid rgba(244,196,48,0.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(44px, 6.5vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero__desc {
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 56px; }

.hero__stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero__stat { display: flex; flex-direction: column; gap: 4px; }

.stat-number {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.35);
  border-bottom: 2px solid rgba(255,255,255,0.35);
  transform: rotate(45deg);
  animation: scrollBounce 1.6s ease infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.4; }
  50% { transform: rotate(45deg) translateY(5px); opacity: 1; }
}

/* ---------- ANNOUNCE BAR ---------- */
.announce-bar {
  background: var(--yellow);
  color: var(--blue-dark);
  padding: 12px 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ---------- ABOUT ---------- */
.about { background: var(--off-white); }

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

.about__image-wrap {
  position: relative;
}

.about__image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.placeholder-icon { font-size: 80px; }

.about__video {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
  object-fit: cover;
}

.about__badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--red);
  color: var(--white);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 30px rgba(211,47,47,0.4);
  text-align: center;
}

.badge-number {
  display: block;
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.badge-text {
  display: block;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 4px;
}

.about__desc {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.75;
}

.about__pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0 32px;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

.pillar__icon {
  width: 22px;
  height: 22px;
  background: var(--yellow);
  color: var(--blue-dark);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

/* ---------- SERVICES ---------- */
.services { background: var(--off-white); }

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

.service-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover::before { transform: scaleX(1); }

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

.service-card--featured {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

.service-card--featured::before {
  background: var(--yellow);
  transform: scaleX(1);
}

.service-card--featured .service-card__title,
.service-card--featured .service-card__list li { color: var(--white); }

.service-card--featured .service-card__desc { color: rgba(255,255,255,0.72); }

.service-card--featured .service-card__link { color: var(--yellow); }

.service-card__icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--blue-dark);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-card--featured .service-card__icon-wrap { background: rgba(255,255,255,0.1); }

.service-card__icon { font-size: 30px; }

.service-card__title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.service-card__desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-card__list {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card__list li {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  padding-left: 18px;
  position: relative;
}

.service-card__list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--yellow-dark);
  font-size: 12px;
}

.service-card__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-card__link:hover { gap: 10px; color: var(--red); }

/* ---------- EXPERTISE ---------- */
.expertise {
  position: relative;
  padding: var(--section-py) 0;
  overflow: hidden;
}

.expertise__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0d1f5e 50%, var(--blue-dark) 100%);
  z-index: 0;
}

.expertise__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(244,196,48,0.07) 0%, transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(211,47,47,0.07) 0%, transparent 50%);
}

.expertise .container { position: relative; z-index: 1; }

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

.expertise-item {
  padding: 32px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}

.expertise-item:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--yellow);
  transform: translateY(-4px);
}

.expertise-item__number {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 900;
  color: rgba(244,196,48,0.25);
  line-height: 1;
  margin-bottom: 16px;
}

.expertise-item:hover .expertise-item__number { color: var(--yellow); }

.expertise-item__title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.expertise-item__desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

/* ---------- PROJECTS ---------- */
.projects { background: var(--off-white); }

.projects__filter {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 22px;
  border: 2px solid var(--gray-200);
  border-radius: 100px;
  background: var(--white);
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn--active {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

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

.project-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.project-card.hidden { display: none; }

.project-card__image {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-placeholder { font-size: 48px; }

.project-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-card__body { padding: 20px 22px 24px; }

.project-card__title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-card__desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ---------- VIDEO GRID ---------- */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.video-card {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.video-card:hover {
  box-shadow: var(--shadow-lg);
}

.video-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

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

/* ---------- CLIENTS ---------- */
.clients { background: var(--off-white); }

/* Marquee wrapper — clips the scrolling track */
.clients__slider {
  overflow: hidden;
  /* Fade edges for a polished look */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* The moving strip — double-width (two sets of 16 logos) */
.clients__track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: clientsMarquee 40s linear infinite;
}

/* Pause on hover */
.clients__slider:hover .clients__track {
  animation-play-state: paused;
}

@keyframes clientsMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-logo {
  flex: 0 0 auto;
  width: 180px;
  height: 90px;
  margin: 0 16px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.client-logo:hover {
  border-color: var(--blue-light);
  box-shadow: 0 4px 16px rgba(27,58,140,0.10);
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
  transition: filter var(--transition);
}

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

/* ---------- ACCREDITATION ---------- */
.accreditation {
  background: var(--blue-dark);
  position: relative;
  overflow: hidden;
}

.accreditation::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(41,82,179,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 50%, rgba(244,196,48,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.accreditation .section__eyebrow {
  color: var(--yellow);
  background: rgba(244,196,48,0.12);
}

.accreditation .section__title { color: var(--white); }
.accreditation .section__subtitle { color: rgba(255,255,255,0.6); }

.accreditation__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  position: relative;
}

.accreditation-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 120px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.97);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: default;
}

.accreditation-item:hover {
  transform: translateY(-6px);
  border-color: var(--yellow);
  box-shadow: 0 16px 36px rgba(0,0,0,0.3), 0 0 0 1px rgba(244,196,48,0.4);
}

.accreditation-item__logo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accreditation-item__logo img {
  max-width: 100%;
  max-height: 76px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition);
}

.accreditation-item:hover .accreditation-item__logo img {
  transform: scale(1.06);
}

/* ---------- NEWS ---------- */
.news { background: var(--off-white); }

.news__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.news-card__image {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-placeholder { font-size: 40px; }

.news-card__category {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-card__body { padding: 20px 22px 24px; }

.news-card__date {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.news-card__title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.news-card--featured .news-card__title { font-size: 22px; }

.news-card__desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 16px;
}

.news-card__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-card__link:hover { gap: 10px; color: var(--red); }

/* ---------- CONTACT ---------- */
.contact { background: var(--off-white); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 72px;
  align-items: start;
}

.contact__info-title {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  color: var(--blue-dark);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.branch {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-200);
}

.branch:last-of-type { border-bottom: none; margin-bottom: 24px; }

.branch__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

.branch__address, .branch__phone, .branch__email {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.branch__phone a, .branch__email a {
  color: var(--blue);
  font-weight: 500;
}

.branch__phone a:hover, .branch__email a:hover { color: var(--red); }

.whatsapp-btn { gap: 10px; font-size: 15px; }

/* FORM */
.contact__form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

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

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-800);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,58,140,0.12);
}

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

.form__note {
  font-size: 13px;
  color: var(--gray-400);
  text-align: center;
  margin-top: -8px;
}

/* ---------- FOOTER ---------- */
.footer { background: #06122E; color: rgba(255,255,255,0.65); }

.footer__top { padding: 64px 0; }

.footer__top-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer__logo { margin-bottom: 12px; display: inline-block; }

.footer__tagline {
  font-size: 14px;
  color: var(--yellow);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.footer__about {
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
}

.footer__heading {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

.footer__links ul { display: flex; flex-direction: column; gap: 10px; }

.footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  padding-left: 0;
}

.footer__links a:hover {
  color: var(--yellow);
  padding-left: 6px;
}

.footer__bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__bottom p { font-size: 13px; }

.footer__lang { display: flex; gap: 12px; }

.visitor-counter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.visitor-counter svg { opacity: 0.6; flex-shrink: 0; }
#visitorCount { color: rgba(255,255,255,0.75); font-weight: 600; }

.footer__lang a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer__lang a:hover { color: var(--yellow); }

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--blue-dark);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--red); transform: translateY(-3px); }

/* ---------- ANIMATIONS ---------- */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-right"] { transform: translateX(-24px); }
[data-aos="fade-left"]  { transform: translateX(24px); }
[data-aos="fade-up"]    { transform: translateY(24px); }

[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .expertise__grid { grid-template-columns: repeat(3, 1fr); }
  .news__grid { grid-template-columns: 1fr 1fr; }
  .news-card:last-child { display: none; }
}

@media (max-width: 900px) {
  :root { --section-py: 40px; }

  /* Nav → mobile */
  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(340px, 90vw);
    height: 100dvh;
    background: var(--blue-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 28px 40px;
    transition: right 0.35s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .nav.open { right: 0; }

  .nav__list { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }

  .nav__link { font-size: 18px; width: 100%; padding: 12px 4px; }

  .nav__sub {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: rgba(255,255,255,0.06);
    box-shadow: none;
    border-radius: var(--radius-sm);
    margin-top: 4px;
    display: none;
  }

  .nav__dropdown.open .nav__sub { display: block; }

  .nav__sub li a { color: rgba(255,255,255,0.75); }
  .nav__sub li a:hover { background: rgba(255,255,255,0.1); color: var(--yellow); }

  .nav__cta { margin-left: 0; margin-top: 20px; }

  /* Grid layouts */
  .about__grid         { grid-template-columns: 1fr; gap: 48px; }
  .about__badge        { bottom: -16px; right: 16px; }
  .services__grid      { grid-template-columns: 1fr; }
  .expertise__grid     { grid-template-columns: repeat(2, 1fr); }
  .projects__grid      { grid-template-columns: repeat(2, 1fr); }
  /* .clients__logos grid replaced by marquee — no override needed */
  .news__grid          { grid-template-columns: 1fr; }
  .news-card:last-child { display: block; }
  .contact__grid       { grid-template-columns: 1fr; gap: 48px; }
  .footer__top-inner   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero__stats { gap: 28px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; justify-content: center; }

  .about__pillars { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .expertise__grid     { grid-template-columns: 1fr; }
  .projects__grid      { grid-template-columns: 1fr; }
  /* .clients__logos grid replaced by marquee — no override needed */
  .accreditation-item { width: 120px; height: 96px; padding: 14px; }
  .footer__top-inner   { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; gap: 10px; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE — ABOUT REDESIGN
   ═══════════════════════════════════════════════════════════════ */

/* ── Part 1: Intro + 3 Services ─────────────────────────────── */
.about-intro-section { background: var(--off-white); }

.about-intro-text {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 52px;
  font-size: 20px;
  line-height: 1.85;
  color: var(--blue-dark);
}

.about-intro-text strong { font-weight: 900; }

.about-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.about-service-item { text-align: center; }

.about-service-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-service-img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.about-service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.about-service-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--blue-dark);
}

/* ── Part 2: SWOT ────────────────────────────────────────────── */
.swot-section {
  background: var(--off-white);
  padding: 20px 0;
}

.swot-layout {
  display: flex;
  align-items: center;
  gap: 56px;
}

/* Left / right text panels */
.swot-panel {
  flex: 1;
  padding: 36px 32px;
  border-radius: 16px;
  background: var(--off-white);
  box-shadow: 0 4px 24px rgba(10, 36, 114, 0.07);
}

.swot-panel p {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--blue-dark);
  font-weight: 500;
}

.swot-panel--left {
  text-align: right;
  border-top: 4px solid var(--red);
}

.swot-panel--right {
  text-align: left;
  border-top: 4px solid var(--blue);
}

/* Center Venn */
.swot-venn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swot-circles {
  position: relative;
  width: 200px;
  height: 200px;
}

.swot-circle {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 900;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.swot-circle--s { background: var(--blue);      top: 0;     left: 52px;  z-index: 4; }
.swot-circle--w { background: var(--red);       top: 52px;  left: 0;     z-index: 3; }
.swot-circle--t { background: var(--blue-dark); top: 52px;  left: 104px; z-index: 2; }
.swot-circle--o { background: var(--yellow);    top: 104px; left: 52px;  z-index: 1; color: var(--blue-dark); }

/* ── Part 3: Commitments ─────────────────────────────────────── */
.commitments-section { background: var(--off-white); }

.commitments-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 900;
  color: var(--blue-dark);
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 40px;
}

.commitments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 820px;
  margin: 0 auto;
}

.commitment-item { text-align: center; }

.commitment-arrow {
  font-size: 38px;
  color: var(--blue-dark);
  display: block;
  margin-bottom: 16px;
  line-height: 1;
  /* Override default AOS translateY so the arrow drops from above */
  transform: translateY(-20px);
}

[data-aos="commit-arrow"].aos-animate {
  animation: commitBounce 0.95s cubic-bezier(0.28, 0.84, 0.42, 1) forwards;
}

@keyframes commitBounce {
  0%   { opacity: 0; transform: translateY(-20px); }
  50%  { opacity: 1; transform: translateY(9px); }
  70%  { transform: translateY(-5px); }
  85%  { transform: translateY(3px); }
  100% { opacity: 1; transform: translateY(0); }
}

.commitment-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  box-shadow: var(--shadow-md);
  /* Include opacity so AOS fade still works when this class overrides the AOS transition */
  transition: opacity 0.6s ease, transform var(--transition), box-shadow var(--transition);
}

.commitment-img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.commitment-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.commitment-caption {
  font-size: 16px;
  line-height: 1.75;
  color: var(--blue-dark);
  font-weight: 500;
  max-width: 300px;
  margin: 0 auto;
}

/* ── Video section (simplified) ──────────────────────────────── */
.about-video-section { background: var(--off-white); }

.about-video-wrap {
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-video-wrap .about__video {
  border-radius: 0;
  box-shadow: none;
}

.about-video-cta {
  text-align: center;
  margin-top: 36px;
}

/* ── About Redesign — Responsive ─────────────────────────────── */
@media (max-width: 800px) {
  .swot-section  { padding: 16px 0; }
  .swot-layout   { flex-direction: column; gap: 40px; }
  .swot-panel--left  { text-align: center; }
  .swot-panel--right { text-align: center; }
}

@media (max-width: 700px) {
  .about-services-grid { grid-template-columns: 1fr 1fr; }
  .commitments-grid    { grid-template-columns: 1fr; gap: 40px; }
  .commitment-caption  { max-width: 100%; }
}

@media (max-width: 480px) {
  .about-services-grid { grid-template-columns: 1fr; }
  .about-intro-text    { font-size: 17px; }
  .swot-panel p        { font-size: 15px; }
}
