/* ===================================================================
   MAIN STYLES - KSR SOLUTIONS (COSY MODERN IT LANDING)
   Refactored for Production Readiness & Reconfigured White Theme
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

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

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-body);
  background-color: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--md-motion-duration-medium) var(--md-motion-easing-standard),
              color var(--md-motion-duration-medium) var(--md-motion-easing-standard);
}

/* Ambient Background Lights (Clean, Subtle Glow) */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.ambient-glow-1 {
  top: -8%;
  left: 20%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--cosy-glow), transparent 70%);
}

.ambient-glow-2 {
  top: 18%;
  right: 5%;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, var(--badge-glow), transparent 70%);
}

.ambient-glow-3 {
  bottom: 25%;
  left: 8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.08), transparent 70%);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-pretitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-family-brand);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--md-sys-color-on-surface);
  margin: 0 0 1rem 0;
  line-height: 1.25;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--md-sys-color-on-surface-variant);
  margin: 0;
  line-height: 1.65;
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero-section {
  padding: 5.5rem 0 6.5rem 0;
  overflow: hidden;
  position: relative;
  background: radial-gradient(ellipse at top, var(--md-sys-color-surface-container-low) 0%, var(--md-sys-color-surface) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--md-shape-corner-full);
  background-color: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 1.5rem;
  box-shadow: var(--md-elevation-level1);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.hero-title {
  font-family: var(--font-family-brand);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--md-sys-color-on-surface);
  margin: 0 0 1.25rem 0;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--md-sys-color-primary), #0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .cosy-accent {
  color: var(--md-sys-color-tertiary);
  -webkit-text-fill-color: var(--md-sys-color-tertiary);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--md-sys-color-outline);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-family-brand);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--md-sys-color-on-surface-variant);
}

/* Hero Terminal / Live Architecture Card */
.hero-visual-card {
  background-color: var(--md-sys-color-surface);
  border-radius: var(--md-shape-corner-extra-large);
  border: 1px solid var(--md-sys-color-outline);
  box-shadow: var(--md-elevation-level3);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--md-sys-color-outline);
  margin-bottom: 1.25rem;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.terminal-badge {
  font-family: var(--font-family-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  background-color: var(--md-sys-color-surface-container);
  border-radius: var(--md-shape-corner-small);
  color: var(--md-sys-color-primary);
  font-weight: 600;
}

.cluster-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.metric-pill {
  background-color: var(--md-sys-color-surface-container-low);
  padding: 0.95rem;
  border-radius: var(--md-shape-corner-medium);
  border: 1px solid var(--md-sys-color-outline);
}

.metric-pill-title {
  font-size: 0.75rem;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.metric-pill-value {
  font-family: var(--font-family-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
}

.live-stream-box {
  background-color: var(--md-sys-color-surface-container);
  border-radius: var(--md-shape-corner-medium);
  padding: 1rem;
  font-family: var(--font-family-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--md-sys-color-on-surface-variant);
}

.stream-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stream-line.active {
  color: var(--md-sys-color-primary);
  font-weight: 600;
}

/* ===================================================================
   VALUE PROPOSITION / THREE PILLARS (Cosy, Sovereign, Full-Stack)
   =================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.pillar-card {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
}

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--md-shape-corner-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.pillar-title {
  font-family: var(--font-family-brand);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--md-sys-color-on-surface);
}

.pillar-desc {
  font-size: 0.9375rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
  margin: 0;
}

/* ===================================================================
   SERVICES DIRECTORY SECTION (COPIED & EXPANDED)
   =================================================================== */
.services-section {
  background-color: var(--md-sys-color-surface-container-low);
  border-top: 1px solid var(--md-sys-color-outline);
  border-bottom: 1px solid var(--md-sys-color-outline);
}

.service-filter-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

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

.service-card {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--md-shape-corner-large);
  background-color: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline);
  transition: all var(--md-motion-duration-medium) var(--md-motion-easing-emphasized);
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--md-elevation-level3);
  border-color: var(--md-sys-color-primary);
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.service-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--md-shape-corner-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--md-sys-color-surface-container);
  color: var(--md-sys-color-primary);
  transition: background-color var(--md-motion-duration-short);
}

.service-card:hover .service-icon-wrap {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-primary);
}

.service-title {
  font-family: var(--font-family-brand);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--md-sys-color-on-surface);
}

.service-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--md-sys-color-tertiary);
  margin-bottom: 0.75rem;
}

.service-excerpt {
  font-size: 0.9375rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--md-sys-color-on-surface);
}

.service-feature-item .material-symbols-outlined {
  font-size: 1rem;
  color: var(--md-sys-color-secondary);
}

.service-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--md-sys-color-outline);
  margin-top: auto;
}

.service-meta-tag {
  font-family: var(--font-family-mono);
  font-size: 0.75rem;
  color: var(--md-sys-color-on-surface-variant);
}

/* ===================================================================
   INTERACTIVE SOLUTION & BUDGET ESTIMATOR
   =================================================================== */
.estimator-section {
  position: relative;
}

.estimator-box {
  background-color: var(--md-sys-color-surface);
  border-radius: var(--md-shape-corner-extra-large);
  border: 1px solid var(--md-sys-color-outline);
  box-shadow: var(--md-elevation-level2);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
}

.estimator-options-col {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.option-group-label {
  font-family: var(--font-family-brand);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.checkbox-card {
  padding: 0.85rem 1rem;
  border-radius: var(--md-shape-corner-medium);
  border: 1.5px solid var(--md-sys-color-outline);
  background-color: var(--md-sys-color-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--md-motion-duration-short);
  user-select: none;
}

.checkbox-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--md-sys-color-primary);
  cursor: pointer;
}

.checkbox-card.selected {
  border-color: var(--md-sys-color-primary);
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.slider-readout {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 500;
}

.slider-val-badge {
  font-family: var(--font-family-mono);
  font-weight: 700;
  color: var(--md-sys-color-primary);
}

.estimator-summary-card {
  background-color: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-shape-corner-large);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--md-sys-color-outline);
}

.summary-headline {
  font-family: var(--font-family-brand);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--md-sys-color-on-surface);
}

.summary-line-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.9375rem;
  color: var(--md-sys-color-on-surface-variant);
}

.summary-total-wrap {
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 2px dashed var(--md-sys-color-outline);
}

.price-display {
  font-family: var(--font-family-brand);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--md-sys-color-on-surface);
  line-height: 1;
  margin-top: 0.5rem;
}

.price-display small {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface-variant);
}

/* ===================================================================
   WORK PROCESS / DELIVERY FRAMEWORK
   =================================================================== */
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  margin-top: 2rem;
}

.step-card {
  padding: 2rem;
  background-color: var(--md-sys-color-surface);
  border-radius: var(--md-shape-corner-large);
  border: 1px solid var(--md-sys-color-outline);
  position: relative;
}

.step-num {
  font-family: var(--font-family-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--md-sys-color-tertiary);
  margin-bottom: 1rem;
}

.step-title {
  font-family: var(--font-family-brand);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--md-sys-color-on-surface);
}

.step-desc {
  font-size: 0.875rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
  margin: 0;
}

/* ===================================================================
   REGIONAL PRESENCE & COMPLIANCE BAR
   =================================================================== */
.hubs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.hub-card {
  padding: 1.5rem;
  background-color: var(--md-sys-color-surface);
  border-radius: var(--md-shape-corner-medium);
  border: 1px solid var(--md-sys-color-outline);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hub-flag {
  font-size: 1.75rem;
}

.hub-info h4 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.hub-info p {
  margin: 0.2rem 0 0 0;
  font-size: 0.75rem;
  color: var(--md-sys-color-on-surface-variant);
}

/* ===================================================================
   FAQ SECTION
   =================================================================== */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  background-color: var(--md-sys-color-surface-container-low);
  border-top: 1px solid var(--md-sys-color-outline);
  padding: 5rem 0 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-family: var(--font-family-brand);
  font-size: 1rem;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
  margin: 0 0 1.25rem 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--md-sys-color-on-surface-variant);
  transition: color var(--md-motion-duration-short);
}

.footer-link:hover {
  color: var(--md-sys-color-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--md-sys-color-outline);
  font-size: 0.8125rem;
  color: var(--md-sys-color-on-surface-variant);
}

/* ===================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   =================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .estimator-box {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .process-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hubs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.35rem;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .header-actions .open-contact-btn {
    display: none; /* In mobile, CTA is in mobile drawer & hero */
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-checkbox-grid {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .process-steps-grid {
    grid-template-columns: 1fr;
  }
  .hubs-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .md-fab-extended {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0 1.2rem;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print Styles */
@media print {
  .md-app-bar, .ambient-glow, .md-fab-extended, .md-dialog-scrim, #quick-quote-fab {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
}
