/* ============================================================
   VB FACILITY SERVICES INC. — Premium Design System
   Version: 1.0
   Colors: Navy Deep, Corporate Blue, White, Gray Light, Gray Dark
   Typography: Inter + Outfit (Google Fonts)
   ============================================================ */

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  /* Brand Colors */
  --navy: #061B36;
  --navy-90: rgba(6, 27, 54, 0.9);
  --navy-80: rgba(6, 27, 54, 0.8);
  --navy-60: rgba(6, 27, 54, 0.6);
  --navy-20: rgba(6, 27, 54, 0.2);
  --blue: #0D4EA6;
  --blue-light: #1A6FD4;
  --blue-dark: #093B7A;
  --blue-10: rgba(13, 78, 166, 0.1);
  --blue-20: rgba(13, 78, 166, 0.2);
  --white: #FFFFFF;
  --gray-light: #F4F6F8;
  --gray-medium: #D1D5DB;
  --gray-dark: #2E3440;
  --gray-text: #6B7280;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #061B36 0%, #0D4EA6 100%);
  --gradient-hero: linear-gradient(135deg, rgba(6,27,54,0.85) 0%, rgba(13,78,166,0.7) 100%);
  --gradient-card: linear-gradient(180deg, rgba(6,27,54,0) 0%, rgba(6,27,54,0.85) 100%);
  --gradient-cta: linear-gradient(135deg, #0D4EA6 0%, #1A6FD4 100%);
  --gradient-subtle: linear-gradient(135deg, #F4F6F8 0%, #FFFFFF 100%);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-lg: 1400px;
  --header-height: 80px;

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(6, 27, 54, 0.06);
  --shadow-md: 0 4px 24px rgba(6, 27, 54, 0.08);
  --shadow-lg: 0 8px 40px rgba(6, 27, 54, 0.12);
  --shadow-xl: 0 16px 64px rgba(6, 27, 54, 0.16);
  --shadow-blue: 0 4px 24px rgba(13, 78, 166, 0.25);
  --shadow-card-hover: 0 12px 48px rgba(6, 27, 54, 0.15);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-base: 0.3s var(--ease-smooth);
  --transition-slow: 0.5s var(--ease-smooth);
  --transition-slider: 0.8s var(--ease-smooth);

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}


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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  color: var(--gray-dark);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
  border: none;
  outline: none;
}


/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: var(--text-6xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-4xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }

p {
  color: var(--gray-dark);
  line-height: 1.8;
}

.text-blue { color: var(--blue); }
.text-white { color: var(--white); }
.text-navy { color: var(--navy); }
.text-gray { color: var(--gray-text); }
.text-center { text-align: center; }


/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-lg {
  max-width: var(--max-width-lg);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-5xl) 0;
}

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

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

.section-navy h2,
.section-navy h3,
.section-navy h4,
.section-navy p {
  color: var(--white);
}

.section-navy .section-subtitle {
  color: rgba(255,255,255,0.7);
}


/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--blue-10);
  color: var(--blue);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.section-navy .section-badge {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.section-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
  position: relative;
}

.section-title span {
  color: var(--blue);
}

.section-navy .section-title span {
  color: #60A5FA;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--gray-text);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-cta);
  border-radius: var(--radius-full);
  margin: var(--space-lg) auto;
}


/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
  background: transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  height: 70px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width-lg);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.header-logo img {
  height: 50px;
  width: auto;
  transition: all var(--transition-base);
}

.header.scrolled .header-logo img {
  height: 42px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  position: relative;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--white);
  transition: color var(--transition-fast);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.header.scrolled .nav-link {
  color: var(--gray-dark);
}

.nav-link:hover {
  color: var(--blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width var(--transition-base);
  border-radius: var(--radius-full);
}

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

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all var(--transition-base);
}

.header.scrolled .lang-toggle {
  background: var(--gray-light);
  border-color: var(--gray-medium);
}

.lang-btn {
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-fast);
  letter-spacing: 0.05em;
}

.header.scrolled .lang-btn {
  color: var(--gray-text);
}

.lang-btn.active {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-full);
}

.lang-btn:hover:not(.active) {
  color: var(--white);
}

.header.scrolled .lang-btn:hover:not(.active) {
  color: var(--navy);
}

/* CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  background: var(--gradient-cta);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-blue);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(13, 78, 166, 0.35);
}

.btn-cta:active {
  transform: translateY(0);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.header.scrolled .menu-toggle span {
  background: var(--navy);
}

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


/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-slider);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 8s ease-out;
  z-index: 1;
  opacity: 1 !important;
}

.hero-slide.active .hero-slide-img {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(6, 27, 54, 0.7) 0%,
    rgba(6, 27, 54, 0.4) 50%,
    rgba(13, 78, 166, 0.3) 100%
  );
  z-index: 3;
}

.hero-content {
  position: absolute;
  bottom: 15%;
  left: 0;
  width: 100%;
  z-index: 4;
  padding: 0 var(--space-xl);
}

.hero-content-inner {
  max-width: var(--max-width-lg);
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: var(--text-7xl);
  font-weight: var(--fw-extrabold);
  color: var(--white);
  line-height: 1.05;
  max-width: 700px;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.hero-title span {
  background: linear-gradient(135deg, #60A5FA, #93C5FD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.85);
  max-width: 550px;
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 16px 32px;
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  letter-spacing: 0.02em;
}

.btn-hero-primary {
  background: var(--gradient-cta);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(13, 78, 166, 0.4);
}

.btn-hero-outline {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-3px);
}

/* Slider Navigation */
.hero-nav {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: 5;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.35);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
}

.hero-dot.active {
  background: var(--white);
  width: 40px;
  border-radius: 6px;
}

.hero-dot:hover:not(.active) {
  background: rgba(255,255,255,0.6);
}

/* Slider Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: var(--text-xl);
  cursor: pointer;
  transition: all var(--transition-base);
}

.hero-arrow:hover {
  background: rgba(255,255,255,0.25);
}

.hero-arrow-prev {
  left: 30px;
}

.hero-arrow-next {
  right: 30px;
}


/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
}

.service-category {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--ease-smooth);
}

.service-category.visible {
  opacity: 1;
  transform: translateY(0);
}

.category-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--gray-light);
}

.category-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-10);
  border-radius: var(--radius-md);
  color: var(--blue);
  flex-shrink: 0;
}

.category-icon svg {
  width: 24px;
  height: 24px;
}

/* Category icon with professional image */
.category-icon-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: none;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--blue-20);
}

.category-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-title {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--navy);
}

/* Service Cards Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  group: true;
}

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

.service-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-card-image img {
  transform: scale(1.08);
}

.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-card);
  opacity: 0.6;
  transition: opacity var(--transition-base);
}

.service-card:hover .service-card-overlay {
  opacity: 0.8;
}

.service-card-number {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  border-radius: var(--radius-full);
}

.service-card-body {
  padding: var(--space-lg);
}

.service-card-title {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--navy);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.service-card-desc {
  font-size: var(--text-sm);
  color: var(--gray-text);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--blue);
  transition: all var(--transition-fast);
}

.service-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card-link {
  color: var(--blue-light);
}

.service-card:hover .service-card-link svg {
  transform: translateX(4px);
}


/* ============================================================
   WHY US SECTION (Pourquoi Nous)
   ============================================================ */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-4xl);
}

.why-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-cta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

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

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

.why-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  background: var(--blue-10);
  border-radius: var(--radius-lg);
  color: var(--blue);
  transition: all var(--transition-base);
}

.why-card:hover .why-card-icon {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.1);
}

.why-card-icon svg {
  width: 28px;
  height: 28px;
}

.why-card-title {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-sm);
  color: var(--navy);
}

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

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  padding: var(--space-3xl);
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

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

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 0;
  height: 80%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--fw-extrabold);
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ============================================================
   INDUSTRIES SECTION
   ============================================================ */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 200px);
  gap: var(--space-md);
}

.industry-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.industry-tile:nth-child(1) {
  grid-row: span 2;
}

.industry-tile:nth-child(5) {
  grid-column: span 2;
}

.industry-tile-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.industry-tile:hover .industry-tile-bg {
  transform: scale(1.08);
}

.industry-tile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(6,27,54,0) 40%, rgba(6,27,54,0.85) 100%);
  transition: background var(--transition-base);
}

.industry-tile:hover .industry-tile-overlay {
  background: linear-gradient(180deg, rgba(13,78,166,0.2) 0%, rgba(6,27,54,0.9) 100%);
}

.industry-tile-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-lg);
  z-index: 2;
}

.industry-tile-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  color: var(--white);
  margin-bottom: var(--space-sm);
  transition: all var(--transition-base);
}

.industry-tile:hover .industry-tile-icon {
  background: var(--blue);
}

.industry-tile-icon svg {
  width: 20px;
  height: 20px;
}

.industry-tile-name {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--white);
}


/* ============================================================
   METHODOLOGY SECTION (Timeline)
   ============================================================ */
.methodology-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.methodology-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue), var(--navy));
  border-radius: var(--radius-full);
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3xl);
  position: relative;
  margin-bottom: var(--space-3xl);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--ease-smooth);
}

.timeline-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-step:nth-child(even) {
  flex-direction: row-reverse;
  text-align: right;
}

.timeline-step-content {
  flex: 1;
  background: var(--white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.timeline-step-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.timeline-step-number {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-cta);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-blue);
  z-index: 2;
  border: 4px solid var(--white);
}

.timeline-step-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-10);
  border-radius: var(--radius-md);
  color: var(--blue);
  margin-bottom: var(--space-md);
}

.timeline-step:nth-child(even) .timeline-step-icon {
  margin-left: auto;
}

.timeline-step-icon svg {
  width: 24px;
  height: 24px;
}

.timeline-step-title {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.timeline-step-desc {
  font-size: var(--text-sm);
  color: var(--gray-text);
  line-height: 1.7;
}

.timeline-spacer {
  flex: 1;
}


/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-form-container {
  background: var(--white);
  padding: var(--space-3xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--navy);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 18px;
  background: var(--gray-light);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--gray-dark);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--blue-10);
}

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

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

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 16px 40px;
  background: var(--gradient-cta);
  color: var(--white);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-blue);
  cursor: pointer;
  width: 100%;
  letter-spacing: 0.02em;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(13, 78, 166, 0.35);
}

/* Contact Info Cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.contact-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-10);
  border-radius: var(--radius-md);
  color: var(--blue);
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 22px;
  height: 22px;
}

.contact-card-title {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-card-text {
  font-size: var(--text-sm);
  color: var(--gray-text);
  line-height: 1.6;
}

.contact-card-text a {
  color: var(--blue);
  font-weight: var(--fw-medium);
}

.contact-card-text a:hover {
  text-decoration: underline;
}

/* Quick Action Buttons */
.contact-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.quick-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  transition: all var(--transition-base);
}

.quick-action-btn.primary {
  background: var(--gradient-cta);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.quick-action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(13,78,166,0.3);
}

.quick-action-btn.outline {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue-20);
}

.quick-action-btn.outline:hover {
  background: var(--blue-10);
  border-color: var(--blue);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: var(--space-4xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer-logo {
  height: 50px;
  width: auto;
}

.footer-tagline {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-3px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-column h4 {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--white);
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--blue);
  border-radius: var(--radius-full);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: all var(--transition-fast);
  padding: 4px 0;
}

.footer-link:hover {
  color: var(--white);
  padding-left: 8px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item span {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
}

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

/* Footer Bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) 0;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

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


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease-smooth);
}

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

.fade-in {
  opacity: 0;
  transition: opacity 0.7s var(--ease-smooth);
}

.fade-in.visible {
  opacity: 1;
}

.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.7s var(--ease-smooth);
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.7s var(--ease-smooth);
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delay for children */
.stagger-children > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(9) { transition-delay: 0.45s; }


/* ============================================================
   SERVICE DETAIL PAGE
   ============================================================ */
.service-hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-top: var(--header-height);
}

.service-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(6,27,54,0.6) 0%,
    rgba(13,78,166,0.3) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-hero-title {
  font-size: var(--text-5xl);
  font-weight: var(--fw-extrabold);
  color: var(--white);
  text-align: center;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* Service Detail Content */
.service-detail {
  padding: var(--space-4xl) 0;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-3xl);
}

.service-description h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-lg);
}

.service-description p {
  font-size: var(--text-base);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.service-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-2xl) 0;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--gray-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.benefit-item:hover {
  background: var(--blue-10);
  transform: translateY(-3px);
}

.benefit-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-10);
  border-radius: var(--radius-sm);
  color: var(--blue);
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 20px;
  height: 20px;
}

.benefit-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--navy);
  margin-bottom: 4px;
}

.benefit-desc {
  font-size: var(--text-xs);
  color: var(--gray-text);
  line-height: 1.5;
}

/* Service Sidebar */
.service-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-xl));
}

.sidebar-cta {
  padding: var(--space-2xl);
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  color: var(--white);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.sidebar-cta h3 {
  color: var(--white);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.sidebar-cta p {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
  margin-bottom: var(--space-xl);
}

.sidebar-cta .btn-cta {
  width: 100%;
  justify-content: center;
  background: var(--white);
  color: var(--navy);
  font-weight: var(--fw-bold);
}

.sidebar-cta .btn-cta:hover {
  background: var(--gray-light);
}

.sidebar-services {
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.sidebar-services h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--gray-light);
}

.sidebar-service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  font-size: var(--text-sm);
  color: var(--gray-dark);
  border-bottom: 1px solid var(--gray-light);
  transition: all var(--transition-fast);
}

.sidebar-service-link:last-child {
  border-bottom: none;
}

.sidebar-service-link:hover {
  color: var(--blue);
  padding-left: var(--space-sm);
}

.sidebar-service-link.active {
  color: var(--blue);
  font-weight: var(--fw-semibold);
}


/* ============================================================
   BUTTONS (Generic)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--gradient-cta);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(13,78,166,0.35);
}

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

.btn-outline:hover {
  background: var(--blue-10);
  border-color: var(--blue);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}


/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-cta);
  color: var(--white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-blue);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: var(--z-sticky);
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(13,78,166,0.4);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}


/* ============================================================
   LOADING OVERLAY
   ============================================================ */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  width: 80px;
  height: 80px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}


/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet Landscape */
@media (max-width: 1200px) {
  :root {
    --text-7xl: 3.5rem;
    --text-6xl: 3rem;
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Portrait */
@media (max-width: 992px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Mobile Nav Drawer */
  .nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: var(--white);
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    z-index: calc(var(--z-sticky) - 1);
    gap: var(--space-xs);
    animation: slideInRight 0.3s var(--ease-smooth);
  }

  @keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }

  .nav.mobile-open .nav-link {
    color: var(--gray-dark);
    padding: var(--space-md);
    font-size: var(--text-base);
    border-bottom: 1px solid var(--gray-light);
  }

  .nav.mobile-open .nav-link::after {
    display: none;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .methodology-timeline::before {
    left: 30px;
  }

  .timeline-step,
  .timeline-step:nth-child(even) {
    flex-direction: column;
    padding-left: 70px;
    text-align: left;
  }

  .timeline-step-number {
    left: 30px;
    transform: translateX(-50%);
  }

  .timeline-spacer {
    display: none;
  }

  .timeline-step:nth-child(even) .timeline-step-icon {
    margin-left: 0;
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .industry-tile:nth-child(1) {
    grid-row: span 1;
  }

  .industry-tile:nth-child(5) {
    grid-column: span 1;
  }

  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .service-sidebar {
    position: static;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --text-7xl: 2.5rem;
    --text-6xl: 2.25rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
    --space-5xl: 5rem;
    --space-4xl: 4rem;
  }

  .container,
  .container-lg {
    padding: 0 var(--space-md);
  }

  .hero {
    min-height: 500px;
  }

  .hero-content {
    bottom: 20%;
  }

  .hero-title {
    font-size: var(--text-5xl);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-hero {
    justify-content: center;
  }

  .hero-arrow {
    display: none;
  }

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

  .why-us-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
    padding: var(--space-2xl);
  }

  .stat-item::after {
    display: none !important;
  }

  .stat-item {
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

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

  .industries-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .industry-tile {
    min-height: 180px;
  }

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

  .contact-quick-actions {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .service-hero {
    height: 280px;
  }

  .service-hero-title {
    font-size: var(--text-3xl);
    padding: 0 var(--space-md);
  }

  .service-benefits {
    grid-template-columns: 1fr;
  }

  .header-actions .btn-cta {
    display: none;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  :root {
    --text-7xl: 2rem;
    --text-6xl: 1.75rem;
    --text-5xl: 1.5rem;
  }

  .hero-badge {
    font-size: var(--text-xs);
    padding: 6px 12px;
  }

  .hero-description {
    font-size: var(--text-base);
  }

  .hero-nav {
    bottom: 20px;
  }
}


/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.d-none { display: none !important; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* Lazy loading images — fade in gracefully */
img.lazy-fade {
  opacity: 0;
  transition: opacity 0.6s ease;
}

img.lazy-fade.loaded {
  opacity: 1;
}


/* ============================================================
   SERVICE DETAIL PAGES
   ============================================================ */

/* Service Hero Banner */
.service-hero {
  position: relative;
  width: 100%;
  height: 45vh;
  min-height: 320px;
  max-height: 500px;
  overflow: hidden;
  margin-top: 70px; /* header height when scrolled */
}

.service-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(6, 27, 54, 0.75) 0%,
    rgba(13, 78, 166, 0.5) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: var(--space-3xl) var(--space-xl);
}

.service-hero-title {
  font-size: var(--text-5xl);
  font-weight: var(--fw-extrabold);
  color: var(--white);
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

/* Service Detail Layout */
.service-detail {
  padding: var(--space-4xl) 0;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-3xl);
  align-items: start;
}

.service-description h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-lg);
  color: var(--navy);
}

.service-description h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-lg);
  color: var(--navy);
  position: relative;
  padding-bottom: var(--space-sm);
}

.service-description h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-cta);
  border-radius: var(--radius-full);
}

.service-description p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--gray-dark);
  margin-bottom: var(--space-lg);
}

/* Benefits Grid */
.service-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.benefit-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--gray-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.benefit-item:hover {
  background: var(--white);
  border-color: var(--blue-20);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.benefit-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-10);
  border-radius: var(--radius-sm);
  color: var(--blue);
}

.benefit-icon svg {
  width: 20px;
  height: 20px;
}

.benefit-title {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  color: var(--navy);
  margin-bottom: 4px;
}

.benefit-desc {
  font-size: var(--text-sm);
  color: var(--gray-text);
  line-height: 1.5;
}

/* Sidebar */
.service-sidebar {
  position: sticky;
  top: calc(70px + var(--space-xl));
}

.sidebar-cta {
  background: var(--gradient-primary);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.sidebar-cta h3 {
  color: var(--white);
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.sidebar-cta p {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
}

.sidebar-cta .btn-cta {
  width: 100%;
  justify-content: center;
  background: var(--white);
  color: var(--navy);
}

.sidebar-cta .btn-cta:hover {
  background: rgba(255,255,255,0.9);
}

.sidebar-services {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.sidebar-services h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-md);
  color: var(--navy);
}

.sidebar-service-link {
  display: block;
  padding: 10px var(--space-md);
  font-size: var(--text-sm);
  color: var(--gray-dark);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
  margin-bottom: 2px;
}

.sidebar-service-link:hover {
  background: var(--white);
  color: var(--blue);
  border-left-color: var(--blue);
  padding-left: calc(var(--space-md) + 4px);
}

.sidebar-service-link.active {
  background: var(--blue-10);
  color: var(--blue);
  font-weight: var(--fw-semibold);
  border-left-color: var(--blue);
}

/* Back to services button */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--blue);
  border: 2px solid var(--blue-20);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.btn-outline:hover {
  background: var(--blue-10);
  border-color: var(--blue);
}


/* ============================================================
   SERVICE DETAIL RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .service-sidebar {
    position: static;
  }

  .service-hero-title {
    font-size: var(--text-3xl);
  }

  .service-benefits {
    grid-template-columns: 1fr;
  }

  .service-hero {
    height: 35vh;
    min-height: 250px;
  }
}


/* ============================================================
   FORM FEEDBACK BANNER (PHP response)
   ============================================================ */
.form-feedback-banner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2xl);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  line-height: 1.5;
  transition: all 0.4s var(--ease-smooth);
  animation: bannerSlideIn 0.5s var(--ease-smooth);
}

.form-feedback-banner.success {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(5, 150, 105, 0.3);
}

.form-feedback-banner.error {
  background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(220, 38, 38, 0.3);
}

.form-feedback-banner svg {
  flex-shrink: 0;
}

@keyframes bannerSlideIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Spin animation for loading button */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 1s linear infinite;
}

.btn-submit:disabled {
  opacity: 0.8;
  cursor: wait;
}
