/* ─── VARIABLES ──────────────────────────────── */
:root {
  --blue:       #1a6fc4;
  --blue-dark:  #0f4f91;
  --blue-mid:   #1558a0;
  --teal:       #17a6a6;
  --teal-dark:  #0d8080;
  --white:      #ffffff;
  --off-white:  #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-400:   #94a3b8;
  --gray-600:   #475569;
  --gray-900:   #0f172a;
  --r:          14px;
  --r-lg:       20px;
  --shadow:     0 2px 20px rgba(15,79,145,.08);
  --shadow-hover:0 12px 40px rgba(15,79,145,.18);
  --nav-h:      72px;  /* kept for mobile fallback */
  --nav-w:      230px; /* sidebar width */
}

/* ─── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ─── TYPOGRAPHY ─────────────────────────────── */
body {
  font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  margin-left: var(--nav-w); /* offset for fixed sidebar */
}

/* ─── PAGE TRANSITION ────────────────────────── */
body { opacity: 0; transition: opacity .45s ease; }
body.loaded { opacity: 1; }

/* ─── SIDEBAR NAV ────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--nav-w);
  z-index: 999;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  box-shadow: 4px 0 24px rgba(15,79,145,.07);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
}
/* Gradient accent line on right edge */
nav::after {
  content: '';
  position: absolute;
  top: 15%; right: 0; bottom: 15%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(26,111,196,.3), rgba(23,166,166,.3), transparent);
  border-radius: 2px;
}

.nav-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 16px 24px;
  gap: 0;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  padding: 0 6px;
  margin-bottom: 36px;
  flex-shrink: 0;
}
.nav-logo img { height: 46px; object-fit: contain; width: 100%; }

/* Nav section label */
.nav-section-label {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gray-400);
  padding: 0 12px;
  margin-bottom: 8px;
}

/* Link list — stacked column */
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-600);
  border: 1.5px solid transparent;
  background: transparent;
  transition: color .22s, background .22s, border-color .22s, box-shadow .22s, transform .18s;
  width: 100%;
}
.nav-links a::after { display: none; }

.nav-links a:hover {
  color: var(--blue);
  background: linear-gradient(135deg, rgba(26,111,196,.07), rgba(23,166,166,.06));
  border-color: rgba(26,111,196,.18);
  transform: translateX(3px);
}
.nav-links a.active {
  color: var(--blue);
  background: linear-gradient(135deg, rgba(26,111,196,.12), rgba(23,166,166,.1));
  border-color: rgba(26,111,196,.28);
  box-shadow: 0 2px 12px rgba(26,111,196,.1);
}

/* Icon inside each button */
.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .55;
  transition: opacity .22s, transform .22s;
}
.nav-icon svg { width: 18px; height: 18px; }
.nav-links a:hover .nav-icon,
.nav-links a.active .nav-icon {
  opacity: 1;
  transform: scale(1.1);
}
.nav-links a.active .nav-icon svg { stroke: var(--blue); }

/* Nav label text */
.nav-label { flex: 1; }

/* ── CTA at bottom of sidebar ── */
.nav-cta-wrap {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
  flex-shrink: 0;
}
.nav-cta {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  width: 100%;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  font-size: .875rem !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(26,111,196,.35) !important;
  position: relative;
  overflow: hidden;
  transition: transform .22s, box-shadow .22s, opacity .22s !important;
}
.nav-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  animation: cta-shimmer 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cta-shimmer {
  0%       { left: -100%; }
  45%, 100% { left: 160%; }
}
.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 26px rgba(26,111,196,.48) !important;
}
.nav-cta .nav-icon { opacity: 1 !important; transform: none !important; }
.nav-cta .nav-icon svg { stroke: rgba(255,255,255,.85); }

/* ── Mobile burger (fixed top-left in content area) ── */
.burger {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1001;
  flex-direction: column;
  gap: 5px;
  padding: 9px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.burger span {
  display: block; width: 18px; height: 2px;
  background: var(--gray-900); border-radius: 2px;
  transition: .28s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,20,40,.45);
  z-index: 998;
  backdrop-filter: blur(2px);
}
.nav-overlay.show { display: block; }

/* ─── SECTION UTILITY ────────────────────────── */
.section { padding: 96px 40px; }
.section-sm { padding: 64px 40px; }
.inner { max-width: 1200px; margin: 0 auto; }
.tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(26,111,196,.1), rgba(23,166,166,.1));
  color: var(--blue);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  border: 1px solid rgba(26,111,196,.15);
}
.h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
.h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.h3 { font-size: 1.1rem; font-weight: 700; }
.sub { color: var(--gray-600); max-width: 500px; font-size: 1rem; line-height: 1.7; margin-top: 14px; }

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(26,111,196,.3);
}
.btn-blue:hover { background: var(--blue-dark); box-shadow: 0 8px 24px rgba(26,111,196,.4); }
.btn-ghost {
  background: transparent;
  color: var(--gray-900);
  border: 1.5px solid var(--gray-200);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); box-shadow: 0 4px 16px rgba(26,111,196,.08); }
.btn-white {
  background: var(--white);
  color: var(--blue-dark);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.btn-white:hover { box-shadow: 0 8px 28px rgba(0,0,0,.2); }

/* ─── REVEAL ANIMATION ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ─── FOOTER ─────────────────────────────────── */
footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 60px 40px 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img {
  height: 46px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.35);
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .88rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-phone { color: rgba(255,255,255,.6) !important; font-weight: 600; font-size: .85rem !important; }
.footer-phone:hover { color: var(--white) !important; }

/* ─── CTA STRIP ──────────────────────────────── */
.cta-strip {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue) 50%, var(--teal));
  color: var(--white);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(23,166,166,.3) 0%, transparent 60%);
}
.cta-strip .inner { position: relative; }
.cta-strip .h2 { color: var(--white); margin-bottom: 10px; }
.cta-strip p { color: rgba(255,255,255,.8); margin-bottom: 36px; font-size: 1.05rem; }
.cta-strip .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── PAGE HEADER ────────────────────────────── */
.page-header {
  padding: 72px 40px 72px;
  background: linear-gradient(160deg, var(--off-white) 60%, var(--gray-100));
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gray-200);
}
.page-header-deco {
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,111,196,.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── FORM STYLES ────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r);
  font-family: inherit;
  font-size: .95rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,111,196,.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .section { padding: 72px 24px; }
  .section-sm { padding: 48px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .page-header { padding: 56px 24px 56px; }
}

/* ── Sidebar collapses on mobile ── */
@media (max-width: 768px) {
  body { margin-left: 0; }
  nav {
    transform: translateX(calc(-1 * var(--nav-w)));
    box-shadow: none;
  }
  nav.open {
    transform: translateX(0);
    box-shadow: 6px 0 32px rgba(15,79,145,.15);
  }
  .burger { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .cta-strip { padding: 64px 24px; }
  footer { padding: 48px 24px 28px; }
  .section { padding: 60px 20px; }
}

/* ─── KEYFRAMES ──────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse-ring {
  0% { transform: scale(.8); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
