:root {
  --bg: #eef3f7;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --line: rgba(20, 54, 86, 0.12);
  --text: #10263a;
  --muted: #55697d;
  --brand: #143656;
  --brand-soft: #2f5f88;
  --accent: #b4c5d6;
  --shadow: 0 24px 60px rgba(11, 30, 46, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 95, 136, 0.18), transparent 32%),
    linear-gradient(180deg, #f7fafc 0%, var(--bg) 48%, #e8eef3 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
li,
label,
input,
select,
textarea,
button,
small {
  font-size: 1rem;
  line-height: 1.65;
}

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

h1,
h2 {
  font-family: "Source Serif 4", serif;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.site-header,
.site-footer,
.hero,
.credential-strip,
.section,
.cta-band,
.page-hero,
.form-card,
.info-card {
  backdrop-filter: blur(14px);
}

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 10;
  transition: transform 220ms ease, opacity 220ms ease;
  will-change: transform, opacity;
}

.site-header.is-collapsed {
  transform: translateY(calc(-100% - 1.5rem));
  opacity: 0.2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a:not(.button) {
  color: var(--muted);
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-soft) 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 18px 35px rgba(20, 54, 86, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--brand);
  border: 1px solid rgba(20, 54, 86, 0.14);
  box-shadow: none;
}

.button-small {
  padding: 0.75rem 1.15rem;
  font-size: 0.95rem;
}

.hero,
.page-hero {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  align-items: stretch;
}

.compact-hero {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--brand-soft);
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  max-width: 12ch;
}

.hero-text,
.page-hero p:last-child {
  max-width: 64ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.hero-panel,
.media-panel,
.portrait-wrap {
  min-height: 100%;
}

.hero-media {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  align-self: start;
}

.hero-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.hero-card,
.media-panel,
.portrait-wrap,
.service-card,
.document-card,
.form-card,
.info-card,
.disclaimer-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card {
  height: 100%;
  padding: 1.75rem;
  background:
    linear-gradient(160deg, rgba(20, 54, 86, 0.96), rgba(37, 84, 122, 0.94)),
    var(--surface-strong);
  color: #f4f8fb;
}

.hero-card-label {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: rgba(244, 248, 251, 0.72);
}

.hero-card h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.hero-list,
.detail-list,
.footer-meta {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-list li,
.detail-list li,
.footer-meta > * {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-list li:last-child,
.detail-list li:last-child,
.footer-meta > *:last-child {
  border-bottom: none;
}

.credential-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.credential-strip > .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.credential-strip article {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(20, 54, 86, 0.08);
}

.credential-strip strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.45rem;
}

.credential-strip span,
.section-copy,
.service-card p,
.document-card p,
.site-footer p,
.form-actions p,
.info-card p {
  color: var(--muted);
}

.section {
  margin-top: 1.5rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2,
.section-grid h2,
.split-panel h2,
.cta-band h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}

.card-grid,
.document-grid,
.process-grid {
  display: grid;
  gap: 1rem;
}

.card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.document-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.document-card {
  padding: 1.4rem;
}

.service-card h3,
.document-card h3,
.process-grid h3,
.info-card h2,
.auto-reply-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}

.split-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}

.media-panel img,
.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.text-panel p {
  color: var(--muted);
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-grid article {
  padding: 1.25rem;
  border-top: 4px solid rgba(20, 54, 86, 0.2);
  background: rgba(255, 255, 255, 0.68);
  border-radius: var(--radius-md);
}

.process-grid span {
  display: inline-flex;
  margin-bottom: 1rem;
  font-weight: 800;
  color: var(--brand-soft);
}

.bio-panel {
  grid-template-columns: 1.1fr 0.7fr;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.badge-row span {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(20, 54, 86, 0.08);
  border: 1px solid rgba(20, 54, 86, 0.12);
  font-weight: 700;
  font-size: 0.92rem;
}

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1.75rem 2rem;
  background:
    linear-gradient(135deg, rgba(20, 54, 86, 0.94), rgba(47, 95, 136, 0.88));
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.68);
}

.cta-band .button {
  background: #ffffff;
  color: var(--brand);
  box-shadow: none;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}

.form-card,
.info-card,
.disclaimer-panel {
  padding: 1.6rem;
}

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

.form-span {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(20, 54, 86, 0.16);
  background: #fff;
  color: var(--text);
  font-family: inherit;
}

textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.auto-reply-card {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(20, 54, 86, 0.12);
}

.document-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--brand-soft);
  font-weight: 800;
}

.site-footer {
  margin-top: 1.5rem;
  align-items: start;
}

.footer-meta {
  min-width: 280px;
}

.footer-meta a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-meta svg {
  width: 0.9em;
  height: 0.9em;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-meta p {
  margin: 0;
  color: var(--muted);
}

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

@media (max-width: 1080px) {
  .hero,
  .section-grid,
  .split-panel,
  .bio-panel,
  .form-layout,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-grid,
  .process-grid,
  .credential-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-top: 0.5rem;
  }

  .site-header,
  .site-footer,
  .hero,
  .page-hero,
  .section,
  .cta-band,
  .form-card,
  .info-card,
  .disclaimer-panel {
    padding: 1.25rem;
    border-radius: 22px;
  }

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

  .site-nav,
  .hero-actions,
  .form-actions,
  .badge-row {
    width: 100%;
  }

  .site-nav {
    gap: 0.85rem;
  }

  .button,
  .button-small {
    width: 100%;
  }

  .card-grid,
  .document-grid,
  .process-grid,
  .credential-strip,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1 {
    max-width: none;
    font-size: clamp(2.3rem, 11vw, 3.4rem);
  }
}
