/**
 * Himali Engineers - Master Industrial Stylesheet
 * Architecture: Vanilla CSS3, Variables, Flexbox, CSS Grid
 */

:root {
  --bg-darkest: #040814;
  --bg-card: #080f1e;
  --bg-card-hover: #0c162b;
  --bg-input: #040814;
  
  --border-subtle: #172338;
  --border-medium: #22324e;
  --border-accent: rgba(245, 158, 11, 0.4);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --amber: #fbbf24;
  --amber-dark: #d97706;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --emerald: #34d399;
  --red: #f87171;

  --font-sans: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Chivo', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container-max: 1280px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Typography Utilities */
.font-heading { font-family: var(--font-heading); }
.font-mono { font-family: var(--font-mono); }
.text-amber { color: var(--amber); }
.text-cyan { color: var(--cyan); }
.text-emerald { color: var(--emerald); }
.text-white { color: #ffffff; }

/* SVG Icons */
.icon { width: 1.25rem; height: 1.25rem; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.5rem; height: 1.5rem; }
.icon-lg { width: 2rem; height: 2rem; }

/* Top Announcement Bar */
.top-bar {
  background: #02040a;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  padding: 0.4rem 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--amber);
  animation: pulseAnim 1.8s infinite;
}
.pulse-dot-green {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
  animation: pulseAnim 1.8s infinite;
  display: inline-block;
}
@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.top-tag { color: var(--text-muted); font-size: 0.7rem; font-weight: 700; }
.top-phone { color: var(--amber); text-decoration: none; font-size: 0.8rem; }
.top-phone:hover { text-decoration: underline; }
.top-sep { color: var(--border-medium); }
.top-badge {
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  border: 1px solid rgba(34, 211, 238, 0.25);
}
.top-email { color: var(--text-secondary); text-decoration: none; display: flex; align-items: center; gap: 0.3rem; }
.top-email:hover { color: var(--cyan); }
.top-location { color: var(--text-muted); font-size: 0.7rem; }

@media (max-width: 768px) {
  .top-bar-right { display: none; }
  .top-bar-inner { justify-content: center; }
}

/* Primary Sticky Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 8, 20, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-emblem-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-emblem {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.4));
  transition: transform 0.2s ease;
}
.brand-logo:hover .logo-emblem {
  transform: scale(1.05);
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.04em;
}
.brand-white { color: #ffffff; }
.brand-amber { color: var(--amber); margin-left: 0.25rem; }
.brand-sub {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.22em;
  line-height: 1.2;
}

/* Desktop Nav Links */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--cyan); }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-hotline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-hotline:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--cyan);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  color: #040814;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
  transition: all 0.2s ease;
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 0.4rem;
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .btn-hotline { display: none; }
  .mobile-menu-btn { display: inline-flex; }
}

/* Mobile Nav Drawer */
.mobile-nav {
  background: #060b17;
  border-bottom: 1px solid var(--border-medium);
  padding: 1.25rem 0;
}
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-link:hover { color: var(--amber); }
.mobile-contact-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-medium);
}
.mobile-contact-label { font-size: 0.7rem; color: var(--text-muted); }
.mobile-hotline { font-size: 1.15rem; color: var(--amber); text-decoration: none; display: block; margin-top: 0.25rem; }

/* Hero Section */
.hero-section {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.08), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.06), transparent 50%),
              var(--bg-darkest);
  border-bottom: 1px solid var(--border-subtle);
}
.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}
.hero-subtext {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%);
  color: #040814;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.35);
  transition: all 0.2s ease;
}
.btn-hero-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-hero-secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* Stats Strip */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}
.stat-card {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Hero Visual Box */
.hero-visual {
  display: flex;
  justify-content: center;
}
.visual-card {
  width: 100%;
  max-width: 440px;
  background: #080f1f;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}
.visual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #050a14;
  border-bottom: 1px solid var(--border-subtle);
}
.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}
.visual-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
}
.spec-name { color: var(--text-muted); }
.spec-val { font-weight: 700; color: #ffffff; }
.visual-footer {
  padding: 0.85rem 1rem;
  background: #050a14;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}
.calc-quick-link {
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
}
.calc-quick-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.95rem; }
  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

/* Sections Global */
.section-padding { padding: 4.5rem 0; }
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}
.section-tag {
  display: inline-block;
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.03em;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.25s ease;
  position: relative;
}
.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.featured-service {
  border-color: rgba(34, 211, 238, 0.4);
  background: #091326;
}
.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(34, 211, 238, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.4);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.service-icon-wrap { margin-bottom: 1.2rem; }
.service-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #ffffff;
}
.service-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.service-bullets {
  list-style: none;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}
.service-bullets li::before {
  content: "» ";
  color: var(--amber);
  font-weight: bold;
}

/* Cooling Tower Cards */
.towers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.tower-card {
  background: #081021;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.tower-card:hover {
  border-color: var(--border-accent);
}
.tower-name {
  font-size: 1.35rem;
  font-weight: 900;
  margin: 0.4rem 0 0.85rem;
  color: #ffffff;
}
.tower-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.tower-specs {
  background: #040814;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.85rem;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.spec-item {
  display: flex;
  justify-content: space-between;
}
.spec-item span { color: var(--text-muted); }
.spec-item strong { color: var(--text-primary); }

/* Thermal Sizing Calculator */
.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}
.calc-inputs-card, .calc-results-card {
  background: #080f1f;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.card-subtitle {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.input-group {
  margin-bottom: 1rem;
}
.input-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.input-field {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: #03060f;
  border: 1px solid var(--border-medium);
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.input-field:focus {
  border-color: var(--cyan);
}
.input-hint {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  flex-grow: 1;
}
.result-box {
  background: #040814;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}
.featured-result {
  grid-column: span 2;
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(16, 185, 129, 0.05);
}
.res-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.res-value {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.res-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.calc-action-strip { margin-top: 1.25rem; }

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

/* AMC Section */
.amc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.amc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.featured-amc {
  border: 2px solid var(--amber);
  background: #0a1324;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
}
.amc-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 1rem;
}
.amc-badge.featured {
  background: var(--amber);
  color: #040814;
}
.amc-title {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}
.amc-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.amc-features {
  list-style: none;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.amc-features li { color: #cbd5e1; }
.btn-outline {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border-medium);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Emergency Breakdown Strip */
.emergency-strip {
  background: linear-gradient(90deg, #09152b 0%, #112242 100%);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.btn-hotline-large {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: var(--amber);
  color: #040814;
  font-size: 1.1rem;
  font-weight: 900;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  transition: all 0.2s ease;
}
.btn-hotline-large:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

/* Industries Grid */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.industry-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}
.industry-box:hover { border-color: var(--border-medium); }
.ind-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.ind-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.4rem; color: #ffffff; }

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: center;
}
.about-lead {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.about-body {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}
.about-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
}
.check-item { color: #e2e8f0; }
.about-badge-strip {
  display: flex;
  gap: 2rem;
}
.ab-badge {
  display: flex;
  flex-direction: column;
}

.about-seal-card {
  background: #070e1c;
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}
.seal-emblem {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.4));
}
.seal-motto {
  font-size: 0.8rem;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin: 1.25rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 0;
}
.seal-contact {
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

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

/* Contact & Form */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
}
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
}
.border-amber { border-color: rgba(245, 158, 11, 0.35); }
.border-emerald { border-color: rgba(52, 211, 153, 0.35); }
.card-icon-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.contact-hotline-large {
  font-size: 1.6rem;
  color: var(--amber);
  text-decoration: none;
  display: block;
}
.contact-hotline-large:hover { text-decoration: underline; }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #10b981;
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-whatsapp:hover { background: #059669; }
.btn-whatsapp-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--emerald);
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
}

.supabase-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--emerald);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
}

/* Form Container Card */
.form-container-card {
  background: #080f1f;
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  padding: 2rem;
}
.form-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.urgency-selector {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #040814;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #cbd5e1;
}
.urgency-emergency { color: var(--amber); font-weight: 700; }
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  color: #040814;
  padding: 0.95rem;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.3);
  transition: all 0.2s ease;
}
.btn-submit:hover { filter: brightness(1.1); }
.form-security-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

@media (max-width: 860px) {
  .contact-layout-grid { grid-template-columns: 1fr; }
  .grid-2-col { grid-template-columns: 1fr; }
}

/* Alert Boxes */
.alert-box {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.88rem;
}
.alert-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}
.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* Footer */
.main-footer {
  background: #02050b;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-logo-emblem {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.footer-emergency-call {
  background: #060b17;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.75rem;
}
.footer-hotline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--amber);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  margin-top: 0.25rem;
}
.footer-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.82rem;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--cyan); }
.footer-contact-item {
  display: flex;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 1.25rem 0;
  background: #010307;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

/* Floating Actions Bar */
.floating-bar {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.floating-whatsapp, .floating-call {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform 0.2s ease;
}
.floating-whatsapp {
  background: #25d366;
  color: #ffffff;
}
.floating-call {
  background: var(--amber);
  color: #040814;
}
.floating-whatsapp:hover, .floating-call:hover {
  transform: scale(1.05);
}

/* Helpers */
.hidden { display: none !important; }
.w-full { width: 100%; }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.text-center { text-align: center; }

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
