@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;700;800&display=swap");

:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-alt: #eef2f8;
  --surface-soft: #f9fafc;
  --text: #162033;
  --muted: #667086;
  --line: #d7deea;
  --accent: #1f4b8f;
  --accent-strong: #163969;
  --shadow: 0 18px 50px rgba(16, 30, 54, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 75, 143, 0.08), transparent 30%),
    linear-gradient(180deg, #fbfcfe 0%, #f3f6fb 100%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 251, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215, 222, 234, 0.8);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand-logo {
  flex-shrink: 0;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 2px;
  font-family: "DM Sans", "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1;
}

.brand-initials {
  display: inline-flex;
  align-items: baseline;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.07em;
}

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

.brand-l {
  color: #f28a1b;
}

.brand-name {
  color: #23324d;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-nav a,
.text-link {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.text-link:hover,
.brand:hover {
  color: var(--accent);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
}

.hero {
  padding: 72px 0 40px;
}

.hero-grid,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 40px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 6vw, 4.7rem);
}

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

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 58ch;
  margin-top: 22px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-panel,
.card,
.process-card,
.contact-form,
.thank-you-card {
  background: var(--surface);
  border: 1px solid rgba(215, 222, 234, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
}

.hero-panel h2 {
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.hero-panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 12px;
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(215, 222, 234, 0.85);
  border-bottom: 1px solid rgba(215, 222, 234, 0.85);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-bottom: 16px;
}

.card-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card,
.process-card {
  padding: 24px;
}

.card p,
.process-card p {
  margin-top: 12px;
}

.process-card span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.faq-list summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  margin-top: 12px;
}

.section-contact {
  padding-top: 48px;
  padding-bottom: 72px;
}

.contact-copy {
  margin-bottom: 0;
}

.contact-form {
  padding: 28px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: inline-block;
  margin-bottom: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #24324c;
}

.form-row input:not([type="checkbox"]),
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 50px;
  padding: 13px 15px;
  font: inherit;
  color: var(--text);
  background: var(--surface-soft);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.form-row select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #5f7fb1 50%),
    linear-gradient(135deg, #5f7fb1 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.form-row input:not([type="checkbox"]):focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
}

.form-row input:not([type="checkbox"]):focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(31, 75, 143, 0.1);
}

.field-error {
  min-height: 1.2em;
  margin-top: 6px;
  color: #b13b31;
  font-size: 0.88rem;
  line-height: 1.4;
}

.input-error {
  border-color: #b13b31 !important;
  background: #fff8f7 !important;
}

.checkbox-row {
  margin-top: 14px;
}

.form-row label.checkbox-label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  margin-bottom: 0;
}

.form-row label.checkbox-label input {
  appearance: auto;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  padding: 0;
  border: 0;
  min-height: 0;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.form-row label.checkbox-label span {
  display: block;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-message {
  min-height: 1.4em;
  margin: 0 0 16px;
  color: var(--muted);
}

.form-message.error {
  color: #b13b31;
}

.thank-you-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.thank-you-card {
  width: min(640px, 100%);
  padding: 40px;
  text-align: center;
}

.thank-you-logo {
  margin-bottom: 20px;
}

.thank-you-logo .brand-wordmark {
  gap: 14px;
  justify-content: center;
}

.thank-you-logo .brand-initials {
  font-size: 3.15rem;
}

.thank-you-logo .brand-name {
  font-size: 1.15rem;
}

.thank-you-card h1 {
  max-width: none;
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.thank-you-card p {
  margin-bottom: 24px;
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-layout,
  .faq-layout,
  .card-grid,
  .process-grid,
  .optional-grid {
    grid-template-columns: 1fr;
  }

  .nav-shell {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .site-nav {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 28px;
  }

  .contact-form,
  .hero-panel,
  .card,
  .process-card,
  .thank-you-card {
    padding: 22px;
  }

  #submit-button {
    width: 100%;
  }
}
