/* ============================================================
   SWOT SOLUTIONS — Shared Styles
   Blue dominant, green accent | Modern & Corporate
   ============================================================ */

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

:root {
  --navy:       #0b1f3a;
  --blue-deep:  #0d3b6e;
  --blue-mid:   #1a5fad;
  --blue:       #2472d4;
  --blue-light: #4d90e8;
  --blue-pale:  #e8f1fc;
  --green:      #1db87a;
  --green-dark: #158f5e;
  --green-pale: #e6f9f1;
  --white:      #ffffff;
  --off-white:  #f6f9fd;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-400:   #94a3b8;
  --gray-600:   #475569;
  --gray-800:   #1e293b;
  --text:       #0b1f3a;
  --text-mid:   #3d556e;
  --text-muted: #7a93ad;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 { font-family: 'Manrope', sans-serif; line-height: 1.15; letter-spacing: -0.02em; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---- UTILITY ---- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }

/* ---- DIVIDER ---- */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--gray-200), transparent); }

/* ---- TAGS ---- */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue-pale); color: var(--blue-mid);
  font-size: 12px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 50px;
  border: 1px solid rgba(36,114,212,0.2); margin-bottom: 16px;
}
.tag-green {
  background: var(--green-pale); color: var(--green-dark);
  border-color: rgba(29,184,122,0.25);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: 8px; text-decoration: none;
  transition: all 0.28s ease; cursor: pointer; border: none;
}
.btn-blue {
  background: var(--blue); color: white;
  box-shadow: 0 4px 18px rgba(36,114,212,0.35);
}
.btn-blue:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(36,114,212,0.4); }
.btn-green {
  background: var(--green); color: white;
  box-shadow: 0 4px 18px rgba(29,184,122,0.3);
}
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--blue);
  border: 1.5px solid var(--blue); padding: 12px 26px;
}
.btn-outline:hover { background: var(--blue); color: white; transform: translateY(-2px); }
.btn-white {
  background: white; color: var(--blue-deep);
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.2); }

/* ---- CARDS ---- */
.card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: 16px; padding: 32px;
  transition: all 0.32s cubic-bezier(0.4,0,0.2,1);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 56px rgba(11,31,58,0.1); border-color: rgba(36,114,212,0.25); }

/* ---- ICON BOX ---- */
.ibox {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; flex-shrink: 0; transition: all 0.3s;
}
.ibox-blue { background: var(--blue-pale); }
.ibox-green { background: var(--green-pale); }
.card:hover .ibox-blue { background: var(--blue); }
.card:hover .ibox-blue svg { stroke: white !important; }
.card:hover .ibox-green { background: var(--green); }
.card:hover .ibox-green svg { stroke: white !important; }

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---- CHIP ---- */
.chip {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 50px; margin: 2px;
}
.chip-blue { background: var(--blue-pale); color: var(--blue-mid); border: 1px solid rgba(36,114,212,0.18); }
.chip-green { background: var(--green-pale); color: var(--green-dark); border: 1px solid rgba(29,184,122,0.2); }

/* ---- STAT ---- */
.stat-n {
  font-family: 'Manrope', sans-serif; font-weight: 900;
  font-size: 2.6rem; line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-n-green {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#swot-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  padding: 0;
  transition: all 0.3s ease;
}
#swot-nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--gray-200), 0 4px 20px rgba(11,31,58,0.07);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: 'Manrope', sans-serif; font-weight: 900; font-size: 20px;
  color: var(--navy); letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
  text-decoration: none;
}
.nav-logo .logo-dot { color: var(--green); }
.nav-logo .logo-sub {
  font-size: 10px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.07em; text-transform: uppercase;
  border-left: 1px solid var(--gray-200); padding-left: 9px; margin-left: 6px;
}

/* ── Desktop links ── */
.nav-links {
  display: flex; align-items: center; gap: 2px;
}
.nav-link {
  font-size: 13.5px; font-weight: 600; color: var(--text-mid);
  padding: 6px 12px; border-radius: 7px; white-space: nowrap;
  transition: color 0.15s, background 0.15s; text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: var(--blue); background: var(--blue-pale); }

/* ── Dropdowns — click-based ── */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 6px);
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease;
  transform: translateY(-6px);
  z-index: 1000;
}
.nav-dropdown.open {
  opacity: 1; pointer-events: all; visibility: visible; transform: translateY(0);
}

/* Single-col dropdown */
.nav-dropdown.single {
  left: 50%; min-width: 190px;
  transform: translateX(-50%) translateY(-6px);
}
.nav-dropdown.single.open { transform: translateX(-50%) translateY(0); }

/* Two-col mega dropdown */
.nav-dropdown.mega { left: 0; min-width: 360px; }
.nav-dropdown.mega-right { left: auto; right: 0; min-width: 360px; }

.nav-dropdown-inner {
  background: white; border: 1px solid var(--gray-200);
  border-radius: 14px; padding: 8px;
  box-shadow: 0 12px 40px rgba(11,31,58,0.13);
}
.nav-dropdown.mega .nav-dropdown-inner,
.nav-dropdown.mega-right .nav-dropdown-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}

.nav-dropdown a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-mid);
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown a:hover { background: var(--blue-pale); color: var(--blue); }
.nav-dropdown a svg { flex-shrink: 0; opacity: 0.65; }
.nav-dropdown a:hover svg { opacity: 1; }

/* Trigger active state */
.nav-link.dd-open { color: var(--blue) !important; background: var(--blue-pale) !important; }

/* CTA button */
.nav-cta { margin-left: 10px; flex-shrink: 0; }

/* ── Hamburger ── */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; cursor: pointer; padding: 6px; border-radius: 8px;
}
.hamburger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.25s; display: block; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu ── */
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: white; z-index: 998;
  padding: 80px 0 40px; flex-direction: column; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 15px; font-weight: 600; color: var(--text);
  padding: 13px 28px; border-bottom: 1px solid var(--gray-100);
  text-decoration: none; display: block;
}
.mobile-menu a:hover { color: var(--blue); background: var(--blue-pale); }
.mobile-menu .mob-section {
  font-size: 10px; font-weight: 800; color: var(--text-muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 18px 28px 6px; border-bottom: none;
}
.mobile-menu .mob-section:hover { background: none; color: var(--text-muted); }
.mobile-menu .mob-sub {
  padding-left: 40px; font-size: 13.5px; color: var(--text-mid);
}
.mobile-menu .mob-cta {
  margin: 20px 28px 0;
  background: var(--blue); color: white; text-align: center;
  padding: 14px; border-radius: 10px; font-weight: 800;
  border-bottom: none; font-size: 14px;
}
.mobile-menu .mob-cta:hover { background: var(--blue-mid); color: white; }

/* ── Breakpoints ── */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (min-width: 1081px) {
  .mobile-menu { display: none !important; }
  .hamburger { display: none !important; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 56px; align-items: start;
}
.footer-brand { max-width: 280px; }
.footer-logo {
  font-family: 'Manrope', sans-serif; font-weight: 900; font-size: 22px;
  color: white; letter-spacing: -0.03em; margin-bottom: 14px;
}
.footer-logo span { color: var(--green); }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.8; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5);
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); color: white; }
.footer-col h5 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 18px;
}
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.6);
  margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 22px 0; display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.28); }
.footer-bottom a { font-size: 13px; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--green); }

/* ============================================================
   HERO COMMON
   ============================================================ */
.hero-inner {
  background: linear-gradient(145deg, var(--navy) 0%, var(--blue-deep) 55%, #0e3a6a 100%);
  position: relative; overflow: hidden;
}
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(36,114,212,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,114,212,0.07) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}

/* ============================================================
   PAGE-HERO banner (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(145deg, var(--navy), var(--blue-deep));
  padding: 140px 0 80px; position: relative; overflow: hidden;
}
.page-hero .hero-grid-lines { opacity: 1; }
.page-hero h1 { font-size: clamp(2.2rem,4vw,3.2rem); color: white; margin-bottom: 16px; }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.55); max-width: 560px; line-height: 1.75; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- Tablet (≤900px) ---- */

/* Hamburger X animation */
.hamburger.active span:nth-child(1){transform:rotate(45deg) translate(5px,5px);}
.hamburger.active span:nth-child(2){opacity:0;transform:translateX(-8px);}
.hamburger.active span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px);}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }
  .section { padding: 72px 0; }
  .container { padding: 0 20px; }

  /* Page hero */
  .page-hero { padding: 110px 0 56px; }
  .page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .stat-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 18px 12px; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1) !important; }

  /* Hero content */
  .hero-content { grid-template-columns: 1fr !important; gap: 40px; }
  .hero-right, .hero-visual { display: none; }

  /* Common grids */
  .services-grid { grid-template-columns: 1fr 1fr !important; }
  .tgrid { grid-template-columns: 1fr 1fr !important; }
  .values-grid { grid-template-columns: 1fr 1fr !important; }
  .team-grid { grid-template-columns: 1fr 1fr !important; }
  .process-grid { grid-template-columns: 1fr 1fr !important; }
  .why-grid { grid-template-columns: 1fr 1fr !important; }
  .what-grid { grid-template-columns: 1fr 1fr !important; }
  .port-grid { grid-template-columns: 1fr 1fr !important; }
  .pkg-grid { grid-template-columns: 1fr 1fr !important; }
  .tech-grid { grid-template-columns: repeat(3, 1fr) !important; }

  /* Contact form */
  .form-row { grid-template-columns: 1fr !important; }

  /* CTA band */
  .cta-band { padding: 60px 0; }
}

/* ---- Mobile (≤600px) ---- */
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
  .section { padding: 52px 0; }
  .section-sm { padding: 38px 0; }
  .container { padding: 0 16px; }

  /* Typography */
  h2 { font-size: 1.55rem !important; }
  h3 { font-size: 1.15rem !important; }

  /* Buttons */
  .btn { font-size: 14px; padding: 11px 20px; }

  /* Page hero */
  .page-hero { padding: 96px 0 44px; }
  .page-hero h1 { font-size: 1.8rem !important; }
  .page-hero p { font-size: .93rem; }

  /* Hero */
  .hero { padding: 100px 0 56px; }

  /* Stats — keep 2 col */
  .stats-grid { grid-template-columns: 1fr 1fr !important; }

  /* All major grids → 1 col */
  .services-grid { grid-template-columns: 1fr !important; }
  .tgrid { grid-template-columns: 1fr !important; }
  .values-grid { grid-template-columns: 1fr 1fr !important; }
  .team-grid { grid-template-columns: 1fr 1fr !important; }
  .process-grid { grid-template-columns: 1fr !important; }
  .why-grid { grid-template-columns: 1fr !important; }
  .what-grid { grid-template-columns: 1fr !important; }
  .port-grid { grid-template-columns: 1fr !important; }
  .pkg-grid { grid-template-columns: 1fr !important; }
  .tech-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .milestone-grid { grid-template-columns: 1fr !important; }

  /* Contact form */
  .form-row { grid-template-columns: 1fr !important; }

  /* Cards */
  .card { padding: 18px; }

  /* Tag */
  .tag { font-size: 10px; padding: 4px 11px; }

  /* CTA */
  .cta-band { padding: 44px 0; }
  .cta-band h2 { font-size: 1.55rem; }
  .cta-band p { font-size: .9rem; }

  /* Pricing badge */
  .pkg-card.featured::before { font-size: 9px; padding: 3px 30px; }
}
