@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F3F6F8;
  --surface: #FFFFFF;
  --ink: #001E42;
  --accent: #3F8C32;
  --navy: #001E42;
  --mist: #E4EBF1;
  --muted: #5C6B78;
  --silver: #8A93A0;
  --deep-green: #1F5C32;
  --font-display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --radius: 4px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; border-radius: 10px; }
a { color: var(--ink); }
p { margin: 0 0 1em; max-width: 38em; }
ul { margin: 0 0 1.2em; padding-left: 1.15em; }
li { margin: 0.25em 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid color-mix(in srgb, var(--navy) 12%, transparent);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 128px;
}
.logo img { height: 112px; width: auto; border-radius: 10px; }
.nav-toggle { display: none; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a,
.site-nav .nav-label {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy);
}
.site-nav a[aria-current="page"],
.site-nav .is-current > .nav-label { color: var(--accent); }
.header-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.header-phone {
  white-space: nowrap;
  line-height: 1;
}
.site-nav .btn { color: #fff; }
.phone-bar { display: none; }
.has-sub {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: -20px;
}
.nav-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: default;
}
.nav-label::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  margin-top: 2px;
}
.sub-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 8px 0 10px;
  list-style: none;
  min-width: 280px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--navy) 12%, transparent);
  border-radius: 10px;
  z-index: 40;
}
.sub-nav li { margin: 0; }
.sub-nav a {
  display: block;
  padding: 10px 16px;
  font-size: 1.15rem;
  white-space: nowrap;
}
.sub-nav a:hover,
.sub-nav a[aria-current="page"] {
  background: var(--mist);
  color: var(--accent);
}
.has-sub.open-sub .sub-nav { display: block; }
@media (min-width: 901px) {
  .has-sub:hover .sub-nav,
  .has-sub:focus-within .sub-nav { display: block; }
}
.site-nav .has-sub:last-of-type .sub-nav {
  left: auto;
  right: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  line-height: 1;
}
.btn:hover { background: var(--deep-green); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-navy {
  background: var(--navy);
  color: #fff;
}

.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  border-radius: 10px;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,30,66,0.88) 0%, rgba(0,30,66,0.55) 48%, rgba(0,30,66,0.18) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 72px 0 64px;
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}
.hero h1 { max-width: 14em; color: #fff; }
.hero p {
  max-width: 34em;
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.licence-line {
  margin: 18px 0 0;
  color: #d5dde6;
  font-size: 0.92rem;
}

.page-hero {
  position: relative;
  min-height: 280px;
  display: grid;
  align-items: end;
  background: var(--navy) center/cover no-repeat;
  color: #fff;
  overflow: hidden;
  border-radius: 10px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,30,66,0.86) 0%, rgba(0,30,66,0.5) 70%, rgba(0,30,66,0.28) 100%);
}
.page-hero-inner {
  position: relative;
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 40px;
}
.page-hero h1 { max-width: 18ch; color: #fff; }
.page-hero p { color: #e8eef3; margin: 0; }

.band { padding: 64px 0; }
.band-navy { background: var(--navy); color: #fff; }
.band-navy h2, .band-navy p { color: #fff; }
.band-mist { background: var(--mist); }
.band-white { background: var(--surface); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.split img,
.split .map-frame {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 10px;
}
.map-frame {
  border: 0;
  display: block;
  background: var(--mist);
}
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split.reverse .copy { order: 2; }

.why {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2px;
  background: color-mix(in srgb, var(--navy) 12%, transparent);
}
.why article {
  background: var(--surface);
  padding: 28px 24px;
}
.why h3 { margin-bottom: 0.4em; }
.why p { margin: 0; font-size: 1rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.card-grid.areas { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--navy) 12%, transparent);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card img,
.card-map {
  width: 100%;
  height: 170px;
  object-fit: cover;
  flex: 0 0 170px;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.card-map .map-frame {
  width: 100%;
  height: 220px;
  margin-top: -30px;
  pointer-events: none;
  border-radius: 0;
}
.card-body {
  padding: 18px 18px 20px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 118px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.35em; }
.card p { margin: 0; font-size: 0.98rem; color: var(--muted); flex: 1; }
.js-row-reveal .card {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1.15s ease, transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-row-reveal .card.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js-row-reveal .card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-row p { margin: 0; }

.form {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--navy) 12%, transparent);
  padding: 32px;
  border-radius: var(--radius);
  max-width: 720px;
}
label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0 0 6px;
}
input, textarea, select {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--navy) 22%, transparent);
  border-radius: var(--radius);
  padding: 12px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  margin-bottom: 16px;
}
textarea { min-height: 140px; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.95rem; }
.notice {
  padding: 14px 16px;
  background: var(--mist);
  border-left: 4px solid var(--accent);
  margin-bottom: 20px;
}

.site-footer {
  background: var(--navy);
  color: #d7dee6;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.site-footer a { color: #fff; text-decoration: none; }
.footer-brand img {
  height: 140px;
  width: auto;
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 28px;
}
.footer-brand p { margin-top: 0; }
.footer-brand .btn { margin-top: 4px; }
.site-footer h2 { font-size: 1.1rem; color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 0.4em 0; }
.footer-base {
  border-top: 1px solid color-mix(in srgb, #fff 14%, transparent);
  padding-top: 18px;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .phone-bar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 30;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
  }
  .site-header { top: 44px; }
  .header-cta { align-items: flex-start; }
  .header-phone { display: none; }
  .nav-toggle {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    background: transparent;
    border: 1px solid var(--navy);
    color: var(--navy);
    border-radius: var(--radius);
    padding: 8px 12px;
  }
  .header-inner { min-height: 88px; }
  .logo img { height: 72px; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 28px;
    border-bottom: 1px solid var(--mist);
    gap: 16px;
    max-height: calc(100dvh - 132px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .site-header.open .site-nav { display: flex; }
  .has-sub {
    width: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  .nav-label { cursor: pointer; }
  .sub-nav {
    position: static;
    display: none;
    min-width: 0;
    width: 100%;
    border: 0;
    padding: 8px 0 4px 8px;
    box-shadow: none;
  }
  .has-sub.open-sub .sub-nav { display: block; }
  .sub-nav a { white-space: normal; }
  .split, .split.reverse, .why, .card-grid, .card-grid.areas, .footer-grid, .cta-row {
    grid-template-columns: 1fr;
    display: grid;
  }
  .split.reverse .copy { order: 0; }
  .split img,
  .split .map-frame { height: 260px; }
  .hero { min-height: 78vh; align-items: center; }
  .hero h1 { max-width: 14em; }
}

body.login {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.login #login {
  width: min(480px, calc(100% - 40px));
  margin: 40px auto 56px;
  padding: 8px 0 0;
  flex: 1 0 auto;
}
body.login #login h1.wp-login-logo,
body.login #backtoblog {
  display: none;
}
body.login .tps-login-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 18px;
}
body.login form {
  margin-top: 0;
  padding: 32px;
  border: 1px solid color-mix(in srgb, var(--navy) 12%, transparent);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}
body.login form .input,
body.login form input[type="text"],
body.login form input[type="password"],
body.login form input[type="email"] {
  font-size: 1rem;
  line-height: 1.4;
  padding: 12px;
  margin: 0 0 16px;
  border: 1px solid color-mix(in srgb, var(--navy) 22%, transparent);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}
body.login form .forgetmenot {
  float: none;
  margin: 0 0 16px;
}
body.login form .forgetmenot label {
  display: inline;
  font-weight: 400;
}
body.login form input[type="checkbox"] {
  width: auto;
  margin: 0 8px 0 0;
}
body.login .wp-pwd {
  position: relative;
}
body.login .wp-pwd .button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: auto;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 8px;
  background: transparent;
  border: 0;
  color: var(--navy);
  box-shadow: none;
}
body.login.wp-core-ui .button-primary {
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 8px 0 0;
  padding: 13px 22px;
  float: none;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: none;
  box-shadow: none;
}
body.login.wp-core-ui .button-primary:hover,
body.login.wp-core-ui .button-primary:focus {
  background: var(--deep-green);
  border: 0;
  color: #fff;
}
body.login #nav {
  margin: 16px 0 0;
  text-align: left;
}
body.login #nav a {
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
}
body.login #login_error,
body.login .message,
body.login .success {
  border: 0;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--mist);
  box-shadow: none;
  color: var(--ink);
}
body.login #login_error {
  border-left-color: #8a1f1f;
}
body.login .site-footer {
  margin-top: auto;
}
.hero p.hero-kicker {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 600;
}
