/* ============================================================
   duiattorneystempe.com — shared theme stylesheet
   Single source of truth for tokens, body chrome, header,
   footer, and the network red/gold/black aesthetic.
   ============================================================
   Updated 2026-05-15. Linked by every HTML page on the site.
*/

:root {
  /* Brand */
  --red:        #CC0000;
  --red-bright: #E51C23;
      --red-text: #FF7A7A;
  --red-dark:   #990000;
  --gold:       #F5C518;
  --gold-light: #FFD700;
  --black:      #0A0A1A;
  --charcoal:   #1A1A1A;
  --dark:       #1D2327;
  --dark-mid:   #2C3338;
  --mid:        #333333;
  --white:      #FFFFFF;
  --off-white:  #F0F0F1;
  --text-gray:  #AAAAAA;
  --blue:       #1E88E5;
  --orange:     #FF8C00;

  /* Type */
  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Oswald', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Layout */
  --container-max: 1200px;
  --gutter:        clamp(1rem, 3vw, 2rem);
  --radius:        4px;

  /* ----------------------------------------------------------
     Aliases — interior pages (court/defense/guide/about/costs)
     were authored against a second token naming scheme. Map
     them to the canonical dark-theme tokens so every page renders
     consistently. Text-ish tokens resolve LIGHT (readable on the
     dark body); structural tokens resolve DARK (card/section bg).
     No "yellow text" — --yellow intentionally resolves to white.
     ---------------------------------------------------------- */
  --color-red:         var(--red);
  --color-red-bright:  var(--red-bright);
  --color-red-dark:    var(--red-dark);
  --color-white:       var(--white);
  --color-off-white:   var(--off-white);
  --color-black:       var(--black);
  --color-charcoal:    var(--charcoal);   /* used as card background */
  --color-dark:        var(--dark);       /* used as section background */
  --color-dark-mid:    var(--dark-mid);
  --color-mid:         var(--mid);
  --color-text:        var(--off-white);  /* body text — light */
  --color-gray:        var(--text-gray);
  --color-gray-light:  #C8C8CC;
  --color-gray-medium: #9A9AA0;
  --color-orange:      var(--orange);
  --yellow:            var(--white);       /* no yellow text */

  /* Font-name aliases */
  --font-bebas:    var(--font-display);
  --font-oswald:   var(--font-heading);
  --font-headline: var(--font-heading);
  --font-inter:    var(--font-body);

  /* Spacing scale */
  --spacing-xs:  0.25rem;
  --spacing-sm:  0.5rem;
  --spacing-md:  1rem;
  --spacing-lg:  1.5rem;
  --spacing-xl:  2rem;
  --spacing-xxl: 3rem;
}

/* ---------- base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--off-white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

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

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

/* ---------- top alert bar ---------- */
.alert-bar {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.alert-bar a { color: var(--white); font-weight: 600; text-decoration: underline; }

/* ---------- header / nav ---------- */
header.site, .site-header {
  background: var(--black);
  border-bottom: 3px solid var(--gold);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
header.site .container,
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.brand .accent, .brand-mark { color: var(--gold); }

nav.primary, header.site nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
nav.primary a, header.site nav a {
  color: var(--white);
  text-decoration: none;
  transition: color 200ms ease;
}
nav.primary a:hover, header.site nav a:hover { color: var(--gold); }

.cta-button {
  background: var(--red);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 200ms ease;
}
.cta-button:hover { background: var(--red-bright); color: var(--white); }

/* ---------- headings ---------- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--white); line-height: 1.15; }
h1 { font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 1.5rem 0 0.75rem; }
h2.section-title { border-bottom: 3px solid var(--gold); padding-bottom: 0.5rem; }
h3 { font-size: 1.25rem; margin: 1rem 0 0.5rem; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  padding: clamp(2rem, 5vw, 4rem) 0;
}
.hero p.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.hero h1 { color: var(--white); }
.hero .crumb { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-top: 0.75rem; }
.hero .crumb a { color: var(--gold); }

/* ---------- main content ---------- */
main { padding: clamp(2rem, 5vw, 4rem) 0; }
main p { margin-bottom: 1rem; max-width: 70ch; }
main ul, main ol { margin: 1rem 0 1rem 1.5rem; }
main li { margin-bottom: 0.5rem; }
main strong { color: var(--white); }

/* ---------- cards ---------- */
.card, .provider-card, .stat-card {
  background: var(--charcoal);
  border: 1px solid var(--mid);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3, .provider-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.card a, .provider-card a { color: var(--gold); }
.card a:hover, .provider-card a:hover { color: var(--red-text); }

/* ---------- footer ---------- */
footer.site, .site-footer {
  background: var(--black);
  color: var(--text-gray);
  padding: 2rem 0;
  border-top: 3px solid var(--gold);
  text-align: center;
  font-size: 0.85rem;
}
footer.site a, .site-footer a { color: var(--gold); margin: 0 0.5rem; }
footer.site .container > p,
.site-footer .container > p { margin-bottom: 0.5rem; }

/* ---------- responsive ---------- */
@media (max-width: 700px) {
  header.site .container,
  .site-header .container { flex-direction: column; gap: 0.75rem; }
  nav.primary, header.site nav { justify-content: center; }
}

/* ============================================================
   DUIINFO PORTAL CTA MODULE  —  styles
   Paste at the END of theme.css on both sites.
   Uses existing CSS vars (--red, --black, --white, --gold, --font-*).
   ============================================================ */

.duiinfo-portal {
  background: linear-gradient(180deg, #0A0A1A 0%, #1A1A1A 100%);
  color: var(--off-white, #F0F0F1);
  padding: clamp(40px, 6vw, 80px) 20px;
  border-top: 4px solid var(--red, #CC0000);
  border-bottom: 4px solid var(--red, #CC0000);
}
.duiinfo-portal__inner { max-width: 1180px; margin: 0 auto; }

.duiinfo-portal__eyebrow {
  display: inline-block;
  font-family: var(--font-display, 'Bebas Neue'), sans-serif;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--gold, #F5C518);
  margin-bottom: 12px;
}
.duiinfo-portal__heading {
  font-family: var(--font-heading, 'Oswald'), sans-serif;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.15;
  color: var(--white, #fff);
  margin: 0 0 14px;
  max-width: 820px;
}
.duiinfo-portal__sub {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: #C8C8CC;
  max-width: 760px;
  margin: 0 0 22px;
}
.duiinfo-portal__primary {
  display: inline-block;
  background: var(--red, #CC0000);
  color: var(--white, #fff);
  font-family: var(--font-heading, 'Oswald'), sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  padding: 14px 26px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.duiinfo-portal__primary:hover {
  background: var(--red-bright, #E51C23);
  transform: translateY(-1px);
}

.duiinfo-portal__grid {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.duiinfo-portal__grid a {
  display: block;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 18px 18px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--off-white, #F0F0F1);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.duiinfo-portal__grid a:hover {
  background: rgba(204,0,0,0.10);
  border-color: var(--red, #CC0000);
  transform: translateY(-2px);
}
.duiinfo-portal__icon {
  display: block;
  font-size: 26px;
  margin-bottom: 8px;
}
.duiinfo-portal__label {
  display: block;
  font-family: var(--font-heading, 'Oswald'), sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--white, #fff);
  margin-bottom: 4px;
  text-transform: none;
}
.duiinfo-portal__desc {
  display: block;
  font-size: 13.5px;
  color: #B8B8BC;
  line-height: 1.45;
}

.duiinfo-portal__foot {
  margin-top: 30px;
  font-size: 13px;
  color: #9A9AA0;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
}
.duiinfo-portal__foot a {
  color: var(--off-white, #F0F0F1);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.25);
}
.duiinfo-portal__foot a:hover { color: var(--red-bright, #E51C23); }

@media (max-width: 600px) {
  .duiinfo-portal__grid { grid-template-columns: 1fr; }
  .duiinfo-portal__primary { width: 100%; text-align: center; }
}

    /* a11y: underline in-content links so they are distinguishable without color */
    p a:not(.btn):not(.btn-primary):not(.duiinfo-portal__primary), li a:not(.btn), h3 a, h4 a, .crosslink { text-decoration: underline; }
