/* ACL Migration Agents — Mockup Styles */
/* No frameworks. Vanilla CSS. Border-radius: 0 everywhere. */

/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
  --font-display: 'EB Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;

  --text-display: 2.25rem;
  --text-h1: 1.875rem;
  --text-h2: 1.5rem;
  --text-h3: 1.25rem;
  --text-h4: 1.125rem;
  --text-body: 1rem;
  --text-lead: 1.125rem;
  --text-small: 0.875rem;
  --text-overline: 0.6875rem;

  --leading-tight: 1.1;
  --leading-snug: 1.2;
  --leading-normal: 1.3;
  --leading-relaxed: 1.5;
  --leading-loose: 1.65;

  --color-ink: #1A1F2E;
  --color-navy: #1E3A5F;
  --color-navy-dark: #152A45;
  --color-paper: #F7F5F0;
  --color-paper-warm: #EDE9E1;
  --color-stone: #D5CFC5;
  --color-charcoal: #4A4F5A;
  --color-ochre: #A0522D;
  --color-white: #FFFFFF;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --max-width: 1200px;
  --content-pad: 24px;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

@media (min-width: 768px) {
  :root {
    --text-display: 3.5rem;
    --text-h1: 2.5rem;
    --text-h2: 2rem;
    --text-h3: 1.5rem;
    --text-h4: 1.25rem;
    --text-body: 1.0625rem;
    --text-lead: 1.25rem;
    --text-small: 0.9375rem;
    --text-overline: 0.75rem;
    --content-pad: 48px;
  }
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-loose);
  color: var(--color-ink);
  background-color: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-navy);
  text-decoration: underline;
  text-decoration-color: var(--color-stone);
  text-underline-offset: 3px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
  color: var(--color-navy-dark);
  text-decoration-color: var(--color-navy);
}

a:focus-visible {
  outline: 2px solid var(--color-ochre);
  outline-offset: 2px;
  text-decoration: none;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 8px 16px;
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
}

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

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--leading-snug);
  color: var(--color-ink);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
}

h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-5);
}

h3 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-4);
}

h4 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-3);
}

p {
  margin-bottom: var(--space-5);
}

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

.overline {
  font-family: var(--font-body);
  font-size: var(--text-overline);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-charcoal);
  margin-bottom: var(--space-3);
  display: block;
}

.lead {
  font-size: var(--text-lead);
  line-height: var(--leading-relaxed);
  color: var(--color-charcoal);
}

/* ========================================
   Layout
   ======================================== */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
}

.section {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-9);
    padding-bottom: var(--space-9);
  }
}

.divider {
  border: none;
  border-top: 1px solid var(--color-stone);
  margin: 0;
}

.divider-decorative {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-5) 0;
}

.divider-decorative::before,
.divider-decorative::after {
  content: '';
  width: 8px;
  height: 8px;
  border: 1px solid var(--color-stone);
}

/* ========================================
   Corner Mark Motif
   ======================================== */
.corner-mark {
  position: relative;
}

.corner-mark::before,
.corner-mark::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--color-navy);
  border-style: solid;
  pointer-events: none;
}

.corner-mark::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.corner-mark::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.corner-mark-light::before,
.corner-mark-light::after {
  border-color: var(--color-stone);
}

/* ========================================
   Navigation
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-paper);
  border-bottom: 1px solid var(--color-stone);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

@media (min-width: 768px) {
  .header-inner {
    height: 72px;
  }
}

.logo {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-ink);
}

.logo:hover {
  color: var(--color-ink);
  text-decoration: none;
}

.logo-main {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 400;
  color: var(--color-charcoal);
  display: none;
}

@media (min-width: 480px) {
  .logo-sub {
    display: inline;
  }
}

/* Desktop nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-5);
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

.nav-desktop a:hover {
  color: var(--color-navy);
  text-decoration: none;
  border-bottom-color: var(--color-navy);
}

.nav-desktop a.active {
  color: var(--color-navy);
  border-bottom-color: var(--color-navy);
}

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-ochre);
  outline-offset: 2px;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-ink);
  position: relative;
  transition: background-color var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--color-ink);
  transition: transform var(--transition-base);
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background-color: var(--color-ink);
  padding: var(--space-6) var(--content-pad);
  overflow-y: auto;
}

.nav-mobile.open {
  display: block;
}

@media (min-width: 768px) {
  .nav-mobile {
    inset: 72px 0 0 0;
  }
}

.nav-mobile a {
  display: block;
  color: var(--color-white);
  font-size: var(--text-h3);
  font-family: var(--font-display);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-mobile a:hover {
  color: var(--color-stone);
  text-decoration: none;
}

.nav-mobile a.active {
  color: var(--color-ochre);
}

/* Mobile CTA bar */
.mobile-cta {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: var(--color-navy);
  text-align: center;
  padding: 14px;
}

.mobile-cta a {
  color: var(--color-white);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--text-body);
}

@media (min-width: 1024px) {
  .mobile-cta {
    display: none;
  }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: none;
  min-height: 44px;
  min-width: 44px;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.btn:focus-visible {
  outline: 2px solid var(--color-ochre);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 14px 28px;
}

.btn-primary:hover {
  background-color: var(--color-navy-dark);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
  padding: 12px 26px;
}

.btn-secondary:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
  text-decoration: none;
}

.btn-large {
  padding: 16px 32px;
  font-size: var(--text-lead);
}

/* ========================================
   Hero
   ======================================== */
.hero {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  background-color: var(--color-paper);
}

@media (min-width: 768px) {
  .hero {
    padding-top: var(--space-9);
    padding-bottom: var(--space-9);
  }
}

.hero-inner {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

.hero-title {
  font-size: var(--text-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-5);
}

.hero-lead {
  font-size: var(--text-lead);
  line-height: var(--leading-relaxed);
  color: var(--color-charcoal);
  margin-bottom: var(--space-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.hero-image {
  border: 1px solid var(--color-stone);
  background-color: var(--color-paper-warm);
  padding: var(--space-4);
}

.hero-image img {
  width: 100%;
  object-fit: cover;
}

/* ========================================
   Trust Bar
   ======================================== */
.trust-bar {
  background-color: var(--color-paper-warm);
  border-top: 1px solid var(--color-stone);
  border-bottom: 1px solid var(--color-stone);
  padding: var(--space-5) 0;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .trust-items {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  text-align: center;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-h4);
  color: var(--color-navy);
  margin-bottom: var(--space-1);
}

.trust-item span {
  font-size: var(--text-small);
  color: var(--color-charcoal);
  line-height: var(--leading-normal);
}

/* ========================================
   Cards
   ======================================== */
.card-grid {
  display: grid;
  gap: var(--space-5);
}

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

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

.card {
  background-color: var(--color-paper-warm);
  border: 1px solid var(--color-stone);
  padding: var(--space-6);
  position: relative;
  transition: border-color var(--transition-fast);
}

.card:hover {
  border-color: var(--color-navy);
}

.card h3 {
  font-family: var(--font-display);
  font-size: var(--text-h4);
  margin-bottom: var(--space-3);
}

.card p {
  color: var(--color-charcoal);
  margin-bottom: var(--space-4);
}

.card ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-5);
}

.card li {
  margin-bottom: var(--space-2);
  color: var(--color-charcoal);
}

.card-link {
  font-weight: 600;
  text-decoration: none;
}

/* ========================================
   Service Detail Sections
   ======================================== */
.service-section {
  margin-bottom: var(--space-8);
}

.service-section:last-child {
  margin-bottom: 0;
}

.service-section h3 {
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-stone);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-5);
}

.service-section ul {
  padding-left: var(--space-5);
  margin-bottom: var(--space-5);
}

.service-section li {
  margin-bottom: var(--space-2);
}

/* ========================================
   Process Steps
   ======================================== */
.process-steps {
  display: grid;
  gap: var(--space-6);
  counter-reset: step;
}

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

@media (min-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  position: relative;
  padding-top: var(--space-7);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--color-stone);
  line-height: 1;
}

.step h4 {
  font-family: var(--font-display);
  font-size: var(--text-h4);
  margin-bottom: var(--space-3);
}

.step p {
  font-size: var(--text-small);
  color: var(--color-charcoal);
  margin-bottom: 0;
}

/* ========================================
   Fee Tables
   ======================================== */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-6);
}

.fee-table th,
.fee-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-stone);
}

.fee-table th {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-charcoal);
  background-color: var(--color-paper-warm);
}

.fee-table td {
  font-size: var(--text-body);
}

.fee-table tr:hover td {
  background-color: var(--color-paper-warm);
}

/* ========================================
   Forms
   ======================================== */
.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-size: var(--text-small);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-ink);
  background-color: var(--color-white);
  border: 1px solid var(--color-stone);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-navy);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-charcoal);
  opacity: 0.6;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin-top: 2px;
  accent-color: var(--color-navy);
  cursor: pointer;
}

.checkbox-group label {
  font-weight: 400;
  font-size: var(--text-small);
  margin-bottom: 0;
  line-height: var(--leading-relaxed);
}

/* ========================================
   Contact Layout
   ======================================== */
.contact-grid {
  display: grid;
  gap: var(--space-7);
}

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

.contact-details h3 {
  font-family: var(--font-display);
  margin-bottom: var(--space-4);
}

.contact-details p {
  margin-bottom: var(--space-4);
}

.contact-details strong {
  display: block;
  font-size: var(--text-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-charcoal);
  margin-bottom: var(--space-1);
}

.contact-block {
  margin-bottom: var(--space-6);
}

.contact-block:last-child {
  margin-bottom: 0;
}

/* ========================================
   FAQ / Accordion
   ======================================== */
.accordion-item {
  border-bottom: 1px solid var(--color-stone);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-ink);
  text-align: left;
  cursor: pointer;
  min-height: 44px;
}

.accordion-trigger:focus-visible {
  outline: 2px solid var(--color-ochre);
  outline-offset: 2px;
}

.accordion-trigger::after {
  content: '+';
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-navy);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  margin-left: var(--space-4);
}

.accordion-trigger[aria-expanded="true"]::after {
  content: '-';
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.accordion-panel.open {
  max-height: 500px;
}

.accordion-panel p {
  padding-bottom: var(--space-4);
  color: var(--color-charcoal);
  margin-bottom: 0;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  background-color: var(--color-paper-warm);
  border-top: 1px solid var(--color-stone);
  border-bottom: 1px solid var(--color-stone);
  padding: var(--space-8) 0;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-section {
    padding: var(--space-9) 0;
  }
}

.cta-section h2 {
  margin-bottom: var(--space-4);
}

.cta-section p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-6);
  color: var(--color-charcoal);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background-color: var(--color-ink);
  color: var(--color-white);
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
}

.footer-grid {
  display: grid;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}

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

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

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-stone);
  margin-bottom: var(--space-4);
}

.footer-col p,
.footer-col a {
  font-size: var(--text-small);
  color: var(--color-stone);
  text-decoration: none;
  line-height: var(--leading-relaxed);
}

.footer-col a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-2);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.footer-tagline {
  font-size: var(--text-small);
  color: var(--color-stone);
  margin-bottom: var(--space-3);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-5);
  text-align: center;
}

.footer-bottom p {
  font-size: var(--text-small);
  color: var(--color-stone);
  margin-bottom: var(--space-2);
}

/* ========================================
   Utilities
   ======================================== */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

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

/* ========================================
   Print Styles
   ======================================== */
@media print {
  .site-header,
  .nav-mobile,
  .mobile-cta,
  .site-footer,
  .hero-actions,
  .cta-section,
  .btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 11pt;
    line-height: 1.4;
  }

  h1, h2, h3, h4 {
    color: black;
    page-break-after: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  .section {
    padding: 24px 0;
  }

  .card {
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}
