/* =========================================
   1. MODERN CORPORATE DESIGN SYSTEM
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Brand Palette - Professional Blue */
  --brand-primary: #0ea5e9;    /* Sky Blue */
  --brand-dark: #0284c7;       /* Darker Blue */
  --brand-navy: #0f172a;       /* Deep Slate */
  --brand-accent: #38bdf8;     /* Bright Accent */

  /* Neutral Scale */
  --ink-900: #0f172a;          /* Headings */
  --ink-700: #334155;          /* Body Text */
  --ink-500: #64748b;          /* Muted Text */
  --ink-400: #94a3b8;          /* Borders/Icons */

  /* Surfaces */
  --surface-white: #ffffff;
  --surface-light: #f8fafc;    /* Page BG */
  --surface-card: #ffffff;
  --border-light: #e2e8f0;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  --shadow-blue: 0 10px 30px -10px rgba(14, 165, 233, 0.4);

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

html, body { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--surface-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--ink-900);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: var(--brand-primary); transition: all 0.2s ease; }
a:hover { color: var(--brand-dark); }

/* Utility Classes */
.text-primary { color: var(--brand-primary) !important; }
.text-dark { color: var(--brand-navy) !important; }
.text-muted { color: var(--ink-500) !important; }
.bg-light { background-color: var(--surface-light) !important; }
.bg-surface { background-color: var(--surface-light) !important; }
.bg-white { background-color: var(--surface-white) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.shadow-soft { box-shadow: var(--shadow-md) !important; }

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-xs);
}

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

.nav-link {
  font-family: var(--font-main);
  font-weight: 600;
  color: var(--ink-700) !important;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}

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

.btn-primary {
  background: var(--brand-primary);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-blue);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 15px 30px -10px rgba(14, 165, 233, 0.5);
}

.btn-outline-light {
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: 0.6rem 1.5rem;
  font-weight: 600;
}
.btn-outline-light:hover {
  background: white; color: var(--brand-navy); border-color: white;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--brand-navy) 0%, #1e293b 100%);
  color: white;
  padding: 120px 0 100px;
  overflow: hidden;
}

/* Subtle pattern overlay */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(#38bdf8 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.05;
  pointer-events: none;
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #bae6fd;
  font-weight: 600; font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero-preheading {
  font-family: var(--font-main);
  text-transform: uppercase; letter-spacing: 0.15em;
  font-size: 0.8rem; font-weight: 700;
  color: #94a3b8; margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem;
  color: white;
}
.hero .text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 1.15rem; color: #cbd5e1; font-weight: 400; max-width: 650px;
}

.hero-checklist li {
  margin-bottom: 0.65rem; color: #e2e8f0; font-weight: 500; display: flex; gap: 0.75rem; align-items: center;
}
.hero-checklist i { color: var(--brand-accent); }

.hero-action-group { margin-top: 2rem; }

.hero-stats {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem; padding-top: 2rem;
  display: flex; gap: 2.5rem;
}
.stat-number { font-size: 2rem; font-weight: 700; display: block; line-height: 1; }
.stat-unit { color: var(--brand-accent); }
.stat-label { font-size: 0.85rem; color: #94a3b8; margin-top: 0.25rem; display: block; }

/* Hero Card (Form) */
.hero-consult-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  color: var(--ink-900);
}
.hero-consult-card .card-head p { color: var(--ink-500); }
.hero-consult-card .form-label { font-weight: 600; font-size: 0.85rem; }
.hero-consult-card .form-control, .hero-consult-card .form-select {
  background: #f8fafc; border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 0.65rem;
}
.hero-consult-card .form-control:focus {
  border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}

/* =========================================
   4. SECTIONS & CARDS
   ========================================= */
.section { padding: 5rem 0; }
.section-kicker {
  display: inline-block;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em;
  font-weight: 700; color: var(--brand-primary);
  margin-bottom: 1rem;
}
.section-title { font-size: 2.5rem; color: var(--brand-navy); margin-bottom: 1rem; }

/* Feature Cards (Used in Services/Index) */
.feature-card, .card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover, .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 165, 233, 0.3);
}

.icon-circle {
  width: 56px; height: 56px;
  background: #f0f9ff; color: var(--brand-primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.5rem;
}

.feature-card h5, .card-title {
  font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--brand-navy);
}

.text-secondary { color: var(--ink-500) !important; }

/* Mandate/Project Cards */
.mandate-card {
  background: white; border-radius: var(--radius-lg);
  padding: 1.5rem; border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.mandate-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mandate-header { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.mandate-badge {
  background: #f0f9ff; color: var(--brand-dark);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  padding: 0.35rem 0.75rem; border-radius: 50px;
}
.mandate-value { font-weight: 700; font-size: 1.1rem; color: var(--brand-navy); }

/* Card Images (Projects) */
.card-img-top {
  height: 220px; object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: -2rem -2rem 1.5rem -2rem;
  width: calc(100% + 4rem);
}

/* =========================================
   5. DARK SECTION & TESTIMONIALS
   ========================================= */
.section-dark {
  background: var(--brand-navy); color: white;
}
.section-dark .section-title { color: white; }
.section-dark .text-secondary { color: #94a3b8 !important; }

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2.5rem; border-radius: var(--radius-lg);
}
.testimonial-quote {
  font-family: var(--font-main); font-size: 1.35rem; font-weight: 500;
  line-height: 1.5; color: #f1f5f9; margin-bottom: 1.5rem;
}
.testimonial-rating { color: #f59e0b; margin-bottom: 1rem; }
.testimonial-author h6 { color: white; margin: 0; }
.testimonial-author span { color: #94a3b8; font-size: 0.9rem; }

/* =========================================
   6. CONTACT PAGE STYLES
   ========================================= */
.contact-hero {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  color: white; padding: 100px 0;
}
.contact-hero .section-kicker { color: #38bdf8; }
.contact-hero__lead { color: #cbd5e1; }

.contact-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.contact-metric {
  background: rgba(255,255,255,0.1); border-radius: 12px; padding: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
}
.contact-metric__label { display: block; font-size: 0.7rem; text-transform: uppercase; opacity: 0.7; font-weight: 700; }
.contact-metric__value { display: block; font-size: 1.2rem; font-weight: 700; margin: 0.25rem 0; }
.contact-metric__caption { font-size: 0.75rem; opacity: 0.8; }

.contact-hero__badge {
  display: inline-flex; gap: 0.5rem; align-items: center;
  background: rgba(255,255,255,0.1); padding: 0.4rem 0.8rem;
  border-radius: 50px; font-size: 0.85rem; margin-right: 0.5rem; margin-bottom: 0.5rem;
}
.contact-hero__badge i { color: #38bdf8; }

.contact-form-card {
  background: white; padding: 2.5rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); color: var(--ink-900);
}

/* =========================================
   7. FOOTER & CREDIT
   ========================================= */
.footer {
  background: #0b1120; /* Darker than brand-navy */
  color: #94a3b8;
  font-size: 0.9rem;
  border-top: 1px solid #1e293b;
}

.footer-cta {
  background: linear-gradient(to right, #0f172a, #1e293b);
  padding: 4rem 0;
  border-bottom: 1px solid #1e293b;
}

.footer-brand-name { color: white; font-size: 1.5rem; font-weight: 700; }
.footer-heading {
  color: white; text-transform: uppercase; font-size: 0.75rem;
  letter-spacing: 0.1em; font-weight: 700; margin-bottom: 1.25rem;
}
.footer a { color: #94a3b8; }
.footer a:hover { color: var(--brand-primary); }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 2rem 0;
  margin-top: 3rem;
  display: flex; flex-direction: column; gap: 1rem;
}
@media(min-width: 992px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* CREDIT HIGHLIGHT - "Uniform but highlighted" */
.footer-credit {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  color: #e2e8f0;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.footer-credit a {
  color: #fff;
  font-weight: 600;
  margin-left: 0.35rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: border-color 0.2s;
}

.footer-credit:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.footer-credit:hover a {
  border-color: #fff;
}

/* =========================================
   8. RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.5rem; }
  .section { padding: 3rem 0; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .contact-metrics { grid-template-columns: 1fr; }
}

/* Restored Utilities */
.connection-banner { display: none; } /* Simplified */
.pwa-install-card {
  position: fixed; bottom: 1rem; right: 1rem; background: white;
  padding: 1rem; border-radius: 12px; box-shadow: var(--shadow-lg);
  transform: translateY(150%); transition: transform 0.3s;
}
.pwa-install-card.is-visible { transform: translateY(0); }
