/* ============================================================
   HAIL NEXUS — Main Stylesheet
   Brand: Dark Navy #1a2c3d | Electric Blue #1a6db5 | White
   ============================================================ */

:root {
  --navy:       #1a2c3d;
  --navy-light: #243d52;
  --blue:       #1a6db5;
  --blue-light: #2196f3;
  --blue-glow:  #3fb3ff;
  --silver:     #8fa3b1;
  --white:      #ffffff;
  --off-white:  #f5f7fa;
  --gray:       #e8ecf0;
  --text-dark:  #1a2c3d;
  --text-mid:   #4a6075;
  --text-light: #8fa3b1;
  --shadow:     0 4px 24px rgba(26,44,61,0.12);
  --shadow-lg:  0 8px 48px rgba(26,44,61,0.18);
  --radius:     8px;
  --radius-lg:  16px;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p  { color: var(--text-mid); line-height: 1.75; }
a  { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-light); }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.section-title { color: var(--navy); margin-bottom: 1rem; }
.section-sub   { color: var(--text-mid); font-size: 1.1rem; max-width: 600px; }
.text-center   { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
.section-alt { background: var(--off-white); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,109,181,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-dark:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Nav ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26,44,61,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(26,44,61,0.99);
  box-shadow: var(--shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.nav-cta { margin-left: 0.75rem; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #0d1f2f 40%, #0a1825 100%);
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,109,181,0.15) 0%, transparent 70%);
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: -10%; left: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(33,150,243,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}
.hero-text { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(26,109,181,0.2);
  border: 1px solid rgba(26,109,181,0.4);
  color: var(--blue-glow);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--blue-glow);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
.hero-title { color: var(--white); margin-bottom: 1.25rem; }
.hero-title span { color: var(--blue-glow); }
.hero-sub {
  color: rgba(255,255,255,0.72);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.stat-item { text-align: left; }
.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-num span { color: var(--blue-glow); }
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  max-width: 380px;
  width: 100%;
}
.hero-card-title {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.service-list { list-style: none; }
.service-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.85);
  padding: 0.6rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.service-list li:last-child { border-bottom: none; }
.service-list .icon {
  width: 32px; height: 32px;
  background: rgba(26,109,181,0.25);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.hero-cta-strip {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.hero-cta-strip p { color: var(--white); font-weight: 600; font-size: 0.9rem; margin: 0; }
.hero-cta-strip a {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0.9;
}
.hero-cta-strip a:hover { opacity: 1; }

/* ── Trust Bar ── */
#trust-bar {
  background: var(--navy);
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
}
.trust-item .icon { font-size: 1.1rem; color: var(--blue-glow); }

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(26,109,181,0.12), rgba(33,150,243,0.08));
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.service-card h3 { color: var(--navy); margin-bottom: 0.6rem; }
.service-card p  { font-size: 0.95rem; }

/* ── Areas ── */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.area-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  text-align: center;
}
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.area-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.area-card h3 { color: var(--navy); margin-bottom: 0.5rem; }
.area-card p  { font-size: 0.9rem; }
.area-tag {
  display: inline-block;
  background: rgba(26,109,181,0.1);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-top: 0.75rem;
}

/* ── Why Us ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}
.why-features { display: flex; flex-direction: column; gap: 1.5rem; }
.why-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray);
  transition: var(--transition);
}
.why-feature:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.why-feature-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--white);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.why-feature-text h4 { color: var(--navy); margin-bottom: 0.25rem; font-size: 1rem; }
.why-feature-text p  { font-size: 0.9rem; margin: 0; }
.why-visual {
  background: linear-gradient(135deg, var(--navy), #0a1825);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
}
.why-visual h3 { color: var(--white); margin-bottom: 1.5rem; font-size: 1.3rem; }
.process-steps { display: flex; flex-direction: column; gap: 1.25rem; }
.process-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.step-num {
  width: 32px; height: 32px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.step-text h5 { color: var(--white); font-size: 0.95rem; font-weight: 600; }
.step-text p  { color: rgba(255,255,255,0.65); font-size: 0.85rem; margin: 0; }

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -0.5rem; left: 1.5rem;
  font-size: 4rem;
  color: var(--blue);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}
.stars { color: #f59e0b; font-size: 1rem; margin-bottom: 0.75rem; }
.testimonial-card p { font-size: 0.95rem; font-style: italic; margin-bottom: 1rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}
.author-name { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.author-loc  { font-size: 0.8rem; color: var(--text-light); }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}
.contact-info-items { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--white);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item h4 { color: var(--navy); font-size: 0.9rem; margin-bottom: 0.2rem; }
.contact-info-item p, .contact-info-item a {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin: 0;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-title { color: var(--navy); margin-bottom: 0.5rem; font-size: 1.3rem; }
.form-sub { font-size: 0.9rem; margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  font-family: inherit;
  background: var(--off-white);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,109,181,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-btn { width: 100%; justify-content: center; padding: 1rem; font-size: 1rem; }

/* ── Footer ── */
#footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.footer-col h4 { color: var(--white); margin-bottom: 1rem; font-size: 0.95rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: var(--transition); }
.footer-col ul a:hover { color: var(--blue-glow); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin-bottom: 1.5rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); }
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}
.social-link:hover { background: var(--blue); color: var(--white); }

/* ── CTA Banner ── */
#cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #0d4b8a 100%);
  padding: 4rem 0;
  text-align: center;
}
#cta-banner h2 { color: var(--white); margin-bottom: 0.75rem; }
#cta-banner p  { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .hero-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
  .hero-stats { gap: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .trust-items { flex-direction: column; align-items: center; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
}

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
