/* ========================================================
   SNT PROJECTS (PVT) LTD - OFFICIAL STYLESHEET
   Pure Vanilla CSS - Standalone, Zero Build Dependencies
   ======================================================== */

:root {
  --primary-navy: #0951BC;
  --secondary-cyan: #00A7E5;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-orange: #FF5E00;
  --dark-slate: #0b1120;
  --dark-surface: #1e293b;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--light-bg);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

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

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Section Header */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-navy);
  background: #eff6ff;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
  border: 1px solid #bfdbfe;
}

.section-kicker.yellow {
  color: #b45309;
  background: #fef3c7;
  border-color: #fde68a;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ========================================================
   TOP MICRO-BAR
   ======================================================== */
.top-bar {
  background-color: #070d17;
  color: #94a3b8;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.location-tag, .top-email, .top-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  transition: color 0.2s;
}

.top-email:hover, .top-phone:hover {
  color: #38bdf8;
}

.top-bar strong {
  color: #f8fafc;
}

.separator {
  color: #334155;
}

/* ========================================================
   NAVBAR
   ======================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

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

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

.brand-logo {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  transition: color 0.2s, transform 0.2s;
  padding: 6px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-navy);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-navy);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #10b981;
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s;
}

.btn-whatsapp:hover {
  background: #059669;
  transform: translateY(-1px);
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-mono);
  transition: background 0.2s;
}

.btn-call:hover {
  background: #1e293b;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transition: 0.2s;
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  background: white;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.active {
  display: flex;
}

.mobile-head {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.mobile-title {
  font-weight: 800;
  color: #0f172a;
}

.mobile-sub {
  font-size: 0.75rem;
  color: #64748b;
}

.mobile-link {
  padding: 10px 0;
  font-weight: 600;
  color: #1e293b;
  border-bottom: 1px solid #f8fafc;
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

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

/* ========================================================
   HERO SECTION
   ======================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #091224 0%, #0d1e3d 50%, #081020 100%);
  color: white;
  padding: 80px 0 100px 0;
  overflow: hidden;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-container {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 20px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 2.75rem;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-feature-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 32px;
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #38bdf8;
  margin-bottom: 14px;
}

.feature-points-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.point-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.point-item .tick {
  color: #10b981;
  width: 16px;
  height: 16px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f59e0b;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0284c7;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #0369a1;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-sla-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
}

/* Hero Image Col */
.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-img {
  transform: scale(1.02);
}

.hero-img-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 18, 36, 0.85) 0%, transparent 60%);
}

.badge-kelaniya {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-floating-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.card-zap-icon {
  width: 44px;
  height: 44px;
  background: #f59e0b;
  color: #0f172a;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-zap-icon svg {
  width: 24px;
  height: 24px;
}

.card-details {
  flex: 1;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: white;
}

.card-sub {
  font-size: 0.75rem;
  color: #94a3b8;
}

.btn-consult {
  background: white;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-consult:hover {
  background: #f1f5f9;
}

/* ========================================================
   SERVICES SECTION
   ======================================================== */
.services-section {
  background: #f8fafc;
}

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

.service-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.service-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
}

.service-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 9999px;
}

.service-media-title {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  color: white;
}

.service-media-title h3 {
  font-size: 1.35rem;
  color: white;
  margin-bottom: 2px;
}

.service-media-title p {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.service-body {
  padding: 24px;
  flex: 1;
}

.service-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-specs {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-md);
  padding: 16px;
}

.spec-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 10px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #334155;
  margin-bottom: 8px;
}

.spec-item:last-child {
  margin-bottom: 0;
}

.spec-item .tick {
  color: #10b981;
  width: 14px;
  height: 14px;
}

.service-footer {
  padding: 16px 24px 20px 24px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-service-inquiry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-navy);
  font-size: 0.85rem;
  font-weight: 800;
  transition: gap 0.2s, color 0.2s;
}

.btn-service-inquiry:hover {
  color: #0369a1;
  gap: 10px;
}

.engineer-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.services-banner {
  margin-top: 48px;
  background: linear-gradient(135deg, #091224, #1e293b);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.banner-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #f59e0b;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}

.services-banner h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.services-banner p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.btn-banner {
  background: #f59e0b;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-banner:hover {
  background: #fbbf24;
}

/* ========================================================
   SOLAR CALCULATOR SECTION
   ======================================================== */
.calculator-section {
  background: white;
}

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 36px;
}

.calc-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.calc-card-title {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 10px;
}

.form-label.sub {
  font-size: 0.78rem;
  color: #64748b;
}

.tariff-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tariff-btn {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: left;
  transition: all 0.2s;
}

.tariff-btn:hover {
  border-color: #cbd5e1;
}

.tariff-btn.active {
  border-color: var(--primary-navy);
  background: #eff6ff;
}

.tariff-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}

.tariff-rate {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #64748b;
  margin-top: 4px;
}

.tariff-btn.active .tariff-name {
  color: var(--primary-navy);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.bill-display {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--primary-navy);
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #cbd5e1;
  outline: none;
  cursor: pointer;
  accent-color: var(--primary-navy);
}

.slider-marks {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #94a3b8;
  margin-top: 6px;
}

.presets-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-btn {
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #334155;
  transition: all 0.2s;
}

.preset-btn:hover {
  background: #f1f5f9;
}

.preset-btn.active {
  background: #0f172a;
  border-color: #0f172a;
  color: white;
}

.calc-included {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 24px;
}

.included-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
}

.included-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #334155;
  margin-bottom: 6px;
}

.included-item .tick {
  color: #10b981;
  width: 14px;
  height: 14px;
}

/* Calculator Results */
.calc-results-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.results-hero-card {
  background: linear-gradient(135deg, #091224 0%, #0d1e3d 100%);
  border-radius: var(--radius-xl);
  padding: 36px;
  color: white;
  box-shadow: var(--shadow-xl);
}

.results-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.res-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #38bdf8;
  margin-bottom: 6px;
}

.res-kw-main {
  font-size: 3.5rem;
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 1;
  color: #fbbf24;
}

.res-kw-main small {
  font-size: 1.5rem;
  color: #94a3b8;
  font-weight: 600;
}

.res-gen-box {
  text-align: right;
}

.res-gen-label {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.res-gen-val {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: white;
}

.res-gen-val small {
  font-size: 0.9rem;
  color: #94a3b8;
}

.results-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.metric-block {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
}

.metric-label {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 6px;
}

.metric-val {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1.2;
}

.metric-val.emerald { color: #34d399; }
.metric-val.amber { color: #fbbf24; }
.metric-val.white { color: white; }

.metric-val small {
  font-size: 0.8rem;
  font-weight: 600;
}

.metric-note {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 4px;
}

.results-impact-bar {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.impact-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #d1fae5;
}

.impact-text .leaf {
  color: #34d399;
}

.impact-savings {
  font-size: 0.85rem;
  color: #fef08a;
  font-family: var(--font-mono);
}

.calc-action-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.calc-action-card h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.calc-action-card p {
  font-size: 0.82rem;
  color: #64748b;
}

.btn-quote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-navy);
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-quote:hover {
  background: #073d8c;
}

/* ========================================================
   ENGINEERING TOOLS SECTION (FORMERLY SMART PLUGINS)
   ======================================================== */
.tools-section {
  background: #0b1120;
  color: white;
  padding: 90px 0;
}

.tools-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.tools-headline {
  font-size: 2.25rem;
  color: white;
  margin-bottom: 12px;
}

.tools-sub {
  color: #94a3b8;
  max-width: 750px;
  font-size: 1rem;
}

.live-calib-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 9999px;
  font-family: var(--font-mono);
}

.tool-tabs-bar {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tool-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 20px;
  white-space: nowrap;
  transition: all 0.2s;
}

.tool-tab-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.tool-tab-btn.active {
  color: #f59e0b;
  background: #1e293b;
  border-color: #f59e0b;
  border-bottom-color: transparent;
}

.tool-pane {
  display: none;
}

.tool-pane.active {
  display: block;
}

.tool-pane-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 36px;
}

.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 20px;
}

.pane-header h3 {
  font-size: 1.4rem;
  color: white;
  margin-bottom: 4px;
}

.pane-header p {
  font-size: 0.88rem;
  color: #94a3b8;
  max-width: 650px;
}

.search-box input {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  color: white;
  padding: 10px 18px;
  font-size: 0.85rem;
  width: 320px;
  outline: none;
}

.search-box input:focus {
  border-color: #f59e0b;
}

.fault-categories-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cat-pill {
  background: #0f172a;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.2s;
}

.cat-pill:hover {
  color: white;
}

.cat-pill.active {
  background: #f59e0b;
  color: #0f172a;
  border-color: #f59e0b;
}

.fault-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}

.fault-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 18px;
  transition: border-color 0.2s;
}

.fault-card:hover {
  border-color: #f59e0b;
}

.fault-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.fault-code-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.fault-severity {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.fault-severity.critical { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.fault-severity.warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

.fault-title {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.fault-cause {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.fault-action-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid #38bdf8;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.fault-action-box strong {
  color: #38bdf8;
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* Tool Calculator Grid */
.tool-calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.tool-inputs-subcard {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--radius-lg);
  padding: 28px;
}

.val-tag {
  color: #f59e0b;
  font-family: var(--font-mono);
}

.styled-select, .styled-input {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  color: white;
  padding: 10px 14px;
  font-size: 0.88rem;
  outline: none;
}

.styled-select:focus, .styled-input:focus {
  border-color: #f59e0b;
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tool-results-subcard {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.tool-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #38bdf8;
  display: block;
  margin-bottom: 8px;
}

.tool-huge-val {
  font-size: 3.5rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #f59e0b;
  line-height: 1;
}

.tool-huge-val small {
  font-size: 1.25rem;
  color: #94a3b8;
}

.tool-runtime-hours {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-top: 6px;
  margin-bottom: 24px;
}

.runtime-specs-list {
  background: #1e293b;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  margin-bottom: 24px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #94a3b8;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row strong {
  color: white;
  font-family: var(--font-mono);
}

.btn-tool-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #f59e0b;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.btn-tool-action:hover {
  background: #fbbf24;
}

/* Grid Quality Indicators */
.live-grid-indicators {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.indicator-item {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 12px;
}

.indicator-item .label {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.indicator-item .val {
  font-size: 1.15rem;
  font-family: var(--font-mono);
  color: white;
}

.grid-status-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.grid-status-badge.good { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.grid-status-badge.warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.grid-status-badge.danger { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }

.grid-status-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ========================================================
   ABOUT US SECTION
   ======================================================== */
.about-section {
  background: #f8fafc;
}

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

.about-img-box {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 60%);
}

.about-stamp {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  color: white;
}

.stamp-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 6px;
}

.about-stamp p {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.stamp-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
}

.experience-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: #f59e0b;
  color: #0f172a;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.exp-num {
  font-size: 1.8rem;
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 1;
}

.exp-text {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.about-content-col h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.about-text-body p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 16px;
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 28px 0;
}

.cred-item {
  display: flex;
  gap: 14px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.cred-item .tick {
  color: #10b981;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.cred-item h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.cred-item p {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

.about-footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: #334155;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========================================================
   CONTACT & INQUIRIES SECTION
   ======================================================== */
.contact-section {
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
}

.contact-info-col h2 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.lead-engineer-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--primary-navy);
  margin-bottom: 16px;
}

.contact-intro {
  font-size: 0.98rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  transition: all 0.2s;
}

.contact-card.hoverable:hover {
  border-color: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: #eff6ff;
  color: var(--primary-navy);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon.emerald {
  background: #ecfdf5;
  color: #10b981;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 2px;
}

.card-main {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.card-main.phone-num {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--primary-navy);
}

.card-tag {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
}

.card-tag.emerald {
  color: #10b981;
  font-weight: 700;
}

.contact-socials-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-whatsapp-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #10b981;
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 800;
  transition: background 0.2s;
}

.btn-whatsapp-solid:hover {
  background: #059669;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  background: #f1f5f9;
  color: #334155;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.social-icon-btn svg {
  width: 20px;
  height: 20px;
}

.social-icon-btn:hover {
  background: #0f172a;
  color: white;
}

/* Inquiry Form */
.form-container-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.form-card-head {
  margin-bottom: 24px;
}

.form-card-head h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.form-card-head p {
  font-size: 0.85rem;
  color: #64748b;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-input {
  width: 100%;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(9, 81, 188, 0.1);
}

.form-input.textarea {
  resize: vertical;
}

.form-submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.form-sla-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #64748b;
}

.btn-submit-inquiry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-navy);
  color: white;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.btn-submit-inquiry:hover {
  background: #073d8c;
}

/* Success Box */
.inquiry-success-box {
  text-align: center;
  padding: 30px 10px;
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  background: #d1fae5;
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.success-icon-wrap svg {
  width: 36px;
  height: 36px;
}

.inquiry-success-box h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.inquiry-success-box p {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.success-details-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  max-width: 400px;
  margin: 0 auto 24px auto;
  font-size: 0.85rem;
}

.success-details-card .sub-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  color: var(--primary-navy);
  font-size: 0.78rem;
}

.success-actions-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-outline-white {
  background: white;
  border: 1px solid #cbd5e1;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
}

.btn-outline-white:hover {
  background: #f8fafc;
}

/* ========================================================
   FOOTER
   ======================================================== */
.footer {
  background: #070d17;
  color: #94a3b8;
  padding: 70px 0 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-cols-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}

.footer-bio {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 18px;
}

.footer-bio strong {
  color: white;
}

.footer-sla-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 9999px;
}

.footer-col-title {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: #94a3b8;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.footer-links a.highlight-link {
  color: #f59e0b;
  font-weight: 700;
}

.footer-engineer-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.eng-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.05em;
}

.eng-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: white;
  margin: 2px 0;
}

.eng-qual {
  font-size: 0.72rem;
  color: #38bdf8;
  font-family: var(--font-mono);
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-contact-link.emerald {
  color: #34d399;
  font-weight: 700;
}

.footer-contact-link:hover {
  color: white;
}

.footer-sub-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
}

.footer-badges-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-badges-row .dot {
  color: #334155;
}

.btn-staff-portal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  font-size: 0.75rem;
  transition: color 0.2s;
}

.btn-staff-portal:hover {
  color: #f59e0b;
}

.btn-staff-portal .lock {
  width: 12px;
  height: 12px;
}

.btn-back-top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #94a3b8;
  font-size: 0.75rem;
  transition: color 0.2s;
}

.btn-back-top:hover {
  color: white;
}

/* ========================================================
   FLOATING AI ASSISTANT WIDGET
   ======================================================== */
.ai-assistant-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
}

.btn-ai-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.2);
  padding: 10px 18px;
  border-radius: 9999px;
  color: white;
  transition: all 0.25s;
}

.btn-ai-toggle:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  background: #1e293b;
}

.ai-icon-box {
  position: relative;
  width: 32px;
  height: 32px;
  background: var(--primary-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-icon-box svg {
  width: 18px;
  height: 18px;
  color: white;
}

.ai-pulse-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

.ai-toggle-text {
  text-align: left;
}

.ai-toggle-text .title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 800;
}

.ai-toggle-text .status-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.ai-toggle-text .sub-text {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Chat Modal Window */
.ai-chat-window {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 520px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-header {
  background: #1e293b;
  border-bottom: 1px solid #334155;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-bot-avatar {
  width: 34px;
  height: 34px;
  background: var(--primary-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.chat-bot-avatar svg {
  width: 18px;
  height: 18px;
}

.chat-head-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: white;
}

.chat-head-sub {
  font-size: 0.7rem;
  color: #94a3b8;
}

.chat-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-chat-reset, .btn-chat-close {
  color: #94a3b8;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  transition: color 0.2s;
}

.btn-chat-reset svg {
  width: 16px;
  height: 16px;
}

.btn-chat-reset:hover, .btn-chat-close:hover {
  color: white;
}

.chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  font-size: 0.84rem;
  line-height: 1.5;
}

.chat-msg.bot {
  align-self: flex-start;
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  border-radius: 14px 14px 14px 2px;
  padding: 12px 14px;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--primary-navy);
  color: white;
  border-radius: 14px 14px 2px 14px;
  padding: 10px 14px;
}

.chat-msg-time {
  font-size: 0.65rem;
  color: #64748b;
  margin-top: 4px;
  align-self: flex-end;
}

.chat-presets-bar {
  background: #090e17;
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-top: 1px solid #1e293b;
}

.preset-chip {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
  transition: all 0.2s;
}

.preset-chip:hover {
  background: var(--primary-navy);
  color: white;
  border-color: var(--primary-navy);
}

.chat-input-bar {
  background: #1e293b;
  border-top: 1px solid #334155;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-input-bar input {
  flex: 1;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 9999px;
  color: white;
  padding: 8px 14px;
  font-size: 0.85rem;
  outline: none;
}

.chat-input-bar input:focus {
  border-color: #38bdf8;
}

.chat-input-bar button {
  width: 36px;
  height: 36px;
  background: #f59e0b;
  color: #0f172a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.chat-input-bar button:hover {
  background: #fbbf24;
}

.chat-input-bar button svg {
  width: 16px;
  height: 16px;
}

/* ========================================================
   FLOATING WHATSAPP BUTTON (BOTTOM LEFT)
   ======================================================== */
.btn-float-whatsapp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  background: #10b981;
  color: white;
  padding: 12px;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  overflow: hidden;
}

.btn-float-whatsapp svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.btn-float-whatsapp .hover-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 800;
  transition: max-width 0.3s ease, margin-right 0.3s ease;
}

.btn-float-whatsapp:hover {
  transform: scale(1.05);
  background: #059669;
}

.btn-float-whatsapp:hover .hover-label {
  max-width: 160px;
  margin-right: 6px;
}

/* ========================================================
   STAFF ADMIN CMS MODAL
   ======================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, 0.88);
  backdrop-filter: blur(10px);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.admin-modal-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.9);
  width: 100%;
  max-width: 940px;
  max-height: 92vh;
  overflow-y: auto;
  color: white;
}

.admin-login-view {
  padding: 40px;
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
}

.admin-icon-ring {
  width: 56px;
  height: 56px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.admin-icon-ring svg {
  width: 28px;
  height: 28px;
}

.admin-login-header h3 {
  font-size: 1.35rem;
  color: white;
  margin-bottom: 6px;
}

.admin-login-header p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 24px;
}

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

.login-error-msg {
  color: #f87171;
  font-size: 0.78rem;
  margin-top: 8px;
}

.btn-text-cancel {
  display: block;
  margin: 16px auto 0 auto;
  font-size: 0.8rem;
  color: #94a3b8;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}

.btn-text-cancel:hover {
  color: white;
}

/* Authenticated CMS View */
.admin-cms-view {
  display: flex;
  flex-direction: column;
}

.cms-header {
  background: #1e293b;
  border-bottom: 1px solid #334155;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cms-header h3 {
  font-size: 1.15rem;
  color: white;
  margin-bottom: 2px;
}

.cms-header p {
  font-size: 0.78rem;
  color: #94a3b8;
}

.cms-header-actions {
  display: flex;
  gap: 8px;
}

.btn-outline-small {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #334155;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-outline-small:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-danger-small {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-danger-small:hover {
  background: rgba(239, 68, 68, 0.35);
}

.cms-tabs-bar {
  background: #090e17;
  padding: 8px 20px 0 20px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #334155;
  overflow-x: auto;
  white-space: nowrap;
}

.cms-tab-btn {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
}

.cms-tab-btn:hover {
  color: white;
}

.cms-tab-btn.active {
  color: #f59e0b;
  border-bottom-color: #f59e0b;
}

.cms-body {
  padding: 24px;
}

.cms-pane {
  display: none;
}

.cms-pane.active {
  display: block;
}

/* Inquiries Manager */
.inquiries-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.inquiries-top-bar h4 {
  font-size: 1rem;
  color: white;
}

.inq-filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 10px;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: var(--radius-md);
}

.inq-search-input {
  flex: 1;
  min-width: 200px;
  background: #1e293b;
  border: 1px solid #334155;
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.inq-filter-group {
  display: flex;
  gap: 4px;
}

.inq-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.inq-filter-btn.active {
  background: #f59e0b;
  color: #0b1120;
  border-color: #f59e0b;
}

.inquiries-table-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inquiry-record-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 16px;
}

.rec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.rec-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rec-name {
  font-weight: 800;
  color: white;
  font-size: 0.95rem;
}

.inq-status-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.badge-new {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-contacted {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.4);
}

.badge-closed {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.rec-date {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #64748b;
}

.rec-details {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 12px;
  line-height: 1.5;
}

.rec-msg-box {
  margin-top: 6px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  color: #94a3b8;
}

.rec-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.inq-status-select {
  background: #0f172a;
  border: 1px solid #334155;
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Service Edit Box inside CMS */
.cms-service-box {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.cms-service-box-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #f59e0b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* CMS Toast Notification */
.cms-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10b981;
  color: #064e3b;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  z-index: 300;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.cms-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ========================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ======================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .feature-points-grid {
    text-align: left;
  }

  .calc-layout, .tools-header-row, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .tool-calculator-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .nav-links, .btn-call {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2rem;
  }

  .results-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .results-metrics-grid {
    grid-template-columns: 1fr;
  }

  .fault-grid {
    grid-template-columns: 1fr;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .footer-cols-grid {
    grid-template-columns: 1fr;
  }

  .services-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .ai-chat-window {
    width: 100%;
    right: 0;
    bottom: 0;
    height: 100vh;
    border-radius: 0;
    max-width: 100%;
  }

  .btn-float-whatsapp {
    left: 16px;
    bottom: 16px;
  }

  .ai-assistant-widget {
    right: 16px;
    bottom: 16px;
  }
}
