/* ==========================================================================
   Manojyoti Infotech — Brand Identity CSS
   Brand Color: #E53030 (Manojyoti Red) derived from official logo
   ========================================================================== */

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

:root {
  /* ─── BRAND PALETTE (derived from uploaded logo) ─── */
  --brand-red:        #E53030;   /* Primary — exact logo red */
  --brand-red-dark:   #B91C1C;   /* Deeper red for hover states */
  --brand-red-darker: #991B1B;   /* Darkest red, footer/CTA */
  --brand-red-mid:    #DC2626;   /* Mid-tone red */
  --brand-red-light:  #FEF2F2;   /* Tinted background */
  --brand-red-subtle: #FEE2E2;   /* Very light tint */
  --brand-red-muted:  #FECACA;   /* Subtle border / divider */

  /* ─── NEUTRALS ─── */
  --dark:        #111827;   /* Near-black — premium dark */
  --dark-2:      #1F2937;   /* Dark sections */
  --dark-3:      #0D1117;   /* Footer dark */
  --text:        #1A1A2E;   /* Body text */
  --text-muted:  #6B7280;
  --text-light:  #9CA3AF;
  --white:       #FFFFFF;
  --off-white:   #FAFAFA;
  --border:      #E5E7EB;
  --border-red:  rgba(229, 48, 48, 0.18);

  /* ─── ACCENT COLORS ─── */
  --accent-bg:   #FEF2F2;   /* Light red tinted bg */
  --accent-2:    #FEE2E2;   /* Cards, tags */
  --steel:       #F1F5F9;   /* Neutral section bg */

  /* ─── SHADOWS ─── */
  --shadow-sm:   0 1px 3px rgba(229, 48, 48, 0.06);
  --shadow-md:   0 4px 20px rgba(229, 48, 48, 0.10);
  --shadow-lg:   0 12px 40px rgba(229, 48, 48, 0.14);
  --shadow-xl:   0 24px 64px rgba(229, 48, 48, 0.18);
  --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.24);

  /* ─── SHAPE & LAYOUT ─── */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;
  --nav-h:      76px;

  /* ─── MOTION ─── */
  --transition:      all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* ─── TYPOGRAPHY ─── */
  --font-body:    'Inter', system-ui, sans-serif;
  --font-heading: 'Outfit', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  overflow-x: hidden; /* Prevent horizontal overflow on all browsers incl. iOS Safari */
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

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

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

.section {
  padding: 100px 0;
}

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

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::after { opacity: 1; }

/* Primary — brand red gradient */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-mid) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(229, 48, 48, 0.35);
  border: 2px solid transparent;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(229, 48, 48, 0.48);
  background: linear-gradient(135deg, var(--brand-red-dark) 0%, var(--brand-red) 100%);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--brand-red);
  border: 2px solid var(--brand-red);
}
.btn-outline:hover {
  background: var(--brand-red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 48, 48, 0.3);
}

/* White (on colored bg) */
.btn-white {
  background: var(--white);
  color: var(--brand-red);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  border: 2px solid transparent;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

/* Outline white */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-large { padding: 15px 32px; font-size: 1rem; }
.btn-full  { width: 100%; justify-content: center; padding: 16px; font-size: 1rem; }

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-2);
  color: var(--brand-red);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid var(--brand-red-muted);
}

.tag-light {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.25);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-header.light .section-title { color: var(--white); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
}

.section-header.light .section-subtitle { color: rgba(255,255,255,0.8); }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.98);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ── Logo (image-based) ── */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.nav-logo:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.nav-logo img {
  height: 44px;
  width: auto;
  max-width: 240px;
  display: block;
}

/* Fallback text logo (shown if image fails) */
.logo-fallback {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon-box {
  width: 44px;
  height: 44px;
  background: var(--brand-red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(229, 48, 48, 0.4);
}

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

.logo-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  color: var(--brand-red);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.logo-tagline {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--brand-red);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 20px;
}

.nav-cta {
  flex-shrink: 0;
  margin-left: 8px;
  font-size: 0.85rem;
  padding: 10px 22px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--brand-red);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  background: linear-gradient(160deg, #FFF5F5 0%, #FEF2F2 35%, #FFFAFA 70%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-shape-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(229, 48, 48, 0.09) 0%, transparent 70%);
  top: -150px;
  right: -120px;
}

.hero-shape-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.06) 0%, transparent 70%);
  bottom: 80px;
  left: -80px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(229, 48, 48, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 48, 48, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 30%, transparent 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 28px 60px;
  flex: 1;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(229, 48, 48, 0.08), rgba(220, 38, 38, 0.06));
  border: 1px solid rgba(229, 48, 48, 0.2);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-red);
  margin-bottom: 24px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-badge i { color: #F59E0B; font-size: 1rem; }

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 20px;
  color: var(--dark);
  letter-spacing: -1.5px;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-red);
  margin-bottom: 16px;
  line-height: 1.6;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 22px 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-width: fit-content;
  position: relative;
}

.hero-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red), #FF6B6B);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.hero-stat { text-align: center; padding: 0 22px; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--brand-red);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-grid {
  position: relative;
  width: 420px;
  height: 420px;
}

.hero-center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 86px;
  height: 86px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-mid));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.2rem;
  z-index: 2;
  box-shadow: 0 16px 48px rgba(229, 48, 48, 0.45);
}

.pulse-ring {
  position: absolute;
  inset: -12px;
  border-radius: 24px;
  border: 2px solid rgba(229, 48, 48, 0.3);
  animation: pulse 2.2s ease-out infinite;
}

.pulse-ring.delay-1 {
  inset: -24px;
  border-radius: 30px;
  animation-delay: 0.6s;
  border-color: rgba(229, 48, 48, 0.15);
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}

.hero-float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(229, 48, 48, 0.1);
  border: 1px solid rgba(229, 48, 48, 0.1);
  transition: var(--transition-slow);
  animation: float 3s ease-in-out infinite;
}

.hfc-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.hfc-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
}

.hfc-1 { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.hfc-2 { top: 15%; right: 0; animation-delay: 0.3s; }
.hfc-3 { bottom: 15%; right: 0; animation-delay: 0.6s; }
.hfc-4 { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 0.9s; }
.hfc-5 { bottom: 15%; left: 0; animation-delay: 1.2s; }
.hfc-6 { top: 15%; left: 0; animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hfc-1, .hfc-4 { animation-name: floatCenter; }

@keyframes floatCenter {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* Scroll Indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 32px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.scroll-dot {
  width: 28px;
  height: 44px;
  border-radius: 14px;
  border: 2px solid rgba(229, 48, 48, 0.3);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot::before {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--brand-red);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about { background: var(--white); }

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

.about-image-block { position: relative; }

.about-img-main {
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-mid) 100%);
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.about-img-main::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}

.about-img-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.2), transparent);
}

.about-year-badge {
  position: absolute;
  top: 24px; right: 24px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  text-align: center;
  color: var(--white);
}

.year-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
}

.year-label {
  font-size: 0.7rem;
  opacity: 0.8;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about-img-inner { position: relative; z-index: 1; }

.about-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.aig-item {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
  transition: var(--transition);
}

.aig-item:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-4px);
}

.aig-item i { font-size: 1.8rem; }
.aig-item span { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

.about-badge-float {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

.about-badge-float i { font-size: 1.6rem; color: var(--brand-red); }
.ab-num { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 900; color: var(--brand-red); line-height: 1; }
.ab-txt { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.ab-1 { bottom: -24px; left: -24px; }
.ab-2 { top: -24px; right: -24px; }

.about-lead { font-size: 1.1rem; font-weight: 600; color: var(--dark); line-height: 1.75; margin-bottom: 20px; }
.about-body { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 36px; }

.about-vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.vm-card {
  background: var(--steel);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.vm-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-mid));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(229, 48, 48, 0.25);
}

.vm-card h3 { font-size: 1rem; font-weight: 800; color: var(--brand-red); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.3px; }
.vm-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

.mission-list { display: flex; flex-direction: column; gap: 8px; }
.mission-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.mission-list li i { color: var(--brand-red); font-size: 0.75rem; margin-top: 3px; flex-shrink: 0; }

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services {
  background: var(--steel);
  position: relative;
}

.services-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(229, 48, 48, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red), #FF6B6B);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-slow);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(229, 48, 48, 0.15);
}

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

.sc-icon-wrap { display: flex; align-items: center; }

.sc-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-bg), var(--accent-2));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
  font-size: 1.4rem;
  transition: var(--transition);
  border: 1px solid var(--brand-red-muted);
}

.service-card:hover .sc-icon {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-mid));
  color: var(--white);
  transform: rotate(-5deg) scale(1.05);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(229, 48, 48, 0.35);
}

.service-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--dark); }
.service-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

.sc-list { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sc-list li { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--text-muted); }
.sc-list li i { color: var(--brand-red); font-size: 0.8rem; flex-shrink: 0; }

.sc-footer { padding-top: 8px; border-top: 1px solid var(--border); margin-top: auto; }

.sc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-red);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sc-link:hover { gap: 10px; color: var(--brand-red-dark); }

/* ==========================================================================
   TRAINING SECTION
   ========================================================================== */
.training { background: var(--white); }

.training-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.training-card {
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px solid var(--border);
  transition: var(--transition-slow);
}

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

.student-card {
  background: linear-gradient(160deg, #FFF9F9 0%, #FEF2F2 100%);
  border-color: var(--brand-red-muted);
}

.corporate-card {
  background: linear-gradient(160deg, #FFF5F5 0%, #FFEAEA 100%);
  border-color: rgba(229, 48, 48, 0.25);
}

.tc-header { display: flex; flex-direction: column; gap: 12px; }

.tc-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-mid));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  box-shadow: 0 4px 14px rgba(229, 48, 48, 0.3);
}

.tc-header h3 { font-size: 1.2rem; font-weight: 800; color: var(--brand-red); text-transform: uppercase; letter-spacing: 0.3px; }
.tc-header p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }

.tc-list { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tc-list li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--dark); font-weight: 500; }
.tc-list li i { color: var(--brand-red); font-size: 0.9rem; flex-shrink: 0; }

.tc-btn { width: 100%; justify-content: center; }

/* Training Benefits */
.training-benefits {
  background: linear-gradient(160deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  color: var(--white);
}

.training-benefits h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: var(--transition);
}

.benefit-item:hover { background: rgba(255,255,255,0.18); }

.bi-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.bi-text { font-size: 0.79rem; font-weight: 600; line-height: 1.4; }

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */
.why-us {
  background: linear-gradient(135deg, var(--dark) 0%, #1A0A0A 40%, #2D0A0A 100%);
  position: relative;
  overflow: hidden;
}

.why-us-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(229, 48, 48, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(220, 38, 38, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card:hover {
  background: rgba(229, 48, 48, 0.08);
  transform: translateY(-4px);
  border-color: rgba(229, 48, 48, 0.2);
}

.wc-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(229, 48, 48, 0.1);
  position: absolute;
  top: 12px; right: 20px;
  line-height: 1;
}

.wc-icon {
  width: 48px;
  height: 48px;
  background: rgba(229, 48, 48, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF8080;
  font-size: 1.1rem;
  margin-bottom: 16px;
  border: 1px solid rgba(229, 48, 48, 0.2);
}

.why-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.why-card p { font-size: 0.84rem; color: rgba(255,255,255,0.6); line-height: 1.65; }

/* ==========================================================================
   INDUSTRIES
   ========================================================================== */
.industries { background: var(--steel); }

.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.industry-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: default;
}

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

.ind-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent-bg), var(--accent-2));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
  font-size: 1.6rem;
  margin: 0 auto 16px;
  transition: var(--transition);
  border: 1px solid var(--brand-red-muted);
}

.industry-card:hover .ind-icon {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-mid));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(229, 48, 48, 0.35);
}

.ind-name { font-weight: 800; font-size: 0.9rem; color: var(--dark); text-transform: uppercase; letter-spacing: 0.3px; }

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-mid) 50%, var(--brand-red-dark) 100%);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-bg { position: absolute; inset: 0; pointer-events: none; }

.cta-shape-1 {
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.cta-shape-2 {
  position: absolute;
  bottom: -60px; left: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.cta-content { position: relative; z-index: 1; }
.cta-content h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; color: var(--white); margin-bottom: 16px; }
.cta-content p { font-size: 1.05rem; color: rgba(255,255,255,0.88); margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact { background: var(--white); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 60px; align-items: start; }

.contact-info h3 { font-size: 1.4rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.contact-info-desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 32px; }

.contact-detail-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }

.contact-detail { display: flex; align-items: flex-start; gap: 16px; }

.cd-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
  border: 1px solid var(--brand-red-muted);
}

/* Sadar branch icon – slightly deeper tint to distinguish */
.cd-icon-sadar {
  background: var(--brand-red-subtle);
  border-color: rgba(229, 48, 48, 0.25);
}

.cd-label { font-size: 0.72rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.cd-value { font-size: 0.9rem; color: var(--dark); font-weight: 600; line-height: 1.6; }

.get-directions-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: var(--transition);
  text-decoration: none;
}

.get-directions-link i { font-size: 0.7rem; transition: var(--transition); }
.get-directions-link:hover { gap: 8px; color: var(--brand-red-dark); }
.get-directions-link:hover i { transform: translateX(2px); }

.contact-social { display: flex; gap: 10px; }

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--steel);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--brand-red);
  color: var(--white);
  border-color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(229, 48, 48, 0.35);
}

/* Contact Form */
.contact-form {
  background: var(--steel);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-red), #FF6B6B);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.84rem; font-weight: 700; color: var(--dark); text-transform: uppercase; letter-spacing: 0.5px; }
.required { color: var(--brand-red); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 0.9rem;
  color: var(--dark);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(229, 48, 48, 0.08);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #EF4444; }

.form-error { font-size: 0.78rem; color: #EF4444; min-height: 16px; font-weight: 600; }

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

.form-group select {
  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='%23E53030' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: #065F46;
  font-size: 0.88rem;
  font-weight: 600;
}

.form-success.show { display: flex; }
.form-success i { font-size: 1.1rem; flex-shrink: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--dark-3); }

.footer-top { padding: 72px 0 48px; }

.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 0.8fr; gap: 48px; }

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

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

/* Fallback footer logo */
.footer-logo-fallback {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-fallback .logo-icon-box {
  background: rgba(229, 48, 48, 0.9);
}

.footer .logo-name { color: var(--white); }
.footer .logo-tagline { color: rgba(255,255,255,0.45); }

.footer-desc { font-size: 0.87rem; color: rgba(255,255,255,0.5); line-height: 1.8; margin-bottom: 24px; max-width: 280px; }

.footer-social { display: flex; gap: 10px; }

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(229, 48, 48, 0.35);
}

.footer-links-col h4 { font-size: 0.78rem; font-weight: 800; color: var(--white); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }

.footer-links-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-links-col ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer-links-col ul li a:hover { color: var(--white); gap: 12px; }
.footer-links-col ul li a i { font-size: 0.7rem; color: var(--brand-red); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 24px 0;
}

.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.footer-bottom i { color: var(--brand-red); margin: 0 2px; }

/* ==========================================================================
   FLOATING BUTTONS
   ========================================================================== */
.whatsapp-btn {
  position: fixed;
  bottom: 90px; right: 28px;
  width: 54px; height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  z-index: 1001;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  outline: none;
}

.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55); }

/* Icon toggle */
#waIcon, #waCloseIcon { position: absolute; transition: opacity 0.25s ease, transform 0.25s ease; }
#waCloseIcon { opacity: 0; transform: rotate(-90deg) scale(0.5); font-size: 1.2rem; }
.whatsapp-btn.wa-open #waIcon { opacity: 0; transform: rotate(90deg) scale(0.5); }
.whatsapp-btn.wa-open #waCloseIcon { opacity: 1; transform: rotate(0deg) scale(1); }

.wa-tooltip {
  position: absolute;
  right: 62px;
  background: #333;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  top: 50%; right: -6px;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #333;
  border-right: 0;
}

.whatsapp-btn:not(.wa-open):hover .wa-tooltip { opacity: 1; }

/* ── WhatsApp Popup Panel ── */
.wa-popup {
  position: fixed;
  bottom: 156px; right: 28px;
  width: 320px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
  z-index: 1000;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.34,1.56,0.64,1), transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  transform-origin: bottom right;
}

.wa-popup.wa-popup-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wa-popup-header {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  padding: 18px 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-popup-header-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.wa-popup-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.wa-popup-subtitle {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  margin-top: 2px;
}

.wa-popup-list {
  max-height: 340px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 0;
}

.wa-popup-list::-webkit-scrollbar { width: 4px; }
.wa-popup-list::-webkit-scrollbar-track { background: transparent; }
.wa-popup-list::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 4px; }

.wa-service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  text-decoration: none;
  transition: background 0.18s ease;
  position: relative;
  cursor: pointer;
}

.wa-service-item:hover { background: #f0fdf4; }
.wa-service-item:hover .wa-si-arrow { opacity: 1; transform: translateX(0); }

.wa-si-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #e8fdf0, #d1fae5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 1px solid #bbf7d0;
}

.wa-si-text { flex: 1; min-width: 0; }

.wa-si-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-si-desc {
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-si-arrow {
  color: #25D366;
  font-size: 0.72rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  flex-shrink: 0;
}

.wa-popup-footer {
  padding: 12px 16px 14px;
  border-top: 1px solid #f0f0f0;
}

.wa-general-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 3px 12px rgba(37, 211, 102, 0.35);
}

.wa-general-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.wa-general-btn i { font-size: 1rem; }

/* Backdrop (subtle, only on mobile) */
.wa-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wa-backdrop.wa-backdrop-open { opacity: 1; }

@media (max-width: 480px) {
  .wa-popup {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 148px;
  }
  .wa-backdrop { display: block; pointer-events: none; }
  .wa-backdrop.wa-backdrop-open { pointer-events: auto; }
}

.scroll-top-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  z-index: 900;
  box-shadow: 0 4px 16px rgba(229, 48, 48, 0.4);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.scroll-top-btn.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(229, 48, 48, 0.55); }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-mid) 50%, var(--brand-red-dark) 100%);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; color: var(--white); margin-bottom: 12px; position: relative; text-transform: uppercase; letter-spacing: -0.5px; }
.page-hero p { font-size: 1rem; color: rgba(255,255,255,0.8); position: relative; }

.page-content { padding: 80px 0; background: var(--white); }
.page-content .container { max-width: 860px; }

.prose h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-red);
  margin: 40px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.prose ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.prose ul li { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 6px; }

/* Credits page — responsive helpers (cards defined inline on page) */
.credits-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.credit-card {
  background: var(--steel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: var(--transition);
}

.credit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(229, 48, 48, 0.2);
}

.credit-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-mid));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.credit-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.credit-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.copyright-box {
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  color: white;
  margin-top: 48px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
}

.copyright-box h2 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.copyright-box p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.7;
}

.copyright-year {
  font-size: 3rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: rgba(255,255,255,0.15);
  margin-bottom: 16px;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ==========================================================================
   RESPONSIVE  — Mobile-First Multi-Screen Optimisation
   Breakpoints:
     xl  : ≤ 1280px  (large laptops)
     lg  : ≤ 1100px  (tablets landscape)
     md  : ≤  900px  (tablets portrait / large phones)
     sm  : ≤  768px  (phones)
     xs  : ≤  480px  (small phones)
   ========================================================================== */

/* ── XL — 1280px ───────────────────────────────────────────── */
@media (max-width: 1280px) {
  .container { padding: 0 20px; }
  .hero-container { padding: 64px 20px 48px; gap: 40px; }
  .hero-card-grid { width: 360px; height: 360px; }
}

/* ── LG — 1100px (Tablet Landscape) ────────────────────────── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
  .contact-grid  { grid-template-columns: 1fr 1.4fr; gap: 40px; }
  .about-grid    { gap: 48px; }
  .training-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .training-benefits { grid-column: 1 / -1; }
  .hero-container { gap: 40px; }
}

/* ── MD — 900px (Tablet Portrait / Large Phone) ─────────────── */
@media (max-width: 900px) {
  :root { --nav-h: 68px; }

  /* ── Navbar ── */
  .nav-container { padding: 0 20px; gap: 16px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; margin-left: auto; }

  /* ── Hero ── */
  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 56px 20px 40px;
    text-align: center;
  }
  .hero-visual { display: none; }
  .hero-badge  { margin: 0 auto 20px; }
  .hero-desc   { max-width: 100%; margin-bottom: 28px; }
  .hero-actions { justify-content: center; }
  .hero-stats {
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    justify-content: center;
    padding: 18px 20px;
    flex-wrap: wrap;
    gap: 8px 0;
  }
  .hero-stat   { padding: 0 16px; }
  .stat-number { font-size: 1.4rem; }

  /* ── About ── */
  .about-grid   { grid-template-columns: 1fr; gap: 32px; }
  .about-visual { display: none; }
  .about-vm-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* ── Services ── */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* ── Training ── */
  .training-grid { grid-template-columns: 1fr; gap: 20px; }

  /* ── Why Us ── */
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* ── Industries ── */
  .industries-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  /* ── Contact ── */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ── SM — 768px (Phones) ────────────────────────────────────── */
@media (max-width: 768px) {
  /* Layout */
  .container { padding: 0 16px; }
  .section   { padding: 64px 0; }
  .section-header { margin-bottom: 48px; }
  .section-subtitle { font-size: 0.95rem; }

  /* ── Hero ── */
  .hero-container { padding: 48px 16px 32px; }
  .hero-title  { letter-spacing: -0.5px; }
  .hero-stats  {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 0;
    justify-content: space-around;
    padding: 16px;
  }
  .hero-stat   { padding: 0 12px; flex: 0 0 auto; }
  .stat-divider { display: none; }
  .stat-number { font-size: 1.3rem; }
  .stat-label  { font-size: 0.68rem; }

  /* ── About ── */
  .about-vm-grid { grid-template-columns: 1fr; }
  .vm-card       { padding: 22px; }
  .about-lead    { font-size: 1rem; }

  /* ── Services ── */
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card  { padding: 28px 22px; }

  /* ── Training ── */
  .training-card    { padding: 28px 22px; }
  .training-benefits{ padding: 28px 22px; }
  .benefits-grid    { grid-template-columns: 1fr 1fr; gap: 12px; }
  .benefit-item     { padding: 12px; }

  /* ── Why Us ── */
  .why-grid  { grid-template-columns: 1fr 1fr; gap: 14px; }
  .why-card  { padding: 22px 18px; }

  /* ── Industries ── */
  .industries-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .industry-card   { padding: 28px 16px; }

  /* ── CTA ── */
  .cta-section { padding: 64px 0; }
  .cta-actions { gap: 12px; }

  /* ── Contact ── */
  .contact-form    { padding: 28px 20px; }
  .form-row        { grid-template-columns: 1fr; }
  .contact-info h3 { font-size: 1.2rem; }

  /* ── Footer ── */
  .footer-grid  { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: 1; }
  .footer-top   { padding: 52px 0 36px; }
  .footer-desc  { max-width: 100%; }
  .footer-bottom .container { flex-direction: column; text-align: center; gap: 8px; }

  /* ── Floating Buttons ── */
  .whatsapp-btn   { bottom: 80px; right: 20px; width: 48px; height: 48px; font-size: 1.3rem; }
  .scroll-top-btn { bottom: 24px; right: 20px; width: 42px; height: 42px; }

  /* ── Page hero (inner pages) ── */
  .page-hero { padding: 110px 0 60px; }
  .page-content { padding: 56px 0; }

  /* ── Credits page ── */
  .credits-cards { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .copyright-box { padding: 32px 20px; margin-top: 32px; }
  .copyright-box h2 { font-size: 1.3rem; }
  .copyright-year { font-size: 2.2rem; }

  /* ── Prose (terms / privacy) ── */
  .prose h2 { font-size: 1.15rem; padding-left: 12px; border-left-width: 3px; margin: 28px 0 12px; }
  .prose p, .prose ul li { font-size: 0.9rem; }
}

/* ── XS — 480px (Small Phones) ─────────────────────────────── */
@media (max-width: 480px) {
  /* Typography */
  .hero-title  { font-size: clamp(1.75rem, 8vw, 2.2rem); letter-spacing: -0.3px; }
  /* Credits page */
  .credits-cards { grid-template-columns: 1fr; gap: 12px; }
  .copyright-box { padding: 24px 16px; border-radius: var(--radius-lg); }
  .copyright-year { font-size: 1.8rem; }
  .section-title { font-size: clamp(1.6rem, 6.5vw, 2rem); }

  /* Hero */
  .hero-container  { padding: 40px 16px 28px; }
  .hero-actions    { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
  }
  .hero-stat { padding: 0; width: 100%; text-align: center; }
  .stat-divider { width: 60px; height: 1px; }

  /* About */
  .vm-card { padding: 18px; }

  /* Services */
  .service-card { padding: 24px 18px; gap: 12px; }

  /* Why Us */
  .why-grid { grid-template-columns: 1fr; gap: 12px; }
  .why-card { padding: 20px 18px; }

  /* Training */
  .training-card     { padding: 24px 18px; gap: 18px; }
  .training-benefits { padding: 24px 18px; }
  .benefits-grid     { grid-template-columns: 1fr; gap: 10px; }

  /* Industries */
  .industries-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .industry-card   { padding: 24px 12px; }
  .ind-icon        { width: 52px; height: 52px; font-size: 1.3rem; }

  /* CTA */
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* Contact */
  .contact-form  { padding: 22px 16px; }
  .cd-icon       { width: 36px; height: 36px; }
  .social-btn    { width: 38px; height: 38px; }

  /* Footer */
  .footer-social a { width: 34px; height: 34px; }
  .footer-top { padding: 44px 0 28px; }

  /* Nav */
  .nav-container { padding: 0 16px; }
  .nav-logo img  { height: 36px; }
}

/* ── Mobile Nav Menu ──────────────────────────────────────────── */
.nav-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  padding: 16px 20px 20px;
  border-bottom: 3px solid var(--brand-red);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 999;
  gap: 4px;
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-links.mobile-open .nav-link {
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  /* Ensure WCAG minimum touch target size */
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-links.mobile-open .nav-link:hover,
.nav-links.mobile-open .nav-link:active {
  background: var(--accent-bg);
  color: var(--brand-red);
}

/* Mobile nav CTA button — hidden by default, shown only inside open mobile menu */
.nav-cta-mobile {
  display: none;
}

.nav-links.mobile-open .nav-cta-mobile {
  display: flex !important;
  margin-top: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-mid) 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(229, 48, 48, 0.3);
  min-height: 44px;
}

/* ── Red accent bar top of page ── */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red) 0%, #FF6B6B 50%, var(--brand-red) 100%);
  z-index: 1001;
}

/* ── Touch/Tap improvements for mobile ── */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover transforms on touch devices to avoid sticky hover states */
  .service-card:hover,
  .industry-card:hover,
  .why-card:hover,
  .training-card:hover {
    transform: none;
  }
  .btn:hover { transform: none; }
  .btn-primary:hover { box-shadow: 0 4px 16px rgba(229, 48, 48, 0.35); }
  /* Increase tap targets */
  .nav-link   { min-height: 44px; display: flex; align-items: center; }
  .social-btn { width: 44px; height: 44px; }
  .footer-social a { width: 40px; height: 40px; }
}
