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

:root {
  --blue: #06549d;
  --blue-dark: #044080;
  --text: #1a1a2e;
  --muted: #555;
  --light: #f4f7fb;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(6,84,157,.12);
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

header {
  background: var(--white);
  border-bottom: 1px solid #e0e8f4;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(6,84,157,.08);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  padding: 14px 20px;
}
.nav-logo img { height: 52px; }

nav a {
  color: var(--text); font-weight: 500; font-size: 15px;
  transition: color .2s;
}
nav a:hover, nav a.active { color: var(--blue); text-decoration: none; }
.nav-cta {
  background: var(--blue); color: var(--white) !important;
  padding: 9px 20px; border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--blue-dark); }

.hero {
  background: linear-gradient(135deg, var(--blue) 0%, #0a7ad4 100%);
  color: var(--white);
  padding: 80px 20px;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.25; margin-bottom: 20px; }
.hero p { font-size: 1.1rem; opacity: .92; margin-bottom: 32px; }
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px;
  border-radius: var(--radius); font-weight: 600; font-size: 15px;
  cursor: pointer; transition: all .2s; white-space: nowrap;
  text-decoration: none !important;
}
.btn-white { background: var(--white); color: var(--blue); border: 2px solid var(--white); }
.btn-white:hover { background: #e8f0fb; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-blue { background: var(--blue); color: var(--white); border: 2px solid var(--blue); }
.btn-blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.hero-img img { border-radius: 14px; box-shadow: 0 8px 40px rgba(0,0,0,.25); }

section { padding: 70px 20px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  color: var(--blue); font-weight: 700; margin-bottom: 10px;
}
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 700; margin-bottom: 16px; }
.section-intro { max-width: 720px; color: var(--muted); font-size: 1.05rem; margin-bottom: 48px; }

.services { background: var(--light); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.card {
  background: var(--white); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
}
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.card-body h3 { font-size: 1.2rem; }
.card-body p { color: var(--muted); flex: 1; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.feature {
  background: var(--light); border-radius: 12px;
  padding: 32px 28px;
}
.feature-icon { font-size: 2.2rem; margin-bottom: 14px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: .97rem; }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.info-block h3 { font-size: 1rem; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.info-block p, .info-block a { color: var(--muted); font-size: .97rem; }

.form-card {
  background: var(--white); border-radius: 14px;
  box-shadow: var(--shadow); padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-weight: 600; font-size: .9rem; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 11px 14px;
  border: 1.5px solid #d0dcea;
  border-radius: var(--radius);
  font-size: 15px; font-family: inherit;
  transition: border-color .2s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--blue);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  width: 100%; padding: 14px;
  background: var(--blue); color: var(--white);
  border: none; border-radius: var(--radius);
  font-size: 16px; font-weight: 700;
  cursor: pointer; transition: background .2s;
}
.btn-submit:hover { background: var(--blue-dark); }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 12px; text-align: center; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert-error { background: #fdecea; color: #c62828; border: 1px solid #ef9a9a; }

.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #0a7ad4 100%);
  color: var(--white); text-align: center;
  padding: 60px 20px;
}
.page-hero h1 { font-size: clamp(1.6rem,3vw,2.4rem); margin-bottom: 12px; }
.page-hero p { opacity: .9; max-width: 600px; margin: 0 auto; }

footer {
  background: #0d1b2a; color: #a8b8cc;
  padding: 50px 20px 24px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px;
  margin-bottom: 36px;
}
.footer-brand img { height: 44px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .9rem; line-height: 1.6; }
footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 14px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul a { color: #a8b8cc; font-size: .9rem; transition: color .2s; }
footer ul a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #1e3048;
  padding-top: 20px; text-align: center;
  font-size: .82rem; color: #6a7f96;
}

.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text);
  position: absolute; left: 8px;
  transition: transform .3s, opacity .3s;
}
.hamburger span:nth-child(1) { top: 10px; }
.hamburger span:nth-child(2) { top: 17px; }
.hamburger span:nth-child(3) { top: 24px; }
.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); }

/* ── DESKTOP NAV (absolutely in header row) ── */
header { position: relative; }

#nav-dropdown {
  position: absolute;
  top: 50%; right: max(20px, calc((100vw - 1100px) / 2 + 20px));
  transform: translateY(-50%);
}
#nav-dropdown ul {
  list-style: none;
  display: flex; flex-direction: row;
  gap: 28px; align-items: center;
}
#nav-dropdown a {
  color: var(--text); font-weight: 500; font-size: 15px;
  transition: color .2s; white-space: nowrap;
}
#nav-dropdown a:hover,
#nav-dropdown a.active { color: var(--blue); text-decoration: none; }
#nav-dropdown .nav-cta {
  background: var(--blue); color: var(--white) !important;
  padding: 9px 20px; border-radius: var(--radius);
  font-weight: 600;
}
#nav-dropdown .nav-cta:hover { background: var(--blue-dark); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }

  /* Compact header on mobile */
  .nav-inner { padding: 10px 16px; }
  .nav-logo img { height: 42px; }

  /* Show hamburger */
  .hamburger { display: flex; flex-direction: column; justify-content: center; }

  /* Slide-down nav panel */
  #nav-dropdown {
    position: static;
    transform: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height .4s cubic-bezier(.4,0,.2,1);
    background: #fff;
    width: 100%;
  }
  #nav-dropdown.open {
    max-height: 600px;
    border-top: 1px solid #eef2f8;
    box-shadow: 0 8px 24px rgba(6,84,157,.10);
  }
  #nav-dropdown ul {
    flex-direction: column; gap: 0;
    width: 100%; padding: 4px 0 8px;
  }
  #nav-dropdown li { width: 100%; }
  #nav-dropdown a {
    display: block;
    padding: 8px 16px;
    font-size: 14px; font-weight: 500;
    color: #333;
    letter-spacing: .01em;
    transition: color .15s, background .15s;
  }
  #nav-dropdown a:hover { color: var(--blue); background: #f4f7fb; }
  #nav-dropdown a.active { color: var(--blue); font-weight: 600; }
  /* CTA as pill button, centered */
  #nav-dropdown .nav-cta {
    margin: 6px 16px 4px;
    padding: 9px 20px;
    border-radius: 6px;
    text-align: center;
    display: block;
    background: var(--blue);
    color: #fff !important;
    font-weight: 600;
    width: calc(100% - 32px);
  }
  #nav-dropdown .nav-cta:hover { background: var(--blue-dark); }
}
