/* 1. Variables */
:root {
  --primary: #231f20;
  --primary-dark: #111111;
  --secondary: #ed1c24;
  --accent: #b5131a;
  --text: #333333;
  --muted: #666666;
  --light: #f8f9fa;
  --white: #FFFFFF;
  --border: #e9ecef;
  --success: #28a745;
  --error: #dc3545;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.3s ease;
  
  /* Responsive Spacing & Typography Variables */
  --section-padding: clamp(56px, 8vw, 120px);
  --h1-size: clamp(2.2rem, 5vw, 4.5rem);
  --h2-size: clamp(1.8rem, 4vw, 3rem);
  --h3-size: clamp(1.5rem, 3vw, 2.25rem);
  --body-size: clamp(1rem, 1.2vw, 1.125rem);
}

/* 2. Global Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.6;
  background-color: var(--white);
  min-width: 320px;
  overflow-x: hidden;
  font-size: var(--body-size);
}

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

button,
input,
textarea,
select {
  font: inherit;
  margin: 0;
}

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

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

/* 3. Container System */
.container {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

@media (min-width: 1440px) {
  .container {
      width: min(100% - 80px, 1320px);
  }
}

/* 4. Base Utilities */
.section {
  padding-block: var(--section-padding);
}
.bg-light { background-color: var(--light); }
.bg-primary { background-color: var(--primary); color: var(--white); }
.bg-primary h2, .bg-primary h3, .bg-primary p { color: var(--white); }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}
.section-header h2 {
  font-size: var(--h2-size);
  margin-bottom: 1rem;
}
.section-header p {
  font-size: var(--body-size);
  color: var(--muted);
}

/* 5. Buttons (Touch Optimized) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  min-height: 48px; /* Touch target size */
  text-align: center;
}
.btn-primary {
  background-color: var(--secondary);
  color: var(--white);
}
.btn-primary:hover {
  background-color: var(--accent);
  color: var(--white);
}
.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
}
.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--primary);
}

/* 6. Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
  transition: var(--transition);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--secondary);
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px; /* Touch target */
  align-items: center;
  justify-content: center;
}

/* 7. Hero Section */
.hero {
  padding: clamp(120px, 15vw, 180px) 0 clamp(60px, 8vw, 100px);
  background: linear-gradient(135deg, var(--light) 0%, #e0f2f7 100%);
  position: relative;
  overflow: hidden;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero-text h1 {
  font-size: var(--h1-size);
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}
.hero-text p {
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-image {
  width: 100%;
}
.hero-image img {
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  object-fit: contain;
  width: 100%;
  height: auto;
}

/* 8. Stats Section */
.stats {
  background-color: var(--primary);
  padding: 4rem 0;
  color: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-item h3 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
.stat-item p {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0;
}

/* 9. About / Grids */
.about-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 10. Cards */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-color: var(--secondary);
}
.service-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-size: var(--h3-size);
  margin-bottom: 1rem;
}
.service-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.service-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

/* 11. Process/Stages */
.ih-stages, .process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
}
.ih-stage {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  position: relative;
  z-index: 2;
}

/* 12. Clients */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
}
.client-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

/* 13. Leadership */
.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  background: var(--white);
  padding: clamp(2rem, 4vw, 4rem);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* 14. Forms */
.contact-form {
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 3rem);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
  min-height: 48px; /* Touch target */
}
.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.1);
}
textarea.form-control {
  height: 120px;
  resize: vertical;
}

/* 15. Footer */
.footer {
  background-color: var(--primary-dark);
  color: var(--light);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: rgba(255,255,255,0.7);
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}
.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

/* 16. Accessibility & Utils */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.3s ease;
}
.floating-wa:hover {
    transform: scale(1.1);
    color: #fff;
}

.approach-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.approach-step h4 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}