/* ===== Design tokens — American money palette ===== */
:root {
  --green-dark: #174b32;
  --green-dark-hover: #113926;
  --green-hero-mid: #1f5a3c;
  --green-hero-light: #2a6647;
  --green-bill: #739b68;
  --soft-white: #f3f6ef;
  --soft-white-deep: #e6ebe2;
  --gold: #d5b45a;
  --gold-soft: rgba(213, 180, 90, 0.35);
  --white: #ffffff;
  --text: #102318;
  --text-muted: #3d5348;
  --border: #c5d4bc;
  --border-muted: #a8b89f;
  --notice-bg: #faf8ef;
  --notice-border: #d5b45a;
  /* Semantic aliases used across components */
  --navy: var(--green-dark);
  --navy-mid: var(--green-hero-mid);
  --navy-light: var(--green-hero-light);
  --accent: var(--green-dark);
  --accent-hover: var(--green-dark-hover);
  --silver: var(--gold);
  --silver-light: var(--soft-white);
  --silver-muted: var(--border-muted);
  --warning-bg: var(--notice-bg);
  --warning-border: var(--notice-border);
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --shadow: 0 4px 24px rgba(23, 75, 50, 0.1);
  --radius: 8px;
  --content-max: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(2.5rem, 5vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.35vw + 0.95rem, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--soft-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-dark-hover);
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-band {
  width: 100%;
  padding-block: var(--section-y);
}

.section-band--white {
  background: var(--white);
}

.section-band--silver {
  background: var(--soft-white-deep);
}

/* ===== Header component ===== */
.site-header {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border-bottom: 3px solid var(--silver);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(23, 75, 50, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: var(--white);
  text-decoration: none;
  line-height: 1.25;
}

.logo-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-bill);
  margin-top: 0.15rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--green-bill);
  color: var(--white);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.925rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--gold);
}

.header-cta {
  display: none;
}

/* ===== Hero component ===== */
.hero,
.page-hero {
  width: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  color: var(--white);
  padding-block: clamp(2.75rem, 6vw, 4.25rem);
  text-align: center;
  border-bottom: 3px solid var(--gold-soft);
}

.hero .container,
.page-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.company-name {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.2;
}

.company-name-line {
  display: block;
}

.hero-office-address {
  margin: 0 0 0.65rem;
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.75vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
}

.hero-office-address-line {
  display: block;
}

.hero-title,
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
}

.page-hero .page-title-secondary {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 600;
  margin-top: 0.25rem;
  line-height: 1.25;
}

.hero-lead,
.page-hero .subtitle {
  margin: 1rem 0 0;
  max-width: 40rem;
  opacity: 0.92;
}

/* ===== Button component ===== */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.cta-row--left {
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.45rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--green-bill);
}

.btn-secondary:hover {
  background: var(--soft-white);
  color: var(--green-dark-hover);
  border-color: var(--green-dark);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  border-color: var(--gold);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-mid);
  color: var(--white);
}

/* ===== Section & card components ===== */
section {
  width: 100%;
  padding-block: var(--section-y);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.corp-checklist-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0 0 1rem;
}

.corp-checklist-email {
  margin: 1.25rem 0 0;
  font-weight: 500;
  color: var(--text);
}

.corp-checklist-note {
  margin: 1rem 0 0;
  max-width: 42rem;
  line-height: 1.55;
  color: var(--text);
  font-weight: 700;
}

.corp-checklist-link-line {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  line-height: 1.55;
}

.corp-checklist-link-line a {
  color: var(--green-dark);
  font-weight: 600;
}

.corp-checklist-step {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  line-height: 1.55;
  color: var(--text);
}

.corp-checklist-step a {
  color: var(--green-dark);
  font-weight: 600;
}

.checklist-section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.checklist-section-head .checklist-print-link {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.checklist-section-head .section-title {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
}

.checklist-print-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.checklist-print-link:hover {
  color: var(--navy);
}

.home-links-subheading {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.important-links-inline {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.important-links-inline a {
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.important-links-inline a:hover {
  color: var(--navy);
}

.important-links-sep {
  color: var(--text-muted);
  font-weight: 400;
  text-decoration: none;
}

.important-links-bottom {
  margin: 0.65rem 0 0;
  font-size: 1.05rem;
}

[data-component="important-links"] .important-links-bottom:first-of-type,
[data-component="corporation-links"] .important-links-bottom:first-of-type {
  margin-top: 0.85rem;
}

.important-links-bottom a {
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.important-links-bottom a:hover {
  color: var(--navy);
}

.back-to-top {
  margin: 1.75rem 0 0;
  text-align: center;
}

.back-to-top a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.corp-checklist-email a {
  color: var(--green-dark);
  font-weight: 600;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green-bill);
}

.card h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.card-actions {
  margin-top: 1rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.content-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.content-block h2 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.content-block ul,
.content-block ol {
  padding-left: 1.25rem;
}

/* ===== Privacy notice component ===== */
.privacy-notice {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.925rem;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.privacy-notice strong {
  color: var(--navy);
}

/* ===== Upload component ===== */
.upload-zone {
  background: var(--white);
  border: 2px dashed var(--silver-muted);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.upload-zone.is-dragover {
  border-color: var(--green-dark);
  background: #e8efe4;
}

.upload-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--soft-white);
  border: 1px solid var(--green-bill);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.upload-zone h2 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.upload-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ===== Payment component ===== */
.payment-card {
  background: var(--white);
  border-left: 4px solid var(--green-bill);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.payment-card h3 {
  margin: 0 0 0.35rem;
  color: var(--navy);
}

.payment-card p {
  margin: 0;
  color: var(--text-muted);
}

/* ===== Form component (non-sensitive fields only) ===== */
form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  margin-bottom: 1rem;
  background: var(--white);
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: 2px solid var(--green-dark);
  outline-offset: 1px;
  border-color: var(--green-dark);
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== Footer component ===== */
.site-footer {
  width: 100%;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 2.5rem 1.25rem;
  margin-top: auto;
  border-top: 3px solid var(--silver);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.35rem;
}

.footer-cta {
  margin-top: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid var(--gold-soft);
  padding-top: 1rem;
  font-size: 0.875rem;
}

@media (min-width: 900px) {
  .header-cta {
    display: inline-flex;
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
  }

  .header-cta--portal,
  .header-cta--corp {
    display: inline-flex !important;
    margin-right: 0.35rem;
    padding: 0.45rem 0.85rem;
  }
}

@media (max-width: 899px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .main-nav.is-open {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav ul {
    flex-direction: column;
    padding-bottom: 0.75rem;
  }
}

@media (max-width: 480px) {
  .cta-row .btn {
    width: 100%;
  }
}

.status-message {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.status-message[hidden] {
  display: none;
}

.status-message--info {
  background: var(--soft-white-deep);
  border: 1px solid var(--border);
}

.status-message--success {
  background: #e8efe4;
  border: 1px solid var(--green-bill);
}

.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;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

main a:focus-visible {
  outline-color: var(--green-dark);
}
