:root {
  --ink: #153236;
  --muted: #5d6e70;
  --deep: #103f45;
  --teal: #1c7f83;
  --aqua: #d9f0ef;
  --coral: #d96f5f;
  --sand: #f7f3eb;
  --paper: #fffdf8;
  --line: rgba(21, 50, 54, 0.16);
  --shadow: 0 24px 60px rgba(16, 63, 69, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

main {
  overflow: hidden;
}

a {
  color: inherit;
}

.hero {
  min-height: 92svh;
  max-height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, 50.85svh) minmax(0, 1fr);
  align-items: stretch;
  background:
    radial-gradient(circle at 85% 16%, rgba(217, 111, 95, 0.24), transparent 28rem),
    linear-gradient(135deg, #eff9f7 0%, #fffdf8 45%, #f8eadf 100%);
}

.hero__media {
  min-height: min(520px, 100svh);
  max-height: 100svh;
  aspect-ratio: 472 / 854;
  position: relative;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 6.5rem);
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.85rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.04;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 7.8rem);
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.4rem);
}

h3 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
}

.hero__lead {
  max-width: 680px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
}

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

.button {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.9rem 1.25rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button--primary {
  color: #ffffff;
  background: var(--deep);
  box-shadow: 0 16px 36px rgba(16, 63, 69, 0.24);
}

.button--secondary {
  color: var(--deep);
  background: rgba(255, 255, 255, 0.54);
  border-color: var(--line);
}

.promo-video {
  position: relative;
  container-type: size;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  background: var(--deep);
}

.promo-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 63, 69, 0.02), rgba(16, 63, 69, 0.34));
  pointer-events: none;
}

.promo-video__media {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100cqw, calc(100cqh * 472 / 854));
  height: min(100cqh, calc(100cqw * 854 / 472));
  display: block;
  object-fit: cover;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.promo-video__poster {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: min(100cqw, calc(100cqh * 472 / 854));
  height: min(100cqh, calc(100cqw * 854 / 472));
  aspect-ratio: 472 / 854;
  object-fit: cover;
  opacity: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 650ms ease;
}

.promo-video.is-loaded .promo-video__poster {
  opacity: 0;
}

.promo-video__sound,
.promo-video__play,
.promo-video__restart {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  background: rgba(16, 63, 69, 0.34);
  backdrop-filter: blur(3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  cursor: pointer;
}

.promo-video__sound {
  position: absolute;
  left: 50%;
  bottom: 1.3rem;
  z-index: 3;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  transform: translateX(-50%);
}

.promo-video__sound svg,
.promo-video__play svg,
.promo-video__restart svg,
.file-upload__button svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promo-video__play svg path:first-child {
  fill: currentColor;
  stroke: currentColor;
}

.promo-video__restart svg {
  fill: currentColor;
  stroke: none;
}

.promo-video__center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.promo-video.is-paused .promo-video__center {
  opacity: 1;
  pointer-events: auto;
}

.promo-video__play {
  width: 4.75rem;
  height: 4.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.promo-video__restart {
  width: 3.15rem;
  height: 3.15rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.promo-video:not(.is-muted) [data-muted-slash] {
  display: none;
}

.promo-video.is-muted [data-sound-wave] {
  display: none;
}

.intro,
.procedure-grid,
.trust-band,
.quote-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(1.5rem, 6vw, 6rem);
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(2.5rem, 6vw, 5rem);
}

.intro > p {
  align-self: end;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  grid-column: 1 / -1;
  max-width: 780px;
  margin-bottom: 0.5rem;
}

.procedure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 2rem 0 clamp(3.5rem, 8vw, 7rem);
}

.procedure-grid article {
  min-height: 210px;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(21, 50, 54, 0.07);
}

.procedure-grid article p,
.trust-band p,
.quote-section__copy p {
  margin: 0;
  color: var(--muted);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-band div {
  padding: 1.4rem;
  border-right: 1px solid var(--line);
}

.trust-band div:last-child {
  border-right: 0;
}

.trust-band span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--coral);
  font-weight: 800;
}

.trust-band strong {
  display: block;
  margin-bottom: 0.35rem;
}

.quote-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.quote-section__copy {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.quote-section__copy p {
  margin-top: 1rem;
}

.quote-form {
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.field-grid > label:first-child {
  grid-column: 1 / -1;
}

.quote-form label,
.phone-field,
.quote-form fieldset {
  display: block;
  margin: 0 0 1.15rem;
}

.quote-form span,
.phone-field > span,
.quote-form legend {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.quote-form input[type="text"],
.quote-form input[type="email"],
.quote-form input[type="tel"],
.country-search input,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.9rem 0.95rem;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form input:focus,
.country-search input:focus,
.quote-form textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(28, 127, 131, 0.16);
}

.phone-field__controls {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 0.55rem;
}

.country-code-button {
  min-height: 3.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.9rem 0.8rem;
  color: var(--deep);
  background: var(--aqua);
  font: inherit;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.country-code-button:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(28, 127, 131, 0.16);
}

.quote-section .section-kicker {
  color: var(--coral);
}

.quote-form fieldset {
  border: 0;
  padding: 0;
}

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

.checkbox-grid label {
  min-height: 3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.7rem;
  background: var(--sand);
}

.checkbox-grid input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--teal);
  flex: 0 0 auto;
}

.checkbox-grid span {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.file-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin: 0.2rem 0 1.3rem;
}

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

.quote-form .file-upload__button {
  min-height: 3rem;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--deep);
  background: var(--aqua);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.quote-form .file-upload__button svg {
  display: block;
  flex: 0 0 auto;
}

.file-upload__status {
  color: var(--muted);
  font-size: 0.92rem;
}

.file-upload__previews {
  width: 100%;
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.65rem;
  margin-top: 0.2rem;
}

.file-upload__previews.has-files {
  display: grid;
}

.file-upload__preview {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--sand);
}

.file-upload__preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.quote-form__submit {
  width: 100%;
  gap: 0.6rem;
}

.quote-form__submit.is-submitting::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: spin 700ms linear infinite;
}

.quote-form__submit:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.quote-form__error {
  display: none;
  margin: 0.85rem 0 0;
  color: #b42318;
  font-size: 0.95rem;
  font-weight: 700;
}

.quote-form__error.is-visible {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.country-modal {
  --modal-edge-space: clamp(0.75rem, 5svh, 2.5rem);
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: var(--modal-edge-space) 1rem var(--modal-edge-space);
}

.country-modal.is-open {
  display: flex;
}

.country-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 31, 34, 0.52);
}

.country-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(760px, calc(100svh - (var(--modal-edge-space) * 2)));
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.country-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.country-modal__header h3 {
  margin: 0;
}

.country-modal__close {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--deep);
  background: var(--paper);
  cursor: pointer;
}

.country-modal__close svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.country-search {
  margin: 0;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.country-modal__list {
  overflow: auto;
  padding: 0.55rem;
}

.country-modal__group-title {
  margin: 0.6rem 0.45rem 0.35rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.country-modal__list button {
  width: 100%;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  border-radius: 6px;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.country-modal__list button:hover,
.country-modal__list button:focus {
  background: var(--aqua);
  outline: none;
}

.country-modal__list button[hidden],
.country-modal__group-title[hidden] {
  display: none;
}

.country-modal__list button span {
  margin: 0;
  color: var(--deep);
  font-weight: 800;
}

body.has-country-modal {
  overflow: hidden;
}

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--deep);
  text-decoration: underline;
}

.legal-page {
  width: min(880px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 6vw, 4rem);
}

.legal-page__back {
  display: inline-flex;
  margin-bottom: 2rem;
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.legal-page__back:hover {
  text-decoration: underline;
}

.legal-page h1 {
  max-width: 780px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

.legal-page__updated {
  margin: 1rem 0 3rem;
  color: var(--muted);
}

.legal-page section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.legal-page section h2 {
  margin-bottom: 0.7rem;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.2rem;
  line-height: 1.25;
}

.legal-page section p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero,
  .intro,
  .quote-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    max-height: none;
  }

  .hero__media {
    width: 100vw;
    min-height: 0;
    max-height: none;
    aspect-ratio: 472 / 854;
    order: 2;
  }

  .hero__media .promo-video {
    min-height: 0;
  }

  .hero__content {
    min-height: 48svh;
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .procedure-grid,
  .trust-band {
    grid-template-columns: 1fr;
  }

  .phone-field {
    grid-column: auto;
  }

  .trust-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-band div:last-child {
    border-bottom: 0;
  }

  .quote-section__copy {
    position: static;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .country-modal {
    --modal-edge-space: 0.75rem;
  }

  .hero__actions,
  .button,
  .file-upload__button {
    width: 100%;
  }

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

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

  h1 {
    font-size: clamp(2.6rem, 16vw, 4.4rem);
  }

  .quote-form {
    padding: 1rem;
  }
}
