:root {
  --navy: #17365d;
  --navy-deep: #102743;
  --sky: #31b2ed;
  --ink: #243140;
  --muted: #5c6b7a;
  --line: #d7e2ec;
  --paper: #f4f8fb;
  --white: #fff;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Lato, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--sky); }
a:hover { color: var(--navy); }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
}
.skip:focus { left: 0; z-index: 5; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 0;
}
.brand { text-decoration: none; color: var(--navy); display: block; }
.brand img { display: block; height: 84px; width: auto; }
.brand-text {
  font-family: "Titillium Web", Lato, sans-serif;
  font-size: 2.4rem;
  letter-spacing: 0.02em;
  color: var(--sky);
  line-height: 1;
}
.tagline {
  margin: 0.35rem 0 0;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.92rem;
}
.header-contact {
  margin: 0;
  text-align: right;
  color: #667;
  font-family: Arial, sans-serif;
  line-height: 1.45;
}
.header-contact a { font-weight: 700; text-decoration: none; }

.nav-bar { background: var(--navy); }
.nav-row { display: flex; align-items: center; }
.menu-toggle {
  display: none;
  margin: 0.6rem 0;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.45);
  padding: 0.45rem 0.8rem;
  font: inherit;
  cursor: pointer;
}
.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.2rem;
  margin: 0;
  padding: 0;
}
.menu a {
  display: block;
  color: var(--sky);
  text-decoration: none;
  padding: 0.85rem 0.7rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.menu a[aria-current="page"],
.menu a:hover { color: var(--white); }
.menu li { position: relative; }
.menu .sub {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background: var(--navy-deep);
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  z-index: 4;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.menu li:hover > .sub,
.menu li:focus-within > .sub { display: block; }
.menu .sub a { padding: 0.55rem 1rem; white-space: nowrap; }
.menu .sub .sub { left: 100%; top: 0; }

.hero-line {
  margin: 0;
  padding: 1.4rem 1rem 0.4rem;
  text-align: center;
  color: var(--navy);
  font-family: "Titillium Web", Lato, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
}
.slider { position: relative; background: #0d2238; }
.slides { position: relative; min-height: 220px; }
.slide {
  display: none;
  margin: 0;
}
.slide.is-active { display: block; }
.slide img { display: block; width: 100%; max-height: 460px; object-fit: cover; }
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--navy);
  font-size: 1.4rem;
  cursor: pointer;
}
.slider-btn.prev { left: 0.6rem; }
.slider-btn.next { right: 0.6rem; }
.dots { display: flex; justify-content: center; gap: 0.4rem; padding: 0.7rem; background: var(--navy-deep); }
.dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}
.dots button[aria-current="true"] { background: var(--sky); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 2rem 0 2.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(23,54,93,0.04);
}
.card img { display: block; width: 100%; height: 180px; object-fit: cover; }
.card h2 { margin: 0.8rem 1rem 0.3rem; font-size: 1.25rem; }
.card h2 a { color: var(--navy); text-decoration: none; }
.card p { margin: 0 1rem 1rem; color: var(--muted); }
.more { font-weight: 700; }

.page { padding: 1.5rem 0 3rem; }
.page h1 {
  margin: 0 0 0.8rem;
  color: var(--navy);
  font-family: "Titillium Web", Lato, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.lead { font-size: 1.15rem; }
.figure { margin: 0 0 1.2rem; }
.figure img { display: block; width: 100%; }
.float-img { float: left; margin: 0.2rem 1rem 0.6rem 0; max-width: 280px; }
.split { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 1.5rem; align-items: start; }
.phone-shot { width: min(100%, 320px); display: block; margin: 0 auto; }

.feature-grid, .plain-list {
  columns: 2;
  padding-left: 1.2rem;
  margin: 0.4rem 0 1.2rem;
}
.feature-grid li, .plain-list li { break-inside: avoid; margin: 0.2rem 0; }
.nested { margin-top: 0.2rem; }

.form {
  display: grid;
  gap: 0.35rem;
  max-width: 640px;
}
.form label { font-weight: 700; margin-top: 0.5rem; }
.form input, .form textarea {
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid #b7c6d4;
  border-radius: 2px;
  width: 100%;
}
.form button, .button {
  justify-self: start;
  margin-top: 0.8rem;
  background: var(--navy);
  color: var(--white);
  border: 0;
  padding: 0.7rem 1.3rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.form button:hover, .button:hover { background: var(--sky); color: var(--navy); }
.note { color: var(--muted); font-size: 0.95rem; }

.sections h2 { color: var(--navy); margin: 1.4rem 0 0.4rem; font-size: 1.25rem; }
.terms h2 { color: var(--navy); font-size: 1.15rem; margin: 1.3rem 0 0.3rem; }
.banner { display: block; width: 100%; background: var(--paper); }
.banner img { display: block; width: min(1130px, 100%); margin: 0 auto; }

.site-footer { background: var(--navy-deep); color: #d5e4f2; padding: 1.2rem 0 1.6rem; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin: 0 0 0.8rem; padding: 0; }
.footer-links a { color: var(--sky); text-decoration: none; font-weight: 700; }
.site-footer p { margin: 0; }

@media (max-width: 860px) {
  .header-row, .cards, .split { display: block; }
  .header-contact, .brand { text-align: left; }
  .cards { display: grid; grid-template-columns: 1fr; }
  .menu-toggle { display: inline-block; }
  .menu { display: none; flex-direction: column; width: 100%; padding-bottom: 0.6rem; }
  .menu.is-open { display: flex; }
  .menu .sub, .menu .sub .sub {
    display: block;
    position: static;
    box-shadow: none;
    background: transparent;
    padding-left: 0.8rem;
  }
  .feature-grid, .plain-list { columns: 1; }
  .float-img { float: none; display: block; margin: 0 0 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
