:root {
  --forest: #0e3a55;
  --forest-light: #1a6882;
  --cream: #f4f9fa;
  --cream-dark: #ddeef3;
  --orange-accent: #e07a3c;
  --error: #f87171;

  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  --header-height: 92px;
  --gutter: 1.5rem;
  --ease-ortiz: cubic-bezier(0.19, 1, 0.22, 1);
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--forest);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p, blockquote, figure { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

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

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

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 60;
  padding: 0.6rem 1rem;
  border-radius: 300px;
  background: var(--cream);
  color: var(--forest);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible { transform: none; }

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

/* — the button, filled by a rising clip-path on hover — */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--forest);
  border-radius: 300px;
  background: none;
  color: var(--forest);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.6s var(--ease-ortiz);
}

.btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: 0;
  border-radius: 300px;
  background: var(--forest);
  clip-path: polygon(-2% 102%, 102% 102%, 102% 102%, -2% 102%);
  transition: clip-path 0.6s var(--ease-ortiz);
}

.btn > * { position: relative; z-index: 1; }

.btn:hover { color: var(--cream); }
.btn:hover::before { clip-path: polygon(-2% -2%, 102% -2%, 102% 102%, -2% 102%); }

.btn-light { border-color: var(--cream); color: var(--cream); }
.btn-light::before { background: var(--cream); }
.btn-light:hover { color: var(--forest); }

.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-block { width: 100%; }

.btn:disabled { opacity: 0.5; cursor: default; }
.btn:disabled:hover { color: var(--cream); }
.btn:disabled:hover::before { clip-path: polygon(-2% 102%, 102% 102%, 102% 102%, -2% 102%); }

.btn-face {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* — header — */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-grounded,
.site-header.is-open {
  background: rgba(14, 58, 85, 0.94);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: rgba(244, 249, 250, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-height);
  padding: 0 6%;
}

.wordmark {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.nav-desktop {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.nav-desktop a {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-desktop a:hover { color: #fff; }

.nav-cta { padding: 0.7rem 1.4rem; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  padding: 0;
  border: none;
  background: none;
  color: #fff;
  cursor: pointer;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.nav-toggle-bars i {
  height: 1.5px;
  background: currentColor;
}

.mobile-nav {
  padding: 0.5rem 6% 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav[hidden] { display: none; }

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  text-decoration: none;
}

.mobile-nav a:hover { color: #fff; }

.mobile-cta {
  margin-top: 1.5rem;
  border-bottom: none;
  text-align: center;
}

.mobile-nav .mobile-cta { padding: 0.85rem 1.25rem; }

/* — hero — */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: calc(var(--header-height) + 2rem) var(--gutter) 3rem;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  width: 100%;
  max-width: 1280px;
  text-align: center;
}

.hero-heading {
  font-family: var(--display);
  font-size: clamp(3.25rem, 10vw, 145px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-standfirst {
  max-width: 42rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

/* — shared section furniture — */

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

.editorial-hr {
  height: 1px;
  margin: 0 0 2rem;
  border: none;
  background: rgba(14, 58, 85, 0.15);
}

.editorial-hr-light { background: rgba(244, 249, 250, 0.2); }

.section-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-accent);
}

.section-label-muted { color: rgba(244, 249, 250, 0.4); }

.section-heading {
  margin-top: 1.5rem;
  font-family: var(--display);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--forest);
}

.section-heading-light { color: var(--cream); }

.section-standfirst {
  max-width: 42rem;
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.5;
  color: rgba(14, 58, 85, 0.7);
}

.section-standfirst-light { color: rgba(244, 249, 250, 0.7); }

/* — how it works — */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.step {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1rem;
}

.step-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.step:hover .step-image { transform: scale(1.05); }

.step-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.5s ease;
}

.step:hover .step-scrim { background: rgba(0, 0, 0, 0.55); }

.step-frame {
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.75rem;
  transition: border-color 0.5s ease;
}

.step:hover .step-frame { border-color: rgba(224, 122, 60, 0.6); }

.step-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.step-title {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  color: #fff;
  transition: color 0.3s ease;
}

.step:hover .step-title { color: var(--orange-accent); }

.step-body {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.step:hover .step-body { color: rgba(224, 122, 60, 0.8); }

/* — testimonials — */

.section-testimonials {
  background: var(--forest);
  color: var(--cream);
}

.lead-quote { margin-top: 1.5rem; }

.stars {
  display: flex;
  gap: 0.25rem;
  color: var(--orange-accent);
}

.stars svg {
  width: 1.25rem;
  height: 1.25rem;
}

.lead-quote-text {
  margin-top: 1.5rem;
  font-family: var(--display);
  font-size: clamp(1.875rem, 4.2vw, 3rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.28;
}

.lead-quote-by {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: rgba(244, 249, 250, 0.6);
}

.lead-quote-by span {
  font-weight: 500;
  color: var(--orange-accent);
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.quote {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 249, 250, 0.1);
}

.quote-text {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.65;
  color: rgba(244, 249, 250, 0.8);
}

.quote-name {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--orange-accent);
}

.quote-role {
  font-size: 0.75rem;
  color: rgba(244, 249, 250, 0.5);
}

/* — contact — */

.section-contact {
  background: var(--forest);
  color: var(--cream);
}

.contact-intro {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.contact-intro .section-standfirst { margin-inline: auto; }

.contact-form {
  display: grid;
  gap: 1.5rem;
  max-width: 42rem;
  margin: 3rem auto 0;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 249, 250, 0.6);
}

.contact-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(255, 246, 237, 0.18);
  border-radius: 12px;
  background: rgba(255, 246, 237, 0.06);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.05rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-input:focus-visible {
  outline: 2px solid var(--orange-accent);
  outline-offset: 2px;
}

.contact-input::placeholder { color: rgba(255, 246, 237, 0.35); }

.contact-input:focus {
  border-color: var(--orange-accent);
  background: rgba(255, 246, 237, 0.1);
}

.contact-input.is-invalid,
.contact-input.is-invalid:focus { border-color: var(--error); }

textarea.contact-input { resize: none; }

.form-status {
  min-height: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
  color: rgba(244, 249, 250, 0.7);
}

.form-status.is-success { color: var(--orange-accent); }
.form-status.is-error { color: var(--error); }

/* — footer — */

.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(244, 249, 250, 0.1);
  background: var(--forest);
  color: var(--cream);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
}

.footer-wordmark {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.footer-tagline {
  margin-top: 0.5rem;
  font-family: var(--serif);
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(244, 249, 250, 0.5);
}

.footer-locations {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: rgba(244, 249, 250, 0.4);
}

.footer-links { margin-top: 1rem; }

.footer-links li + li { margin-top: 0.75rem; }

.footer-links a {
  font-size: 0.875rem;
  color: rgba(244, 249, 250, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--cream); }

.footer-muted {
  font-size: 0.875rem;
  color: rgba(244, 249, 250, 0.4);
}

.footer-legal {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(244, 249, 250, 0.1);
  font-size: 0.875rem;
  text-align: center;
  color: rgba(244, 249, 250, 0.4);
}

/* — responsive — */

@media (max-width: 1024px) {
  .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-desktop,
  .nav-cta { display: none; }

  .nav-toggle { display: flex; }
}

@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .quote-grid { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .footer-columns { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .footer-legal { margin-top: 3rem; }
  .step { aspect-ratio: 3 / 2; }
}

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

  html { scroll-behavior: auto; }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}
