/* ============================================================
   ADELIE IT — Design System & Styles
   Brand color: Adelie Blue #0b4aa2
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --adelie:        #0b4aa2;
  --adelie-light:  #1b67d0;
  --adelie-dark:   #083a82;
  --navy:          #0a1628;
  --navy-mid:      #101d33;
  --ink:           #0f172a;
  --muted:         #64748b;
  --light:         #f1f5f9;
  --card-bg:       #ffffff;
  --border:        rgba(11,74,162,.10);
  --shadow-sm:     0 2px 8px rgba(0,0,0,.06);
  --shadow-md:     0 8px 30px rgba(0,0,0,.08);
  --shadow-lg:     0 20px 60px rgba(0,0,0,.12);
  --radius:        16px;
  --radius-sm:     10px;
  --transition:    .3s cubic-bezier(.4,0,.2,1);
  --font:          'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--adelie); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--adelie-light); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---------- Layout ---------- */
.container { width: min(1140px, 90vw); margin-inline: auto; }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(11,74,162,.06);
  transition: box-shadow var(--transition);
}
header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--ink);
}
.brand-logo {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.footer-brand .brand-logo {
  width: 28px;
  height: 28px;
}

/* Desktop nav */
.nav-links {
  display: flex; align-items: center; gap: 6px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover {
  background: rgba(11,74,162,.06);
  color: var(--adelie);
}
.nav-links a.active {
  color: var(--adelie);
  background: rgba(11,74,162,.06);
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--adelie);
  color: #fff !important;
  font-weight: 600;
  font-size: .92rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(11,74,162,.25);
}
.btn-primary:hover {
  background: var(--adelie-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(11,74,162,.35);
  color: #fff !important;
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  color: var(--ink);
  font-weight: 600;
  font-size: .92rem;
  background: #fff;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.btn-outline:hover {
  border-color: var(--adelie);
  background: rgba(11,74,162,.04);
  transform: translateY(-1px);
  color: var(--adelie);
}
.btn-white {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--adelie) !important;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,.15);
  color: var(--adelie-dark) !important;
}

/* Mobile nav toggle */
.mobile-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.5rem; cursor: pointer;
  color: var(--ink);
  padding: 4px;
  position: relative;
  z-index: 220;
}

/* Body scroll lock when menu is open (disabled — dropdown doesn't cover page) */

/* ============================================================
   SECTION HEADER (shared)
   ============================================================ */
.section-header {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 48px;
}
.section-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--adelie);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 2vw + .8rem, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--muted);
  font-size: 1.02rem;
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  padding: 150px 0 100px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(11,74,162,.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(11,74,162,.06) 0%, transparent 70%),
    linear-gradient(180deg, #f8faff 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230b4aa2' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(2.2rem, 4vw + .8rem, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--adelie), var(--adelie-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(11,74,162,.08);
  color: var(--adelie);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--adelie);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   SLA STATS BAR
   ============================================================ */
.stats {
  padding: 0;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.stat-item {
  background: #fff;
  padding: 28px 20px;
  text-align: center;
  transition: background var(--transition);
}
.stat-item:hover {
  background: #f8faff;
}
.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--adelie);
  letter-spacing: -.01em;
  line-height: 1.2;
}
.stat-label {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}

/* ============================================================
   2. CORE SERVICES
   ============================================================ */
.services {
  padding: 88px 0 72px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid rgba(11,74,162,.07);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(11,74,162,.15);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(11,74,162,.08), rgba(11,74,162,.03));
  color: var(--adelie);
  margin-bottom: 16px;
  transition: background var(--transition);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--adelie), var(--adelie-light));
  color: #fff;
}
.service-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.service-card p {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}

/* ============================================================
   3. WHY ADELIE IT
   ============================================================ */
.why-section {
  padding: 72px 0;
  background: var(--light);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}
.why-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(11,74,162,.07);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  transition: box-shadow var(--transition), transform var(--transition);
}
.why-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.why-item svg {
  flex-shrink: 0;
  color: var(--adelie);
}

/* ============================================================
   4. BUSINESSES WE SUPPORT
   ============================================================ */
.industries {
  padding: 72px 0;
}
.industries-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.industry-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  background: rgba(11,74,162,.06);
  border: 1px solid rgba(11,74,162,.1);
  color: var(--ink);
  transition: background var(--transition), border-color var(--transition);
}
.industry-pill:hover {
  background: rgba(11,74,162,.1);
  border-color: rgba(11,74,162,.18);
}

/* ============================================================
   5. HOW IT WORKS
   ============================================================ */
.how-section {
  padding: 72px 0;
  background: var(--light);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-card {
  background: #fff;
  border: 1px solid rgba(11,74,162,.07);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--adelie), var(--adelie-light));
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  margin: 0 auto 16px;
}
.step-card h3 {
  font-size: .98rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.step-card p {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
}

/* ============================================================
   6. SERVICE AREA
   ============================================================ */
.service-area {
  padding: 72px 0;
}
.service-area-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.service-area-inner h2 {
  font-size: clamp(1.4rem, 2vw + .6rem, 1.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.service-area-inner p {
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.7;
}

/* ============================================================
   7. CTA BANNER
   ============================================================ */
.cta-banner {
  padding: 72px 0 88px;
}
.cta-banner-inner {
  background: linear-gradient(135deg, var(--adelie-dark), var(--adelie), var(--adelie-light));
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(11,74,162,.3);
}
.cta-banner-inner::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-banner-inner h2 {
  font-size: clamp(1.5rem, 2vw + .5rem, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
}
.cta-banner-inner p {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  margin-bottom: 28px;
  position: relative;
}

/* ============================================================
   CONTACT FORM (shared with contact page)
   ============================================================ */
.contact-form-card {
  background: #fff;
  border: 1px solid rgba(11,74,162,.07);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(11,74,162,.12);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .92rem;
  color: var(--ink);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--adelie);
  box-shadow: 0 0 0 3px rgba(11,74,162,.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a0aec0;
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-submit {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem;
  color: #fff;
  margin-bottom: 14px;
}
.footer-desc {
  font-size: .88rem;
  line-height: 1.7;
  max-width: 320px;
}
.footer-col h4 {
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: .03em;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,.5);
  font-size: .88rem;
  padding: 5px 0;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: .82rem;
}
.footer-bottom a {
  color: rgba(255,255,255,.4);
}
.footer-bottom a:hover {
  color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; max-width: 360px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--adelie);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 200;
    padding: 8px 16px 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .3s ease, opacity .25s ease, visibility .25s ease;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
  }
  .nav-links.open {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
  }
  .nav-links a {
    font-size: 1rem;
    padding: 14px 20px;
    text-align: center;
    border-radius: var(--radius-sm);
    color: #fff;
  }
  .nav-links a:not(.btn-primary):hover,
  .nav-links a:not(.btn-primary):active {
    background: rgba(255,255,255,.12);
    color: #fff;
  }
  .nav-links .btn-primary {
    margin-top: 8px;
    justify-content: center;
    padding: 14px 20px;
    font-size: 1rem;
    background: #fff;
    color: var(--adelie) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
  }
  .nav-links .btn-primary:hover {
    background: var(--light);
    color: var(--adelie-dark) !important;
  }

  /* Header turns blue when menu is open */
  header.menu-open {
    background: var(--adelie);
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  header.menu-open .brand { color: #fff; }
  header.menu-open .mobile-toggle { color: #fff; }

  .mobile-toggle { display: block; }

  .hero { padding: 130px 0 72px; }
  .hero h1 { font-size: 2rem; }
  .stats { margin-top: -20px; }
  .services-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .cta-banner-inner { padding: 40px 24px; }
  .contact-form-card { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 20px 12px; }
  .stat-number { font-size: 1.4rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .industries-grid { flex-direction: column; align-items: center; }
}
