/* ============================================================
   Automated Data Systems (ADS) — site stylesheet
   ============================================================ */

:root {
  --ink: #17171A;
  --ink-2: #2A2A30;
  --steel: #9A9AA1;
  --muted: #52525B;
  --line: #E4E4E7;
  --surface: #F4F4F5;
  --bg: #FAFAFA;
  --white: #FFFFFF;

  --accent: #5AAAD0;
  --accent-deep: #2E6C90;
  --accent-tint: #EAF4FA;
  --accent-tint-border: #CFE4F1;
  --quote-tint: #BFE0F0;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-deep); }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
  border-color: rgba(0,0,0,0.06);
}
.btn-primary:hover { background: #4C9BC2; color: var(--ink); }
.btn-outline {
  background: transparent;
  border-color: var(--accent-tint-border);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--accent); color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo .logo-ads { height: 28px; width: auto; }
.logo .logo-divider { width: 1px; height: 20px; background: var(--line); display: inline-block; }
.logo .logo-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.main-nav a.current,
.main-nav a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-actions .phone {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.remote-support-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  border: 1.5px solid var(--accent-tint-border);
  padding: 9px 16px;
  border-radius: 8px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0;
  background: var(--bg);
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 64px;
}
.hero-copy { width: 50%; }
.hero-visual { width: 50%; display: flex; align-items: center; justify-content: center; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-border);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-weight: 700;
  font-size: 48px;
  line-height: 1.12;
  margin: 22px 0 18px;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-illustration {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--ink);
  padding: 40px 0;
}
.stats-band .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
}
.stat { text-align: center; border-left: 1px solid var(--ink-2); padding: 0 12px; }
.stat:first-child { border-left: none; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--accent);
}
.stat-label { font-size: 13px; color: var(--steel); margin-top: 4px; }

/* ---------- Trust banner ---------- */
.trust-banner {
  padding: 24px 0;
  background: var(--accent-tint);
  border-bottom: 1px solid var(--accent-tint-border);
}
.trust-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}
.trust-banner svg { flex-shrink: 0; }
.trust-banner span {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Section heading ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--white); }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.section-heading { max-width: 640px; }
.section-heading h2 {
  font-weight: 700;
  font-size: 30px;
  margin-top: 10px;
}

/* ---------- About ---------- */
.about-grid {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}
.about-grid .about-title { width: 36%; }
.about-grid .about-title h2 { font-size: 28px; margin-top: 10px; line-height: 1.25; }
.about-grid .about-body { width: 64%; }
.about-grid .about-body p { font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
.about-grid .about-body p:last-child { margin-bottom: 0; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  margin-top: 40px;
  align-items: start;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
}
.service-card-header { margin-bottom: 22px; }
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-tint), #D7E9F5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.service-card h3 { font-size: 18px; font-weight: 600; }
.service-card .card-sub { font-size: 14px; color: var(--steel); margin-top: 6px; }

.item-list { display: flex; flex-direction: column; gap: 16px; }
.item-list.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px 24px;
}
.item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.item svg { flex-shrink: 0; margin-top: 2px; }
.item .item-name { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.item .item-desc { font-size: 13.5px; line-height: 1.55; color: var(--steel); margin-top: 2px; }
.item.span-2 { grid-column: span 2; }

/* ---------- AI callout ---------- */
.ai-callout {
  margin-top: 28px;
  background: var(--ink);
  border-radius: 16px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.ai-callout-left { display: flex; align-items: center; gap: 24px; }
.ai-icon {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-callout h3 { color: var(--white); font-size: 18px; }
.ai-callout p { font-size: 14.5px; line-height: 1.6; color: var(--steel); margin-top: 6px; max-width: 480px; }

/* ---------- Compliance strip ---------- */
.compliance-strip {
  padding: 32px 0;
  background: var(--surface);
}
.compliance-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.compliance-strip .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
  margin-right: 8px;
}
.badge {
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 28px;
  margin-top: 40px;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial p { font-size: 15.5px; line-height: 1.7; color: #3F3F46; }
.testimonial .attribution { font-size: 14px; font-weight: 600; color: var(--ink); }

/* ---------- CTA band (homepage, links to contact page) ---------- */
.cta-band {
  background: var(--ink);
  padding: 64px 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); font-size: 27px; margin-bottom: 6px; }
.cta-band p { color: var(--steel); font-size: 15.5px; }
.cta-band-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.cta-band-actions .phone { color: var(--white); font-weight: 600; font-size: 15px; }

/* ---------- Contact page ---------- */
.page-header {
  padding: 56px 0 40px;
  background: var(--ink);
}
.page-header .eyebrow { color: var(--accent); }
.page-header h1 { color: var(--white); font-size: 34px; margin-top: 10px; }
.page-header p { color: var(--steel); font-size: 16px; margin-top: 10px; max-width: 560px; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  padding: 72px 0;
}
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info h2 { font-size: 22px; margin-bottom: 8px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-row svg { flex-shrink: 0; margin-top: 2px; color: var(--accent-deep); }
.contact-row .contact-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.contact-row .contact-detail { font-size: 13.5px; color: var(--steel); }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: span 2; }
.field label { font-size: 13px; font-weight: 600; color: #3F3F46; margin-bottom: 6px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field-honeypot { position: absolute; left: -9999px; top: -9999px; }
.form-submit {
  width: 100%;
  border: none;
}
.form-note {
  font-size: 12.5px;
  color: var(--steel);
  margin-top: 10px;
}
.form-alert {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}
.form-alert.success {
  background: #EAF7EF;
  border: 1px solid #BFE6CE;
  color: #1E6B3E;
}
.form-alert.error {
  background: #FDEDED;
  border: 1px solid #F3C6C6;
  color: #A32424;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  padding: 56px 0 28px;
  border-top: 1px solid var(--ink-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo .logo-ads { height: 24px; width: auto; }
.footer-logo .logo-divider { width: 1px; height: 18px; background: var(--ink-2); display: inline-block; }
.footer-logo .logo-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--steel);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.footer-about { font-size: 14px; line-height: 1.6; color: var(--steel); max-width: 260px; }
.footer-col-title { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: var(--steel); }
.footer-links a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--steel); }
.footer-bottom {
  border-top: 1px solid var(--ink-2);
  margin-top: 44px;
  padding-top: 22px;
}
.footer-bottom span { font-size: 13px; color: #71717A; }

/* ---------- Homepage MDR spotlight ---------- */
.mdr-spotlight { background: linear-gradient(135deg, var(--accent-deep), #1f4f6b); padding: 44px 0; }
.mdr-spotlight-inner { display: flex; align-items: center; gap: 32px; }
.mdr-spotlight-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mdr-spotlight-copy { flex: 1; }
.mdr-spotlight-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mdr-spotlight-copy h2 { color: var(--white); font-size: 26px; font-weight: 700; margin: 12px 0 8px; line-height: 1.2; }
.mdr-spotlight-copy p { color: rgba(255,255,255,0.85); font-size: 15px; line-height: 1.6; max-width: 640px; margin: 0; }
.mdr-spotlight-cta { flex-shrink: 0; }
.mdr-spotlight .btn-primary { background: var(--white); color: var(--ink); }
.mdr-spotlight .btn-primary:hover { background: var(--accent-tint); }

/* ---------- Philosophy / pull-quote section (About) ---------- */
.philosophy-section { background: var(--ink); padding: 72px 0; }
.philosophy-section .container { max-width: 760px; text-align: center; }
.philosophy-section .eyebrow { color: var(--accent); }
.philosophy-quote {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  line-height: 1.55;
  margin-top: 18px;
}

/* ---------- Recovery stories (How We Work) ---------- */
.recovery-story {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.recovery-story:last-of-type { border-bottom: none; }
.recovery-stat {
  flex-shrink: 0;
  width: 168px;
  text-align: center;
  background: var(--ink);
  border-radius: 16px;
  padding: 26px 14px;
}
.recovery-stat .num { font-family: var(--font-display); font-weight: 700; font-size: 32px; color: var(--accent); line-height: 1.1; }
.recovery-stat .label { font-size: 12px; color: var(--steel); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.recovery-copy h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.recovery-copy p { font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.recovery-copy p + p { margin-top: 12px; }
.recovery-intro { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 680px; margin: 0 auto 8px; text-align: center; }
.recovery-closing {
  text-align: center;
  max-width: 680px;
  margin: 48px auto 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 500;
}
.recovery-closing a { color: var(--accent-deep); font-weight: 600; }

/* ---------- Services page grid ---------- */
.services-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 24px;
  margin-top: 40px;
}
.services-page-grid .service-card { display: flex; flex-direction: column; padding: 32px; }
.services-page-grid .service-card h3 { font-size: 17px; font-weight: 600; margin-top: 4px; }
.services-page-grid .service-card p.card-desc { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin-top: 10px; }
.services-page-grid .service-card.featured {
  background: linear-gradient(180deg, var(--accent-tint), var(--white));
  border-color: var(--accent-tint-border);
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-deep);
}
.card-link:hover { color: var(--ink); }
.card-icon-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero .container { flex-direction: column; }
  .hero-copy, .hero-visual { width: 100%; }
  .hero-visual { margin-top: 32px; }
  .hero h1 { font-size: 38px; }
  .about-grid { flex-direction: column; gap: 24px; }
  .about-grid .about-title, .about-grid .about-body { width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .item-list.two-col { grid-template-columns: 1fr; }
  .item.span-2 { grid-column: span 1; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .mdr-spotlight-inner { flex-direction: column; text-align: center; }
  .mdr-spotlight-copy p { max-width: none; }
  .services-page-grid { grid-template-columns: 1fr; }
  .recovery-story { flex-direction: column; }
  .recovery-stat { width: 100%; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-actions .phone { display: none; }
  .nav-toggle { display: block; }
  .remote-support-btn span.label { display: none; }
  .stats-band .container { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 24px; }
  .stat:nth-child(3) { border-left: none; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: span 1; }
  .ai-callout { flex-direction: column; align-items: flex-start; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 27px; }
}

/* Mobile nav panel (JS toggles .is-open) */
@media (max-width: 720px) {
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    gap: 16px;
  }
}
