/* ============ Reset & base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: #1f2937;
  line-height: 1.6;
  background: #ffffff;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ============ Navigation ============ */
.topbar {
  background: #0b1c33;
  color: #cbd5e1;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.topbar a:hover { color: #fff; }

header.nav {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
header.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.brand {
  font-size: 22px; font-weight: 700; color: #0b1c33;
  display: flex; align-items: center; gap: 10px;
}
.brand .logo {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #1e40af, #38bdf8);
  border-radius: 8px;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 16px;
}
nav ul {
  list-style: none; display: flex; gap: 28px;
}
nav a {
  font-weight: 500; color: #1f2937; padding: 6px 0;
  position: relative; transition: color .2s;
}
nav a:hover, nav a.active { color: #1e40af; }
nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: #1e40af; border-radius: 2px;
}
.nav-cta {
  background: #1e40af; color: #fff !important;
  padding: 9px 18px !important; border-radius: 6px;
  transition: background .2s;
}
.nav-cta:hover { background: #1e3a8a; }
.menu-toggle {
  display: none; font-size: 26px; background: none; border: 0; cursor: pointer;
}

/* ============ Hero ============ */
.hero {
  background:
    linear-gradient(135deg, rgba(11,28,51,0.85), rgba(30,64,175,0.7)),
    url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: #fff;
  padding: 110px 0 90px;
}
.hero h1 {
  font-size: 46px; line-height: 1.15; max-width: 800px;
  font-weight: 700; margin-bottom: 18px;
}
.hero p { max-width: 700px; font-size: 18px; opacity: 0.92; margin-bottom: 26px; }
.hero .btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 6px;
  font-weight: 600; transition: transform .15s, background .2s, border-color .2s;
}
.btn-primary { background: #38bdf8; color: #0b1c33; }
.btn-primary:hover { background: #7dd3fc; transform: translateY(-2px); }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: #0b1c33; }

/* ============ Page banner (sub-pages) ============ */
.page-banner {
  background: linear-gradient(135deg, #0b1c33, #1e40af);
  color: #fff; text-align: center;
  padding: 70px 20px;
}
.page-banner h1 { font-size: 38px; margin-bottom: 8px; }
.page-banner p { opacity: 0.85; }

/* ============ Sections ============ */
section { padding: 70px 0; }
.section-head { text-align: center; margin-bottom: 45px; }
.section-head h2 {
  font-size: 32px; color: #0b1c33; margin-bottom: 8px;
  position: relative; display: inline-block;
}
.section-head h2::after {
  content: ""; display: block; width: 50px; height: 3px;
  background: #38bdf8; margin: 12px auto 0; border-radius: 2px;
}
.section-head p { color: #6b7280; max-width: 700px; margin: 0 auto; }

/* ============ Cards / grids ============ */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 28px 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15,23,42,0.08);
  border-color: #38bdf8;
}
.card .icon {
  width: 54px; height: 54px; border-radius: 10px;
  background: linear-gradient(135deg, #1e40af, #38bdf8);
  color: #fff;
  display: grid; place-items: center;
  font-size: 24px; margin-bottom: 16px;
}
.card h3 { color: #0b1c33; margin-bottom: 10px; font-size: 19px; }
.card p { color: #4b5563; font-size: 15px; }

/* ============ About / split ============ */
.split {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center;
}
.split img { border-radius: 10px; box-shadow: 0 18px 36px rgba(15,23,42,0.10); }
.split h2 { color: #0b1c33; font-size: 30px; margin-bottom: 14px; }
.split h2::after {
  content: ""; display: block; width: 50px; height: 3px;
  background: #38bdf8; margin-top: 12px; border-radius: 2px;
}
.split p { color: #4b5563; margin-bottom: 14px; }
.split ul.checks { list-style: none; margin-top: 12px; }
.split ul.checks li {
  padding: 6px 0 6px 28px; position: relative; color: #1f2937;
}
.split ul.checks li::before {
  content: "✓";
  position: absolute; left: 0; top: 6px;
  color: #fff; background: #1e40af;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%; font-size: 12px; font-weight: 700;
}

/* ============ Stats band ============ */
.stats {
  background: linear-gradient(135deg, #0b1c33, #1e3a8a);
  color: #fff; text-align: center;
}
.stats .grid-4 { gap: 30px; }
.stat .num {
  font-size: 42px; font-weight: 800; color: #38bdf8;
  margin-bottom: 6px;
}
.stat .label { opacity: 0.85; letter-spacing: 0.5px; }

/* ============ Service detail block ============ */
.service-block { padding: 40px 0; border-bottom: 1px solid #e5e7eb; }
.service-block:last-child { border-bottom: 0; }
.service-block .split { gap: 40px; }

/* ============ Projects gallery ============ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery .item {
  border-radius: 10px; overflow: hidden;
  position: relative; aspect-ratio: 4/3;
  background: #e5e7eb;
}
.gallery .item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery .item:hover img { transform: scale(1.07); }
.gallery .item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(11,28,51,0.85), transparent);
  color: #fff; padding: 16px 18px;
}
.gallery .item .cap h4 { font-size: 16px; margin-bottom: 2px; }
.gallery .item .cap span { font-size: 12px; opacity: 0.85; }

/* ============ Contact ============ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.contact-card {
  background: #f8fafc; border: 1px solid #e5e7eb;
  border-radius: 10px; padding: 26px;
  margin-bottom: 16px;
}
.contact-card h3 { color: #0b1c33; margin-bottom: 6px; }
.contact-card p { color: #4b5563; margin-bottom: 4px; }
.contact-card .ico {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  background: #e0f2fe; color: #1e40af; border-radius: 8px;
  margin-right: 12px; font-size: 18px;
}
form.contact-form { display: grid; gap: 14px; }
form.contact-form label { font-size: 14px; color: #1f2937; font-weight: 500; }
form.contact-form input,
form.contact-form textarea,
form.contact-form select {
  width: 100%; padding: 11px 14px; border: 1px solid #d1d5db;
  border-radius: 6px; font-size: 14px; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
form.contact-form input:focus,
form.contact-form textarea:focus,
form.contact-form select:focus {
  outline: 0; border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30,64,175,0.15);
}
form.contact-form button {
  background: #1e40af; color: #fff; border: 0;
  padding: 13px 20px; border-radius: 6px; font-size: 15px;
  font-weight: 600; cursor: pointer; transition: background .2s;
}
form.contact-form button:hover { background: #1e3a8a; }

/* ============ CTA band ============ */
.cta-band {
  background: linear-gradient(135deg, #1e40af, #38bdf8);
  color: #fff; padding: 55px 20px; text-align: center;
}
.cta-band h2 { font-size: 28px; margin-bottom: 8px; }
.cta-band p { margin-bottom: 22px; opacity: 0.95; }

/* ============ Footer ============ */
footer {
  background: #0b1c33; color: #cbd5e1;
  padding: 55px 0 0;
}
footer .grid-4 { gap: 40px; }
footer h4 { color: #fff; margin-bottom: 14px; font-size: 16px; }
footer ul { list-style: none; }
footer li { padding: 4px 0; }
footer a:hover { color: #38bdf8; }
footer p { font-size: 14px; line-height: 1.7; }
.copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px; padding: 18px 0;
  text-align: center; font-size: 13px;
}

/* ============ Responsive ============ */
@media (max-width: 880px) {
  nav ul { display: none; }
  nav ul.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 14px 22px;
    border-top: 1px solid #e5e7eb; gap: 14px;
  }
  .menu-toggle { display: block; color: #0b1c33; }
  .hero h1 { font-size: 32px; }
  .hero { padding: 70px 0 60px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .gallery { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .page-banner h1 { font-size: 28px; }
}
