/* ============================================
   ADMILES MEDIA - Shared Stylesheet
   Colors: Red #CC1818, Navy #002366, White #FAFAFA
   Display font: Barlow Condensed   Body: DM Sans
   ============================================ */

/* --- Custom Properties & Reset --- */
:root {
  --red: #CC1818;
  --red-rgb: 204, 24, 24;
  --red-dark: #A91414;
  --navy: #002366;
  --navy-dark: #0C1B3A;
  --white: #FAFAFA;
  --gray-light: #f5f5f7;
  --gray-text: #5f6b7a;
  --gray-border: #e2e5ea;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.3s ease;
  --radius: 12px;
  --radius-lg: 20px;
}

/* Skip to content link (accessibility) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--red);
  outline-offset: 0;
}

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

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

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: clip;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Typography --- */
.section-label {
  text-transform: uppercase;
  font-variant: small-caps;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--navy);
}

.section-title .accent { color: var(--red);}

.section-subtitle {
  color: var(--gray-text);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.7;
}

.section-subtitle.centered { margin: 0 auto; text-align: center; }

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

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

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

.section-light {
  background: var(--gray-light);
}

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

.grid-align-start { align-items: flex-start; gap: 3rem; }
.grid-align-center { align-items: center; gap: 3rem; }
.copy-muted { color: var(--gray-text); line-height: 1.8; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: 0.85rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 1.25rem; }
.mb-xl { margin-bottom: 1.75rem; }
.mb-2xl { margin-bottom: 2rem; }
.mb-3xl { margin-bottom: 2.5rem; }
.section-intro { margin-bottom: 3rem; }
.section-intro-sm { margin-bottom: 2.5rem; }
.mt-md { margin-top: 0.3rem; }
.mt-xl { margin-top: 2rem; }
.mt-2xl { margin-top: 2.5rem; }
.text-white { color: var(--white); }
.text-red { color: var(--red); }
.section-flush { padding: 0; overflow: clip; }
.inline-flex-wrap { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.button-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.icon-text-row { display: flex; align-items: flex-start; gap: 1rem; }
.portfolio-link-card { text-decoration: none; color: inherit; display: block; }
.btn-compact { font-size: 0.82rem; padding: 0.6rem 1.2rem; margin-top: 0.25rem; }
.heading-compact {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

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


/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color var(--transition), opacity var(--transition);
}

.nav-brand:hover {
  opacity: 0.9;
}

.navbar.scrolled .nav-brand {
  color: var(--navy);
}

.nav-brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
}

.nav-brand-text {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.navbar.scrolled .nav-link {
  color: var(--navy);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--red);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(232, 32, 32, 0.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar.scrolled .hamburger span {
  background: var(--navy);
}

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

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
  background: linear-gradient(120deg, #00133d 0%, #002366 48%, #001e59 100%);
  isolation: isolate;
}

.hero-carousel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 70%;
  overflow: clip;
  border-radius: 0;
}

.hero-carousel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 17, 51, 0.98) 0%,
    rgba(0, 17, 51, 0.84) 18%,
    rgba(0, 17, 51, 0.52) 42%,
    rgba(0, 17, 51, 0.3) 62%,
    rgba(0, 17, 51, 0.5) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.carousel-slide.active { opacity: 1; }

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) brightness(0.86);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 35, 102, 0.36);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 30%;
  max-width: none;
  margin: 0;
  text-align: left;
  padding: 7rem clamp(1.25rem, 3vw, 2.5rem) 2rem clamp(1.5rem, 5vw, 5rem);
}

.hero-title-logo {
  width: clamp(104px, 14.3vw, 169px);
  height: auto;
  margin: 0 0 1.1rem;
}

.hero-tagline {
  font-size: 2.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-tagline .accent {
  color: var(--red);
  position: relative;
  display: inline-block;
  font-size: 0.8em;
  letter-spacing: 0.02em;
}

.hero-tagline .accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--red);
}

.hero-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  max-width: 420px;
  margin: 0 0 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  transition: all var(--transition);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(232, 32, 32, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  transition: all var(--transition);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-red {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  transition: all var(--transition);
}

.btn-outline-red:hover {
  background: var(--red);
  color: var(--white);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: flex-start;
  gap: 3rem;
  margin-top: 2.5rem;
}

.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--red);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.15rem;
}


.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0 1.25rem;
  background: rgba(0, 35, 102, 0.45);
  position: relative;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--red);
  width: 24px;
  border-radius: 4px;
}

/* --- Partner Marquee --- */
.partner-bar {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 35, 102, 0.5);
  backdrop-filter: blur(10px);
  overflow: hidden;
  padding: 1rem 0;
}

.partner-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

.partner-track img {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--transition);
  filter: drop-shadow(0 1px 3px rgba(255, 255, 255, 0.2));
}

.partner-track img:hover { opacity: 1; }

.partner-text-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 50px;
  white-space: nowrap;
}

/* --- Marquee Ticker --- */
.marquee-ticker {
  overflow: hidden;
  background: var(--navy);
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-ticker-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: marquee-scroll 25s linear infinite;
}

.marquee-ticker-text {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

.marquee-ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.3;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: 0 8px 30px rgba(0, 35, 102, 0.08);
  transform: translateY(-3px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card-icon.red {
  background: rgba(var(--red-rgb), 0.08);
  color: var(--red);
}

.card-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.card-desc {
  font-size: 0.875rem;
  color: var(--gray-text);
  line-height: 1.6;
}

/* --- Service Cards (Numbered) --- */
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 2rem 2rem 2rem 2.5rem;
  transition: all 0.4s ease;
  overflow: hidden;
}

.service-card:hover {
  background: var(--red);
  border-left-color: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(232, 32, 32, 0.2);
}

.service-card:hover .service-card-title { color: var(--white); }
.service-card:hover .service-card-desc { color: rgba(255, 255, 255, 0.85); }
.service-card:hover .service-card-icon { background: rgba(255, 255, 255, 0.15); color: var(--white); }

.service-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(232, 32, 32, 0.08);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  transition: all 0.4s ease;
}

.service-card-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  transition: color 0.4s ease;
}

.service-card-desc {
  font-size: 0.875rem;
  color: var(--gray-text);
  line-height: 1.6;
  transition: color 0.4s ease;
}

.service-card-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(232, 32, 32, 0.08);
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  transition: all 0.4s ease;
}

.service-card:hover .service-card-badge {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* --- Portfolio Grid --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-border);
  transition: all var(--transition);
}

.portfolio-card:hover {
  box-shadow: 0 12px 40px rgba(0, 35, 102, 0.1);
  transform: translateY(-4px);
}

.portfolio-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(232, 32, 32, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay-text {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.portfolio-thumb-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  pointer-events: none;
}

.portfolio-thumb-title {
  position: absolute;
  bottom: 0.75rem;
  left: 1rem;
  right: 1rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 2;
}

.portfolio-body {
  padding: 1.25rem;
}

.portfolio-body p {
  font-size: 0.82rem;
  color: var(--gray-text);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-body .view-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  transition: gap var(--transition);
}

/* --- Stats Section --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
  font-weight: 500;
}

.section-light .stat-label { color: var(--gray-text); }

/* --- Partner Grid (about page) --- */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.partner-grid-item {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  min-width: 130px;
  flex: 0 1 auto;
  transition: box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.partner-grid-item:hover {
  box-shadow: 0 6px 24px rgba(0, 35, 102, 0.1);
  transform: translateY(-3px);
  border-color: rgba(232, 32, 32, 0.2);
}

.partner-grid-item img {
  max-height: 38px;
  max-width: 100px;
  width: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-grid-item:hover img {
  transform: scale(1.03);
}

/* --- Contact --- */
.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group { margin-bottom: 1.25rem; }

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

.form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-text);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(232, 32, 32, 0.4);
  box-shadow: 0 0 0 3px rgba(232, 32, 32, 0.08);
}

.form-input:focus:not(:focus-visible),
.form-select:focus:not(:focus-visible),
.form-textarea:focus:not(:focus-visible) {
  outline: none;
}

.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.form-textarea { resize: none; }

.form-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition);
}

.form-submit:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 20px rgba(232, 32, 32, 0.3);
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.privacy-notice {
  margin: -0.25rem 0 1rem;
  color: var(--gray-text);
  font-size: 0.78rem;
  line-height: 1.5;
}

.privacy-notice a {
  color: var(--red);
  font-weight: 600;
}

.contact-call-now {
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.9rem;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}

.contact-call-now:hover {
  background: var(--navy);
  color: var(--white);
}


.contact-info-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
}

.contact-info-item + .contact-info-item {
  border-top: 1px solid var(--gray-light);
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(232, 32, 32, 0.08);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-text);
  margin-bottom: 0.15rem;
}

.contact-info-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
}

a.contact-info-value:hover { color: var(--red); }

.company-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.company-detail-row + .company-detail-row {
  border-top: 1px solid var(--gray-light);
}

.company-detail-key { color: var(--gray-text); }
.company-detail-val { color: var(--navy); font-weight: 500; }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-border);
}

.map-embed iframe {
  width: 100%;
  height: 220px;
  border: 0;
}

/* --- Slideshow Overlay --- */
.slideshow-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 18, 51, 0.96);
  backdrop-filter: blur(12px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.project-card-button {
  width: 100%;
  padding: 0;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.project-card-button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.slideshow-overlay.active {
  display: flex;
}

.slideshow-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 210;
  transition: background var(--transition);
}

.slideshow-close:hover { background: rgba(255, 255, 255, 0.2); }

.slideshow-image-wrap {
  max-width: 900px;
  width: min(100%, 900px);
  position: relative;
}

.slideshow-image-wrap img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  max-height: 70vh;
  object-fit: contain;
}

.slideshow-info {
  text-align: center;
  padding: 1.5rem;
  max-width: 700px;
}

.slideshow-title {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.slideshow-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.6;
}

.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background var(--transition);
  z-index: 210;
}

.slideshow-nav:hover { background: rgba(255, 255, 255, 0.2); }
.slideshow-nav.prev { left: 1rem; }
.slideshow-nav.next { right: 1rem; }

/* --- Page Banner (Inner Pages) --- */
.page-banner {
  background: var(--navy);
  padding: 8rem 0 3rem;
  text-align: center;
}

.page-banner-title {
  font-size: 2.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-banner-title .accent { color: var(--red); }

.page-banner-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* --- Media Map --- */
.filter-pill {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--gray-border);
  border-radius: 50px;
  background: var(--white);
  color: var(--navy);
  transition: all var(--transition);
}

.filter-pill:hover {
  border-color: var(--red);
  color: var(--red);
}

.filter-pill.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.narrow-content {
  max-width: 820px;
}

.narrow-content h2 {
  margin: 2rem 0 0.75rem;
  color: var(--navy);
  font-size: 1.25rem;
}

.narrow-content h2:first-child {
  margin-top: 0;
}

.narrow-content p {
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.narrow-content a {
  color: var(--red);
  font-weight: 600;
}


.filter-clear {
  font-size: 0.75rem;
  color: var(--red);
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  transition: opacity var(--transition);
}

.filter-clear:hover { opacity: 0.7; }

.map-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0.75rem;
  border-top: 1px solid var(--gray-border);
  background: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--gray-text);
}

.map-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.map-legend-dot.unipole { background: var(--red); }
.map-legend-dot.subway { background: var(--navy); border-radius: 3px; }

/* Leaflet marker styles */
.marker-unipole {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--white);
  box-shadow: 0 2px 6px rgba(232, 32, 32, 0.4);
  animation: marker-pulse 2s ease-in-out infinite;
}

.marker-subway {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--navy);
  border: 2px solid var(--white);
  box-shadow: 0 2px 6px rgba(0, 35, 102, 0.4);
}

@keyframes marker-pulse {
  0%, 100% { box-shadow: 0 2px 6px rgba(232, 32, 32, 0.4); }
  50% { box-shadow: 0 2px 12px rgba(232, 32, 32, 0.7); }
}

/* Leaflet popup override */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
  padding: 0 !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  min-width: 220px;
}

.popup-content {
  padding: 1rem;
}

.popup-location {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.popup-detail {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  padding: 0.25rem 0;
}

.popup-detail-key { color: var(--gray-text); }
.popup-detail-val { color: var(--navy); font-weight: 500; }

.popup-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 500;
}

/* --- Footer --- */
.footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-brand img {
  height: 48px;
  width: auto;
  border-radius: 8px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  color: var(--red);
  background: rgba(255, 255, 255, 0.12);
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-links a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.3rem 0;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-contact p,
.footer-contact a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.2rem 0;
  transition: color var(--transition);
}

.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-red-divider {
  width: 40px;
  height: 2px;
  background: var(--red);
  margin-bottom: 1rem;
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left,
.slide-in-right {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-left.visible,
.slide-in-right.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--navy);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Feature Row --- */
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.feature-row:hover {
  box-shadow: 0 4px 15px rgba(0, 35, 102, 0.06);
}

/* --- About page --- */
.timeline {
  position: relative;
  display: grid;
  gap: 2rem;
}

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

.timeline-item {
  position: relative;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0.2rem;
  width: 12px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 3px rgba(var(--red-rgb), 0.25);
}

.timeline-year {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 0.25rem;
}

.timeline-text {
  font-size: 0.92rem;
  color: var(--gray-text);
  line-height: 1.6;
}

/* --- Project page extras --- */
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.project-meta-spaced { margin-bottom: 0.6rem; }

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  background: var(--gray-light);
  color: var(--gray-text);
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-tag.red {
  background: rgba(var(--red-rgb), 0.08);
  color: var(--red);
}

/* --- Contact feedback and social links --- */
#thank-you,
#form-error {
  display: none;
  text-align: center;
  padding: 4rem 2rem;
}

#thank-you.show,
#form-error.show {
  display: block;
}

.contact-form.is-submitted form {
  display: none;
}

.ty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(var(--red-rgb), 0.1);
  color: var(--red);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.ty-icon-error { color: var(--red-dark); }

.ty-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.ty-sub {
  font-size: 0.9rem;
  color: var(--gray-text);
}

.form-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.75rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-secondary-link {
  display: block;
  margin-top: 0.2rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(0, 35, 102, 0.06);
  border: 1px solid var(--gray-border);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy);
  transition: all 0.25s;
}

.social-pill i { color: var(--red); }

.map-iframe {
  width: 100%;
  height: 220px;
  border: 0;
}

/* --- Media map page --- */
.map-shell {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  overflow: clip;
  width: 65%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#media-map {
  width: 100%;
  height: 45vh;
  min-height: 300px;
}

.controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 25;
}

.filter-wrap,
.search-wrap {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.search-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  z-index: 30;
}

.location-search-box { position: relative; }

.location-search-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.location-search-input:focus {
  border-color: rgba(var(--red-rgb), 0.4);
  box-shadow: 0 0 0 3px rgba(var(--red-rgb), 0.08);
}

.location-search-input:focus:not(:focus-visible) {
  outline: none;
}

.location-search-input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.location-suggestions {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  max-height: 220px;
  overflow-y: auto;
  z-index: 1200;
}

.location-suggestion-item {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0.7rem 0.85rem;
  font-size: 0.88rem;
  color: var(--navy);
  border-bottom: 1px solid var(--gray-light);
  cursor: pointer;
}

.location-suggestion-item:last-child {
  border-bottom: none;
}

.location-suggestion-item:hover,
.location-suggestion-item.active {
  background: rgba(0, 35, 102, 0.06);
}

.location-suggestion-empty {
  padding: 0.7rem 0.85rem;
  font-size: 0.84rem;
  color: var(--gray-text);
}

.search-help {
  font-size: 0.8rem;
  color: var(--gray-text);
  line-height: 1.5;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.filter-row:last-child { margin-bottom: 0; }

.filter-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.filter-row-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-text);
  min-width: 80px;
}

.filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-border);
  margin-top: 0.5rem;
}

.map-note {
  margin-top: 2rem;
  text-align: center;
  color: var(--gray-text);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- Responsive --- */
@media (min-width: 576px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .section-title { font-size: 2.5rem; }
  .hero-tagline { font-size: 3.25rem; }
  .page-banner-title { font-size: 3rem; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .partner-grid-item { min-width: 140px; padding: 1.25rem 2rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .contact-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 2rem; }
}

@media (min-width: 1024px) {
  .hero-tagline { font-size: 3.75rem; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-grid-item { min-width: 150px; }
  .stat-value { font-size: 3.5rem; }
}

@media (min-width: 1600px) {
  .container {
    max-width: min(1440px, calc(100vw - 6rem));
  }

  .hero-carousel {
    width: 64%;
  }

  .hero-content {
    width: 36%;
    padding-left: clamp(4rem, 7vw, 9rem);
    padding-right: clamp(2rem, 3vw, 4rem);
  }

  .hero-tagline {
    font-size: clamp(3.75rem, 4vw, 5rem);
  }

  .hero-sub {
    max-width: 540px;
    font-size: 1.12rem;
  }

  .page-banner {
    padding: 8rem 0 4rem;
  }
}

@media (max-width: 1023px) {
  .map-shell { width: 80%; }

  .hero-carousel {
    inset: 0;
    width: 100%;
    border-radius: 0;
  }

  .hero-carousel::before {
    background: linear-gradient(
      180deg,
      rgba(0, 17, 51, 0.9) 0%,
      rgba(0, 17, 51, 0.42) 40%,
      rgba(0, 17, 51, 0.72) 100%
    );
  }

  .hero-content {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    padding: 6.75rem 1.5rem 2rem;
  }

  .hero-title-logo {
    margin: 0 auto 1rem;
  }

  .hero-sub {
    margin: 0 auto 2rem;
  }

  .hero-buttons,
  .hero-stats {
    justify-content: center;
  }
}

/* ══════════════════════════════════════════
   MOBILE — max-width 767px
   ══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Global spacing ── */
  .section { padding: 3rem 0; }
  .container { padding: 0 1.1rem; }

  /* ── Typography ── */
  .section-title { font-size: 1.65rem; }
  .section-subtitle { font-size: 0.92rem; }
  .cta-banner h2 { font-size: 1.5rem; }
  .cta-banner p  { font-size: 0.9rem; }
  .cta-banner    { padding: 2.5rem 0; }

  /* ── Navbar ── */
  .navbar .container {
    position: relative;
  }

  .nav-brand {
    gap: 0.55rem;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
  }

  .nav-brand-logo {
    width: 34px;
    height: 34px;
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
  }

  .navbar.scrolled .hamburger {
    background: rgba(0, 35, 102, 0.08);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1.1rem;
    right: 1.1rem;
    background: rgba(0, 17, 51, 0.98);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
    max-height: calc(100vh - 6.5rem);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.75rem);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 105;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links li:last-child {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link {
    display: block;
    padding: 0.9rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links li:nth-last-child(2) .nav-link {
    border-bottom: none;
  }

  .nav-link.active,
  .nav-links .nav-link:hover { color: var(--red); }
  .navbar.scrolled .nav-link { color: rgba(255, 255, 255, 0.85); }
  .navbar.scrolled .nav-link.active { color: var(--red); }

  .nav-cta {
    display: flex;
    justify-content: center;
    width: 100%;
    font-size: 0.95rem;
    padding: 0.9rem 1rem;
    border-radius: 0;
  }

  /* ── Hero ── */
  .hero-content { padding: 6rem 1.25rem 2rem; }
  .hero-title-logo { width: 109px; margin-bottom: 0.85rem; }
  .hero-tagline { font-size: 1.85rem; margin-bottom: 1rem; }
  .hero-sub     { font-size: 0.92rem; margin-bottom: 1.5rem; }
  .hero-buttons,
  .button-row {
    gap: 0.75rem;
  }
  .btn-primary,
  .btn-outline,
  .btn-outline-red {
    padding: 0.72rem 1.4rem;
    font-size: 0.85rem;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    justify-content: center;
    margin-top: 1.75rem;
  }
  .hero-stat-value { font-size: 1.5rem; }
  .hero-stat-label { font-size: 0.68rem; }
  .carousel-dots  { bottom: 1rem; gap: 6px; }

  /* ── Page banner ── */
  .page-banner { padding: 5rem 0 2rem; }
  .page-banner-title { font-size: 2rem; }
  .page-banner-sub   { font-size: 0.9rem; }

  /* ── Stats grid: 2×2 on mobile ── */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .stat-value { font-size: 2rem; }
  .stat-label { font-size: 0.78rem; }

  /* ── Horizontal scroll (mobile card sizing) ── */
  .hscroll-heading { padding: 2rem 0 0.5rem; }
  .hscroll-card.hscroll-up,
  .hscroll-card.hscroll-down,
  .hscroll-card.hscroll-up:hover,
  .hscroll-card.hscroll-down:hover { transform: none; }
  .hscroll-card {
    width: 75vw;
    min-width: 230px;
    max-width: 300px;
    border-top: 3px solid var(--red);
    border-bottom: none;
  }
  .hscroll-spacer { width: 0.25rem; }
  .hscroll-cta-card {
    width: 68vw;
    min-width: 210px;
    max-width: 260px;
  }

  /* ── Service cards ── */
  .service-card { padding: 1.4rem 1.25rem 1.25rem; }
  .service-card-title { font-size: 1rem; }
  .service-card-desc  { font-size: 0.82rem; }

  /* ── Portfolio ── */

  /* ── About teaser ── */
  .feature-row { padding: 1rem; }
  /* Reduce inline gap:3rem on grid-2 sections when stacked */
  .grid-2 { gap: 1.75rem !important; }

  /* ── Partner logos marquee ── */
  .partner-track { gap: 2rem; }
  .partner-track img { height: 28px; }

  /* ── Footer ── */
  .footer { padding: 2.5rem 0 0; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
  /* Brand column spans full width */
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-brand img  { max-height: 36px; }
  .footer-brand p    { font-size: 0.82rem; }
  .footer-heading    { font-size: 0.72rem; }
  .footer-links a,
  .footer-contact p,
  .footer-contact a  { font-size: 0.8rem; }
  .footer-bottom {
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.25rem 0;
  }
  .footer-bottom p { font-size: 0.72rem; }

  /* ── Contact form ── */
  .contact-form { padding: 1.25rem; }

  /* ── Slideshow overlay ── */
  .slideshow-nav { padding: 0.6rem 1rem; }

  /* ── Map filter pills wrap ── */
  .filter-pill  { font-size: 0.72rem; padding: 0.35rem 0.8rem; }
  .controls-grid { grid-template-columns: 1fr; }
  .map-shell { width: 100%; }

  /* ── Media map height ── */
  #media-map { height: 50vh !important; }
}

/* ── Extra small phones (≤ 380px) ── */
@media (max-width: 380px) {
  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding: 5.5rem 0.9rem 1.5rem;
  }

  .hero-tagline { font-size: 1.55rem; }
  .section-title { font-size: 1.45rem; }
  .stats-grid { gap: 0.85rem; }
  .stat-value { font-size: 1.75rem; }
  .page-banner-title { font-size: 1.7rem; }
  .container { padding: 0 0.85rem; }

  .hero-buttons,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-buttons a,
  .button-row a {
    justify-content: center;
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
  }

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

  .footer-brand {
    grid-column: auto;
  }
}

/* ═══════════════════════════════════════════════════
   HORIZONTAL SCROLL SECTION — index.html Services
   ═══════════════════════════════════════════════════ */

/* Tall outer container — JS sets height = 100vh + scroll distance */
.hscroll-outer {
  position: relative;
}

/* Sticky viewport — pins while horizontal scroll plays out */
.hscroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--gray-light);
}

/* Section heading at top */
.hscroll-heading {
  text-align: center;
  padding: 2rem 0 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* Track wrapper — fills remaining height, clips overflow */
.hscroll-track-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 0;
}

/* Horizontal row of cards — width determined by content */
.hscroll-track {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  will-change: transform;
  transition: none;
}

/* Edge spacers */
.hscroll-spacer {
  flex-shrink: 0;
  width: 6vw;
}

/* ── Individual service card ── */
.hscroll-card {
  flex-shrink: 0;
  width: clamp(240px, 22vw, 310px);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  padding: 1.75rem 1.5rem;
  cursor: default;
  transition: box-shadow 0.3s ease;
}

.hscroll-card:hover {
  box-shadow: 0 16px 48px rgba(0, 35, 102, 0.13);
}

/* Zigzag: cards alternate higher (up) and lower (down) */
.hscroll-card.hscroll-up {
  transform: translateY(-11vh);
  border-top: 3px solid var(--red);
}
.hscroll-card.hscroll-down {
  transform: translateY(11vh);
  border-bottom: 3px solid var(--red);
}
.hscroll-card.hscroll-up:hover  { transform: translateY(calc(-11vh - 4px)); }
.hscroll-card.hscroll-down:hover { transform: translateY(calc(11vh  - 4px)); }

/* Card pieces */
.hscroll-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(232, 32, 32, 0.08);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
  transition: background 0.3s ease;
}
.hscroll-card:hover .hscroll-card-icon {
  background: rgba(232, 32, 32, 0.14);
}

.hscroll-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.hscroll-desc {
  font-size: 0.83rem;
  color: var(--gray-text);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.hscroll-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  transition: gap 0.2s ease;
}
.hscroll-link:hover { gap: 0.6rem; }

/* ── CTA end card ── */
.hscroll-cta-card {
  flex-shrink: 0;
  width: clamp(200px, 17vw, 250px);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}
.hscroll-cta-card p {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

/* ── Progress bar at bottom of sticky ── */
.hscroll-progress-bar {
  height: 3px;
  background: rgba(0, 35, 102, 0.1);
  flex-shrink: 0;
}
.hscroll-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  transition: width 0.05s linear;
}

@media (min-width: 1600px) {
  .hscroll-card {
    width: clamp(280px, 18vw, 360px);
  }

  .hscroll-cta-card {
    width: clamp(240px, 15vw, 310px);
  }
}

/* ── Mobile: horizontal scroll card sizing ── */
@media (max-width: 767px) {
  .timeline-item { padding-left: 1.75rem; }

  .hscroll-outer {
    height: auto !important;
  }

  .hscroll-sticky {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
  }

  .hscroll-heading {
    padding: 3rem 1rem 1.25rem;
  }

  .hscroll-track-wrap {
    overflow: visible;
    display: block;
  }

  .hscroll-track {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 0 1rem 3rem;
    transform: none !important;
    will-change: auto;
  }

  .hscroll-spacer,
  .hscroll-progress-bar {
    display: none;
  }

  .hscroll-card,
  .hscroll-cta-card {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .hscroll-card.hscroll-up,
  .hscroll-card.hscroll-down,
  .hscroll-card.hscroll-up:hover,
  .hscroll-card.hscroll-down:hover {
    transform: none;
  }

  .hscroll-card.hscroll-down {
    border-top: 3px solid var(--red);
    border-bottom: 1px solid var(--gray-border);
  }

  .hscroll-cta-card {
    align-items: stretch;
  }

  .hscroll-cta-card .btn-primary {
    justify-content: center;
    width: 100%;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up, .slide-in-left, .slide-in-right, .stagger-item {
    opacity: 1;
    transform: none;
  }
}
