/* =========================================================================
   Keval Gandhi Consultant - Design System & Styles
   ========================================================================= */

/* --- Variables & Theming --- */
:root {
  /* Brand Colors */
  --color-primary: #4A6D8C;
  /* Steel Blue */
  --color-secondary: #333333;
  /* Charcoal Grey */
  --color-accent: #FF6B00;
  /* Safety Orange */

  /* Neutral Palette */
  --color-white: #FFFFFF;
  --color-light: #F4F7F6;
  --color-light-dim: #E2E8F0;
  --color-dark: #1A202C;
  --color-text: #2D3748;
  --color-text-light: #4A5568;

  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Transitions & Shadows */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease-in-out;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.85);

  /* Layout */
  --container-width: 1200px;
  --section-padding: 5rem 0;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

.case-studies-description {
  margin-bottom: 1rem;
  color: var(--color-light-dim);
}

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

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

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

/* --- Utility Classes --- */
.text-center {
  text-align: center;
}

.text-white {
  color: var(--color-white) !important;
}

.text-primary {
  color: var(--color-primary) !important;
}

.text-orange {
  color: var(--color-accent) !important;
}

.text-blue {
  color: var(--color-primary) !important;
}

.text-light-dim {
  color: var(--color-light-dim) !important;
}

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

.bg-dark {
  background-color: var(--color-dark);
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 2rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  /* Industrial, structured feel */
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  font-family: var(--font-heading);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: shine 4s infinite;
  z-index: -1;
}

@keyframes shine {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

.btn-primary:hover {
  background-color: #e65c00;
  color: var(--color-white);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 25px rgba(255, 107, 0, 0.6);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-secondary:hover {
  background-color: #3b5a75;
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-outline-light {
  background-color: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-outline-light:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* --- Top Banner (Countdown) --- */
.top-banner {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 1000;
  position: relative;
}

.banner-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.banner-text {
  display: flex;
  align-items: center;
}

.countdown-timer {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 1px;
}

/* --- Header & Navigation --- */
.header {
  background-color: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo a {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: -1px;
}

.logo .dot {
  color: var(--color-accent);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.nav-cta {
  padding: 0.5rem 1.25rem !important;
  color: var(--color-white) !important;
}

.nav-cta:hover {
  color: var(--color-white) !important;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-dark);
  cursor: pointer;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
  min-width: 250px;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  padding: 0.5rem 0;
  border-top: 3px solid var(--color-primary);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background-color: var(--color-light);
  color: var(--color-primary);
  padding-left: 1.75rem;
  /* Slight shift effect */
}

.dropdown-icon {
  font-size: 0.75rem;
  margin-left: 4px;
}

/* --- Hero Section & Slider --- */
.hero {
  position: relative;
  min-height: calc(100vh - 80px - 40px);
  /* viewport - header - banner */
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-light) 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 8s linear;
  transform: scale(1.0);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

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

.hero-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-bg-overlay {
  display: none;
  /* Hide old overlay if using slider */
}

.hero-slider-nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 5;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--color-accent);
  transform: scale(1.3);
}

.hero-slider-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 3%;
  z-index: 10;
  pointer-events: none;
}

.slider-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: auto;
}

.slider-arrow:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.1);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  text-align: center;
  justify-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 100%;
  animation: floatIn 1.2s ease-out forwards;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.1);
  animation: badgeGlow 4s infinite alternate;
}

@keyframes badgeGlow {
  0% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.1);
  }

  100% {
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 107, 0, 0.5);
  }
}

.hero-title {
  color: white;
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -1px;
  animation: fadeInUp 1s ease-out forwards;
}

.highlight {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(255, 107, 0, 0.3);
  z-index: -1;
  border-radius: 4px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin: 0 auto 2.5rem auto;
  max-width: 90%;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero .btn-outline {
  border-color: white;
  color: white;
}

.hero .btn-outline:hover {
  background-color: white;
  color: var(--color-dark);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-event-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-accent);
  max-width: 450px;
}

.event-label {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.event-info h4 {
  margin-bottom: 0;
  font-size: 1rem;
}

.hero-image-wrapper {
  position: relative;
  height: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  object-fit: cover;
  height: 80%;
  max-height: 600px;
}

.image-column {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stat-card {
  position: absolute;
  bottom: 0px;
  left: -20px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: float 6s ease-in-out infinite;
}

.stat-icon {
  background-color: rgba(74, 109, 140, 0.1);
  color: var(--color-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1;
}

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

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* --- Shared Layouts --- */
.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.section-title.text-white::after {
  background-color: var(--color-primary);
  /* Contrast against dark bg */
}

.section-description {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

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

/* --- Services / Solutions --- */
.service-card {
  background-color: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  z-index: 1;
  border-bottom: 4px solid transparent;
}

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

.service-card.featured {
  border-bottom-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

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

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 1rem;
}

.link-arrow i {
  margin-left: 0.5rem;
  transition: transform var(--transition-fast);
}

.link-arrow:hover i {
  transform: translateX(5px);
}

/* --- Academy --- */
.section-tag {
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.feature-list {
  margin-top: 2rem;
}

.feature-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-list i {
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.feature-list h4 {
  margin-bottom: 0.25rem;
}

.rounded-img {
  border-radius: 8px;
}

/* --- Case Studies (Result First) --- */
.case-study-card {
  background-color: #2D3748;
  /* Slightly lighter than site dark bg */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform var(--transition-fast);
}

.case-study-card:hover {
  transform: translateY(-5px);
}

.case-study-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.industry-tag {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-light-dim);
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.case-title {
  color: var(--color-white);
  font-size: 1.5rem;
  margin-bottom: 0;
}

.case-body {
  padding: 0;
}

.case-section {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.case-section:last-child {
  border-bottom: none;
}

.case-section h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.case-section.highlight-box {
  background-color: rgba(74, 109, 140, 0.1);
  /* Blue tint */
}

.highlight-box h4 {
  color: var(--color-white);
}

.result-text {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.result-text strong {
  color: var(--color-accent);
}

/* --- Media Hub --- */
.media-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.tab-btn {
  background: transparent;
  border: 2px solid var(--color-light-dim);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover,
.tab-btn.active {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: var(--color-white);
}

.media-card {
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
}

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

.media-thumb {
  position: relative;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.media-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.media-card:hover .media-thumb img {
  transform: scale(1.05);
}

.play-overlay,
.zoom-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0.8;
  transition: all var(--transition-fast);
}

.media-card:hover .play-overlay,
.media-card:hover .zoom-overlay {
  opacity: 1;
  background-color: var(--color-accent);
  transform: translate(-50%, -50%) scale(1.1);
}

.media-info {
  padding: 1.5rem;
}

.media-date {
  font-size: 0.8rem;
  color: var(--color-text-light);
  display: block;
  margin-bottom: 0.5rem;
}

.media-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* --- Contact & Forms --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.info-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.icon-wrap {
  background-color: rgba(74, 109, 140, 0.1);
  color: var(--color-primary);
  width: 45px;
  height: 45px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-item h5 {
  margin-bottom: 0.25rem;
  font-family: var(--font-primary);
  font-size: 1rem;
}

.logo-row {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.form-container {
  background-color: var(--color-white);
  padding: 2.5rem;
  border-radius: 8px;
  border-top: 4px solid var(--color-primary);
}

.form-sub {
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-group.half {
  flex: 1;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-dark);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-light-dim);
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  background-color: var(--color-light);
  color: var(--color-text);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74, 109, 140, 0.1);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
  color: var(--color-light-dim);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--color-light-dim);
}

.divider span {
  padding: 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-light);
}

.calendly-placeholder {
  background-color: rgba(244, 247, 246, 0.5);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px dashed var(--color-light-dim);
}

/* --- Footer --- */
.footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 4rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.social-icons a:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-links h4 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--color-light-dim);
}

.footer-links a:hover {
  color: var(--color-white);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* --- Floating Elements --- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: transform var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

/* --- Modals (Popups) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--color-white);
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-morphism {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-light);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--color-light);
  color: var(--color-dark);
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  color: var(--color-dark);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-header p {
  font-size: 0.9rem;
  margin-bottom: 0;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {

  /* Layout adjustments */
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Correct hero ordering: Image first, Text second on smaller screens */
  .hero-content {
    order: 2;
    display: flex;
    flex-direction: column;
  }

  .hero-image-wrapper {
    order: 1;
    min-height: auto;
    margin-top: 0;
    margin-bottom: 2rem;
  }



  .split-layout,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .content-column {
    padding: 0 1rem;
  }

  .hero {
    min-height: 60vh;
    padding: 1rem 0;
    justify-content: flex-start;
    padding-top: 2rem;
  }

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

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

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-bg-overlay {
    width: 100%;
    top: auto;
    bottom: 0;
    height: 50%;
  }

  /* Adjust section padding for smaller screens */
  :root {
    --section-padding: 3.5rem 0;
  }
}

@media (max-width: 768px) {

  /* Navigation */
  .mobile-menu-toggle {
    display: block;
  }

  .hero-slider-arrows {
    display: none;
  }

  .hero-slider-nav {
    bottom: 1rem;
    gap: 0.75rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path var(--transition-normal);
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    border-top: none;
    padding-left: 1rem;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  /* Typography Scaling */
  html {
    font-size: 15px;
    /* Slight scaling down */
  }

  h2.section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 1.6rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle-small {
    font-size: 0.45em;
    white-space: nowrap;
    line-height: 1.4;
  }

  .hero-slide {
    background-size: cover;
    background-position: center center;
    background-color: var(--color-dark);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  /* Grid Layouts fixed for mobile */
  .grid-3,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  /* Cards & Spacing */
  .service-card {
    padding: 2rem 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 350px;
  }

  .hero-event-card {
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
    width: 100%;
  }

  /* Ensure floating stats don't obscure content */
  .stat-card {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    margin: -10px 0 0 0;
    max-width: 90%;
  }

  .hero-img {
    height: auto;
    max-height: 280px;
    /* Make photo smaller as requested */
    width: auto;
    max-width: 80%;
    /* Don't stretch across the full screen width */
    margin-inline: 0;
    /* Align left alongside text if container is left aligned */
  }

  /* Forms & Interactions */
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }

  .form-group.half {
    width: 100%;
  }

  .media-tabs {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .tab-btn {
    flex: 1 1 45%;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  /* Trust Strip Overflow */
  .logo-strip {
    justify-content: center;
    gap: 1rem;
  }

  .trust-strip .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {

  /* Extra small devices polish */
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle-small {
    font-size: 0.45em;
    white-space: nowrap;
  }

  h2.section-title {
    font-size: 1.6rem;
  }

  .stat-card {
    padding: 0.75rem 1rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
  }
}

/* --- Dynamic Polish & Additions --- */

.header-scrolled {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
  background: rgba(255, 255, 255, 0.98) !important;
}

.header-scrolled .nav-container {
  height: 70px !important;
}

.trust-strip {
  background-color: var(--color-dark);
  padding: 1.5rem 0;
  border-bottom: 2px solid var(--color-accent);
}

.flex-between {
  display: flex;
  justify-content: space-between;
}

.trust-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  font-weight: 700;
}

.logo-strip {
  display: flex;
  gap: 1.5rem;
  color: var(--color-light-dim);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.6;
  flex-wrap: wrap;
  justify-content: center;
}

.hover-lift:hover {
  transform: translateY(-8px);
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.p-4 {
  padding: 1.5rem;
}

.border-bottom {
  border-bottom: 1px solid var(--color-light-dim);
}

.hover-swap:hover {
  background-color: var(--color-dark) !important;
  color: var(--color-white) !important;
}

.cta-trigger {
  cursor: pointer;
}

.btn-secondary.active {
  background-color: #3b5a75;
}

#header-root,
#footer-root,
#popup-root {
  display: contents;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.expertise-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.expertise-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.expertise-item i {
  font-size: 1.75rem;
  margin-top: 0.25rem;
}

.expertise-item h4 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gap-3 {
  gap: 1.5rem;
}

.margin-inline-auto {
  margin-left: auto;
  margin-right: auto;
}

/* --- Modern Service Buttons --- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: white;
  color: #4A6D8C;
  border: 1px solid #4A6D8C;
  padding: 12px 28px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  margin-top: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.link-arrow:hover {
  background: #4A6D8C;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.link-arrow i {
  transition: transform 0.3s ease;
}

.link-arrow:hover i {
  transform: translateX(5px);
}

/* Visibility for Case Studies */
.text-orange {
  color: #FFA500 !important;
}

.text-blue {
  color: #63B3ED !important;
}

/* --- Impact Statistics Section --- */
.stats-section {
  background-color: var(--color-dark);
  padding: 3rem 0;
  color: var(--color-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-light-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Product Grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1/1;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
  background: #fff;
}

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

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.8s ease;
}

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

.product-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
  padding: 30px 15px 15px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.product-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .product-card-title {
    font-size: 1rem;
  }
}

/* =========================================================================
   Custom Extractions from inline HTML
   ========================================================================= */

.hero-subtitle-small {
  display: inline-block;
  color: white;
  font-size: 0.70em;
  font-weight: 500;
  white-space: nowrap;
  margin-left: 10px;
}

.badge-primary-dim {
  background: rgba(74, 109, 140, 0.1);
  color: var(--color-primary);
  padding: 5px 12px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.max-w-800 {
  max-width: 800px;
}

.mx-auto {
  margin-inline: auto;
}

.grid-auto-fit-250 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 3rem;
}

.card-padded-white {
  padding: 30px 20px;
  background: #fff;
}

.card-padded-border {
  padding: 30px 20px;
  border: 1px solid #eee;
  background: #fff;
}

.border-light {
  border: 1px solid #eee;
}

.text-1-25 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.text-0-95 {
  font-size: 0.95rem;
}

.turnkey-banner {
  background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('assets/turnkey-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 50px 30px;
  border-radius: 12px;
  border: 1px solid #ddd;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.8);
}

.text-black {
  color: #000 !important;
}