/* Shared chrome: reset, type, nav, overlay, buttons, footer, forms */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--forest);
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 0.85rem;
}

p:last-child {
  margin-bottom: 0;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--forest);
  color: #fff;
  padding: 0.7rem 1rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 0.5px solid transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  background: var(--surface);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-nav);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--forest);
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand-mark {
  color: var(--mint);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--ink);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--forest);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.lang-switcher {
  display: flex;
  align-items: center;
}

.lang-switcher-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.lang-select {
  appearance: none;
  min-height: 40px;
  padding: 0.35rem 1.7rem 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M3 4.5 6 8l3-3.5'/%3E%3C/svg%3E")
    no-repeat right 0.5rem center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--ink);
  cursor: pointer;
}

.nav-cta {
  display: none;
}

.nav-menu-btn {
  width: var(--touch);
  height: var(--touch);
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.nav-menu-btn .icon-close {
  display: none;
}

.nav-menu-btn[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-menu-btn[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--forest);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
  transform: translateY(-6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-overlay.is-open {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.nav-overlay a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: #fff;
  padding: 0.55rem 0;
  animation: overlayIn 0.35s var(--ease) both;
}

.nav-overlay a:nth-child(1) {
  animation-delay: 60ms;
}
.nav-overlay a:nth-child(2) {
  animation-delay: 120ms;
}
.nav-overlay a:nth-child(3) {
  animation-delay: 180ms;
}
.nav-overlay a:nth-child(4) {
  animation-delay: 240ms;
}
.nav-overlay a:nth-child(5) {
  animation-delay: 300ms;
}

.nav-overlay a:nth-child(6) {
  animation-delay: 360ms;
}

.nav-overlay .overlay-cta {
  margin-top: 1.4rem;
  width: fit-content;
  font-size: 0.95rem;
  padding: 0.85rem 1.2rem;
  animation: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: var(--touch);
  padding: 0 1.25rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn:focus-visible,
.nav-menu-btn:focus-visible,
.icon-btn:focus-visible,
.util-tab:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--forest);
  color: #fff;
}

.btn-primary:hover {
  background: var(--forest-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}

.btn-secondary:hover {
  background: var(--mint-soft);
  color: var(--forest);
}

.btn-white {
  background: #fff;
  color: var(--forest);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-amber {
  background: var(--amber);
  color: #fff;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 0.65rem;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 0 0 1.25rem;
}

.footer-cta {
  background: var(--forest);
  color: #fff;
  padding: 2.25rem 0;
}

.footer-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-cta-copy {
  max-width: 36ch;
}

.footer-cta h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0;
}

.footer-cta-lead {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  padding: 2.5rem 0 1.75rem;
}

.footer-grid h3 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.footer-grid a,
.footer-grid p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-grid a {
  display: block;
  padding: 0.2rem 0;
  min-height: 36px;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-brand-tag {
  color: var(--mint);
  font-size: 0.9rem;
}

.footer-made {
  opacity: 0.6;
  font-size: 0.8125rem;
  margin-top: 0.75rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.modal-root[hidden],
.nav-overlay[hidden] {
  display: none;
}

.modal-root:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(10, 10, 10, 0.45);
  display: grid;
  place-items: end;
}

.modal-panel {
  width: min(420px, 100%);
  height: 100%;
  background: var(--surface);
  padding: 1.25rem 1.25rem 2rem;
  overflow: auto;
  box-shadow: var(--shadow-md);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.modal-head h2 {
  font-size: 1.35rem;
  margin: 0;
}

.icon-btn {
  width: var(--touch);
  height: var(--touch);
  border: 0;
  background: var(--mint-soft);
  color: var(--forest);
  border-radius: 10px;
  cursor: pointer;
}

.brand-accent {
  color: var(--mint);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.form-field,
.form-field {
  margin-bottom: 0.9rem;
}

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

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: var(--touch);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--page);
}

.form-field .error,
.error {
  color: #b42318;
  font-size: 0.75rem;
  min-height: 1.1em;
  margin-top: 0.25rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.human-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.25rem 0 0.5rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

.human-check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
  flex-shrink: 0;
  accent-color: var(--forest);
  cursor: pointer;
}

.form-success {
  background: var(--mint-soft);
  color: var(--forest);
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.legal-page {
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  max-width: 720px;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.footer-enquiry {
  margin-top: 0.75rem;
}

.btn:focus-visible,
.nav-links a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

@media (min-width: 960px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .nav-menu-btn {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  }

  .modal-root:not([hidden]) {
    place-items: center;
    padding: 2rem;
  }

  .modal-panel {
    height: auto;
    max-height: 90vh;
    border-radius: var(--radius);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover,
  .nav-overlay a,
  .nav-overlay.is-open {
    animation: none;
    transform: none;
  }
}
