/* ============================================
   ATA DESIGN SYSTEM
   Access to Attorney — Design Tokens & Components

   CONTENT SWAP GUIDE:
   - Colors: update :root variables below
   - Fonts: update font-family in :root
   - Logo: replace .logo-mark content or swap for <img>
   - Phone: search for "888-243-3301"
   ============================================ */

/* ── TOKENS ── */
:root {
  /* Brand colors — update if Steve sends different hex codes */
  --navy: #1B3A5C;
  --navy-dark: #132942;
  --navy-light: #2A5580;
  --gold: #C5A55A;
  --gold-light: #D4B96E;
  --gold-dark: #A8893F;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F2F2F2;
  --gray-200: #E5E5E5;
  --gray-300: #CCCCCC;
  --gray-400: #999999;
  --gray-500: #777777;
  --gray-600: #666666;
  --gray-800: #333333;
  --gray-900: #1A1A1A;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --space-5xl: 100px;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-full: 50%;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.25s;
}


/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }


/* ── LAYOUT ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section { padding: var(--space-4xl) 0; }
.section--lg { padding: var(--space-5xl) 0; }
.section--sm { padding: var(--space-2xl) 0; }
.section--gray { background: var(--gray-50); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy-dark { background: var(--navy-dark); color: var(--white); }

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


/* ── TYPOGRAPHY ── */
.label {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  display: block;
}

.heading-1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

.heading-2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: var(--space-md);
}

.heading-3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

.heading-4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
}

.subtitle {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.body-text {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
}

.small-text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Navy section overrides */
.section--navy .heading-2 { color: var(--white); }
.section--navy .subtitle { color: rgba(255,255,255,0.65); }
.section--navy .label { color: var(--gold); }


/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  letter-spacing: 0.3px;
  line-height: 1;
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(197, 165, 90, 0.35);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(27, 58, 92, 0.35);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline-white:hover {
  background: var(--white);
  color: var(--navy);
}

.btn--outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--sm {
  padding: 10px 24px;
  font-size: 14px;
}

.btn--lg {
  padding: 18px 42px;
  font-size: 16px;
}

.btn-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}


/* ── HEADER ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Logo — SWAP: replace inner content with <img src="images/logo.svg"> when logo arrives */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo__mark {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo__mark span { color: var(--gold); }

.logo__text {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.3;
}

/* Navigation */
.nav { display: flex; align-items: center; gap: var(--space-xl); }

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
  letter-spacing: 0.3px;
  transition: color var(--duration);
  position: relative;
}

.nav__link:hover,
.nav__link--active { color: var(--navy); }

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}

/* Header phone */
.header__phone {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.header__phone i { color: var(--gold); font-size: 16px; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--navy);
  font-size: 24px;
}


/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  transition: all var(--duration) var(--ease);
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.card--dark {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}

.card--dark:hover {
  background: rgba(255,255,255,0.1);
}

.card__icon {
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 14px;
}

.card--dark .card__icon { color: var(--gold); }


/* ── ICON CIRCLE ── */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.icon-circle--sm {
  width: 44px;
  height: 44px;
  font-size: 16px;
}

.icon-circle--gold {
  background: var(--gold);
  color: var(--white);
}


/* ── FORMS ── */
.form-group { margin-bottom: var(--space-md); }

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gray-800);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: border-color var(--duration);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-note {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: var(--space-xs);
}


/* ── FAQ ACCORDION ── */
.faq-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.faq-tab {
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  transition: all 0.2s;
}

.faq-tab:first-child { border-radius: 8px 0 0 8px; }
.faq-tab:last-child { border-radius: 0 8px 8px 0; border-left: none; }

.faq-tab--active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}

.faq-question i {
  color: var(--gold);
  font-size: 14px;
  transition: transform var(--duration);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-item.is-open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}


/* ── STATS COUNTER ── */
.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  letter-spacing: 0.5px;
}


/* ── TESTIMONIAL ── */
.testimonial {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 64px;
  color: var(--gold);
  position: absolute;
  top: 12px;
  left: 24px;
  line-height: 1;
  opacity: 0.3;
}

.testimonial__text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial__author {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.testimonial__role {
  font-size: 12px;
  color: var(--gray-400);
}


/* ── FOOTER ── */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__about p {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Footer logo — SWAP: update when logo arrives */
.footer__logo {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-md);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  transition: all var(--duration);
}

.footer__social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer ul li { margin-bottom: 10px; }

.footer ul a {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  transition: color var(--duration);
}

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

.footer__contact p {
  font-size: 13px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer__contact i {
  color: var(--gold);
  margin-top: 3px;
  font-size: 13px;
}

.footer__bottom {
  padding: 24px 0;
  margin-top: 40px;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
}

.footer__disclaimer {
  font-size: 11px;
  line-height: 1.7;
  color: rgba(255,255,255,0.35);
  max-width: 700px;
}

.footer__copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}


/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }


/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }

  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    padding: var(--space-lg);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    gap: var(--space-md);
  }
  .menu-toggle { display: block; }

  .section { padding: var(--space-2xl) 0; }
  .section--lg { padding: var(--space-3xl) 0; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }

  .form-row { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer__bottom-inner { flex-direction: column; }

  .faq-tab { padding: 10px 20px; font-size: 13px; }
}

@media (max-width: 480px) {
  .grid-5 { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; text-align: center; }
  .header__phone span { display: none; }
}


/* ── UTILITY ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ── HERO ── */
.hero {
  margin-top: var(--header-height);
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(197, 165, 90, 0.05);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero__content { flex: 1; }

.hero__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero__image {
  flex: 0 0 440px;
  height: 380px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 1024px) {
  .hero__image { display: none; }
  .hero h1 { font-size: 40px; }
}

@media (max-width: 768px) {
  .hero { padding: 80px 0 60px; }
}


/* ── HOW IT WORKS ── */
.hiw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.hiw-column__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gold);
}

.hiw-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.hiw-step__body h4 { margin-bottom: 4px; }

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


/* ── PROCESS STEPS ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 24px 12px;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 52px;
  right: -8px;
  width: 16px;
  height: 2px;
  background: var(--gold);
}

.process-step:last-child::after { display: none; }

.process-step .icon-circle { margin: 0 auto 14px; }

.process-step__num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .process-step:nth-child(3)::after { display: none; }
}

@media (max-width: 768px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2n)::after { display: none; }
}


/* ── STATS PADDING ── */
.stats-grid .stat__number { padding-top: 32px; }


/* ── TESTIMONIALS ROW ── */
@media (max-width: 768px) {
  .testimonials-row { grid-template-columns: 1fr !important; }
}


/* ── INNER PAGE HERO ── */
.page-hero {
  margin-top: var(--header-height);
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 80px 0 60px;
  text-align: center;
}

.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.65); font-size: 17px; max-width: 600px; margin: 0 auto; line-height: 1.7; }


/* Placeholder markers — remove before launch */
.placeholder {
  background: rgba(197, 165, 90, 0.1);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-size: 13px;
  color: var(--gold);
  text-align: center;
}
