/* ==========================================================================
   Karsh Corporate Advisors - Components & Animations
   ========================================================================== */

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-light);
  box-shadow: 0 4px 15px rgba(222, 23, 103, 0.18);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(222, 23, 103, 0.3);
  color: var(--color-light);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(134, 26, 47, 0.12);
}

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

.btn-outline-white:hover {
  background-color: var(--color-light);
  color: var(--color-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.btn-text {
  padding: 0;
  background: none;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-text svg {
  transition: transform var(--transition-fast);
}

.btn-text:hover {
  color: var(--color-primary);
}

.btn-text:hover svg {
  transform: translateX(5px);
}

/* Service Card Component */
.card-service {
  background-color: var(--color-light-card);
  border: 1px solid rgba(0, 0, 0, 0.05); /* Softer, highly professional border */
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.05); /* Layered modern drop shadow */
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.card-service::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card-service:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(134, 26, 47, 0.1); /* Burgundy tinted hover shadow */
  border-color: rgba(222, 23, 103, 0.15);
}

.card-service:hover::after {
  opacity: 1;
}

/* Full clickable overlay for service cards */
.card-service .card-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.card-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: rgba(134, 26, 47, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: var(--spacing-lg);
  transition: background-color var(--transition-normal), color var(--transition-normal), transform var(--transition-normal);
}

.card-service:hover .card-icon-wrapper {
  background-color: var(--color-accent);
  color: var(--color-light);
  transform: scale(1.05);
}

.card-service h3 {
  font-size: 1.35rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-dark);
}

.card-service p {
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: var(--spacing-lg);
}

/* Blog Card Component */
.card-blog {
  background-color: var(--color-light-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-blog-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.card-blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card-blog:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

.card-blog:hover .card-blog-image img {
  transform: scale(1.04);
}

.card-blog-content {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--color-grey-muted);
  margin-bottom: var(--spacing-sm);
}

.blog-category {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background-color: rgba(222, 23, 103, 0.08);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
  align-self: flex-start;
}

.card-blog h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.card-blog h3 a:hover {
  color: var(--color-accent);
}

.card-blog p {
  font-size: 0.9rem;
  flex-grow: 1;
}

/* Floating Label Form Inputs */
.form-group {
  position: relative;
  margin-bottom: var(--spacing-xl);
}

.form-control {
  width: 100%;
  padding: 1.1rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #fcfcfd;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-dark);
  outline: none;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-accent);
  background-color: var(--color-light);
  box-shadow: 0 0 0 4px rgba(222, 23, 103, 0.08);
}

.form-label {
  position: absolute;
  left: 1rem;
  top: 1.1rem;
  color: var(--color-grey-muted);
  pointer-events: none;
  transition: transform var(--transition-fast), color var(--transition-fast), font-size var(--transition-fast);
  background-color: transparent;
}

/* Floating label effect when focused or containing text */
.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  transform: translate(-0.25rem, -1.75rem) scale(0.8);
  padding: 0 0.35rem;
  color: var(--color-accent);
  background-color: var(--color-light);
}

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

/* Hero Section layout */
.hero {
  padding: 150px 0 100px 0;
  background: radial-gradient(circle at 80% 20%, rgba(222, 23, 103, 0.035) 0%, rgba(134, 26, 47, 0.015) 45%, #ffffff 100%), #f8f9fa; /* Premium radial background mesh */
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(222, 23, 103, 0.08) 0%, rgba(134, 26, 47, 0.02) 50%, rgba(255, 255, 255, 0) 100%);
  top: -200px;
  right: -200px;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--spacing-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--spacing-md);
}

.hero-title span {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: var(--spacing-xl);
  max-width: 580px;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-blob {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  animation: morphing-blob 12s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-image-blob-inner {
  width: 96%;
  height: 96%;
  background-color: var(--color-dark-surface);
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  color: var(--color-light);
}

/* Animations Definitions */
@keyframes morphing-blob {
  0% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
  50% { border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%; }
  100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
}

/* Intersection Observer Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Micro-interaction: Stats Item counter */
.stat-item {
  text-align: center;
  padding: var(--spacing-md);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

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

/* Section Header Component */
.section-header {
  max-width: 650px;
  margin: 0 auto var(--spacing-xxl) auto;
}

.section-tagline {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  display: inline-block;
  margin-bottom: var(--spacing-sm);
  padding: 0.2rem 0.8rem;
  background-color: rgba(222, 23, 103, 0.06);
  border-radius: var(--radius-full);
}

.section-title {
  margin-bottom: var(--spacing-sm);
}

/* Service Detail Layout Styles */
.service-detail-hero {
  padding: 160px 0 80px 0;
  background-color: var(--color-dark);
  color: var(--color-light);
  position: relative;
  overflow: hidden;
}

.service-detail-hero h1 {
  color: var(--color-light);
}

.service-detail-hero .breadcrumbs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-grey-light);
  margin-bottom: var(--spacing-md);
}

.service-detail-hero .breadcrumbs a:hover {
  color: var(--color-accent);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.service-sidebar-card {
  background-color: var(--color-light-surface);
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.service-sidebar-card-dark {
  background-color: var(--color-primary);
  border: none;
  color: var(--color-light);
}

.service-sidebar-card-dark h3 {
  color: var(--color-light);
}

.service-sidebar-card-dark p {
  color: var(--color-grey-light);
}

.service-features-list {
  list-style: none;
  margin: var(--spacing-md) 0 var(--spacing-xl) 0;
}

.service-features-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.service-features-list svg {
  flex-shrink: 0;
  color: var(--color-accent);
  width: 20px;
  height: 20px;
}

.service-sidebar-card-dark .service-features-list svg {
  color: var(--color-light);
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-image-blob {
    max-width: 320px;
    margin: 0 auto;
  }
  
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
  
  /* Mobile Swipeable Card Carousels */
  .services-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 1.25rem !important;
    padding: 0.5rem 1.25rem 2.25rem 1.25rem !important;
    margin: 0 -1.5rem !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .services-grid::-webkit-scrollbar {
    display: none;
  }
  
  .services-grid > div {
    flex: 0 0 80% !important;
    scroll-snap-align: start !important;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
  }

  .services-grid .card-service {
    width: 100% !important;
    height: 100% !important;
    flex: 1;
  }
  
  .blog-grid-home {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 1.25rem !important;
    padding: 0.5rem 1.25rem 2.25rem 1.25rem !important;
    margin: 0 -1.5rem !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .blog-grid-home::-webkit-scrollbar {
    display: none;
  }
  
  .blog-grid-home > div {
    flex: 0 0 80% !important;
    scroll-snap-align: start !important;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
  }

  .blog-grid-home .card-blog {
    width: 100% !important;
    height: 100% !important;
    flex: 1;
  }
}

/* Category Filters for Services Page */
.category-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--spacing-xl);
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-grey-light);
  padding: 0.65rem 1.35rem;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-color: transparent;
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(222, 23, 103, 0.35);
}

/* Card Transitions for Filtering */
.services-grid .reveal {
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (max-width: 768px) {
  .category-filters {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.5rem 1.25rem 1rem 1.25rem;
    margin: 0 -1.5rem var(--spacing-lg) -1.5rem;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .category-filters::-webkit-scrollbar {
    display: none;
  }
  
  .filter-btn {
    flex: 0 0 auto;
    font-size: 0.85rem;
    padding: 0.5rem 1.1rem;
  }
}

/* Mega Menu Dropdown Navigation Styles */
.has-megamenu {
  position: static !important;
}

.megamenu {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: calc(100% - 2rem);
  max-width: 980px;
  background: var(--color-light);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  z-index: 1010;
  padding: var(--spacing-xl) 0;
}

/* Hover Bridge to bridge physical gap between header links and dropdown */
.megamenu::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  width: 100%;
  height: 24px;
  background: transparent;
  z-index: 1;
}

.has-megamenu:hover .megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.megamenu-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: var(--spacing-lg);
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.megamenu-column h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 1px;
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
  border-bottom: 1px solid rgba(134, 26, 47, 0.08);
  padding-bottom: 6px;
}

.megamenu-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.megamenu-column li {
  margin-bottom: 6px;
  list-style: none;
}

.megamenu-column a {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  color: #495057;
  transition: all var(--transition-fast);
  padding: 3px 0;
}

.megamenu-column a:hover {
  color: var(--color-accent);
  transform: translateX(4px);
}

.megamenu-all-link a {
  color: var(--color-primary) !important;
  font-weight: 700 !important;
  margin-top: var(--spacing-xs);
}

.megamenu-all-link a:hover {
  color: var(--color-accent) !important;
}

/* Megamenu Indicator Arrow using ::before */
.has-megamenu > a {
  display: inline-flex !important;
  flex-direction: row-reverse;
  align-items: center;
}

.has-megamenu > a::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  transition: transform var(--transition-fast);
  margin-top: -2px;
}

.has-megamenu:hover > a::before {
  transform: rotate(-135deg);
}

/* Mobile Megamenu styles */
@media (max-width: 768px) {
  .has-megamenu > a {
    display: flex !important;
    justify-content: space-between;
    width: 100%;
  }

  .megamenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.25rem 0;
    max-height: none;
    overflow: visible;
    transition: none;
  }
  
  .megamenu-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.25rem 0;
  }
  
  .megamenu-column {
    display: contents;
  }
  
  .megamenu-column h4 {
    display: none !important;
  }
  
  .megamenu-column ul {
    border-left: none !important;
    padding-left: 1.25rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .megamenu-column a {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.95rem !important;
    font-weight: 500;
    display: block;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  }
  
  .megamenu-column a:hover {
    color: var(--color-accent) !important;
  }
  
  .has-megamenu > a::before {
    display: none !important;
  }
}

/* Service Detail Hero Section Upgrades */
.service-detail-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 160px 0 100px 0;
  overflow: hidden;
}

.service-detail-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(18, 18, 18, 0.95) 40%, rgba(18, 18, 18, 0.5) 100%);
  z-index: 1;
}

.service-detail-hero .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .service-detail-hero::before {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.98) 50%, rgba(18, 18, 18, 0.85) 100%);
  }
  .service-detail-hero {
    padding: 130px 0 60px 0;
  }
}

/* Service Detail Hero Glow */
.service-detail-hero .hero-glow {
  background: radial-gradient(circle, rgba(222, 23, 103, 0.15) 0%, rgba(134, 26, 47, 0.05) 50%, rgba(0, 0, 0, 0) 100%) !important;
  width: 800px;
  height: 800px;
  top: -300px;
  right: -300px;
}

/* Consultation Modal Popup Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2rem 1rem;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--color-light);
  width: 100%;
  max-width: 640px;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: var(--spacing-xl);
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin: auto;
  overflow: hidden;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--color-grey);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  color: var(--color-primary);
}

.modal-header {
  margin-bottom: var(--spacing-lg);
}

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

.modal-header p {
  font-size: 0.9rem;
  color: #495057;
  line-height: 1.4;
}

.modal-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.modal-form .form-group-full {
  grid-column: span 2;
}

.modal-form button[type="submit"] {
  grid-column: span 2;
  margin-top: var(--spacing-xs);
}

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

.modal-form label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  padding: 0.75rem var(--spacing-md);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  background-color: var(--color-light);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(134, 26, 47, 0.15);
}

.modal-success-state {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 5;
}

.modal-success-state.active {
  opacity: 1;
  visibility: visible;
}

.modal-success-state .success-icon {
  margin-bottom: var(--spacing-md);
  animation: scaleUp 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes scaleUp {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 576px) {
  .modal-container {
    max-width: 90%;
    padding: var(--spacing-lg);
  }
  .modal-form {
    grid-template-columns: 1fr;
  }
  .modal-form .form-group-full {
    grid-column: span 1;
  }
  .modal-form button[type="submit"] {
    grid-column: span 1;
  }
}





/* ==========================================================================
   Dedicated Local Relevance: Startup & Business Services Across Kerala
   (Headquartered in Thiruvananthapuram)
   ========================================================================== */

.section-kerala {
  background: linear-gradient(180deg, #ffffff 0%, #f9f9fb 50%, #f4f5f8 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.section-kerala::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(222, 23, 103, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.section-kerala::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(134, 26, 47, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Feature 4-Column Grid */
.kerala-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: var(--spacing-xxl);
}

.kerala-feature-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Head Office Featured Card Highlight */
.kerala-card-highlight {
  border-color: rgba(134, 26, 47, 0.25);
  background: linear-gradient(180deg, #ffffff 0%, #fffcfd 100%);
}

.kerala-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.kerala-card-highlight::before {
  opacity: 1; /* Always visible on HQ card */
}

.kerala-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(134, 26, 47, 0.12);
  border-color: rgba(222, 23, 103, 0.25);
}

.kerala-feature-card:hover::before {
  opacity: 1;
}

.kerala-card-icon {
  width: 54px;
  height: 54px;
  background: rgba(134, 26, 47, 0.06);
  color: var(--color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all var(--transition-normal);
}

.kerala-feature-card:hover .kerala-card-icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
  transform: scale(1.05);
}

.kerala-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-accent);
  background: rgba(222, 23, 103, 0.08);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.badge-hq {
  color: var(--color-primary);
  background: rgba(134, 26, 47, 0.1);
  font-weight: 800;
}

.kerala-feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--color-dark);
}

.kerala-feature-card p {
  font-size: 0.92rem;
  color: #555e68;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.kerala-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1rem;
}

.kerala-checklist li {
  font-size: 0.84rem;
  color: var(--color-grey-dark);
  font-weight: 500;
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.kerala-checklist li:last-child {
  margin-bottom: 0;
}

.kerala-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 800;
  font-size: 0.85rem;
}

/* Regional Hubs Section */
.kerala-hubs-section {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  margin-bottom: var(--spacing-xxl);
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.03);
}

.kerala-hubs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.kerala-hubs-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.35rem;
}

.kerala-hubs-title {
  font-size: 1.5rem;
  margin: 0;
  color: var(--color-dark);
}

.kerala-hubs-desc {
  max-width: 440px;
  margin: 0;
  font-size: 0.92rem;
  color: #6c757d;
  line-height: 1.5;
}

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

.kerala-hub-box {
  background: #fbfbfc;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  position: relative;
  transition: all var(--transition-fast);
}

.hub-box-primary {
  background: #fff9fb;
  border-color: rgba(222, 23, 103, 0.2);
  box-shadow: 0 4px 15px -5px rgba(134, 26, 47, 0.08);
}

.kerala-hub-box:hover {
  background: #ffffff;
  border-color: rgba(134, 26, 47, 0.2);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.hub-indicator {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  margin-bottom: 0.75rem;
  box-shadow: 0 0 0 3px rgba(222, 23, 103, 0.2);
}

.hub-indicator-hq {
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(134, 26, 47, 0.2);
}

.hub-badge-hq {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--color-primary);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.kerala-hub-box h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--color-dark);
}

.hub-focus {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.kerala-hub-box p {
  font-size: 0.85rem;
  color: #555e68;
  line-height: 1.5;
  margin: 0;
}

/* Stats Strip */
.kerala-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(135deg, #111116 0%, #1a1720 100%);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-bottom: var(--spacing-xxl);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.kerala-stat-item {
  text-align: center;
  padding: 0.5rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.kerala-stat-item:last-child {
  border-right: none;
}

.kerala-stat-val {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kerala-stat-lbl {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Kerala CTA Banner */
.kerala-cta-banner {
  background: linear-gradient(135deg, rgba(134, 26, 47, 0.05) 0%, rgba(222, 23, 103, 0.05) 100%);
  border: 1px dashed rgba(222, 23, 103, 0.3);
  border-radius: var(--radius-md);
  padding: 2.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.kerala-cta-content h3 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
  color: var(--color-dark);
}

.kerala-cta-content p {
  font-size: 0.95rem;
  color: #555e68;
  margin: 0;
  max-width: 620px;
}

.kerala-cta-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.kerala-cta-actions .btn-secondary {
  border-color: #25d366;
  color: #128c7e;
  background-color: transparent;
}

.kerala-cta-actions .btn-secondary:hover {
  background-color: #25d366;
  color: #ffffff;
  border-color: #25d366;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .kerala-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .kerala-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .kerala-stat-item:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .kerala-features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .kerala-hubs-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .kerala-hubs-grid {
    grid-template-columns: 1fr;
  }

  .kerala-stats-strip {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 1.5rem;
  }

  .kerala-stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 0;
    text-align: left;
  }

  .kerala-stat-item:last-child {
    border-bottom: none;
  }

  .kerala-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem 1.5rem;
    gap: 1.5rem;
  }

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

  .kerala-cta-actions .btn {
    width: 100%;
  }
}