/*
 * ATC shared page styles
 * Used by legal pages, application form, verification page, 404, and any
 * other supporting pages alongside index.html.
 */
:root {
  --navy: #14213D;
  --navy-deep: #0B1729;
  --red: #C8302A;
  --red-dark: #A0241F;
  --red-light: #DC4138;
  --paper: #FFFFFF;
  --surface: #F7F7F4;
  --surface-deep: #EFEEE7;
  --ink: #14213D;
  --ink-soft: #4A5568;
  --rule: #DDDDD3;
  --rule-light: #E8E7DC;
  --shadow: 0 1px 2px rgba(20,33,61,0.06), 0 8px 24px rgba(20,33,61,0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 2.4rem 0 0.6rem; }
h3 { font-size: 1.2rem; font-weight: 800; margin: 1.6rem 0 0.4rem; }
h4 { font-size: 1.05rem; font-weight: 700; margin: 1.2rem 0 0.3rem; }
p { margin-bottom: 1em; color: var(--ink-soft); }
a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; transition: color 0.2s; }
a:hover { color: var(--red); }
ul, ol { margin: 0 0 1em 1.4rem; color: var(--ink-soft); }
ul li, ol li { margin-bottom: 0.4rem; }
strong { color: var(--ink); }
.container { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
/* Utility bar */
.util-bar {
  background: var(--navy-deep);
  color: #C5CCDA;
  font-size: 0.82rem;
  padding: 0.55rem 0;
  border-bottom: 3px solid var(--red);
}
.util-bar .container-wide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.util-left {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.75rem;
}
.util-right a {
  color: #E2E7F0;
  margin-left: 1.4rem;
  font-weight: 500;
  text-decoration: none;
}
.util-right a:hover { color: #fff; }
/* Header */
header.site-header {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.brand img.logo { height: 56px; width: auto; display: block; }
nav.primary ul { list-style: none; display: flex; gap: 2rem; align-items: center; margin: 0; }
nav.primary li { margin: 0; }
nav.primary a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0;
  border-bottom: 3px solid transparent;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
nav.primary a:hover { border-bottom-color: var(--red); color: var(--navy); }
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  text-align: center;
  border-radius: 2px;
}
.btn-primary { background: var(--red); color: #fff; border: 2px solid var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-navy { background: var(--navy); color: #fff; border: 2px solid var(--navy); }
.btn-navy:hover { background: var(--red); border-color: var(--red); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  border-bottom: 4px solid var(--red);
}
.page-hero h1 { color: #fff; }
.page-hero .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-light);
  font-weight: 800;
  margin-bottom: 0.8rem;
}
.page-hero .lede {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: #C5CCDA;
}
.section-rule {
  width: 60px;
  height: 4px;
  background: var(--red);
  margin: 1.2rem 0 1.6rem;
}
/* Body */
.page-body { padding: 3rem 0 4rem; }
.page-body p { font-size: 1rem; }
.callout {
  background: var(--surface);
  border-left: 4px solid var(--red);
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.meta-line {
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  margin-top: 2rem;
}
/* Footer */
footer.site-footer {
  background: var(--navy-deep);
  color: #A6AFC0;
  padding: 3rem 0 1.5rem;
  font-size: 0.92rem;
  margin-top: 4rem;
}
footer.site-footer h5 {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-light);
  font-weight: 800;
  margin-bottom: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #233357;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.footer-grid ul { list-style: none; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: #C5CCDA; text-decoration: none; }
.footer-grid a:hover { color: var(--red-light); }
.footer-brand img.logo-footer {
  height: 48px;
  width: auto;
  background: #fff;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: block;
}
.footer-brand p { color: #A6AFC0; font-size: 0.92rem; }
.footer-bottom {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: #7A8395;
  max-width: 1180px;
  margin: 0 auto;
}
.footer-bottom .stripes { width: 90px; height: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.footer-bottom .stripes span { display: block; height: 4px; background: var(--red); border-radius: 1px; }
/* Forms */
.form-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--red);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin: 2rem 0;
}
.form-row { margin-bottom: 1.2rem; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  border: 2px solid var(--rule);
  background: #fff;
  color: var(--navy);
  border-radius: 2px;
  font-weight: 500;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,48,42,0.15);
}
.form-row .help { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.3rem; }
.form-row.required label::after { content: " *"; color: var(--red); }
.checkbox-row { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 1rem; }
.checkbox-row input[type="checkbox"] { width: auto; margin-top: 0.3rem; flex-shrink: 0; }
.checkbox-row label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}
/* Responsive */
@media (max-width: 900px) {
  nav.primary ul { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: span 2; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid .footer-brand { grid-column: span 1; }
  .util-left { display: none; }
}
