@import url('fonts.css');

/* ==========================================================================
   Keel Boat Services Garstang
   ========================================================================== */

:root {
  /* Colours */
  --navy-950: #081a29;
  --navy-900: #0c2436;
  --navy: #002e4e;
  --navy-700: #1d4565;
  --sky: #6ca7d4;
  --sky-100: #e4eff8;
  --brass: #a3661a;
  --brass-dark: #85520f;
  --brass-light: #e8a84a;
  --cream: #f7f4ef;
  --cream-200: #ece6dc;
  --line: #ddd5c8;
  --white: #ffffff;
  --text: #2b2724;
  --text-muted: #5f5850;
  --error-bg: #fdf1ee;
  --error-line: #c4502f;

  /* Fonts */
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-space: clamp(4rem, 9vw, 7.5rem);
  --radius: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(8, 26, 41, 0.06), 0 2px 8px rgba(8, 26, 41, 0.06);
  --shadow: 0 10px 30px -10px rgba(8, 26, 41, 0.25);
  --shadow-lg: 0 30px 60px -20px rgba(8, 26, 41, 0.35);
  --header-height: 84px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); }
h3 { font-size: 1.3rem; }

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

a {
  color: var(--navy-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

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

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section {
  padding-block: var(--section-space);
}

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

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

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

.section--dark a:not(.btn) {
  color: var(--brass-light);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: currentColor;
  transform-origin: left;
}

.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--brass-light);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

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

.section-head--center .eyebrow::after {
  content: "";
  width: 2rem;
  height: 2px;
  background: currentColor;
}

.lead {
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  color: var(--text-muted);
}

.section--dark .lead {
  color: rgba(255, 255, 255, 0.78);
}

/* Buttons
   ========================================================================== */

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

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--brass);
  color: var(--white);
  box-shadow: 0 6px 18px -8px rgba(163, 102, 26, 0.8);
}

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

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

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

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

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

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

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.text-link {
  font-weight: 600;
  color: var(--navy-700);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size 0.3s var(--ease-out), color 0.2s ease;
}

.text-link:hover {
  background-size: 100% 1px;
}

/* Header
   ========================================================================== */

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

.site-header.is-scrolled {
  border-bottom-color: var(--cream-200);
  box-shadow: 0 6px 24px -14px rgba(8, 26, 41, 0.35);
}

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

.site-header.is-scrolled .header-inner {
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: 200px;
  transition: width 0.3s ease;
}

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

.brand-place {
  padding-left: 0.85rem;
  border-left: 2px solid var(--sky);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-700);
  line-height: 1;
  padding-block: 0.3rem;
}

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

.site-nav a:not(.btn) {
  position: relative;
  display: block;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

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

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

.site-nav .btn {
  margin-left: 0.75rem;
  padding: 0.7rem 1.3rem;
}

.nav-toggle {
  display: none;
}

@media (max-width: 960px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    border: 2px solid var(--cream-200);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--navy);
    font: 600 1rem var(--font-body);
    cursor: pointer;
  }

  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), background-color 0.2s ease;
  }

  .nav-toggle-bars {
    position: relative;
  }

  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }

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

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Without the script the menu simply shows below the logo. */
  .site-nav {
    flex-basis: 100%;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .js .header-inner {
    flex-wrap: nowrap;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--cream-200);
    box-shadow: 0 20px 30px -20px rgba(8, 26, 41, 0.4);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
  }

  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s ease, transform 0.3s var(--ease-out), visibility 0s;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem var(--gutter) 1.5rem;
  }

  .site-nav a:not(.btn) {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--cream-200);
  }

  .site-nav a:not(.btn)::after {
    left: 0;
    right: auto;
    width: 2.5rem;
    bottom: -1px;
  }

  .site-nav .btn {
    margin: 1.25rem 0 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brand img {
    width: 150px;
  }

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

  .brand-place {
    display: none;
  }
}

/* Home hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(88vh, 820px);
  padding-block: 6rem 9rem;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-900);
}

.hero-media,
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img,
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(8, 26, 41, 0.92) 0%, rgba(8, 26, 41, 0.72) 42%, rgba(8, 26, 41, 0.15) 80%),
    linear-gradient(0deg, rgba(8, 26, 41, 0.55) 0%, rgba(8, 26, 41, 0) 40%);
}

@media (max-width: 700px) {
  .hero::after,
  .page-hero:not(.page-hero--plain)::after {
    background: linear-gradient(180deg, rgba(8, 26, 41, 0.62) 0%, rgba(8, 26, 41, 0.86) 100%);
  }
}

.hero-content {
  max-width: 660px;
}

.hero h1 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--brass-light);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
}

/* Trust strip that overlaps the bottom of the hero */
.trust {
  position: relative;
  z-index: 2;
  margin-top: -5rem;
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.trust-list li {
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.trust-list li + li {
  border-left: 1px solid var(--cream-200);
}

.trust-list strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.trust-list span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .trust-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-list li:nth-child(3) {
    border-left: 0;
  }

  .trust-list li:nth-child(n + 3) {
    border-top: 1px solid var(--cream-200);
  }
}

/* Inner page hero
   ========================================================================== */

.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(5rem, 11vw, 8.5rem) clamp(4rem, 8vw, 6rem);
  color: var(--white);
  overflow: hidden;
  background: var(--navy-900);
}

.page-hero h1 {
  color: var(--white);
  max-width: 760px;
  margin-bottom: 1.25rem;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.86);
  max-width: 640px;
  margin-bottom: 0;
}

.page-hero--plain::after {
  background: radial-gradient(circle at 85% 20%, rgba(108, 167, 212, 0.22), transparent 55%);
}

/* Wave divider, echoing the waves in the logo */
.wave {
  display: block;
  width: 100%;
  height: 14px;
  color: var(--sky);
  opacity: 0.55;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='14' viewBox='0 0 48 14'%3E%3Cpath d='M0 7c6 0 6-5 12-5s6 5 12 5 6-5 12-5 6 5 12 5' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3C/svg%3E") repeat-x left center / 48px 14px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='14' viewBox='0 0 48 14'%3E%3Cpath d='M0 7c6 0 6-5 12-5s6 5 12 5 6-5 12-5 6 5 12 5' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3C/svg%3E") repeat-x left center / 48px 14px;
}

.wave--short {
  width: 96px;
  margin-bottom: 1.5rem;
}

/* Split layouts
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.split--top {
  align-items: start;
}

.split--wide-text {
  grid-template-columns: 1.15fr 0.85fr;
}

.split--form {
  grid-template-columns: 0.8fr 1.2fr;
}

@media (max-width: 900px) {
  .split,
  .split--wide-text,
  .split--form {
    grid-template-columns: 1fr;
  }
}

/* Photo frames */
.photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cream-200);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

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

.photo figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
}

.photo-stack {
  position: relative;
  padding: 0 0 18% 0;
}

.photo-stack .photo:first-child {
  aspect-ratio: 4 / 3;
  width: 88%;
}

.photo-stack .photo:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  aspect-ratio: 1;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
}

.section--white .photo-stack .photo:last-child {
  border-color: var(--white);
}

.photo-tall {
  aspect-ratio: 4 / 5;
}

/* Service lists (home)
   ========================================================================== */

.service-group + .service-group {
  margin-top: 2.25rem;
}

.service-group h3 {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-700);
}

.service-group h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

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

.tick-list li {
  position: relative;
  padding-left: 1.75rem;
  font-weight: 500;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 1rem;
  height: 0.6rem;
  background: var(--brass);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14'%3E%3Cpath d='M0 7c3 0 3-5 6-5s3 5 6 5 3-5 6-5 3 5 6 5' fill='none' stroke='%23000' stroke-width='2.6'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14'%3E%3Cpath d='M0 7c3 0 3-5 6-5s3 5 6 5 3-5 6-5 3 5 6 5' fill='none' stroke='%23000' stroke-width='2.6'/%3E%3C/svg%3E") no-repeat center / contain;
}

@media (max-width: 520px) {
  .tick-list {
    grid-template-columns: 1fr;
  }
}

/* Workshop gallery
   ========================================================================== */

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

.gallery .photo {
  aspect-ratio: 3 / 4;
}

@media (max-width: 860px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cards
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}

.card {
  position: relative;
  padding: 2rem 1.9rem;
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line);
}

.card h3 {
  margin-bottom: 0.6rem;
}

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

.card p + p {
  margin-top: 0.8rem;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.card:hover .card-icon {
  background: var(--navy);
  color: var(--white);
}

.section--white .card {
  background: var(--cream);
  border-color: transparent;
}

.section--white .card:hover {
  background: var(--white);
  border-color: var(--cream-200);
}

/* A wider service card with a photo */
.card--feature {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.card--feature .card-body {
  padding: 2rem 0 2rem 1.9rem;
}

.card--feature img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

@media (max-width: 760px) {
  .card--feature {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .card--feature .card-body {
    padding: 2rem 1.9rem;
  }

  .card--feature img {
    min-height: 220px;
    order: -1;
  }
}

/* Testimonial
   ========================================================================== */

.quote {
  position: relative;
  margin: 0;
  text-align: center;
}

.quote::before {
  content: "\201C";
  display: block;
  height: 4.5rem;
  font-family: var(--font-heading);
  font-size: 8rem;
  line-height: 1;
  color: var(--brass-light);
}

.quote blockquote {
  margin: 0;
}

.quote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.5;
  color: var(--navy);
}

.quote figcaption {
  margin-top: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--brass);
}

.quote figcaption span {
  display: block;
  margin-top: 0.2rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--text-muted);
}

/* Contact blocks
   ========================================================================== */

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

.contact-item {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 1.25rem;
  background: var(--cream);
  border: 1px solid var(--cream-200);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.contact-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.section--white .contact-item {
  background: var(--cream);
}

.section:not(.section--white):not(.section--dark) .contact-item {
  background: var(--white);
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-value {
  font-weight: 600;
  color: var(--navy);
  overflow-wrap: anywhere;
}

a.contact-value {
  text-decoration: none;
}

a.contact-value:hover {
  color: var(--brass);
}

.section--dark .contact-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.section--dark .contact-label {
  color: rgba(255, 255, 255, 0.6);
}

.section--dark .contact-value,
.section--dark a.contact-value {
  color: var(--white);
}

.section--dark a.contact-value:hover {
  color: var(--brass-light);
}

.panel {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.panel h3 {
  margin-bottom: 0.5rem;
}

.panel address {
  font-style: normal;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.section--dark .panel {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.section--dark .panel address {
  color: rgba(255, 255, 255, 0.72);
}

.panel-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
}

.small-note {
  font-size: 0.98rem;
  color: var(--text-muted);
}

.section--dark .small-note {
  color: rgba(255, 255, 255, 0.7);
}

/* Logos strip
   ========================================================================== */

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 3.5rem;
}

.logo-strip img {
  height: 44px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-strip img:hover {
  filter: none;
  opacity: 1;
}

/* Call to action band
   ========================================================================== */

.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 8vw, 6rem);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(108, 167, 212, 0.25), transparent 65%);
  pointer-events: none;
}

.cta .container {
  position: relative;
}

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

.cta p {
  max-width: 560px;
  margin-inline: auto;
}

.cta .btn-row {
  justify-content: center;
}

/* FAQ
   ========================================================================== */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  display: block;
  padding: 1.4rem 3rem 1.4rem 0;
  cursor: pointer;
  list-style: none;
}

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

.faq summary h3 {
  margin: 0;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.faq summary:hover h3 {
  color: var(--brass);
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}

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

.faq .faq-answer {
  padding-bottom: 1.4rem;
  color: var(--text-muted);
}

.faq .faq-answer p:last-child {
  margin-bottom: 0;
}

/* Smoothly open and close the answers in browsers that support it */
@supports (interpolate-size: allow-keywords) {
  .faq {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.35s var(--ease-out), content-visibility 0.35s allow-discrete;
  }

  .faq details[open]::details-content {
    height: auto;
  }
}

/* Prose (privacy policy)
   ========================================================================== */

.prose h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 1.25rem;
  margin: 0 0 1.1em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose li::marker {
  color: var(--brass);
}

.prose address {
  font-style: normal;
  margin-bottom: 1.1em;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.updated {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 1rem 0 0;
}

/* Contact form
   ========================================================================== */

.form-card {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--brass);
}

.form-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

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

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

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

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

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

.field .required {
  color: var(--brass);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.field input:hover,
.field textarea:hover {
  border-color: var(--sky);
}

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

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

.contact-form altcha-widget {
  --altcha-border-radius: var(--radius);
  --altcha-color-border: var(--line);
  --altcha-color-base: var(--cream);
  --altcha-max-width: 100%;
}

.form-message {
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--error-line);
  border-left-width: 5px;
  border-radius: var(--radius);
  background: var(--error-bg);
  color: var(--text);
}

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

.form-message:focus {
  outline: 3px solid var(--navy-700);
  outline-offset: 2px;
}

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

.form-noscript {
  margin: 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--sky-100);
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-footer .small-note {
  margin: 0;
  font-size: 0.92rem;
}

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

/* Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr;
  gap: 2.5rem;
  padding-block: clamp(3.5rem, 7vw, 5rem);
}

@media (max-width: 960px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
}

.footer-brand img {
  width: 210px;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  max-width: 320px;
}

.site-footer h2 {
  margin-bottom: 1.1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-light);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

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

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

.site-footer address {
  font-style: normal;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.5rem;
  font-size: 0.92rem;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* Thank-you page
   ========================================================================== */

.thanks {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.thanks-badge {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--navy);
}

.thanks-badge::before {
  content: "";
  width: 0.85rem;
  height: 1.6rem;
  margin-top: -0.3rem;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
}

/* Animation
   ==========================================================================
   Everything below only runs for visitors who haven't asked for less motion.
   Scroll-in effects: script.js adds .reveal-pending to content below the
   fold, then removes it as each part scrolls into view, so the page is
   complete if the script never runs. */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .reveal {
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
  }

  .reveal.reveal-pending {
    opacity: 0;
    transform: translateY(28px);
  }

  .reveal-pending .eyebrow::before,
  .reveal-pending.eyebrow::before {
    transform: scaleX(0);
  }

  .eyebrow::before {
    transition: transform 0.8s var(--ease-out) 0.25s;
  }

  .photo.reveal {
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), clip-path 1.2s var(--ease-out);
    clip-path: inset(0 0 0 0 round var(--radius-lg));
  }

  .photo.reveal.reveal-pending {
    transform: none;
    clip-path: inset(12% 0 0 0 round var(--radius-lg));
  }

  /* Hero: the photo settles gently and the words rise in on load */
  .hero-media img,
  .page-hero-media img {
    animation: settle 2.4s var(--ease-out) both;
  }

  .hero-content > *,
  .page-hero .container > * {
    animation: rise 1s var(--ease-out) both;
  }

  .hero-content > :nth-child(2),
  .page-hero .container > :nth-child(2) { animation-delay: 0.12s; }
  .hero-content > :nth-child(3),
  .page-hero .container > :nth-child(3) { animation-delay: 0.24s; }
  .hero-content > :nth-child(4),
  .page-hero .container > :nth-child(4) { animation-delay: 0.36s; }

  .trust-list {
    animation: rise 1s var(--ease-out) 0.45s both;
  }

  .wave {
    animation: drift 14s linear infinite;
  }

  .thanks-badge {
    animation: pop 0.8s var(--ease-out) 0.2s both;
  }
}

@keyframes settle {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

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

@keyframes drift {
  from { -webkit-mask-position: 0 center; mask-position: 0 center; }
  to { -webkit-mask-position: 48px center; mask-position: 48px center; }
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: none; }
}
