/* =====================================================
   JINNOS INFRA – Premium Dark Theme
   Regional: India / Delhi-NCR | Mobile-first
   ===================================================== */

:root {
  --bg-dark: #0a1628;
  --bg-darker: #060e1a;
  --bg-card: #111f35;
  --bg-card-hover: #162a47;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --gold: #f59e0b;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.15);
  --radius: 1rem;
  --shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

.bg-darker { background: var(--bg-darker) !important; }
.text-accent { color: var(--accent) !important; }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  color: #fff;
  border: none;
  font-weight: 600;
  transition: all 0.25s ease;
}
.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-hover), #1e40af);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

/* Glass Nav */
.glass-nav {
  background: rgba(10, 22, 40, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.glass-nav.scrolled {
  background: rgba(6, 14, 26, 0.95) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.navbar-brand { font-size: 1.1rem; }
.jinnos-logo {
  height: 36px;
  width: auto;
  max-width: 180px;
  /* Logo uses dark teal/blue fills – brighten for dark theme visibility */
  filter: brightness(1.4) contrast(1.08) saturate(1.15);
  transition: filter 0.2s ease;
}
.navbar-brand:hover .jinnos-logo {
  filter: brightness(1.55) contrast(1.1) saturate(1.2);
}
.footer .jinnos-logo {
  height: 42px;
  max-width: 220px;
  filter: brightness(1.45) contrast(1.08);
}
.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: #fff !important;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(160deg, #0a1628 0%, #0f2744 40%, #0a1628 100%);
  overflow: hidden;
  padding-top: 90px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(59,130,246,0.15), transparent),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(245,158,11,0.08), transparent);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: #93c5fd;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}
.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(59,130,246,0.4);
  transform: translateY(-4px);
}
.stat-card .value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.stat-card .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Sections */
section {
  padding: 5rem 0;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}
.section-subtitle {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* Feature cards */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: rgba(59,130,246,0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.icon-blue { background: rgba(59,130,246,0.15); color: #60a5fa; }
.icon-amber { background: rgba(245,158,11,0.15); color: #fbbf24; }
.icon-emerald { background: rgba(16,185,129,0.15); color: #34d399; }
.icon-rose { background: rgba(244,63,94,0.15); color: #fb7185; }

/* Use case cards */
.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.usecase-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.usecase-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(59,130,246,0.2);
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1.25rem;
}

/* Table */
.config-table {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.config-table table {
  margin: 0;
  color: var(--text);
}
.config-table th {
  background: rgba(59,130,246,0.1);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
}
.config-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.config-table tr:last-child td { border-bottom: none; }
.config-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Location cards */
.location-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: all 0.3s;
}
.location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.location-card img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}
.location-card .card-body {
  padding: 1.25rem;
}

/* Map */
#map {
  height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  z-index: 1;
}

/* Engagement options */
.option-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  transition: all 0.3s;
}
.option-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(245,158,11,0.3);
}
.option-card .badge-opt {
  background: rgba(245,158,11,0.15);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
}

/* Contact form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-control, .form-select {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}
.form-control:focus, .form-select:focus {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}
.form-control::placeholder { color: #64748b; }
.form-label { font-weight: 500; font-size: 0.9rem; }

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  z-index: 1050;
  transition: all 0.25s;
  text-decoration: none;
}
.whatsapp-float:hover {
  background: #1ebe57;
  color: #fff;
  transform: scale(1.08);
}

/* Confidential badge */
.confidential-bar {
  background: linear-gradient(90deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05));
  border-top: 1px solid rgba(245,158,11,0.25);
  border-bottom: 1px solid rgba(245,158,11,0.25);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  color: #fbbf24;
  padding: 0.6rem 0;
  text-align: center;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  section { padding: 3.5rem 0; }
  .hero { min-height: auto; padding-bottom: 3rem; }
  .stat-card .value { font-size: 1.4rem; }
  #map { height: 320px; }
}

/* Print */
@media print {
  .glass-nav, .whatsapp-float, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Google Maps embed */
.map-embed-wrap {
  background: #0f172a;
  min-height: 320px;
}
.map-embed-wrap iframe {
  min-height: 320px;
}
@media (min-width: 768px) {
  .map-embed-wrap iframe { height: 420px !important; }
}

/* Better image treatment */
.location-card img {
  transition: transform 0.4s ease;
}
.location-card:hover img {
  transform: scale(1.04);
}

/* Trust / realism helpers */
.stat-card .emoji {
  font-size: 1.5rem;
  line-height: 1;
}

/* =====================================================
   Color-blind & WCAG accessibility layer
   - Never rely on color alone
   - High contrast text / borders
   - Visible focus rings
   ===================================================== */

:root {
  /* Prefer blue–amber over pure red–green for status */
  --status-ok: #22c55e;
  --status-ok-border: #16a34a;
  --status-warn: #f59e0b;
  --status-err: #f87171;
  --focus-ring: #93c5fd;
  --text-high: #f1f5f9;
  --text-mid: #cbd5e1;
}

/* Strong focus visibility (keyboard / screen reader users) */
:focus-visible {
  outline: 3px solid var(--focus-ring) !important;
  outline-offset: 3px !important;
}
.btn:focus-visible,
.nav-link:focus-visible,
a:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible {
  outline: 3px solid var(--focus-ring) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.35) !important;
}

/* Text contrast boost */
body { color: var(--text-high); }
.text-muted { color: var(--text-mid) !important; }
.lead { color: var(--text-mid); }

/* Status alerts – icon + border pattern, not color alone */
.alert {
  border-width: 2px;
  border-style: solid;
  font-weight: 500;
}
.alert-success {
  background: rgba(34, 197, 94, 0.12);
  border-color: var(--status-ok-border);
  color: #bbf7d0;
  border-left-width: 6px;
}
.alert-danger {
  background: rgba(248, 113, 113, 0.12);
  border-color: var(--status-err);
  color: #fecaca;
  border-left-width: 6px;
  border-left-style: dashed; /* pattern differentiates from success */
}
.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--status-warn);
  color: #fde68a;
  border-left-width: 6px;
  border-left-style: dotted;
}

/* Cards: dual coding – border + left accent bar */
.feature-card,
.usecase-card,
.option-card,
.location-card,
.stat-card {
  border-left: 4px solid rgba(59, 130, 246, 0.55);
}
.usecase-card:nth-child(1), .feature-card:has(.icon-blue) { border-left-color: #60a5fa; }
.usecase-card:nth-child(2), .feature-card:has(.icon-amber) { border-left-color: #fbbf24; }
.usecase-card:nth-child(3), .feature-card:has(.icon-emerald) { border-left-color: #34d399; }
.usecase-card:nth-child(4) { border-left-color: #fb7185; }

/* Required field marker – text, not only red asterisk */
.form-label .req {
  color: #fbbf24;
  font-weight: 700;
  margin-left: 0.15rem;
}
.form-label .req::after {
  content: " (required)";
  font-weight: 400;
  font-size: 0.75em;
  color: var(--text-mid);
}

/* High-contrast links */
a.text-accent { text-decoration: underline; text-underline-offset: 3px; }
a.text-accent:hover { text-decoration-thickness: 2px; }

/* Skip link always visible when focused */
.visually-hidden-focusable:focus {
  position: fixed !important;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  background: #1d4ed8;
  color: #fff;
  border-radius: 0.5rem;
}

/* Reduced motion preference */
@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;
  }
}

/* Ensure button text remains readable */
.btn-accent { color: #fff !important; }
.btn-outline-light { border-width: 2px; }
