/* ========================================
   Access Align — Free Audit Landing Page
   WCAG 2.1 AA Compliant
   ======================================== */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --primary: #1A5632;
  --primary-dark: #143D24;
  --heading: #111827;
  --body: #374151;
  --muted: #4B5563;
  --light-gray: #F3F4F6;
  --border: #6B7280;
  --white: #FFFFFF;
  --error: #B91C1C;
  --gold: #D4A017;
  --gold-dark: #B8860B;

  /* Risk box */
  --risk-bg: #FEF2F2;
  --risk-border: #DC2626;
  --risk-text: #991B1B;

  /* Audit box */
  --audit-bg: #F0FDF4;
  --audit-border: #16A34A;
  --audit-text: #166534;

  /* Fonts */
  --font-display: 'DM Serif Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Sizing */
  --container: 1100px;
  --radius: 12px;
  --radius-input: 8px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: underline;
}

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

/* --- Accessibility Utilities --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-input) var(--radius-input);
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

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

*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
}

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

h3 {
  font-size: 1.375rem;
  font-family: var(--font-body);
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

/* ========================================
   SITE HEADER
   ======================================== */
.site-header {
  padding: 1rem 0;
  background: var(--white);
  text-align: center;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 400;
}

.site-logo:hover {
  color: var(--primary-dark);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 0 3.5rem;
}

.hero h1 {
  color: var(--white);
  max-width: 48rem;
  margin: 0 auto 1rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 40rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-stat {
  display: inline-block;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius);
  padding: 1.25rem 2.5rem;
  margin-top: 0.5rem;
}

.hero-stat-number {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.hero-stat-label {
  display: block;
  font-size: 0.9375rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}

/* ========================================
   MAIN CONTENT — Two Column
   ======================================== */
.content-section {
  padding: 4rem 0 3rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.content-left h2 {
  margin-bottom: 1rem;
}

.content-left > p {
  margin-bottom: 1.5rem;
}

/* Risk Box */
.risk-box {
  border-left: 4px solid var(--risk-border);
  background: var(--risk-bg);
  border-radius: 0 var(--radius-input) var(--radius-input) 0;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.risk-box h3 {
  color: var(--risk-text);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.risk-box ul {
  list-style: none;
  padding: 0;
}

.risk-box li {
  padding: 0.375rem 0;
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.risk-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.125rem;
  height: 1.125rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23DC2626'%3E%3Cpath fill-rule='evenodd' d='M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.168 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Audit Inclusion Box */
.audit-box {
  background: var(--audit-bg);
  border-radius: var(--radius-input);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.audit-box h3 {
  color: var(--audit-text);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.audit-box ul {
  list-style: none;
  padding: 0;
}

.audit-box li {
  padding: 0.375rem 0;
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.audit-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.125rem;
  height: 1.125rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2316A34A'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.value-statement {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--heading);
  line-height: 1.5;
}

/* ========================================
   FORM CARD
   ======================================== */
.form-card {
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 2rem;
}

.form-card h2 {
  text-align: center;
  margin-bottom: 0.25rem;
  font-size: 1.5rem;
}

.form-card-subtitle {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.form-required-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
  color: var(--heading);
}

.form-field input,
.form-field select {
  width: 100%;
  height: 3rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--heading);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input::placeholder {
  color: var(--muted);
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 50, 0.15);
  outline: none;
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"] {
  border-color: var(--error);
}

.form-field input[aria-invalid="true"]:focus,
.form-field select[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}

.field-error {
  color: var(--error);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  display: block;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-input);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 2.75rem;
  transition: background-color 0.2s;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: var(--primary-dark);
}

.btn-submit:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.form-security {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 1rem;
}

.form-security svg {
  vertical-align: middle;
  margin-right: 0.25rem;
}

.form-success {
  background: var(--audit-bg);
  border: 1px solid var(--audit-border);
  border-radius: var(--radius-input);
  padding: 1rem;
  text-align: center;
  color: var(--audit-text);
  font-weight: 600;
  display: none;
  margin-top: 1rem;
}

/* Honeypot */
.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ========================================
   TRUST SECTION
   ======================================== */
.trust-section {
  background: var(--light-gray);
  padding: 3.5rem 0;
  text-align: center;
}

.trust-section h2 {
  margin-bottom: 2.5rem;
}

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

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.trust-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.trust-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.trust-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.trust-item p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--heading);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 2rem 0;
  font-size: 0.875rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.85);
}

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-card {
    position: static;
    max-width: 32rem;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 2.5rem 0;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero-stat {
    padding: 1rem 1.5rem;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .form-card {
    padding: 1.5rem;
  }

  .risk-box,
  .audit-box {
    padding: 1.25rem;
  }
}

/* ========================================
   PRINT
   ======================================== */
@media print {
  .hero {
    background: none !important;
    color: #000 !important;
  }

  .hero h1,
  .hero-stat-number {
    color: #000 !important;
  }

  .form-card,
  .btn-submit,
  .form-security,
  .skip-link {
    display: none !important;
  }

  .trust-icon {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
