/* ==========================================================================
   the d solutions — Corporate Website Stylesheet
   Mobile-first, responsive, accessible, zero-dependency modern CSS
   ========================================================================== */

:root {
  /* Brand Palette (derived from the d solutions corporate profile) */
  --brand-red: #C8102E;
  --brand-red-bright: #E30613;
  --brand-red-dark: #9B0C22;
  --brand-red-soft: rgba(200, 16, 46, 0.08);
  --brand-red-border: rgba(200, 16, 46, 0.22);

  --ink-950: #0D0F12;
  --ink-900: #14171C;
  --ink-800: #1F242D;
  --ink-700: #333A46;
  --ink-600: #4B5563;
  --ink-500: #6B7280;
  --ink-400: #9CA3AF;

  --surface-0: #FFFFFF;
  --surface-50: #F8F9FB;
  --surface-100: #F1F3F6;
  --surface-200: #E5E7EB;
  --surface-dark: #0F1115;
  --surface-dark-2: #171B22;

  /* Typography */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout & Spacing */
  --container-max: 1200px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(13, 15, 18, 0.05);
  --shadow-md: 0 12px 32px rgba(13, 15, 18, 0.08);
  --shadow-lg: 0 24px 56px rgba(13, 15, 18, 0.14);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-800);
  background-color: var(--surface-0);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--brand-red);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: var(--brand-red);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container-max));
  margin-inline: auto;
}

/* Signature 3-Stripe Brand Bar (Gray / Black / Red) */
.brand-stripes {
  display: inline-flex;
  gap: 0;
  height: 10px;
  transform: skewX(-18deg);
  overflow: hidden;
  border-radius: 2px;
}

.brand-stripes span {
  display: block;
  width: 34px;
  height: 100%;
}

.brand-stripes .s-gray { background: #666B73; }
.brand-stripes .s-black { background: #0D0F12; }
.brand-stripes .s-red { background: var(--brand-red); }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--surface-200);
  transition: box-shadow 0.25s var(--ease);
}

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

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-red-dark) 0%, var(--brand-red-bright) 100%);
  pointer-events: none;
  transition: width 0.08s linear;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

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

@media (min-width: 480px) {
  .brand-logo-img {
    height: 52px;
  }
}

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

.footer-logo-badge {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
}

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

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.desktop-nav a {
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-700);
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--brand-red);
  background: var(--brand-red-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-sm);
  background: var(--surface-0);
  color: var(--ink-900);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.menu-toggle:hover {
  background: var(--surface-50);
  border-color: var(--ink-400);
}

@media (min-width: 960px) {
  .desktop-nav {
    display: flex;
  }
  .header-cta {
    display: inline-flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.3s var(--ease);
}

.mobile-drawer.open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 15, 18, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.mobile-drawer.open .mobile-drawer-backdrop {
  opacity: 1;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 340px);
  background: var(--surface-0);
  padding: 1.25rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.mobile-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--surface-200);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-900);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.mobile-nav-links a:hover {
  background: var(--brand-red-soft);
  color: var(--brand-red);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--surface-200);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.88rem;
  color: var(--ink-600);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.72rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.24);
}

.btn-primary:hover {
  background: var(--brand-red-dark);
  box-shadow: 0 10px 26px rgba(200, 16, 46, 0.34);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

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

.btn-outline {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--surface-200);
}

.btn-outline:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  background: var(--brand-red-soft);
}

.btn-sm {
  min-height: 40px;
  padding: 0.5rem 1.05rem;
  font-size: 0.88rem;
}

/* ==========================================================================
   Section Utilities
   ========================================================================== */
.section {
  padding-block: clamp(3.75rem, 7vw, 6.25rem);
}

.section-muted {
  background-color: var(--surface-50);
}

.section-dark {
  background-color: var(--surface-dark);
  color: #fff;
}

.section-header {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-header.centered {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--brand-red);
}

.section-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink-950);
}

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

.title-accent {
  display: inline-block;
  background: var(--brand-red);
  color: #fff;
  padding: 0.08em 0.34em;
  border-radius: 4px;
}

.section-lead {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--ink-600);
}

.section-dark .section-lead {
  color: var(--ink-400);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 82% 20%, rgba(200, 16, 46, 0.28), transparent 46%),
    radial-gradient(circle at 12% 85%, rgba(200, 16, 46, 0.16), transparent 42%),
    linear-gradient(155deg, rgba(13, 15, 18, 0.9) 0%, rgba(18, 22, 30, 0.78) 55%, rgba(13, 15, 18, 0.92) 100%),
    url("assets/hero-cairo.jpg") center / cover no-repeat;
  color: #fff;
  padding-block: clamp(3.5rem, 8vw, 6.25rem) clamp(3.25rem, 6vw, 5rem);
  overflow: hidden;
}

/* Subtle engineering grid pattern */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 60% 40%, #000 20%, transparent 80%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  font-weight: 600;
  color: #E5E7EB;
  margin-bottom: 1.35rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-red-bright);
  box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.28);
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.28);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(227, 6, 19, 0.06);
  }
}

/* Staggered hero entrance */
.hero-grid > div:first-child > * {
  animation: heroRise 0.65s var(--ease) both;
}
.hero-grid > div:first-child > *:nth-child(1) { animation-delay: 0.05s; }
.hero-grid > div:first-child > *:nth-child(2) { animation-delay: 0.12s; }
.hero-grid > div:first-child > *:nth-child(3) { animation-delay: 0.2s; }
.hero-grid > div:first-child > *:nth-child(4) { animation-delay: 0.28s; }
.hero-grid > div:first-child > *:nth-child(5) { animation-delay: 0.36s; }

.hero-card {
  animation: heroRise 0.7s var(--ease) 0.22s both;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 3.55rem);
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-title span {
  color: #FF4D5E;
}

.hero-subtitle {
  margin: 0 0 2rem;
  max-width: 58ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: #CBD5E1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: #9CA3AF;
  margin-top: 0.25rem;
}

/* Hero Right Panel — Core Pillars Card */
.hero-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 2.5vw, 2rem);
  backdrop-filter: blur(12px);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E5E7EB;
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 420px) {
  .pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pillar-item {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.pillar-item:hover {
  transform: translateY(-3px);
  border-color: rgba(227, 6, 19, 0.55);
  background: rgba(200, 16, 46, 0.12);
}

.pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(200, 16, 46, 0.18);
  color: #FF5C6C;
}

.pillar-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.pillar-desc {
  font-size: 0.8rem;
  color: #9CA3AF;
  line-height: 1.4;
}

.hero-card-footer {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.83rem;
  color: #CBD5E1;
}

.hero-card-footer strong {
  color: #fff;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.12fr 0.88fr;
  }
}

.about-copy p {
  margin: 0 0 1.15rem;
  color: var(--ink-700);
}

.about-highlights {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.highlight-row {
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  background: var(--surface-50);
  border: 1px solid var(--surface-200);
  border-left: 4px solid var(--brand-red);
  border-radius: var(--radius-sm);
}

.highlight-row strong {
  color: var(--brand-red);
}

.about-card-stack {
  display: grid;
  gap: 1.25rem;
}

.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-dark);
  box-shadow: var(--shadow-md);
}

.about-visual-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.about-visual:hover .about-visual-img {
  transform: scale(1.03);
}

.about-visual-overlay {
  position: relative;
  background: var(--surface-dark);
  color: #fff;
  padding: 1.5rem 1.75rem;
  border-top: 3px solid var(--brand-red);
}

.milestone-year {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  color: #FF4D5E;
  margin-bottom: 0.5rem;
}

.about-visual-overlay p {
  margin: 0;
  color: #D1D5DB;
  font-size: 0.95rem;
}

.solutions-callout {
  margin-top: clamp(2rem, 4vw, 3rem);
  background: var(--surface-50);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}

.solutions-callout-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--surface-200);
}

.solutions-callout h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink-950);
}

.solutions-callout-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-red);
  background: var(--brand-red-soft);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.solutions-callout-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .solutions-callout-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.solutions-callout-grid li {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--ink-700);
}

.solutions-callout-grid li strong {
  color: var(--brand-red);
  font-family: var(--font-display);
  font-size: 0.98rem;
}

/* ==========================================================================
   Vision, Mission & Values
   ========================================================================== */
.vm-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .vm-grid {
    grid-template-columns: 0.9fr 1.3fr;
  }
}

.vm-card {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.vm-card-vision {
  background: linear-gradient(155deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: #fff;
  border-color: transparent;
}

.vm-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-red-soft);
  color: var(--brand-red);
}

.vm-card-vision .vm-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.vm-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.vm-card p {
  margin: 0;
  color: var(--ink-700);
}

.vm-card-vision p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  font-weight: 500;
}

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

@media (min-width: 600px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-md);
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.value-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-red-border);
  box-shadow: var(--shadow-md);
}

.value-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-red);
  line-height: 1;
}

.value-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-950);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Products & Services (Interactive Tabs + Cards)
   ========================================================================== */
.services-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.tab-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--surface-200);
  background: var(--surface-0);
  color: var(--ink-700);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.tab-btn:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.tab-btn[aria-selected="true"] {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.24);
}

.service-panel {
  display: none;
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.service-panel.active {
  display: grid;
  animation: fadeSlide 0.3s var(--ease);
}

@media (min-width: 860px) {
  .service-panel.active {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-panel-body {
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
}

.service-cta {
  margin-top: auto;
  padding-top: 1.5rem;
}

.service-panel-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-red);
  background: var(--brand-red-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.service-panel-body h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  color: var(--ink-950);
}

.service-panel-body p {
  margin: 0 0 1rem;
  color: var(--ink-700);
}

.service-panel-body p:last-child {
  margin-bottom: 0;
}

.service-panel-aside {
  background: var(--surface-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.service-panel-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 3px solid var(--brand-red);
}

.service-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.service-panel:hover .service-panel-media img {
  transform: scale(1.035);
}

.service-panel-aside-content {
  padding: clamp(1.35rem, 2.8vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.service-panel-aside h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FF5C6C;
}

.service-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.service-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: #E5E7EB;
}

.service-checklist li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.25);
  color: #FF5C6C;
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

/* ==========================================================================
   Company Activities (All 18 Licensed Activities)
   ========================================================================== */
.section-activities {
  position: relative;
  background:
    linear-gradient(
      180deg,
      rgba(248, 249, 251, 0.88) 0%,
      rgba(248, 249, 251, 0.78) 50%,
      rgba(248, 249, 251, 0.90) 100%
    ),
    url("assets/activities-bg.jpg") center / cover no-repeat;
  border-top: 1px solid var(--surface-200);
  border-bottom: 1px solid var(--surface-200);
}

.section-activities .section-lead {
  color: var(--ink-800);
  font-weight: 500;
}

.section-activities .activity-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.section-activities .filter-pill:not(.active) {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
}

.section-activities .activities-count {
  color: var(--ink-800);
}

.activities-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--surface-200);
  background: var(--surface-0);
  color: var(--ink-700);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

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

.filter-pill.active {
  background: var(--ink-950);
  border-color: var(--ink-950);
  color: #fff;
}

.slider-nav-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.activities-count {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-500);
}

.slider-arrows {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--surface-200);
  background: var(--surface-0);
  color: var(--ink-900);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.18s var(--ease);
}

.slider-arrow:hover:not(:disabled) {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
  transform: translateY(-1px);
}

.slider-arrow:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
}

.activities-slider-wrap {
  position: relative;
}

.activities-track {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.35rem 0.15rem 1.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.activities-track::-webkit-scrollbar {
  display: none;
}

.activity-card {
  flex: 0 0 86%;
  scroll-snap-align: start;
  position: relative;
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-top: 3px solid transparent;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  min-height: 215px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

@media (min-width: 640px) {
  .activity-card {
    flex: 0 0 calc(50% - 0.575rem);
  }
}

@media (min-width: 1024px) {
  .activity-card {
    flex: 0 0 calc(33.333% - 0.77rem);
  }
}

.activity-card:hover {
  border-color: var(--brand-red-border);
  border-top-color: var(--brand-red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.activity-card[hidden] {
  display: none;
}

.activity-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.activity-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-red);
  background: var(--brand-red-soft);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.activity-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
  background: var(--surface-100);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.activity-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink-950);
  line-height: 1.3;
}

.activity-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-600);
  line-height: 1.6;
}

.activity-foot {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--surface-100);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.slider-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.slider-dot {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.slider-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-200);
  transition: width 0.25s var(--ease), background-color 0.25s var(--ease);
}

.slider-dot:hover::before {
  background: var(--ink-400);
}

.slider-dot.active::before {
  width: 26px;
  background: var(--brand-red);
}

.slider-progress {
  flex: 1;
  max-width: 220px;
  height: 4px;
  border-radius: 999px;
  background: var(--surface-200);
  overflow: hidden;
}

.slider-progress-bar {
  height: 100%;
  width: 20%;
  background: var(--brand-red);
  border-radius: 999px;
  transition: width 0.25s var(--ease);
}

/* ==========================================================================
   Major Customers
   ========================================================================== */
.customers-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .customers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.customer-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 0.55rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.customer-card:hover {
  border-color: rgba(227, 6, 19, 0.55);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.customer-logo-box {
  width: 100%;
  height: 86px;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.customer-logo-box img {
  max-height: 48px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.customer-name {
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.customer-sector {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9CA3AF;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.contact-info-cards {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface-50);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-md);
}

.contact-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  display: grid;
  place-items: center;
}

.contact-card h3 {
  margin: 0 0 0.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
}

.contact-card p,
.contact-card a {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-950);
}

.contact-card a:hover {
  color: var(--brand-red);
}

.copy-btn {
  margin-top: 0.55rem;
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--surface-200);
  background: var(--surface-0);
  color: var(--ink-700);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.copy-btn:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

/* Contact Form */
.contact-form {
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-800);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--surface-200);
  border-radius: var(--radius-sm);
  background: var(--surface-50);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  background: var(--surface-0);
  box-shadow: 0 0 0 3px var(--brand-red-soft);
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 1.4em;
  color: var(--ink-600);
}

.form-status.success {
  color: #0F766E;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink-950);
  color: #D1D5DB;
  padding-block: 3.25rem 2rem;
  border-top: 3px solid var(--brand-red);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand .brand-name {
  color: #FFFFFF;
}

.footer-brand .brand-tagline {
  color: #CBD5E1;
}

.footer-brand p {
  margin: 0.85rem 0 0;
  max-width: 38ch;
  font-size: 0.9rem;
  color: #9CA3AF;
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.footer-col a {
  color: #9CA3AF;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
  color: #9CA3AF;
}

/* Map link & Scroll-reveal & Back-to-top */
.map-link {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-red) !important;
}

.map-link:hover {
  text-decoration: underline;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero-stat-value,
.milestone-year {
  font-variant-numeric: tabular-nums;
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.22) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease);
  pointer-events: none;
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--brand-red);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s var(--ease), background-color 0.2s var(--ease);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--brand-red-dark);
}
