@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/open-sans-400.ttf") format("truetype");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/open-sans-500.ttf") format("truetype");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/open-sans-600.ttf") format("truetype");
}

@font-face {
  font-family: "Amatic SC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/amatic-sc-700.ttf") format("truetype");
}
:root {
  --page-bg: #ffffff;
  --panel-bg: #f7f5ef;
  --footer-bg: #5a97ab;
  --text-color: #264351;
  --muted-color: #6d7d83;
  --field-bg: rgba(255, 255, 255, 0.88);
  --field-border: rgba(90, 151, 171, 0.25);
  --shadow-color: rgba(38, 67, 81, 0.18);
}

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

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  position: relative;
  margin: 0;
  min-height: 100svh;
  background: var(--page-bg);
  color: var(--text-color);
  font-family: "Open Sans", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at top, rgba(90, 151, 171, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(247, 245, 239, 0.52), transparent 40%);
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 32px));
  min-height: 100svh;
  margin: 0 auto;
  background: var(--panel-bg);
  box-shadow:
    0 0 0 1px rgba(38, 67, 81, 0.06),
    0 22px 54px -18px rgba(38, 67, 81, 0.24),
    0 46px 90px -42px rgba(38, 67, 81, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.content-panel {
  padding: 48px 0 0 0;
  flex: 1 0 auto;
}

.hero {
  display: grid;
  place-items: center;
  padding-bottom: 28px;
}

.brand-lockup {
  width: min(100%, 560px);
  animation: fade-up 0.8s ease-out 0.12s both;
}

.logo-mark {
  width: min(300px, 100%);
  height: auto;
  margin-bottom: 25px;
  display: block;
  margin-inline: auto;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-family: "Amatic SC", cursive;
  color: #d7b724;
  padding-left: 15px;
}

.typing-title-shell {
  position: relative;
  display: inline-grid;
  max-width: 100%;
}

.typing-title-shell > span {
  grid-area: 1 / 1;
}

.typing-title-measure {
  visibility: hidden;
}

.typing-title {
  position: relative;
  display: block;
}

.typing-title.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 0.08em;
  vertical-align: -0.08em;
  background: currentColor;
  animation: caret-blink 0.9s steps(1, end) infinite;
}

.form-section {
  max-width: 560px;
  margin: 0 auto;
  animation: fade-up 0.8s ease-out 0.28s both;
  padding-bottom: 32px;
}

.legal-shell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.legal-panel {
  max-width: 720px;
}

.legal-panel > h1 {
  color: #5a97ab;
  padding-left: 50px;
  padding-bottom: 28px;
}


.legal-panel .legal-content {
  padding-inline: 50px;
}

.legal-panel .legal-content h2,
.legal-panel .legal-content h3,
.legal-panel .legal-content h4 {
  padding-left: 0;
  color: var(--text-color);
  font-family: "Open Sans", sans-serif;
  letter-spacing: 0.01em;
}

.legal-panel .legal-content h2 {
  margin: 28px 0 14px;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 600;
}

.legal-panel .legal-content h3 {
  margin: 24px 0 10px;
  font-size: 1.15rem;
  font-weight: 600;
}

.legal-panel .legal-content h4 {
  margin: 18px 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.legal-panel .legal-content p,
.legal-panel .legal-content ul,
.legal-panel .legal-content ol {
  margin: 0 0 14px;
  line-height: 1.7;
}

.legal-panel .legal-content ul,
.legal-panel .legal-content ol {
  padding-left: 22px;
}

.legal-panel .legal-content li + li {
  margin-top: 8px;
}

.legal-panel .legal-content a {
  color: var(--footer-bg);
}

.legal-kicker {
  margin: 0 0 10px;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f8790;
}

.legal-copy {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.legal-copy p {
  margin: 0;
  line-height: 1.7;
}

.legal-backlink {
  margin: 32px 0 0;
  padding-left: 50px;
}

.legal-backlink a {
  color: var(--footer-bg);
  text-decoration: none;
  font-weight: 600;
}

.legal-backlink a:hover,
.legal-backlink a:focus-visible {
  text-decoration: underline;
  outline: none;
}

h2 {
  margin-bottom: 22px;
  text-align: left;
  font-family: "Amatic SC", cursive;
  font-size: clamp(1.8rem, 3vw, 2rem);
  letter-spacing: 0.03em;
  color: #4b8092;
  padding-left: 15px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
  width: 100%;
  border: 1px solid var(--field-border);
  border-radius: 18px;
  font: inherit;
}

.contact-form input,
.contact-form textarea {
  padding: 15px 18px;
  background: var(--field-bg);
  color: var(--text-color);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(90, 151, 171, 0.55);
  box-shadow: 0 0 0 4px rgba(90, 151, 171, 0.14);
  transform: translateY(-1px);
}

.contact-form textarea {
  resize: vertical;
  min-height: 168px;
}

.recaptcha-wrap {
  padding-left: 15px;
}

.recaptcha-placeholder {
  margin: 0;
  padding-left: 15px;
  color: var(--muted-color);
  font-size: 0.94rem;
}

.contact-form button {
  margin-top: 8px;
  padding: 15px 22px;
  background: #5a97ab;
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    background-color 200ms ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  outline: none;
  background: #4d889b;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -18px rgba(38, 67, 81, 0.9);
}

.form-feedback {
  display: none;
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  color: #3f6f7e;
}

.form-feedback:not(:empty) {
  display: block;
}

.form-feedback.is-success {
  color: #356c43;
}

.form-feedback.is-error {
  color: #8a4b4b;
}

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

.footer {
  position: relative;
  background: var(--footer-bg);
  color: #fff;
  padding: 22px 24px 30px;
  margin-top: 85px;
}

.footer-wave {
  position: absolute;
  left: 0;
  top: -65px;
  width: 100%;
  height: 94px;
  fill: var(--footer-bg);
}

.footer nav {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer a {
  color: inherit;
  text-decoration: none;
  transition: opacity 180ms ease;
}

.footer-separator {
  font-size: 1.15em;
  line-height: 1;
  transform: translateY(-0.03em);
}

.footer a:hover,
.footer a:focus-visible {
  opacity: 0.82;
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes caret-blink {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 640px) {
  body {
    min-height: 100dvh;
  }

  .page-shell {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    margin: 0;
    box-shadow: none;
  }

  .content-panel {
    padding-top: 22px;
    padding-bottom: 0;
  }

  .brand-lockup,
  .form-section,
  .legal-panel {
    padding-inline: 18px;
  }

  .footer {
    padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  }

  .footer-wave {
    top: -70px;
    height: 76px;
  }

  .footer nav {
    gap: 8px;
    flex-wrap: wrap;
  }
}

