@import url('fonts.css');

/* ==========================================================================
   Keel Boat Services — site styles
   Colours come from the logo: navy #002e4e and water blue #6ca7d4.
   ========================================================================== */

:root {
  --navy: #002e4e;
  --navy-deep: #001d33;
  --navy-soft: #0b3d61;
  --sky: #6ca7d4;
  --sky-light: #a9cdea;
  --sky-tint: #e9f2fa;
  --paper: #f5f8fb;
  --white: #ffffff;
  --ink: #17222d;
  --muted: #55636f;
  --line: #dbe5ee;
  --star: #f5b700;

  --font-heading: 'Bitter', Georgia, 'Times New Roman', serif;
  --font-body: 'Poppins', system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 29, 51, 0.06), 0 2px 8px rgba(0, 29, 51, 0.06);
  --shadow-md: 0 6px 24px rgba(0, 29, 51, 0.1);
  --shadow-lg: 0 18px 48px rgba(0, 29, 51, 0.16);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --container: 1180px;
  --header-h: 84px;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--navy);
  text-decoration-color: var(--sky);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--sky);
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--sky);
  color: var(--navy-deep);
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn .icon {
  transition: transform 0.25s var(--ease);
}

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

.btn:hover .icon--arrow {
  transform: translateX(4px);
}

.btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.08s;
}

.btn--primary {
  background: var(--sky);
  color: var(--navy-deep);
  box-shadow: 0 6px 18px rgba(108, 167, 212, 0.35);
}

.btn--primary:hover {
  background: var(--sky-light);
  color: var(--navy-deep);
  box-shadow: 0 10px 26px rgba(108, 167, 212, 0.45);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(0, 46, 78, 0.25);
}

.btn--navy:hover {
  background: var(--navy-soft);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(0, 46, 78, 0.3);
}

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

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

.btn--outline {
  border-color: var(--navy);
  color: var(--navy);
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
}

.text-link .icon {
  color: var(--sky);
  transition: transform 0.25s var(--ease);
}

.text-link:hover .icon {
  transform: translateX(4px);
}

/* ---------- Top bar ---------- */

.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding-block: 0.5rem;
}

.topbar__group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.topbar .icon {
  color: var(--sky);
}

.topbar a {
  color: inherit;
  text-decoration: none;
}

.topbar a:hover {
  color: var(--white);
}

/* ---------- Header and navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  transition: height 0.3s var(--ease);
}

.site-header.is-scrolled .container {
  height: 70px;
}

.brand {
  display: block;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.brand img {
  width: 230px;
  height: auto;
  transition: width 0.3s var(--ease);
}

.site-header.is-scrolled .brand img {
  width: 200px;
}

.brand:hover {
  opacity: 0.85;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: block;
  padding: 0.55rem 0.85rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.3rem;
  height: 2px;
  border-radius: 2px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover {
  color: var(--navy);
  background: var(--sky-tint);
}

.site-nav a:hover::after,
.site-nav a[aria-current='page']::after {
  transform: scaleX(1);
}

.site-nav a[aria-current='page'] {
  color: var(--navy);
  font-weight: 600;
}

.site-nav .nav-cta {
  margin-left: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  transition: background-color 0.2s var(--ease), transform 0.25s var(--ease);
}

.site-nav .nav-cta::after {
  display: none;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta[aria-current='page'] {
  background: var(--sky);
  color: var(--navy-deep);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--sky-tint);
  color: var(--navy);
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.nav-toggle:hover {
  background: var(--line);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
}

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

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

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

.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--sky), var(--navy));
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(0, 29, 51, 0.94) 0%, rgba(0, 46, 78, 0.82) 45%, rgba(0, 46, 78, 0.35) 100%);
}

.hero__content {
  padding-block: clamp(5rem, 11vw, 9rem) clamp(7rem, 13vw, 11rem);
  max-width: 680px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.3em;
}

.hero__lead {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  color: var(--sky-light);
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(40px, 6vw, 80px);
  color: var(--white);
}

.hero__wave--paper {
  color: var(--paper);
}

.page-hero .hero__content {
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(5rem, 9vw, 7rem);
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

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

.section--navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
}

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

.section__head {
  max-width: 720px;
  margin-bottom: 2.75rem;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section--navy .section__head p {
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Feature cards (home) ---------- */

.features {
  position: relative;
  z-index: 2;
  margin-top: clamp(-6rem, -8vw, -4rem);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature {
  display: flex;
  gap: 1rem;
  padding: 1.6rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--sky-tint);
  color: var(--navy);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.4s var(--ease);
}

.feature:hover .feature__icon {
  background: var(--navy);
  color: var(--sky);
  transform: rotate(-6deg);
}

.feature__icon .icon {
  width: 24px;
  height: 24px;
}

.feature h2 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Service link lists (home) ---------- */

.service-groups {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}

.service-group {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-group h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.service-group h3 .icon {
  width: 26px;
  height: 26px;
  color: var(--sky);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.service-group--narrow .link-grid {
  grid-template-columns: 1fr;
}

.link-grid a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  margin-inline: -0.75rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), padding 0.25s var(--ease);
}

.link-grid a .icon {
  color: var(--sky);
  width: 1rem;
  height: 1rem;
}

.link-grid a:hover {
  background: var(--sky-tint);
  color: var(--navy);
  padding-left: 1rem;
}

.link-grid .sub {
  display: block;
  padding-left: 1.6rem;
  margin-top: -0.3rem;
  font-size: 0.88rem;
  color: var(--muted);
}

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

.section--navy .text-link:hover {
  color: var(--sky-light);
}

.delay-1 {
  --delay: 0.1s;
}

.delay-2 {
  --delay: 0.2s;
}

.delay-3 {
  --delay: 0.3s;
}

/* ---------- Split (image + text) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

.split__media {
  position: relative;
  isolation: isolate;
}

.split__media::before {
  content: '';
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  z-index: -1;
  border-radius: var(--radius);
  background: var(--sky-tint);
  transition: transform 0.5s var(--ease);
}

.split--reverse .split__media::before {
  inset: 1.5rem 1.5rem -1.5rem -1.5rem;
}

.split__media:hover::before {
  transform: translate(-6px, -6px);
}

.split__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.split__body > p {
  color: var(--muted);
}

.split__body > p:first-of-type {
  color: var(--ink);
  font-size: 1.05rem;
}

/* ---------- Image zoom on hover ---------- */

.zoom {
  overflow: hidden;
  border-radius: var(--radius);
}

.zoom img {
  transition: transform 0.8s var(--ease);
}

.zoom:hover img {
  transform: scale(1.04);
}

/* ---------- Testimonials ---------- */

.stars {
  display: flex;
  gap: 0.2rem;
  color: var(--star);
}

.stars .icon {
  width: 22px;
  height: 22px;
}

.quote-feature {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.quote-feature__name {
  margin: 1rem 0 0.1rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}

.quote-feature__place {
  margin: 0 0 1.25rem;
  color: var(--sky-light);
}

.quote-feature blockquote {
  position: relative;
  margin: 0;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
}

.quote-feature blockquote::before {
  content: '\201C';
  position: absolute;
  top: -2.2rem;
  left: -0.5rem;
  font-family: var(--font-heading);
  font-size: 7rem;
  line-height: 1;
  color: var(--sky);
  opacity: 0.25;
  font-style: normal;
}

.quotes {
  columns: 2 340px;
  column-gap: 1.5rem;
}

.quote-card {
  break-inside: avoid;
  margin: 0 0 1.5rem;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.quote-card:hover {
  transform: translateY(-4px);
  border-color: var(--sky-light);
  box-shadow: var(--shadow-md);
}

.quote-card::before {
  content: '\201C';
  display: block;
  height: 2.2rem;
  font-family: var(--font-heading);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--sky);
  transition: transform 0.35s var(--ease);
}

.quote-card:hover::before {
  transform: translateY(-3px) rotate(-6deg);
}

.h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.quote-card blockquote {
  margin: 1rem 0 1.25rem;
  font-style: italic;
  color: var(--ink);
}

.quote-card blockquote p:last-child {
  margin-bottom: 0;
}

.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.quote-card figcaption strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--navy);
}

.quote-card figcaption span {
  font-size: 0.88rem;
  color: var(--muted);
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--sky);
  font-family: var(--font-heading);
  font-weight: 700;
}

/* ---------- Location ---------- */

.location {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}

.map-card {
  position: relative;
  display: block;
  min-height: 380px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: var(--navy);
  color: var(--ink);
  text-decoration: none;
}

.map-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.map-card:hover img {
  transform: scale(1.04);
}

.map-card__label {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  font-size: 0.92rem;
  color: var(--muted);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.map-card:hover .map-card__label {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.map-card__label > span {
  flex: 1;
}

.map-card__label strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--navy);
}

.map-card__label .icon {
  width: 26px;
  height: 26px;
  color: var(--sky);
}

.map-card__go {
  transition: transform 0.25s var(--ease);
}

.map-card:hover .map-card__go {
  transform: translate(3px, -3px);
}

.address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.contact-lines {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.contact-lines li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-lines .icon {
  width: 20px;
  height: 20px;
  color: var(--sky);
}

.contact-lines a {
  font-weight: 500;
  text-decoration: none;
}

.contact-lines a:hover {
  text-decoration: underline;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
}

.cta-band__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 29, 51, 0.95), rgba(0, 46, 78, 0.85));
}

.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.3em;
}

.cta-band p {
  margin: 0;
  max-width: 600px;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- Accreditation logos ---------- */

.logos {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
}

.logos ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem clamp(2rem, 6vw, 5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.logos img {
  height: 54px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.4s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.logos img.logos__tall {
  height: 76px;
}

.logos li:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

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

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

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-block: 4rem 3rem;
}

.footer__brand img {
  width: 220px;
  margin-bottom: 1.25rem;
}

.footer__brand p {
  max-width: 380px;
}

.site-footer h2 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__links {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links a {
  display: inline-block;
  transition: color 0.2s var(--ease), transform 0.25s var(--ease);
}

.footer__links a:hover {
  transform: translateX(4px);
}

.site-footer .contact-lines a {
  font-weight: 400;
}

.site-footer .contact-lines li {
  align-items: flex-start;
}

.site-footer .contact-lines .icon {
  margin-top: 0.3rem;
}

.social {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.site-footer .social:hover {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--navy-deep);
  transform: translateY(-2px);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.25rem;
  font-size: 0.85rem;
}

.footer__bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.footer__bottom p {
  margin: 0;
}

.footer__bottom a {
  text-decoration: underline;
  text-decoration-color: rgba(108, 167, 212, 0.5);
}

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background-color 0.2s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--sky);
  color: var(--navy-deep);
}

.to-top .icon {
  width: 22px;
  height: 22px;
}

/* ---------- Services page ---------- */

.jump-nav {
  position: sticky;
  top: 70px;
  z-index: 50;
  background: rgba(245, 248, 251, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.jump-nav ul {
  position: relative;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.jump-nav a {
  display: block;
  padding: 0.4rem 0.9rem;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.jump-nav a:hover,
.jump-nav a.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--sky);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--sky-light);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before,
.service-card:target::before {
  transform: scaleY(1);
}

.service-card:target {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px var(--sky-tint);
}

.service-card,
.section[id] {
  scroll-margin-top: 140px;
}

.service-card--wide {
  grid-column: 1 / -1;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--muted);
}

.service-card p:last-child {
  margin-bottom: 0;
}

.service-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.service-card li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  color: var(--muted);
}

.service-card li .icon {
  margin-top: 0.35rem;
  color: var(--sky);
}

.service-card li strong {
  color: var(--navy);
}

.spotlight {
  background-image: radial-gradient(
    420px circle at var(--mx, -999px) var(--my, -999px),
    rgba(108, 167, 212, 0.12),
    transparent 60%
  );
}

.callout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem 2.5rem;
  margin-top: 2.5rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
}

.callout h3 {
  color: var(--white);
  margin-bottom: 0.3rem;
}

.callout p {
  margin: 0;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.photo-strip figure {
  margin: 0;
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-strip figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- About page ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.why-card {
  padding: 1.6rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

.why-card .feature__icon {
  margin-bottom: 1rem;
}

.why-card:hover .feature__icon {
  background: var(--navy);
  color: var(--sky);
}

.why-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.team li {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}

.team strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy);
}

.team span {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sky);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.team p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
}

.faq {
  max-width: 860px;
  margin-inline: auto;
}

.faq details {
  margin-bottom: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.faq details:hover {
  border-color: var(--sky-light);
}

.faq details[open] {
  border-color: var(--sky);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '';
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-right: 2px solid var(--sky);
  border-bottom: 2px solid var(--sky);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.faq details > div {
  padding: 0 1.5rem 1.25rem;
  color: var(--muted);
}

.faq details > div p:last-child {
  margin: 0;
}

/* ---------- Contact page ---------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

a.contact-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--sky-light);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.contact-card:hover .feature__icon {
  background: var(--navy);
  color: var(--sky);
}

.contact-card .feature__icon {
  margin-bottom: 1rem;
}

.contact-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  word-break: break-word;
}

.contact-card a {
  font-weight: 500;
}

/* ---------- Contact form ---------- */

.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.form-card h3 {
  margin-bottom: 1.25rem;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

.form-optional {
  font-weight: 400;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid transparent;
  border-color: var(--sky);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(108, 167, 212, 0.35);
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

altcha-widget {
  --altcha-border-radius: var(--radius-sm);
  --altcha-color-border: var(--line);
  --altcha-color-base: var(--paper);
  --altcha-color-text: var(--ink);
  --altcha-max-width: 100%;
}

.form-status {
  margin: 0;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--sky);
  border-radius: var(--radius-sm);
  background: var(--sky-tint);
  color: var(--ink);
  font-size: 0.95rem;
}

.form-status:empty {
  display: none;
}

.form-status:focus {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.form-status a {
  font-weight: 600;
}

.contact-form .btn {
  justify-self: start;
}

.contact-form .btn:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.form-privacy {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- News page ---------- */

.fb-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.fb-card__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--navy);
  color: var(--white);
}

.fb-card__icon .icon {
  width: 34px;
  height: 34px;
}

.fb-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.fb-card p {
  color: var(--muted);
}

/* ---------- Text pages ---------- */

.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

/* ---------- Scroll-in reveal (only when the script runs) ---------- */

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--delay, 0s);
  }

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

  .hero__media img {
    animation: hero-zoom 9s var(--ease) both;
  }

  .hero__content > * {
    animation: rise 0.9s var(--ease) both;
  }

  .hero__content > :nth-child(2) {
    animation-delay: 0.08s;
  }

  .hero__content > :nth-child(3) {
    animation-delay: 0.16s;
  }

  .hero__content > :nth-child(4) {
    animation-delay: 0.24s;
  }

  .hero__content > :nth-child(5) {
    animation-delay: 0.32s;
  }

  .faq details[open] > div {
    animation: rise 0.4s var(--ease) both;
  }

  html {
    scroll-behavior: smooth;
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1060px) {
  .features__grid,
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr 1fr;
  }

  .service-groups {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  /* Without the script, the menu simply wraps under the logo */
  html:not(.nav-ready) .site-header .container {
    flex-wrap: wrap;
    height: auto;
    padding-block: 0.75rem;
  }

  html:not(.nav-ready) .site-nav ul {
    flex-wrap: wrap;
  }

  .nav-ready .nav-toggle {
    display: inline-flex;
  }

  .nav-ready .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.35s var(--ease), visibility 0.35s;
  }

  .nav-ready .site-nav.is-open {
    clip-path: inset(0 0 -40px 0);
    visibility: visible;
  }

  .nav-ready .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
    padding-block: 1rem 1.5rem;
  }

  .nav-ready .site-nav a {
    padding: 0.8rem 1rem;
    font-size: 1.05rem;
  }

  .nav-ready .site-nav a::after {
    left: 1rem;
    right: auto;
    width: 24px;
  }

  .nav-ready .site-nav .nav-cta {
    margin: 0.5rem 0 0;
    text-align: center;
  }

  .split,
  .location,
  .quote-feature {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__media {
    order: 0;
  }

  .split__media {
    margin-right: 1.5rem;
  }

  .split--reverse .split__media {
    margin: 0 0 0 1.5rem;
  }

  .team {
    grid-template-columns: 1fr;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .photo-strip {
    grid-template-columns: 1fr 1fr;
  }

  .photo-strip figure:last-child {
    display: none;
  }

  .callout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 72px;
  }

  .topbar__hide-sm {
    display: none;
  }

  .brand img,
  .site-header.is-scrolled .brand img {
    width: 180px;
  }

  .site-header.is-scrolled .container {
    height: 64px;
  }

  .jump-nav {
    top: 64px;
  }

  .features__grid,
  .why-grid,
  .contact-cards,
  .link-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .fb-card {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__actions,
  .cta-band__actions {
    width: 100%;
  }
}
