/* ==========================================================================
   Wash Solutions (Southern) Ltd
   Modern B2B Website Stylesheet
   ========================================================================== */

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

:root {
  /* Brand Colors */
  --primary: #0066a1;
  --primary-dark: #004d7a;
  --primary-darker: #003557;
  --primary-light: #e8f4f8;
  --primary-lighter: #f4fafc;

  /* Accent (warm, energetic) */
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fef3c7;

  /* Neutrals */
  --ink: #0f172a;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #ffffff;

  /* Surfaces */
  --background: #ffffff;
  --background-alt: #f8fafc;
  --background-dark: #0b1a2b;
  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 30px 60px rgba(15, 23, 42, 0.18);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s var(--ease-smooth);
  --transition-slow: all 0.5s var(--ease-out);

  /* Layout */
  --nav-height: 96px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

/* Accessibility: Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: var(--text-light);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 16px;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  min-height: var(--nav-height);
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-brand a {
  display: inline-flex;
  transition: var(--transition);
}

.nav-brand a:hover {
  transform: scale(1.03);
}

.logo {
  height: 110px;
  width: 110px;
  transition: var(--transition);
}

.navbar.scrolled .logo {
  height: 92px;
  width: 92px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-menu a:not(.nav-cta):hover {
  color: var(--primary);
}

.nav-menu a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s var(--ease-out);
  border-radius: 2px;
}

.nav-menu a:not(.nav-cta):hover::after,
.nav-menu a:not(.nav-cta).active::after {
  width: 100%;
}

.nav-menu a.nav-cta {
  background: var(--primary);
  color: var(--text-light);
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 12px rgba(0, 102, 161, 0.25);
  line-height: 1;
}

.nav-menu a.nav-cta:hover {
  background: var(--primary-dark);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 161, 0.35);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(3, 37, 65, 0.72) 0%, rgba(0, 77, 122, 0.55) 55%, rgba(0, 102, 161, 0.45) 100%),
    url('images/hero-truck-wash.webp');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Subtle animated grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 168, 232, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 168, 232, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-height) + 40px) 0 80px;
  width: 100%;
}

.hero-text {
  max-width: 880px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4.25rem);
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-highlight {
  display: block;
  color: #7dd3fc;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 640px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-trust {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 720px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 0.2px;
  font-family: inherit;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-out);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--text-light);
  color: var(--primary);
  border-color: var(--text-light);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  position: relative;
}

.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0%, 100% { opacity: 0; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(12px); }
}

/* ==========================================================================
   Section Defaults
   ========================================================================== */

section {
  padding: 120px 0;
  position: relative;
}

/* First section on a standalone page needs room to clear the fixed navbar */
.page-section--first {
  padding-top: calc(var(--nav-height) + 72px);
}

.section-header {
  margin-bottom: 64px;
}

.section-header.centered {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 64px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.section-header.centered .section-label::after {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about {
  background: var(--background);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}

/* When .about-content is the last block in its section, drop the trailing gap */
.about-content:last-child {
  margin-bottom: 0;
}

.about-text .lead {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.5;
  letter-spacing: -0.3px;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  aspect-ratio: 4 / 3;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(0, 102, 161, 0.1) 100%);
  pointer-events: none;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Our Story timeline */
.about-intro {
  max-width: 760px;
  margin: 0 auto 72px;
  text-align: center;
}

.about-intro .lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
  letter-spacing: -0.2px;
  margin-top: 8px;
}

.timeline {
  list-style: none;
  position: relative;
  max-width: 1100px;
  margin: 0 auto 100px;
  padding: 8px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--primary) 8%, var(--primary) 92%, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: start;
  gap: 0;
  margin-bottom: 64px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 12px;
}

.timeline-year {
  position: absolute;
  top: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--background);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  white-space: nowrap;
  z-index: 2;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  margin-top: 48px;
  border-radius: 50%;
  background: var(--background);
  border: 4px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 102, 161, 0.12);
  z-index: 1;
}

.timeline-card {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 32px;
  transition: var(--transition);
  position: relative;
}

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

.timeline-item:nth-child(odd) .timeline-card {
  grid-column: 1;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-card {
  grid-column: 3;
  text-align: left;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 28px;
  width: 14px;
  height: 14px;
  background: var(--background);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.timeline-item:nth-child(odd) .timeline-card::before {
  right: -8px;
  transform: rotate(45deg);
}

.timeline-item:nth-child(even) .timeline-card::before {
  left: -8px;
  transform: rotate(-135deg);
}

.timeline-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.timeline-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-figure {
  margin-top: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--background-alt);
}

.timeline-figure + .timeline-figure {
  margin-top: 12px;
}

.timeline-figure--aside {
  grid-column: 3;
  align-self: start;
  margin-top: 0;
}

.timeline-item:nth-child(odd) .timeline-figure--aside {
  grid-column: 3;
}

.timeline-item:nth-child(even) .timeline-figure--aside {
  grid-column: 1;
}

.timeline-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.timeline-figure figcaption {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  padding: 10px 14px;
  text-align: center;
  background: var(--background-alt);
}

/* Stats - redesigned for consistency */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 48px;
  background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

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

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--border-strong);
  opacity: 0.6;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--text-light);
  border-radius: 50%;
  margin-bottom: 16px;
}

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

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-darker);
  margin-bottom: 6px;
  line-height: 1;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Sponsorship / Community Card
   ========================================================================== */

.sponsorship-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  margin-top: 40px;
  padding: 32px;
  background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--primary-light) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.sponsorship-card:hover,
.sponsorship-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  outline: none;
}

.sponsorship-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--background);
  box-shadow: var(--shadow-sm);
}

.sponsorship-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.sponsorship-card:hover .sponsorship-thumb img {
  transform: scale(1.04);
}

.sponsorship-text .section-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.sponsorship-title {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-darker);
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.sponsorship-desc {
  display: block;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
}

.sponsorship-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.sponsorship-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-out);
}

.sponsorship-card:hover .sponsorship-cta svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open {
  display: flex;
  animation: modalFadeIn 0.25s var(--ease-out);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 26, 43, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  animation: modalSlideUp 0.3s var(--ease-out);
}

.modal-image {
  background: var(--background-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 40px;
}

.modal-body .section-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.modal-body h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-darker);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.modal-body .lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.modal-body p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

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

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--primary);
  color: var(--text-light);
  outline: none;
  transform: rotate(90deg);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

body.modal-open {
  overflow: hidden;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services {
  background: var(--background-alt);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--background);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

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

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

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-light);
  transform: scale(1.05);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.service-card p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Advantages Section
   ========================================================================== */

.advantages {
  background: var(--background);
}

.advantages-grid {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.advantage-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.advantage-item.reverse {
  direction: rtl;
}

.advantage-item.reverse > * {
  direction: ltr;
}

.advantage-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  position: relative;
}

.advantage-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}

.advantage-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.advantage-item:hover .advantage-image img {
  transform: scale(1.08);
}

.advantage-number {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.advantage-number span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--text-light);
  border-radius: 50%;
  font-size: 14px;
  letter-spacing: 0;
}

.advantage-content h3 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.advantage-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ==========================================================================
   Case Studies Section
   ========================================================================== */

.case-studies {
  background: var(--background-alt);
}

.showcase-feature-image {
  max-width: 960px;
  margin: 0 auto 80px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--background);
}

.showcase-feature-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.showcase-feature-image figcaption {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
  padding: 14px 20px;
  text-align: center;
  background: var(--background-alt);
}

.video-showcase {
  margin-bottom: 80px;
  text-align: center;
}

.showcase-title {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.showcase-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.portrait-videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}

.video-card {
  position: relative;
}

.video-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  position: relative;
  padding: 12px;
  background: linear-gradient(145deg, #1e293b, #334155);
  transition: var(--transition);
}

.video-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.35);
}

.video-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  z-index: 10;
}

.video-frame video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  background: #000;
  max-height: 640px;
  object-fit: contain;
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.case-study-card {
  background: var(--background);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.case-study-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.case-study-icon svg {
  width: 22px;
  height: 22px;
}

.case-study-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-study-tag {
  display: inline-block;
  color: var(--primary);
  padding: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  width: fit-content;
}

.case-study-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.case-study-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.98rem;
}

.confidentiality-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 32px;
  background: var(--background);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  max-width: 700px;
  margin: 0 auto;
}

.confidentiality-note svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.confidentiality-note p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ==========================================================================
   CTA Band
   ========================================================================== */

.cta-band {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(0, 168, 232, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.15) 0%, transparent 40%);
}

.cta-band-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-band .btn {
  white-space: nowrap;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact {
  background: var(--background);
}

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

.contact-intro {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  background: var(--background-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 102, 161, 0.25);
}

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

.contact-item h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.contact-item a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
  display: inline-block;
  word-break: break-word;
}

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

.contact-item p {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5 / 6;
  max-height: 580px;
  position: relative;
}

.contact-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.2) 100%);
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--background-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 32px;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 72px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  max-width: 380px;
}

.footer-brand-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.footer-brand p {
  line-height: 1.7;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.footer-column h4 {
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  display: inline-block;
}

.footer-column a:hover {
  color: var(--text-light);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--text-light);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 968px) {
  :root {
    --nav-height: 80px;
  }

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

  .navbar.scrolled .logo {
    height: 72px;
    width: 72px;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    gap: 20px;
    align-items: flex-start;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-menu a {
    font-size: 17px;
    width: 100%;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  section {
    padding: 80px 0;
  }

  .about-content,
  .advantage-item,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .timeline {
    margin-bottom: 80px;
  }

  .timeline::before {
    left: 20px;
    transform: none;
  }

  .timeline-item {
    grid-template-columns: 40px 1fr;
    gap: 16px;
    margin-bottom: 48px;
  }

  .timeline-marker {
    grid-column: 1;
    align-items: flex-start;
    padding-top: 0;
  }

  .timeline-year {
    position: static;
    margin-bottom: 12px;
  }

  .timeline-dot {
    margin-top: 0;
    transform: translateX(1px);
  }

  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 2;
    text-align: left;
  }

  .timeline-item:nth-child(odd) .timeline-figure--aside,
  .timeline-item:nth-child(even) .timeline-figure--aside {
    grid-column: 2;
    margin-top: 16px;
  }

  .timeline-item:nth-child(odd) .timeline-card::before,
  .timeline-item:nth-child(even) .timeline-card::before {
    left: -8px;
    right: auto;
    transform: rotate(-135deg);
  }

  .timeline-card {
    padding: 24px 20px;
  }

  .advantage-item.reverse {
    direction: ltr;
  }

  .advantages-grid {
    gap: 60px;
  }

  .cta-band-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .stat-item + .stat-item::before {
    display: none;
  }

  .stats {
    padding: 32px 24px;
  }

  .sponsorship-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
    text-align: center;
  }

  .sponsorship-cta {
    justify-content: center;
  }

  .modal-dialog {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 32px);
  }

  .modal-image {
    aspect-ratio: 16 / 9;
  }

  .modal-body {
    padding: 28px 24px;
  }

  .modal-body h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 640px) {
  section {
    padding: 64px 0;
  }

  .hero-content {
    padding: calc(var(--nav-height) + 24px) 0 60px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-trust {
    gap: 16px;
  }

  .trust-item {
    font-size: 13px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .portrait-videos {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .video-frame {
    max-width: 360px;
    margin: 0 auto;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact-item {
    padding: 16px;
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

.fade-in {
  animation: fadeInUp 0.8s var(--ease-out) both;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .scroll-indicator,
  .hero-cta,
  .mobile-menu-toggle,
  .cta-band {
    display: none;
  }

  section {
    page-break-inside: avoid;
  }

  .cookie-banner {
    display: none;
  }
}

/* ==========================================================================
   Legal / Policy pages
   ========================================================================== */
.legal-content {
  max-width: 760px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  margin-bottom: 1.1rem;
}

.legal-content ul {
  margin: 0 0 1.1rem 1.25rem;
  padding: 0;
}

.legal-content li {
  margin-bottom: 0.6rem;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--primary-dark);
}

.legal-content code {
  background: var(--background-alt);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--background-dark);
  color: var(--text-light);
  box-shadow: var(--shadow-xl);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  flex: 1 1 320px;
}

.cookie-banner-text a {
  color: #fff;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner .cookie-btn {
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
}

.cookie-banner .btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cookie-banner .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {
  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner .cookie-btn {
    flex: 1;
  }
}
