/* Colour and spacing variables — this page owns its visual conventions. */
:root {
  --pine-teal: #145B53;
  --pine-teal-shadow: #083F39;
  --slate-blue: #53778D;
  --white: #FFFFFF;
  --light-silver: #DDE2DF;
  --warm-highlight: #F2F3EC;
  --deep-rose: #CA9EAE;
  --charcoal: #151D1C; /* Supporting neutral, outside the core brand palette. */
  --content-width: 74rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --small-radius: 0.25rem;
}

/* Base typography and accessible page navigation. */
* { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

/* Fill unused viewport space; future content can grow in normal flow. */
main { flex: 1 0 auto; }

[hidden] { display: none !important; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  color: var(--pine-teal);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 4.2vw, 3.5rem); }
h2 { font-size: clamp(2rem, 3.1vw, 2.75rem); }
h3 { font-size: clamp(1.8rem, 2.6vw, 2.375rem); }

a {
  color: var(--pine-teal);
  text-underline-offset: 0.25em;
}

a:hover { color: var(--pine-teal-shadow); }
button { font: inherit; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--slate-blue);
  outline-offset: 5px;
}

[tabindex="-1"]:focus { outline: none; }
[id] { scroll-margin-top: 1.5rem; }

.container {
  width: min(var(--content-width), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  inset: 0.75rem auto auto 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-200%);
  background: var(--pine-teal);
  color: var(--white);
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--white);
}

/* Header and navigation. The mobile menu stays in normal document flow. */
.site-header {
  border-bottom: 1px solid var(--light-silver);
  background: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 7rem;
  padding-block: 1.25rem;
}

.brand-link {
  display: inline-block;
  max-width: 100%;
}

.header-logo { width: 22.5rem; }

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.primary-navigation a:hover { text-decoration: underline; }

.primary-navigation .nav-contact {
  gap: 1rem;
  padding-inline: 1.25rem;
  border: 1px solid var(--pine-teal);
  border-radius: var(--small-radius);
}

.menu-toggle {
  display: inline-flex;
  flex: 0 0 2.75rem;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--pine-teal);
  border-radius: var(--small-radius);
  background: var(--white);
  color: var(--pine-teal);
  cursor: pointer;
}

.menu-toggle:hover { background: var(--warm-highlight); }

.menu-icon {
  position: relative;
  width: 1.125rem;
  height: 0.75rem;
  border-block: 2px solid currentColor;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  height: 0;
  border-bottom: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  position: absolute;
  inset: -2px 0 auto;
  border-top: 2px solid currentColor;
  content: "";
  transform: rotate(90deg);
}

/* Dark footer with the supplied highlighted full logo. */
.site-footer {
  padding-top: 1rem;
  background: var(--charcoal);
  color: var(--light-silver);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 0.75rem;
}

.footer-brand { flex-shrink: 0; }
.footer-logo { width: 20rem; }

.footer-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--white);
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }
.site-footer a:focus-visible { outline-color: var(--light-silver); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 0.25rem 0.5rem;
  border-top: 1px solid var(--slate-blue);
  font-size: 0.8125rem;
}

.footer-utilities {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.footer-bottom a {
  gap: 1rem;
  font-size: 0.8125rem;
}

/* This page's notice uses a readable column and the existing brand colours. */
.privacy-page {
  max-width: 54rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.privacy-opening {
  padding-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.privacy-section {
  padding-block: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--light-silver);
}

.privacy-section h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.privacy-section p + p { margin-top: 1rem; }
.privacy-section a { overflow-wrap: anywhere; }

.privacy-contact {
  padding-bottom: 0;
}

.privacy-contact address {
  margin-top: 1rem;
  font-style: normal;
}

/* Responsive adjustments. Keep this breakpoint in sync with index.js. */
@media (max-width: 72rem) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0 0.75rem;
    min-height: 5.5rem;
    padding-block: 1rem;
  }

  .header-inner > .brand-link {
    flex: 0 1 22.5rem;
    max-width: calc(100% - 3.5rem);
  }

  .primary-navigation {
    width: 100%;
    margin-top: 1rem;
    border-top: 1px solid var(--light-silver);
    padding-top: 0.5rem;
  }

  .primary-navigation ul {
    display: grid;
    gap: 0.25rem;
  }

  .primary-navigation a {
    width: 100%;
    min-height: 3rem;
    padding: 0.5rem 0.75rem;
  }

  .primary-navigation .nav-contact {
    border: 0;
    padding-inline: 0.75rem;
  }
}

@media (max-width: 54rem) {
  .footer-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
}
