:root {
  --navy: #0b2c5a;
  --navy-dark: #0a2550;
  --blue: #1a8fe3;
  --blue-dark: #0f78c7;
  --text: #3d4a5c;
  --muted: #5d6b7e;
  --bg-soft: #f4f8fc;
  --card-bg: #f3f8fd;
  --border: #e3ecf5;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 44, 90, 0.08);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--navy); margin: 0; line-height: 1.15; }
p { margin: 0; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

.accent { color: var(--blue); }

.eyebrow {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.lead { font-size: 1.05rem; color: var(--text); }

/* Icons */
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 44px; height: 44px; color: var(--blue); }
.arrow { width: 14px; height: 14px; stroke-width: 2; transition: transform .2s; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(26, 143, 227, 0.22); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 34px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(11, 44, 90, 0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 104px; }
.brand img { height: 86px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav > a:not(.btn) {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  padding: 6px 0;
}
.site-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform .2s;
}
.site-nav > a:not(.btn):hover,
.site-nav > a.active { color: var(--blue); }
.site-nav > a:not(.btn):hover::after,
.site-nav > a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 160px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f5f9fd 0%, #fbfdff 100%);
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 60%;
  background: url("assets/hero.jpg") center right / cover no-repeat;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f6fafd 0%, rgba(246, 250, 253, 0.85) 18%, rgba(246, 250, 253, 0) 50%);
}
.hero-content { position: relative; padding-block: 80px; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 800; max-width: 560px; letter-spacing: -0.01em; }
.hero .lead { max-width: 470px; margin-top: 26px; }

/* Features */
.features { background: var(--bg-soft); padding: 72px 0; margin-top: 18px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.feature .icon { margin: 0 auto 22px; }
.feature h3 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.feature p { font-size: 0.9rem; color: var(--muted); max-width: 210px; margin-inline: auto; }

/* Services */
.services { padding: 100px 0; }
.services-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.services-intro h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 700; margin-bottom: 22px; }
.services-intro .lead { margin-bottom: 30px; max-width: 420px; }
.service-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .25s, box-shadow .25s, background .25s;
}
/* An odd card out at the end stretches across both columns */
.card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.card:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow); }
.card .icon { width: 32px; height: 32px; margin-bottom: 18px; }
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 0.88rem; color: var(--muted); }

/* Why choose us */
.why {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #d5deea;
  padding: 80px 0;
}
.why::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -60%;
  width: 70%;
  height: 160%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
}
.why-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.why h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 700; margin-bottom: 22px; }
.why-intro p:not(.eyebrow) { max-width: 440px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 46px 34px; }
.why-list li { display: flex; gap: 16px; align-items: flex-start; }
.why-list h3 { color: #fff; font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; }
.why-list p { font-size: 0.85rem; color: #c4d0df; }
.check {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue);
  display: grid;
  place-items: center;
}
.check svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2.6; }

/* Contact CTA */
.contact { padding: 30px 0; background: #fff; }
.contact-inner { display: flex; align-items: center; gap: 50px; }
.contact-logo { height: 100px; width: auto; padding-right: 50px; border-right: 1px solid var(--border); }
.contact-text { flex: 1; }
.contact-text h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.contact-text p { font-size: 0.92rem; max-width: 300px; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #c4d0df; padding: 26px 0; font-size: 0.78rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.socials { display: flex; gap: 22px; }
.socials a { color: #fff; transition: color .2s; }
.socials a:hover { color: var(--blue); }
.socials svg { width: 20px; height: 20px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .nav-cta { margin-left: 20px; }
}

@media (max-width: 900px) {
  .header-inner { height: 84px; }
  .brand img { height: 66px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    padding: 10px 20px 24px;
    box-shadow: 0 12px 24px rgba(11, 44, 90, 0.1);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .site-nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin: 18px 0 0; }

  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-photo { position: relative; width: 100%; height: 300px; order: -1; }
  .hero-photo::before { background: linear-gradient(0deg, #f6fafd 0%, rgba(246, 250, 253, 0) 40%); }
  .hero-content { padding-block: 30px 60px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 20px; }
  .services-grid, .why-grid { grid-template-columns: 1fr; gap: 44px; }
  .services { padding: 70px 0; }
  .contact-inner { flex-direction: column; text-align: center; gap: 24px; padding-block: 20px; }
  .contact-logo { border-right: 0; padding-right: 0; }
  .contact-text p { margin-inline: auto; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .features-grid, .service-cards, .why-list { grid-template-columns: 1fr; }
  .why-list { gap: 28px; }
  .btn-row .btn { flex: 1; justify-content: center; }
  .footer-inner { flex-direction: column-reverse; text-align: center; }
}
