/* American Trucking Insurance Services - shared site chrome and page styles.
   Brand: navy rgb(28,48,95) #1c305f, red rgb(178,34,52) #b22234, white.
   Reused guide pages keep their own inline styles; everything here is namespaced
   (.atis-*) so it never fights them. */
:root {
  --atis-navy: #1c305f;
  --atis-navy-dark: #142447;
  --atis-navy-2: #2b4a8a;
  --atis-red: #b22234;
  --atis-red-dark: #8f1b2a;
  --atis-red-tint: #fbecee;
  --atis-tint: #f4f6fb;
  --atis-line: #dfe4ee;
  --atis-ink: #1e293b;
  --atis-muted: #5b6578;
  --atis-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --atis-display: 'Outfit', 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

/* ---------- shared chrome (header + footer on every page) ---------- */
.atis-chrome, .atis-chrome * { box-sizing: border-box; }
.atis-chrome { font-family: var(--atis-font); line-height: 1.5; text-align: left; }
.atis-chrome a { text-decoration: none; }
.atis-chrome a:hover { text-decoration: underline; }
.atis-wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.atis-header { background: #fff; border-bottom: 1px solid var(--atis-line); position: relative; z-index: 50; }
.atis-header .atis-stripe { height: 5px; background: linear-gradient(90deg, var(--atis-navy) 0 62%, var(--atis-red) 62% 100%); }
.atis-header .atis-header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.atis-header .atis-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--atis-navy); }
.atis-header .atis-brand:hover { text-decoration: none; }
.atis-header .atis-brand img { height: 56px; width: auto; display: block; margin: 0; max-width: none; }
.atis-header .atis-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.atis-header .atis-brand-1 { font-family: var(--atis-display); font-weight: 800; font-size: 1.15rem; color: var(--atis-navy); letter-spacing: .01em; text-transform: uppercase; }
.atis-header .atis-brand-2 { font-family: var(--atis-display); font-weight: 700; font-size: .86rem; color: var(--atis-red); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.atis-header .atis-nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.atis-header .atis-nav a { color: var(--atis-navy); font-weight: 600; font-size: .92rem; padding: 4px 0; }
.atis-header .atis-nav a.atis-phone { color: var(--atis-red); white-space: nowrap; }
.atis-header .atis-nav a.atis-btn { background: var(--atis-red); color: #fff; padding: 9px 16px; border-radius: 6px; white-space: nowrap; }
.atis-header .atis-nav a.atis-btn:hover { background: var(--atis-red-dark); text-decoration: none; }

.atis-footer { background: var(--atis-navy); color: #d6deee; font-size: .9rem; margin-top: 0; }
.atis-footer .atis-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding-top: 40px; padding-bottom: 28px; }
.atis-footer .atis-footer-name { color: #fff; font-family: var(--atis-display); font-weight: 700; font-size: 1.05rem; display: block; margin-bottom: 6px; }
.atis-footer p { margin: 0 0 6px; color: #d6deee; font-size: .9rem; line-height: 1.55; }
.atis-chrome.atis-footer a { color: #fff; }
.atis-footer .atis-footer-h { color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.atis-footer ul { list-style: none; margin: 0; padding: 0; }
.atis-footer li { margin: 0 0 6px; padding: 0; }
.atis-footer li::before { content: none; }
.atis-footer .atis-legal { border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; padding-bottom: 26px; font-size: .8rem; color: #b9c4dc; }
.atis-footer .atis-legal p { font-size: .8rem; color: #b9c4dc; }

@media (max-width: 760px) {
  .atis-header .atis-brand img { height: 46px; }
  .atis-header .atis-brand-1 { font-size: 1rem; }
  .atis-header .atis-brand-2 { font-size: .74rem; }
  .atis-header .atis-nav { width: 100%; gap: 4px 16px; }
  .atis-header .atis-nav a.atis-btn { margin-left: auto; }
  .atis-footer .atis-footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* NLTS used orange as an accent on navy boxes. ATIS red is too dark there, so those spots use a light tint. */
.sidebar-card a.phone, .local-box h3, .local-box strong, .local-box a, .cta-card h3, .hero .eyebrow,
.page-hero .hero-label, .page-hero .label, .sidebar-cta a.phone-link, .credentials .cred-value a { color: #f6b9c0 !important; }
.page-hero .label, .page-hero .hero-label { border-color: #f6b9c0 !important; }
.credentials h3 { color: #fff !important; }
.license-box p { color: #5b6578 !important; }

/* Some reused guides style every <nav> as a 64px header bar, which squashes their table of contents. */
nav.toc { display: block; height: auto; }

/* Reused guides lay out some card rows with inline multi-column grids and no phone breakpoint. */
@media (max-width: 760px) {
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  body article, body aside, body main { min-width: 0; max-width: 100%; }
  body table { display: block; max-width: 100%; overflow-x: auto; }
}

/* Reused guides built on the bare "plain" template get a centred column. */
.atis-main-plain { max-width: 860px; margin: 0 auto; padding: 20px; }

/* Page-level notice used on reused guides outside Georgia (see README). */
.atis-notice { background: var(--atis-tint); border-left: 4px solid var(--atis-navy); padding: 12px 16px; margin: 0 0 22px; font-size: .9rem; color: var(--atis-ink); border-radius: 0 6px 6px 0; }

/* TODO markers: visible on purpose until Sam wires the forms. */
.atis-todo { background: #fff7d6; border: 2px dashed #b88a00; color: #5a4300; padding: 10px 14px; border-radius: 6px; font: 600 .86rem/1.45 var(--atis-font); margin: 0 0 16px; }
.atis-todo code { font-size: .82rem; }

/* ---------- ATIS-only pages (home, about, contact, license, quote, legal) ---------- */
.atis-page { font-family: var(--atis-font); color: var(--atis-ink); background: #fff; margin: 0; line-height: 1.65; }
.atis-page *, .atis-page *::before, .atis-page *::after { box-sizing: border-box; }
.atis-page h1, .atis-page h2, .atis-page h3 { font-family: var(--atis-display); color: var(--atis-navy); line-height: 1.2; margin: 0 0 12px; }
.atis-page p { margin: 0 0 14px; }
.atis-page a { color: var(--atis-red); }
.atis-page main a:not(.atis-cta):not(.atis-cta-ghost) { text-decoration: underline; text-underline-offset: 2px; }
.atis-page img { max-width: 100%; }

.atis-hero { background: linear-gradient(135deg, var(--atis-navy-dark) 0%, var(--atis-navy) 55%, var(--atis-navy-2) 100%); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.atis-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--atis-red); }
.atis-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 2.9rem); max-width: 760px; margin-bottom: 16px; }
.atis-hero p { color: #dbe3f3; font-size: 1.08rem; max-width: 640px; }
.atis-hero .atis-eyebrow { color: #fff; }
.atis-eyebrow { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--atis-red); margin-bottom: 12px; }
.atis-hero .atis-eyebrow { background: var(--atis-red); padding: 4px 12px; border-radius: 999px; }
.atis-hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
.atis-hero-card { background: #fff; border-radius: 12px; padding: 22px; text-align: center; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.atis-hero-card img { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto 10px; }
.atis-hero-card p { color: var(--atis-muted); font-size: .88rem; margin: 0; }
.atis-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.atis-cta { display: inline-block; background: var(--atis-red); color: #fff !important; padding: 13px 24px; border-radius: 8px; font-weight: 700; font-family: var(--atis-display); text-decoration: none !important; }
.atis-cta:hover { background: var(--atis-red-dark); }
.atis-cta-ghost { display: inline-block; border: 2px solid rgba(255,255,255,.55); color: #fff !important; padding: 11px 22px; border-radius: 8px; font-weight: 600; text-decoration: none !important; }
.atis-cta-ghost:hover { border-color: #fff; }
.atis-cta-navy { background: var(--atis-navy); }
.atis-cta-navy:hover { background: var(--atis-navy-dark); }

.atis-section { padding: 64px 0; }
.atis-section.atis-alt { background: var(--atis-tint); }
.atis-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.atis-lede { color: var(--atis-muted); font-size: 1.04rem; max-width: 720px; margin-bottom: 30px; }
.atis-narrow { max-width: 820px; }

.atis-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.atis-card { background: #fff; border: 1px solid var(--atis-line); border-top: 4px solid var(--atis-navy); border-radius: 10px; padding: 20px 22px; }
.atis-card.atis-red-top { border-top-color: var(--atis-red); }
.atis-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.atis-card p { color: var(--atis-muted); font-size: .94rem; margin: 0; }
.atis-card a { font-weight: 600; }

.atis-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.atis-step { background: #fff; border: 1px solid var(--atis-line); border-radius: 10px; padding: 22px; position: relative; }
.atis-step::before { counter-increment: step; content: counter(step); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--atis-red); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 10px; }
.atis-step h3 { font-size: 1.05rem; }
.atis-step p { color: var(--atis-muted); font-size: .94rem; margin: 0; }

.atis-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 22px 0; }
.atis-fact { background: var(--atis-tint); border-left: 4px solid var(--atis-red); border-radius: 0 8px 8px 0; padding: 14px 18px; }
.atis-fact .k { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--atis-red); }
.atis-fact .v { font-weight: 700; color: var(--atis-navy); font-size: 1.02rem; }
.atis-fact .s { color: var(--atis-muted); font-size: .84rem; }

.atis-faq details { border: 1px solid var(--atis-line); border-radius: 8px; padding: 14px 18px; margin-bottom: 10px; background: #fff; }
.atis-faq summary { cursor: pointer; font-weight: 700; color: var(--atis-navy); }
.atis-faq details p { margin: 10px 0 0; color: var(--atis-ink); }

.atis-guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.atis-guide { display: block; background: #fff; border: 1px solid var(--atis-line); border-radius: 10px; padding: 18px; color: var(--atis-ink) !important; text-decoration: none !important; }
.atis-guide:hover { border-color: var(--atis-navy); box-shadow: 0 6px 18px rgba(28,48,95,.12); }
.atis-guide .t { font-family: var(--atis-display); font-weight: 700; color: var(--atis-navy); display: block; margin-bottom: 6px; }
.atis-guide .d { font-size: .88rem; color: var(--atis-muted); }

.atis-band { background: var(--atis-navy); color: #fff; border-radius: 12px; padding: 34px; text-align: center; }
.atis-band h2, .atis-band h3 { color: #fff; }
.atis-band p { color: #dbe3f3; max-width: 560px; margin-left: auto; margin-right: auto; }
.atis-band .atis-actions { justify-content: center; }

.atis-form { background: #fff; border: 1px solid var(--atis-line); border-radius: 12px; padding: 24px; box-shadow: 0 10px 30px rgba(28,48,95,.08); }
.atis-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.atis-form label { display: block; font-weight: 600; font-size: .86rem; color: var(--atis-navy); margin: 0 0 12px; }
.atis-form input, .atis-form select, .atis-form textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid #c9d1e1; border-radius: 6px; font: inherit; font-weight: 400; color: var(--atis-ink); background: #fff; }
.atis-form textarea { min-height: 110px; resize: vertical; }
.atis-form button { background: var(--atis-red); color: #fff; border: 0; border-radius: 8px; padding: 13px 22px; font: 700 1rem var(--atis-display); cursor: pointer; width: 100%; }
.atis-form button:hover { background: var(--atis-red-dark); }
.atis-form .fine { font-size: .78rem; color: var(--atis-muted); margin: 10px 0 0; }
.atis-form-result { display: none; margin-top: 12px; }
.atis-form-result.on { display: block; padding: 10px 14px; border-radius: 6px; font-weight: 600; }
.atis-form-result.ok { background: #e7f6ec; color: #135c2b; }
.atis-form-result.err { background: #fdecec; color: #8a1c1c; }
.atis-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.atis-legaldoc h2 { font-size: 1.25rem; margin-top: 30px; }
.atis-legaldoc ul { padding-left: 22px; margin: 0 0 14px; }
.atis-legaldoc li { margin-bottom: 6px; }

@media (max-width: 900px) {
  .atis-hero-grid { grid-template-columns: 1fr; }
  .atis-hero-card { max-width: 360px; }
  .atis-cards, .atis-guides, .atis-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .atis-hero { padding: 44px 0 40px; }
  .atis-hero-card { display: none; }
  .atis-section { padding: 44px 0; }
  .atis-cards, .atis-guides, .atis-steps, .atis-facts, .atis-form .row { grid-template-columns: 1fr; }
  .atis-band { padding: 26px 18px; }
}
