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

:root {
  --green: #2ECC91;
  --navy: #1A3A8F;
  --navy-dark: #102766;
  --navy-light: #254bba;
  --white: #ffffff;
  --off-white: #f5f7fb;
  --gray: #6b7280;
  --text: #111827;
  --border: #e5e7eb;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Outfit', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0;
}

nav {
  position: fixed;
  top: 16px;
  left: 24px;
  right: 24px;
  z-index: 1000;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  overflow: visible;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 100%);
  backdrop-filter: blur(24px) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -1px 0 rgba(0,0,0,0.06), 0 12px 40px rgba(0,0,0,0.20);
}
nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 30% 0%, rgba(255,255,255,0.12), transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 100%, rgba(46,204,145,0.06), transparent 70%);
}
nav > * { position: relative; z-index: 1; }
nav.scrolled {
  background: linear-gradient(180deg, rgba(8,15,42,0.55) 0%, rgba(8,15,42,0.40) 100%);
  backdrop-filter: blur(28px) saturate(180%) brightness(1.02);
  -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(1.02);
}
.nav-logo { display: flex; align-items: center; overflow: visible; }
.nav-logo img { height: 56px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}
.nav-links a {
  color: rgba(255,255,255,0.92);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }
.nav-cta {
  background: var(--green);
  color: var(--navy-dark) !important;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700 !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: #27b87e !important; transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: white; border-radius: 2px; transition: 0.3s; }
.mobile-nav {
  display: none;
  position: fixed;
  top: 92px;
  left: 24px;
  right: 24px;
  z-index: 999;
  flex-direction: column;
  gap: 20px;
  padding: 20px 28px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  background: rgba(8,15,42,0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-nav a:last-child { border-bottom: none; }

.page-hero-wrapper {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--navy-dark);
}
.page-hero-wrapper img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.page-hero-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(8,15,42,0.82) 0%, rgba(16,39,102,0.62) 52%, rgba(8,15,42,0.38) 100%);
}
.page-hero-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: 620px;
  padding: 150px 0 86px;
  color: var(--white);
  background: transparent !important;
}
.hero .container { max-width: 1160px; }
.tag,
.small,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.tag::before,
.small::before,
.section-tag::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--green);
}
.hero h1 {
  max-width: 780px;
  margin: 0 0 22px;
  color: var(--white);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: pretty;
}
.hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 17px;
  line-height: 1.75;
}

.section,
.content {
  padding: 92px 0;
  background: var(--off-white);
}
.section-title,
.card h2,
h2.section-title {
  margin: 0 0 14px;
  color: var(--navy-dark);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}
.section-sub {
  max-width: 660px;
  margin: 0 0 36px;
  color: var(--gray);
  font-size: 17px;
  line-height: 1.7;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.content .grid { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); }
body.blog-overview .content .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
body.blog-overview .content .card {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}
body.blog-overview .content .blog-overview-card {
  cursor: pointer;
  text-decoration: none;
}
body.blog-overview .content .card h3 {
  font-size: 18px;
  line-height: 1.28;
}
body.blog-overview .content .card p {
  font-size: 13px;
  line-height: 1.58;
}
.card,
.blog-card,
.faq-item {
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(16,39,102,0.06);
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 32px;
  color: inherit;
}
.service-overview-card { display: block; cursor: pointer; }
.card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.card:hover::after { transform: scaleX(1); }
.card h3 {
  margin: 0 0 12px;
  color: var(--navy-dark);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
}
.card p,
.card li {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
}
.card ul { margin: 16px 0 0 20px; padding: 0; }
.link,
.blog-card a:not(.service-pill),
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
}
.link:hover,
.blog-card a:hover { color: var(--green); }
.cta,
.btn-primary {
  margin-top: 22px;
  padding: 14px 28px;
  border-radius: 50px;
  background: var(--green);
  color: var(--navy-dark) !important;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s;
}
.cta:hover,
.btn-primary:hover { background: #27b87e; transform: translateY(-2px); }

.faq-item {
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.9);
}
.faq-item h3 {
  margin: 0 0 6px;
  color: var(--navy-dark);
  font-size: 16px;
  font-weight: 800;
}
.faq-item p {
  margin: 0;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.65;
}
.blog-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.blog-card {
  display: block;
  border-radius: 14px;
  padding: 18px;
  background: var(--off-white);
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.blog-card:hover {
  background: var(--white);
  border-color: rgba(46,204,145,0.35);
  transform: translateY(-2px);
}
.blog-card h3 { font-size: 17px; }
.blog-card p { margin-bottom: 10px; font-size: 14px; }
.service-pill {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 50px;
  background: rgba(46,204,145,0.11);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.article-card {
  max-width: 860px;
  margin: 0 auto;
}
.article-card h2 { margin-top: 28px; font-size: 26px; }
.related-service {
  display: block;
  margin-bottom: 24px;
  padding: 22px 24px;
  border: 1px solid rgba(46,204,145,0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16,39,102,0.96), rgba(26,58,143,0.92));
  color: var(--white);
}
.related-service strong { display: block; margin-bottom: 4px; color: var(--green); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; }
.related-service span { display: block; color: rgba(255,255,255,0.82); }

footer {
  background: #080f2a;
  color: rgba(255,255,255,0.68);
  padding: 38px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
footer a { color: var(--green); }

@media (max-width: 1040px) {
  .nav-links { gap: 22px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid,
  .content .grid { grid-template-columns: 1fr; }
  body.blog-overview .content .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.blog-overview .content .card { aspect-ratio: auto; min-height: 260px; }
  .page-hero-wrapper,
  .hero { min-height: 540px; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  nav {
    left: 0;
    right: 0;
    top: 0;
    height: 64px;
    padding: 0 20px;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
    background: rgba(8,15,42,0.96);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  }
  .nav-logo img { height: 48px; }
  .mobile-nav { top: 64px; left: 0; right: 0; border-radius: 0 0 20px 20px; }
  .page-hero-wrapper,
  .hero { min-height: 500px; }
  .hero { padding: 100px 0 58px; }
  .hero h1 { font-size: clamp(30px, 9vw, 42px); }
  .hero p { font-size: 15px; }
  .section,
  .content { padding: 64px 0; }
  .card { padding: 24px 20px; }
  body.blog-overview .content .grid { grid-template-columns: 1fr; }
  body.blog-overview .content .card { min-height: 230px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
