/* ==========================================
   MatchTime24 - Stylesheet
   ========================================== */

/* CSS Custom Properties */
:root {
  /* Colors */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-bg: #eff6ff;

  --text-dark: #1a1a1a;
  --text: #4b5563;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;

  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;

  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --success: #10b981;
  --success-bg: #ecfdf5;
  --error: #ef4444;
  --error-bg: #fef2f2;
  --warning: #f59e0b;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 5rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 300ms ease;
  --transition-slow: 500ms ease;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #f9fafb;
    --text: #e5e7eb;
    --text-light: #9ca3af;
    --text-lighter: #6b7280;

    --bg: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;

    --border: #374151;
    --border-light: #1f2937;

    --primary-bg: #1e3a5f;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  }

  /* Header dark mode */
  .header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  }

  /* Nav link hover dark mode */
  .nav-link:hover {
    background: var(--primary-bg);
  }

  /* Hamburger dark mode */
  .hamburger,
  .hamburger::before,
  .hamburger::after {
    background: #f9fafb;
  }

  /* Cards dark mode */
  .benefit-card,
  .service-card,
  .value-card,
  .contact-card,
  .process,
  .why-us,
  .application-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
  }

  /* Icon backgrounds dark mode */
  .benefit-icon,
  .service-icon,
  .value-icon {
    background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(37, 99, 235, 0.3) 100%);
  }

  .benefit-card:hover .benefit-icon,
  .service-card:hover .service-icon,
  .value-card:hover .value-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  }

  /* Button secondary dark mode */
  .button-secondary {
    background: var(--bg-secondary);
    color: var(--text-dark);
    border-color: var(--border);
  }

  .button-secondary:hover {
    background: var(--bg-tertiary);
    color: var(--text-dark);
  }

  /* Form inputs dark mode */
  .form input,
  .form select,
  .form textarea {
    background: var(--bg-secondary);
    border-color: var(--border);
    color: var(--text-dark);
  }

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

  /* Contact form wrapper dark mode */
  .contact-form-wrapper {
    background: var(--bg-tertiary);
  }

  /* Section tag dark mode */
  .section-tag {
    background: var(--primary-bg);
  }

  /* Progress step dark mode */
  .progress-step .step-number {
    background: var(--bg-tertiary);
  }

  /* File upload dark mode */
  .file-upload-area {
    background: var(--bg-secondary);
    border-color: var(--border);
  }

  /* Checkbox dark mode */
  .checkbox input[type="checkbox"] {
    border-color: var(--border);
  }

  /* Text gradient dark mode adjustment */
  .text-gradient {
    background: linear-gradient(135deg, var(--primary-light) 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }

  /* SVG Illustrations dark mode - invert light backgrounds, keep brand colors */
  .section-illustration img[src$=".svg"],
  .contact-illustration img[src$=".svg"] {
    filter: invert(0.85) hue-rotate(180deg) saturate(1.5) brightness(1.1);
  }
}

/* ==========================================
   Reset & Base
   ========================================== */

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

html {
  scroll-behavior: smooth;
  font-size: clamp(15px, 0.9rem + 0.3vw, 18px);
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Justified text on mobile for better readability */
p, .about-text p, .benefit-card p, .service-card p, .value-card p, .contact-details p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

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

.hero-subtitle {
  text-align: justify;
}

@media (min-width: 768px) {
  p, .about-text p, .benefit-card p, .service-card p, .value-card p, .contact-details p, .hero-subtitle {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
  }

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

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

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  z-index: 10000;
  transition: top var(--transition);
}

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

/* ==========================================
   Layout
   ========================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

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

.section-alt {
  background-color: var(--bg-secondary);
}

/* ==========================================
   Typography
   ========================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

h4 {
  font-size: 1.125rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header--wide {
  max-width: none;
}

.section-tag {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.125rem;
}

.section-subtitle--justify {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Section with illustration */
.section-with-illustration {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.section-illustration {
  max-width: 300px;
  margin: 0 auto;
}

.section-illustration img {
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .section-with-illustration {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .section-with-illustration .section-header {
    text-align: left;
    margin: 0;
    max-width: none;
  }

  .section-with-illustration.illustration-left {
    grid-template-columns: 1fr 1fr;
  }

  .section-with-illustration.illustration-left .section-illustration {
    order: -1;
  }
}

/* Contact illustration */
.contact-illustration {
  display: none;
}

@media (min-width: 1024px) {
  .contact-grid-with-illustration {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
  }

  .contact-illustration {
    display: block;
    position: sticky;
    top: 120px;
  }

  .contact-illustration img {
    width: 100%;
    max-width: 400px;
    height: auto;
  }
}

/* ==========================================
   Header & Navigation
   ========================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg);
  transition: all var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  width: 100%;
}

/* Logo */
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .logo {
    font-size: 1.5rem;
  }
}

.logo-match {
  color: var(--text-dark);
}

.logo-24 {
  color: var(--primary);
}

/* Nav Menu - Mobile First */
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 999;
  padding: 1.5rem 1rem;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
}

.nav-menu.active {
  display: flex;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-align: center;
  width: 100%;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-bg);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white !important;
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all var(--transition);
  text-align: center;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Desktop CTA - hidden on mobile */
.nav-cta-desktop {
  display: none;
}

/* Mobile CTA - shown on mobile */
.nav-cta-mobile {
  display: block;
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  z-index: 1001;
  flex-shrink: 0;
}

.hamburger {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  position: relative;
  transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  transition: transform var(--transition);
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  bottom: -6px;
}

.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Desktop Navigation - Only on large screens */
@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 0.25rem;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    box-shadow: none;
  }

  .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
  }

  .nav-cta {
    padding: 0.5rem 0.75rem;
    margin-top: 0;
    font-size: 0.8125rem;
  }

  .nav-toggle {
    display: none;
  }
}

@media (min-width: 1200px) {
  .nav-menu {
    gap: 0.5rem;
  }

  .nav-link {
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
  }

  .nav-cta {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
  }
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 2rem;
}

@media (min-width: 480px) {
  .hero {
    padding-top: 85px;
    padding-bottom: 3rem;
  }
}

.hero > .container {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-illustration {
  max-width: 100%;
  margin-top: 1rem;
}

.hero-illustration img {
  width: 100%;
  height: auto;
  max-width: 420px;
  margin: 0 auto;
  display: block;
}

@media (min-width: 768px) {
  .hero > .container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .hero-illustration {
    margin-top: 0;
  }

  .hero-illustration img {
    max-width: 100%;
  }
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-light);
}

@media (min-width: 768px) {
  .hero > .container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 70px;
  }
}

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

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.about-text h3 {
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
}

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

.value-card {
  padding: 1.5rem;
  background: var(--bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

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

.value-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(37, 99, 235, 0.12) 100%);
  color: var(--primary);
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: all var(--transition);
}

.value-card:hover .value-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

.value-card h4 {
  margin-bottom: 0.25rem;
}

.value-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
  }
}

/* About section: image + text (mobile: stacked, desktop: side by side) */
.about-grid-single {
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
}

.about-image-mobile {
  display: block;
  max-width: 280px;
  margin: 0 auto 2rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-mobile img,
.about-image-mobile picture {
  width: 100%;
  display: block;
}

.about-image-mobile img {
  height: auto;
  object-fit: cover;
}

@media (min-width: 768px) {
  .about-grid-single {
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 100%;
  }

  .about-image-mobile {
    max-width: 100%;
    margin: 0;
  }
}

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

/* ==========================================
   Benefits Grid
   ========================================== */

.benefits-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.benefit-card {
  padding: 2rem;
  background: var(--bg);
  border-radius: 20px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.benefit-card:hover {
  border-color: rgba(37, 99, 235, 0.1);
}

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

.benefit-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(37, 99, 235, 0.15) 100%);
  color: var(--primary);
  border-radius: 16px;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.benefit-card:hover .benefit-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.benefit-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin: 0;
}

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

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

/* ==========================================
   Process Steps
   ========================================== */

.process {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

.process-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.process-step {
  text-align: center;
  padding: 1rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  margin-bottom: 1rem;
}

.process-step h4 {
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin: 0;
}

.process-connector {
  display: none;
}

@media (min-width: 768px) {
  .process-steps {
    flex-direction: row;
    align-items: flex-start;
  }

  .process-step {
    flex: 1;
  }

  .process-connector {
    display: block;
    flex: 0 0 60px;
    height: 2px;
    background: var(--border);
    margin-top: 24px;
  }
}

/* ==========================================
   Services Grid
   ========================================== */

.services-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.service-card {
  padding: 2rem;
  background: var(--bg);
  border-radius: 20px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  border-color: rgba(37, 99, 235, 0.1);
}

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

.service-icon {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-bg) 0%, rgba(37, 99, 235, 0.15) 100%);
  color: var(--primary);
  border-radius: 18px;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin: 0;
}

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

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

/* Why Us */
.why-us {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

.why-us h3 {
  text-align: center;
  margin-bottom: 2rem;
}

.why-us-grid {
  display: grid;
  gap: 1rem;
}

.why-us-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.why-us-item svg {
  flex-shrink: 0;
  color: var(--success);
}

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

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

/* Section CTA */
.section-cta {
  text-align: center;
}

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

.contact-grid {
  display: grid;
  gap: 3rem;
}

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

.contact-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

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

.contact-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.contact-details h4 {
  margin-bottom: 0.25rem;
}

.contact-details p {
  color: var(--text-light);
  margin: 0;
}

.contact-details a {
  color: var(--text-light);
}

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

.contact-form-wrapper {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius-xl);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-wrapper {
    order: 1;
  }

  .contact-info {
    order: 2;
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   Application Section
   ========================================== */

.application-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .application-wrapper {
    padding: 3rem;
  }
}

/* Progress Bar */
.form-progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.progress-step .step-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  color: var(--text-light);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
  background: var(--primary);
  color: white;
}

.progress-step .step-label {
  font-size: 0.75rem;
  color: var(--text-light);
  display: none;
}

.progress-line {
  width: 60px;
  height: 2px;
  background: var(--bg-tertiary);
  margin: 0 0.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
  .progress-step .step-label {
    display: block;
  }

  .progress-line {
    width: 80px;
  }
}

/* ==========================================
   Buttons
   ========================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.button-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.button-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.button-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.button-primary:disabled {
  background: var(--text-lighter);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.button-secondary {
  background: var(--bg);
  color: var(--text-dark);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
  background: var(--bg-secondary);
  color: var(--primary);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button-large {
  padding: 1.125rem 2.5rem;
  font-size: 1.0625rem;
}

.button-small {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* ==========================================
   Forms
   ========================================== */

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

.form-step {
  display: none;
  border: none;
}

.form-step.active {
  display: block;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

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

.form label {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.9375rem;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="date"],
.form select,
.form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

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

.form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Checkbox */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: normal;
}

.checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--primary);
}

.checkbox span {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}

.checkbox a {
  text-decoration: underline;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.checkbox-item:hover {
  background: var(--bg-tertiary);
}

.checkbox-item input {
  accent-color: var(--primary);
}

.checkbox-item span {
  font-size: 0.9375rem;
}

/* File Upload */
.file-upload {
  position: relative;
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  background: var(--bg-secondary);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-fast);
}

.file-upload-label svg {
  color: var(--text-light);
}

.file-upload-label span {
  color: var(--text-light);
  font-size: 0.9375rem;
}

.file-upload:hover .file-upload-label {
  border-color: var(--primary);
  background: var(--primary-bg);
}

/* Honeypot */
.honeypot {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

/* Form Navigation */
.form-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

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

.footer {
  background: var(--bg-secondary);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-light);
  font-size: 0.9375rem;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

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

.footer-contact p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

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

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-light);
  font-size: 0.875rem;
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

/* ==========================================
   Cookie Notice
   ========================================== */

.cookie-notice {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 1rem;
}

.cookie-notice.show {
  display: block;
}

.cookie-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.cookie-content p {
  font-size: 0.9375rem;
  color: var(--text-light);
}

@media (min-width: 640px) {
  .cookie-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations */
.benefits-grid .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.benefits-grid .animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.benefits-grid .animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.benefits-grid .animate-on-scroll:nth-child(4) { transition-delay: 300ms; }
.benefits-grid .animate-on-scroll:nth-child(5) { transition-delay: 400ms; }
.benefits-grid .animate-on-scroll:nth-child(6) { transition-delay: 500ms; }

.services-grid .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.services-grid .animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.services-grid .animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.services-grid .animate-on-scroll:nth-child(4) { transition-delay: 300ms; }
.services-grid .animate-on-scroll:nth-child(5) { transition-delay: 400ms; }
.services-grid .animate-on-scroll:nth-child(6) { transition-delay: 500ms; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ==========================================
   Utility Classes
   ========================================== */

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

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

/* ==========================================
   Print Styles
   ========================================== */

@media print {
  .header,
  .cookie-notice,
  .nav-toggle,
  .hero-buttons,
  .section-cta,
  .form,
  .footer {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .section {
    padding: 1rem 0;
  }
}
