:root{
  --ds-blue:#012169;
  --ds-red:#C8102E;
  --ds-accent:#0066cc;
  --text:#0b0f1a;
  --muted:#4a5568;
  --bg:#ffffff;
  --card:#f6f7fa;
  --border:rgba(11,15,26,.12);
  --shadow:0 10px 24px rgba(11,15,26,.08);
  --shadow-lg:0 20px 60px rgba(11,15,26,.12);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Helvetica,Arial;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
  overflow-x:hidden;
}
/* Prevent CLS by respecting image dimensions */
img{max-width:100%;height:auto;display:block}
/* Reserve space for images with dimensions to prevent layout shift */
img[width][height]{height:auto}
a{color:inherit;transition:opacity 0.3s ease;will-change:opacity}

/* Heading styles - explicit font-size to avoid deprecated user-agent behavior */
h1{font-size:2em;font-weight:bold;margin:0.67em 0}

.container{max-width:1200px;margin:0 auto;padding:0 24px}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--border)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand img{width:36px;height:36px;border-radius:8px;border:1px solid var(--border);background:#fff;object-fit:contain}
.brand span{font-weight:800;letter-spacing:.2px}

.nav-links{display:flex;align-items:center;gap:16px}
.nav-links a{color:var(--text);font-weight:500;padding:8px 12px;border-radius:6px;transition:opacity 0.2s ease;will-change:opacity}
.nav-links a:hover,.nav-links a.active{background:var(--card);color:var(--primary)}

.nav-item{position:relative}
.nav-item:hover .submenu{opacity:1;visibility:visible;transform:translateY(0)}
.submenu{position:absolute;top:100%;left:0;min-width:220px;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.1);padding:8px 0;opacity:0;visibility:hidden;transform:translateY(-10px);transition:opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;margin-top:4px;z-index:100;will-change:transform, opacity}
.submenu a{display:block;padding:10px 16px;color:var(--text);font-weight:500;font-size:14px;white-space:nowrap;transition:opacity 0.2s ease;will-change:opacity}
.submenu a:hover{background:var(--card);color:var(--primary)}

.nav-cta{padding:10px 12px;border-radius:10px;border:1px solid rgba(1,33,105,.28);background:var(--ds-blue);color:#fff;text-decoration:none;font-weight:800}
.nav-cta:hover{filter:brightness(1.02)}

.burger{display:none;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:44px;height:44px;border-radius:12px;border:1px solid var(--border);background:#fff;cursor:pointer;transition:opacity 0.3s ease;will-change:opacity}
.burger:hover{background:var(--card);border-color:var(--ds-blue)}
.burger span{display:block;width:22px;height:2.5px;background:var(--ds-blue);border-radius:2px;transition:transform 0.3s ease, opacity 0.3s ease;will-change:transform, opacity}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}

.mobile-drawer{display:none;border-top:1px solid var(--border);padding:16px 0;background:rgba(246,247,250,0.95);backdrop-filter:blur(10px);animation:slideDown 0.3s ease;max-height:calc(100vh - 80px);overflow-y:auto;-webkit-overflow-scrolling:touch}
.mobile-drawer a{display:block;padding:14px 12px;text-decoration:none;font-weight:600;color:var(--text);border-radius:8px;margin:4px 0;transition:transform 0.2s ease, opacity 0.2s ease;will-change:transform, opacity}
.mobile-drawer a:hover,.mobile-drawer a:active{background:var(--card);color:var(--ds-blue);transform:translateX(4px)}
.mobile-drawer .service-group{margin-left:12px;padding-left:12px;border-left:2px solid var(--border)}
.mobile-drawer .service-group a{padding:12px;font-weight:500;font-size:0.95em;color:var(--muted)}
.mobile-drawer .service-group a:hover,.mobile-drawer .service-group a:active{color:var(--ds-blue)}
.mobile-drawer .menu-section{font-size:0.75em;text-transform:uppercase;font-weight:700;color:var(--muted);padding:8px 12px;margin-top:12px;letter-spacing:0.5px}

@keyframes slideDown{
  from{opacity:0;transform:translateY(-10px)}
  to{opacity:1;transform:translateY(0)}
}

/* Hero Banner */
.hero{
  position:relative;
  min-height:600px;
  height:min(100vh, 900px);
  display:flex;
  align-items:center;
  justify-content:center;
  background-color:#012169;
  color:#fff;
  text-align:center;
  padding:120px 24px 80px;
  overflow:hidden;
  contain:layout style paint;
}

.hero-bg{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
}

.hero-bg img{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  max-width:none;
  pointer-events:none;
}

.hero-overlay{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:linear-gradient(rgba(1,33,105,.85), rgba(1,33,105,.75));
  z-index:1;
  pointer-events:none;
  will-change:auto;
  contain:strict;
}

.hero-content{
  max-width:900px;
  margin:0 auto;
  position:relative;
  z-index:2;
  /* Reserve space to prevent layout shift */
  min-height:280px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:20px 0;
}

.hero .kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.15);
  backdrop-filter:blur(10px);
  color:#fff;
  font-weight:700;
  font-size:14px;
  margin-bottom:20px;
  border:1px solid rgba(255,255,255,.2);
}

.hero .kicker i{
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--ds-red);
  animation:pulse 2s ease-in-out infinite;
}

@keyframes pulse{
  0%, 100%{opacity:1;transform:scale(1)}
  50%{opacity:.7;transform:scale(1.2)}
}

.hero h1{
  font-size:56px;
  line-height:1.15;
  margin:0 0 24px;
  font-weight:900;
  color:#fff;
  text-shadow:0 4px 12px rgba(0,0,0,.3);
}

.hero .lead{
  font-size:20px;
  color:rgba(255,255,255,.95);
  margin:0 0 32px;
  line-height:1.6;
  text-shadow:0 2px 8px rgba(0,0,0,.2);
}

.btn-row{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  justify-content:center;
  margin-top:32px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 28px;
  border-radius:12px;
  text-decoration:none;
  font-weight:700;
  font-size:16px;
  border:2px solid transparent;
  transition:transform 0.3s ease, opacity 0.3s ease;will-change:transform, opacity;
  cursor:pointer;
}

.btn-primary{
  background:#fff;
  color:var(--ds-blue);
  border-color:#fff;
}

.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(255,255,255,.3);
}

.btn-ghost{
  background:transparent;
  color:#fff;
  border-color:rgba(255,255,255,.5);
}

.btn-ghost:hover{
  background:rgba(255,255,255,.15);
  border-color:#fff;
}

/* Sections */
.section{
  padding:80px 0;
  position:relative;
}

.section-light{
  background:#fff;
}

.section-dark{
  background:linear-gradient(135deg, #f6f7fa 0%, #e9ecef 100%);
}

.section-title{
  font-size:42px;
  margin:0 0 16px;
  font-weight:800;
  text-align:center;
}

.section-sub{
  margin:0 0 48px;
  color:var(--muted);
  font-size:18px;
  text-align:center;
  max-width:700px;
  margin-left:auto;
  margin-right:auto;
}

/* Parallax Section */
.parallax-section{
  position:relative;
  min-height:500px;
  display:flex;
  align-items:center;
  justify-content:center;
  background-attachment:scroll;
  background-size:cover;
  background-position:center;
  color:#fff;
  text-align:center;
  padding:100px 24px;
  contain:layout;
}

.parallax-overlay{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:linear-gradient(135deg, rgba(1,33,105,.88), rgba(0,102,204,.85));
  z-index:1;
}

.parallax-content{
  position:relative;
  z-index:2;
  max-width:800px;
}

.parallax-content h2{
  font-size:42px;
  margin:0 0 20px;
  font-weight:800;
  color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,.3);
}

.parallax-content p{
  font-size:18px;
  color:rgba(255,255,255,.95);
  margin:0 0 32px;
  line-height:1.7;
}

/* Grid */
.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
  margin-top:48px;
}

.card{
  border:1px solid var(--border);
  border-radius:20px;
  background:#fff;
  overflow:hidden;
  transition:transform 0.3s ease, opacity 0.3s ease;will-change:transform, opacity;
  box-shadow:0 4px 16px rgba(11,15,26,.06);
}

.card:hover{
  transform:translateY(-8px);
  box-shadow:var(--shadow-lg);
}

.card .thumb{
  width:100%;
  height:220px;
  aspect-ratio:16/9;
  object-fit:cover;
  background:linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card .pad{
  padding:24px;
}

.card h3{
  margin:0 0 12px;
  font-size:22px;
  font-weight:700;
  color:var(--text);
}

.card p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.card .meta{
  margin-top:16px;
  font-size:14px;
  color:var(--ds-accent);
  font-weight:600;
}

/* Feature Section */
.feature-section{
  position:relative;
  padding:80px 0;
}

.feature-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
  margin-top:48px;
}

.feature-image{
  position:relative;
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow-lg);
}

.feature-image img{
  width:100%;
  height:auto;
  display:block;
}

.feature-content h3{
  font-size:32px;
  margin:0 0 20px;
  font-weight:800;
}

.feature-content p{
  font-size:17px;
  color:var(--muted);
  line-height:1.7;
  margin:0 0 24px;
}

.list{
  margin:24px 0 0;
  padding-left:0;
  list-style:none;
}

.list li{
  margin:12px 0;
  padding-left:32px;
  position:relative;
  color:var(--muted);
  line-height:1.6;
}

.list li:before{
  content:'✓';
  position:absolute;
  left:0;
  color:var(--ds-accent);
  font-weight:800;
  font-size:18px;
}

.cta{
  background:linear-gradient(135deg, var(--ds-blue), var(--ds-accent));
  border-radius:24px;
  padding:60px 48px;
  text-align:center;
  color:#fff;
  position:relative;
  overflow:hidden;
  box-shadow:var(--shadow-lg);
}

.cta:before{
  content:'';
  position:absolute;
  top:-50%;
  right:-50%;
  width:200%;
  height:200%;
  background:radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
  animation:rotate 30s linear infinite;
}

@keyframes rotate{
  from{transform:rotate(0deg)}
  to{transform:rotate(360deg)}
}

.cta-content{
  position:relative;
  z-index:2;
}

.cta h2{
  font-size:36px;
  margin:0 0 16px;
  font-weight:800;
  color:#fff;
}

.cta p{
  margin:0 0 32px;
  color:rgba(255,255,255,.95);
  font-size:18px;
  max-width:600px;
  margin-left:auto;
  margin-right:auto;
}

.cta .btn{
  background:#fff;
  color:var(--ds-blue);
  border-color:#fff;
}

.cta .btn:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 32px rgba(0,0,0,.2);
}

/* Footer */
.site-footer{margin-top:24px;border-top:1px solid var(--border);padding:22px 0;color:var(--muted);font-size:14px}
.footer-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:14px}
.footer-links{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end}
.footer-links a{text-decoration:none;opacity:.85}
.footer-links a:hover{opacity:1}

/* Page layout */
.page-hero{padding:28px 0 10px}
.breadcrumb{font-size:14px;color:var(--muted);text-decoration:none}
.page-title{font-size:34px;line-height:1.15;margin:10px 0 8px}

.prose{max-width:860px}
.prose p{color:var(--muted)}
.prose h2{margin:22px 0 10px;font-size:22px}
.prose ul{color:var(--muted)}

.service-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}
.fact{border:1px solid var(--border);border-radius:16px;padding:14px;background:#fff}
.fact strong{display:block;margin-bottom:4px}
.fact span{color:var(--muted);font-size:14px}

@media (max-width: 980px){
  .hero h1{font-size:44px}
  .hero{min-height:500px;height:90vh;padding:100px 24px 60px}
  .hero-content{min-height:280px}
  .section{padding:60px 0}
  .section-title{font-size:36px}
  .grid{grid-template-columns:repeat(2,1fr);gap:24px}
  .feature-grid{grid-template-columns:1fr;gap:40px}
  .footer-grid{grid-template-columns:1fr}
  .footer-links{justify-content:flex-start}
  .parallax-section{min-height:400px;padding:80px 24px}
  .parallax-content h2{font-size:36px}
  .cta{padding:48px 32px}
  .cta h2{font-size:32px}
}

@media (max-width: 720px){
  .nav-links{display:none}
  .burger{display:flex}
  .mobile-drawer{display:none}
  .mobile-drawer.open{display:block}
  
  .hero h1{font-size:36px}
  .hero .lead{font-size:18px}
  .hero{min-height:500px;height:100vh;padding:80px 20px 60px}
  .hero-content{min-height:260px}
  
  .section{padding:48px 0}
  .section-title{font-size:32px}
  .section-sub{font-size:16px;margin-bottom:32px}
  
  .grid{grid-template-columns:1fr;gap:20px}
  .card .thumb{height:180px}
  
  .feature-grid{gap:32px}
  .feature-content h3{font-size:28px}
  .feature-content p{font-size:16px}
  
  .parallax-section{background-attachment:scroll;min-height:350px;padding:60px 20px}
  .parallax-content h2{font-size:32px}
  .parallax-content p{font-size:16px}
  
  .btn-row{flex-direction:column;width:100%}
  .btn{width:100%;justify-content:center}
  
  .cta{padding:40px 24px}
  .cta h2{font-size:28px}
  .cta p{font-size:16px}
  
  .service-facts{grid-template-columns:1fr}
}
