:root {
  --navy: #044b69;
  --navy-dark: #03354a;
  --blue: #5a90af;
  --orange: #f69321;
  --orange-dark: #e07f0c;
  --green: #91b43d;
  --ink: #1d2b36;
  --muted: #5c6b77;
  --tint: #f2f6f9;
  --line: #dbe5ec;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(4, 75, 105, 0.1);
  --header-h: 76px;
  --font: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--orange-dark);
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  color: var(--navy);
  line-height: 1.2;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 19px;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 860px;
}

.center {
  text-align: center;
}

.small {
  font-size: 15px;
}

.muted {
  color: var(--muted);
}

.cta-note {
  margin-top: 32px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--small {
  padding: 9px 16px;
  font-size: 15px;
}

.btn--large {
  padding: 16px 28px;
  font-size: 17px;
}

.btn--orange {
  background: var(--orange);
  color: var(--white);
}

.btn--orange:hover {
  background: var(--orange-dark);
  color: var(--white);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy);
}

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

.eyebrow--light {
  color: var(--orange);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.2s;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(4, 75, 105, 0.12);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.site-header__logo img {
  width: 180px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a:not(.btn) {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  color: var(--orange-dark);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.2s, top 0.2s, opacity 0.2s;
}

.nav-toggle__bar {
  top: 21px;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  left: 0;
}

.nav-toggle__bar::before {
  top: -7px;
}

.nav-toggle__bar::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(760px, calc(100vh - var(--header-h)));
  padding: 96px 0 120px;
  overflow: hidden;
  background: var(--navy-dark);
  color: var(--white);
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: center 40%;
}

.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(3, 40, 56, 0.88) 0%, rgba(3, 53, 74, 0.7) 45%, rgba(3, 53, 74, 0.15) 100%);
  content: "";
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 760px;
  color: var(--white);
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.hero h1 span {
  color: var(--orange);
}

.hero__lead {
  max-width: 620px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 1.6vw, 20px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Highlights */
.highlights {
  position: relative;
  z-index: 2;
  margin-top: -56px;
}

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.highlight {
  padding: 26px 24px;
  background: var(--white);
}

.highlight strong {
  display: block;
  color: var(--navy);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
}

.highlight span {
  color: var(--muted);
  font-size: 15px;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section--tint {
  background: var(--tint);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy h2 {
  color: var(--white);
}

.section__head {
  max-width: 760px;
  margin-bottom: 44px;
}

.section__head.center {
  margin-right: auto;
  margin-left: auto;
}

.section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
}

.section__head--row h2 {
  margin-bottom: 0;
}

.section__head--row > a,
.link-light {
  font-weight: 700;
  text-decoration: none;
}

.link-light {
  color: var(--white);
}

.link-light:hover {
  color: var(--orange);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
}

.tag-list .icon {
  color: var(--green);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(246, 147, 33, 0.12);
  color: var(--orange-dark);
  font-size: 22px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 0 44px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  position: relative;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.step p {
  margin: 0;
  color: var(--muted);
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
}

/* Neighbourhoods */
.neighbourhoods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.neighbourhood {
  padding: 26px;
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  background: var(--tint);
}

.neighbourhood:nth-child(3n + 2) {
  border-top-color: var(--orange);
}

.neighbourhood:nth-child(3n) {
  border-top-color: var(--green);
}

.neighbourhood h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.neighbourhood p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.testimonial {
  margin: 0;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.testimonial > .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  color: var(--orange);
}

.testimonial blockquote {
  margin: 0 0 18px;
  font-size: 19px;
  line-height: 1.6;
}

.testimonial figcaption {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.news-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.news-card a:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.news-card__img {
  aspect-ratio: 16 / 9;
  background: var(--tint);
}

.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.news-card time {
  color: var(--muted);
  font-size: 13px;
}

.news-card h3 {
  margin: 6px 0 16px;
  font-size: 17px;
}

.news-card__more {
  margin-top: auto;
  color: var(--orange-dark);
  font-size: 15px;
  font-weight: 700;
}

/* FAQ */
.faq__item {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.faq__item summary {
  position: relative;
  padding: 20px 56px 20px 24px;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  position: absolute;
  top: 50%;
  right: 24px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--orange-dark);
  border-bottom: 2px solid var(--orange-dark);
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}

.faq__item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq__answer {
  padding: 0 24px 8px;
  color: var(--muted);
}

/* Facts */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.fact {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--tint);
  font-size: 16px;
}

.fact .icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--blue);
}

/* Tip */
.tip h2 {
  font-size: clamp(26px, 3.4vw, 34px);
}

.tip__lead {
  color: var(--navy);
  font-size: 19px;
  font-style: italic;
  font-weight: 600;
}

.tip__quote {
  margin: 28px 0;
  padding: 8px 0 8px 24px;
  border-left: 4px solid var(--orange);
  color: var(--blue);
  font-size: 22px;
  font-style: italic;
  font-weight: 600;
}

/* Contact */
.contact {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: rgba(255, 255, 255, 0.9);
}

.contact h2 {
  color: var(--white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 64px;
}

.contact__list {
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
}

.contact__list li {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.contact__list .icon {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--orange);
}

.contact__list a {
  color: var(--white);
  font-weight: 700;
}

.contact__list a:hover {
  color: var(--orange);
}

.contact__photo {
  margin: 0;
}

.contact__photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Footer */
.site-footer {
  padding: 56px 0 32px;
  background: #022636;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--orange);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  align-content: start;
}

.site-footer__legal {
  padding-top: 24px;
}

.site-footer__legal p {
  margin-bottom: 10px;
}

.site-footer__legal a {
  margin-left: 12px;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: var(--shadow);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  background: var(--orange-dark);
  color: var(--white);
}

/* Reveal on scroll (only when JS is available) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1080px) {
  .site-nav {
    gap: 20px;
  }

  .news-grid,
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .neighbourhoods {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .contact__grid {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--white);
    box-shadow: 0 12px 20px rgba(4, 75, 105, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }

  .site-nav__call {
    margin-top: 16px;
  }

  .highlights__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .steps,
  .testimonials {
    grid-template-columns: 1fr;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .section,
  .contact {
    padding: 72px 0;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 18px;
  }

  .site-header__logo img {
    width: 150px;
  }

  .hero {
    min-height: 0;
    padding: 64px 0 96px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(3, 40, 56, 0.75) 0%, rgba(3, 53, 74, 0.88) 100%);
  }

  .hero__actions .btn {
    width: 100%;
  }

  .highlight {
    padding: 20px 16px;
  }

  .highlight strong {
    font-size: 26px;
  }

  .highlight span {
    font-size: 13px;
  }

  .card-grid,
  .neighbourhoods,
  .news-grid,
  .facts {
    grid-template-columns: 1fr;
  }

  .card,
  .step,
  .testimonial {
    padding: 24px;
  }

  .site-footer__links {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__legal a {
    display: inline-block;
    margin: 6px 12px 0 0;
  }
}
