/* ============================================================
   Denson DWI & Drug Defense, PLLC — arkansasdwilawyer.com
   WebJIVE mini-CMS build — design system
   Tokens extracted from the original site (2026-07-14):
   primary #185EA5 · accent-alt #86BDE7 · secondary #68A0CA
   dark #272828 · navy #0E3359 · light #F7F7F7 · text #343434
   Fonts: Poppins (display, w200 uppercase) + Open Sans (body)
   ============================================================ */
:root {
  --primary: #185EA5;
  --primary-dark: #124a84;
  --accent-alt: #86BDE7;
  --secondary: #68A0CA;
  --dark: #272828;
  --navy: #0E3359;
  --light: #F7F7F7;
  --text: #343434;
  --white: #FFFFFF;
  --star: #FFD80A;
  --fnt-body: "Open Sans", sans-serif;
  --fnt-display: "Poppins", sans-serif;
  --radius: 0.44rem;
  --maxw: 1200px;
  --pd-v: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--fnt-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); transition: color .3s ease; }
a:hover { color: var(--secondary); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }

/* ---------- Typography ---------- */
h1, h2, .t-big, .t-1 {
  font-family: var(--fnt-display);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.05;
  color: var(--primary);
  margin: 0 0 1rem;
}
h1, .t-big { font-size: clamp(2.2rem, 5vw, 4rem); }
h2, .t-1 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
h3 { font-family: var(--fnt-body); font-weight: 300; font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.3; color: var(--secondary); margin: 0 0 1rem; }
h4 { font-family: var(--fnt-body); font-weight: 700; font-size: 1.5rem; line-height: 1.5; color: var(--primary); margin: 0 0 .75rem; }
h5 { font-family: var(--fnt-body); font-weight: 700; font-size: 1.25rem; color: var(--secondary); margin: 0 0 .6rem; }
h6 { font-family: var(--fnt-body); font-weight: 400; font-size: 1.125rem; color: var(--secondary); margin: 0 0 .5rem; }
.kicker {
  font-family: var(--fnt-display);
  font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--secondary); display: block; margin-bottom: .8rem;
}
.dk-bg h1, .dk-bg h2, .dk-bg .t-big, .dk-bg .t-1, .dk-bg h4 { color: var(--white); }
.dk-bg h3, .dk-bg .kicker, .dk-bg h5, .dk-bg h6 { color: var(--white); opacity: .95; }
.dk-bg { background: var(--dark); color: var(--white); }
.dk-bg a:not(.btn) { color: var(--accent-alt); }
.navy-bg { background: var(--navy); color: var(--white); }
.lt-bg { background: var(--light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--fnt-display); font-size: 1rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: .05em; line-height: 1.77;
  padding: .667rem 1.5rem; border-radius: var(--radius);
  background: var(--primary); color: var(--white) !important;
  text-decoration: none; border: 1px solid var(--primary);
  cursor: pointer; transition: background .3s ease, color .3s ease;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn.ghost { background: transparent; color: var(--white) !important; border-color: var(--white); }
.btn.ghost:hover { background: var(--white); color: var(--primary) !important; }
.btn .arw::after { content: "→"; }

/* ---------- Header ---------- */
#site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; }
.topbar { background: rgba(14, 51, 89, .92); color: var(--white); font-size: .89rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 1rem; }
.topbar a { color: var(--white); font-weight: 700; text-decoration: none; }
.topbar a:hover { color: var(--accent-alt); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: .75rem; padding-bottom: .75rem; }
.masthead .logo img { width: clamp(170px, 22vw, 300px); height: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 2rem); }
.main-nav > ul { list-style: none; display: flex; margin: 0; padding: 0; gap: clamp(.8rem, 2vw, 2rem); }
.main-nav > ul > li { position: relative; }
.main-nav a { color: var(--white); text-decoration: none; font-size: 1rem; padding: .8rem 0; display: inline-block; }
.main-nav a:hover { color: var(--accent-alt); }
.main-nav li.has-sub > a::after { content: none; }
.main-nav .sub {
  display: none; position: absolute; top: 100%; left: 0;
  background: #14304E; min-width: 340px; max-height: 72vh; overflow-y: auto;
  list-style: none; margin: 0; padding: .8rem 0; border-radius: 0;
  box-shadow: 0 18px 40px rgba(0,0,0,.45); z-index: 60;
}
.main-nav li.has-sub:hover > .sub, .main-nav li.has-sub.open > .sub { display: block; }
.main-nav .sub li { border-bottom: 1px solid rgba(255,255,255,.12); margin: 0 1.6rem; }
.main-nav .sub li:last-child { border-bottom: 0; }
.main-nav .sub a { color: #fff; display: block; padding: 1.05rem 0; font-size: 1rem; }
.main-nav .sub a:hover { color: var(--accent-alt); background: transparent; }
.hdr-phone { text-align: right; color: var(--white); white-space: nowrap; }
.hdr-phone .lbl { display: block; font-size: 1rem; }
.hdr-phone .num { font-family: var(--fnt-body); font-size: 1.45rem; font-weight: 700; color: var(--white); text-decoration: none; }
.hdr-phone .num:hover { color: var(--accent-alt); }

/* Mobile nav */
#nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 2.2rem; cursor: pointer; line-height: 1; padding: .3rem .5rem; }
@media (max-width: 1023px) {
  #nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 0; background: var(--navy); display: none; overflow-y: auto; padding: 5rem 1.5rem 2rem; z-index: 90; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.12); }
  .main-nav a { padding: 1rem 0; font-size: 1.1rem; }
  .main-nav .sub { display: none; position: static; transform: none; background: transparent; box-shadow: none; min-width: 0; max-height: none; }
  .main-nav li.open > .sub { display: block; }
  .main-nav .sub a { color: var(--accent-alt); padding-left: 1.25rem; }
  #nav-close { position: absolute; top: 1rem; right: 1.25rem; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }
  .hdr-phone { display: none; }
}
@media (min-width: 1024px) { #nav-close { display: none; } }

/* ---------- Hero / Mainstage ---------- */
.hero {
  position: relative; background: var(--dark); color: var(--white);
  background-size: cover; background-position: center top;
  padding: clamp(11rem, 20vw, 15rem) 0 clamp(4rem, 9vw, 8rem);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,20,28,.82) 0%, rgba(14,20,28,.45) 55%, rgba(14,20,28,.15) 100%); }
.hero .wrap { position: relative; z-index: 2; max-width: var(--maxw); }
.hero .flair { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.5rem; }
.hero .flair .line { width: 44px; height: 2px; background: var(--white); }
.hero .flair img { width: 30px; height: 30px; }
.hero .t-big { max-width: 14ch; }
.hero .sub { font-family: var(--fnt-display); font-weight: 200; text-transform: uppercase; letter-spacing: .35em; font-size: clamp(1rem, 2vw, 1.4rem); margin: 1rem 0 1.5rem; }
.hero p { max-width: 52ch; font-size: 1.06rem; }
.hero .actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* Interior banner */
.banner {
  position: relative; background: var(--dark);
  background-size: cover; background-position: center;
  padding: clamp(10rem, 18vw, 13rem) 0 0;
}
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,20,28,.6), rgba(14,20,28,.25)); }
.banner .panel {
  position: relative; z-index: 2; display: inline-block;
  background: var(--navy); color: var(--white);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 5vw, 3.5rem);
  border-radius: var(--radius) var(--radius) 0 0; margin-bottom: -1px;
}
.banner .panel .co { font-family: var(--fnt-body); font-weight: 300; font-size: clamp(1.6rem, 3.4vw, 2.5rem); text-transform: uppercase; line-height: 1.1; display: block; }
.banner .panel em { display: block; font-style: normal; font-weight: 300; font-size: clamp(1rem, 2vw, 1.4rem); margin-top: .8rem; opacity: .9; }
.banner .panel .btn { margin-top: 1.2rem; }

/* ---------- Sections ---------- */
.section { padding: var(--pd-v) 0; }
.section header.sec-head { margin-bottom: 2.5rem; }
.bg-img { background-size: cover; background-position: center; position: relative; }
.bg-img > .overlay { position: absolute; inset: 0; background: rgba(20,22,26,.82); }
.bg-img > .wrap { position: relative; z-index: 2; }

/* Two-column content + sidebar */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
@media (min-width: 1024px) { .two-col { grid-template-columns: minmax(0, 62%) minmax(0, 1fr); } }
.content-styles h1 { font-size: clamp(2rem, 4vw, 3rem); }
.content-styles p, .content-styles li { font-size: 1rem; }
.content-styles ul { padding-left: 1.4rem; }
.content-styles img { border-radius: var(--radius); margin: 1.5rem 0; }
.content-styles blockquote { background: #fff; border-left: 4px solid var(--primary); border-radius: 6px; padding: 1.25rem 1.5rem; margin: 1.75rem 0; }

/* Sidebar */
.sidebar > * + * { margin-top: 2rem; }
.side-nav { background: var(--white); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(0,0,0,.08); overflow: hidden; }
.side-nav h4 { background: var(--navy); color: var(--white); margin: 0; padding: 1rem 1.4rem; font-size: 1.15rem; }
.side-nav ul { list-style: none; margin: 0; padding: 0; max-height: 480px; overflow-y: auto; }
.side-nav li { border-bottom: 1px solid rgba(0,0,0,.06); }
.side-nav a { display: block; padding: .7rem 1.4rem; text-decoration: none; color: var(--text); font-size: .95rem; }
.side-nav a:hover, .side-nav li.on a { color: var(--primary); background: var(--light); }
.side-cta { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 2rem 1.6rem; text-align: center; }
.side-cta h4 { color: var(--white); }
.side-cta p { font-size: .95rem; opacity: .92; }

/* ---------- Service tiles ---------- */
.tiles { display: grid; gap: 1.33rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tile {
  position: relative; display: flex; align-items: flex-end; min-height: 220px;
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
  background-size: cover; background-position: center;
}
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,51,89,.25), rgba(14,51,89,.88)); transition: background .3s ease; }
.tile:hover::before { background: linear-gradient(180deg, rgba(24,94,165,.45), rgba(24,94,165,.92)); }
.tile span { position: relative; z-index: 2; color: var(--white); font-weight: 700; font-size: 1.2rem; line-height: 1.35; padding: 1.4rem; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.review-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 2rem; }
.review-card .stars { color: var(--star); letter-spacing: 3px; font-size: 1.3rem; margin-bottom: 1rem; }
.review-card .quote { font-size: 1.35rem; font-weight: 700; line-height: 1.35; margin: 0 0 1rem; }
.review-card .who { font-family: var(--fnt-display); font-weight: 700; }
.lt-bg .review-card { background: var(--white); border-color: rgba(0,0,0,.08); box-shadow: 0 6px 24px rgba(0,0,0,.06); }

/* ---------- Video cards ---------- */
.video-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.video-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.08); text-decoration: none; color: var(--text); display: block; }
.video-card .thumb { position: relative; aspect-ratio: 16/9; background-size: cover; background-position: center; }
.video-card .thumb::after { content: "▶"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; color: #fff; background: rgba(14,51,89,.35); transition: background .3s ease; }
.video-card:hover .thumb::after { background: rgba(24,94,165,.55); }
.video-card .vc-body { padding: 1.2rem 1.4rem 1.5rem; }
.video-card h4 { font-size: 1.1rem; margin: 0; }
.video-player video { width: 100%; max-height: 72vh; border-radius: var(--radius); background: #000; }
.dk-bg .video-card { background: rgba(255,255,255,.06); color: var(--white); }
.dk-bg .video-card h4 { color: var(--white); }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16/9; background-size: cover; background-position: center; }
.post-card .pc-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card time { color: #777; font-size: .85rem; }
.post-card h4 { font-size: 1.15rem; margin: 0; }
.post-card h4 a { text-decoration: none; color: var(--primary); }
.post-card p { margin: 0; font-size: .93rem; flex: 1; }
.post-card .more { font-family: var(--fnt-display); text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; text-decoration: none; }
.tag { display: inline-block; background: var(--light); color: var(--text); border-radius: 5em; padding: .4em 1em; font-weight: 700; font-size: .85rem; }
.dk-bg .tag { background: rgba(255,255,255,.12); color: #fff; }

/* Article */
.article-head { padding-top: clamp(9rem, 16vw, 12rem); }
.article-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); text-transform: none; letter-spacing: 0; font-weight: 300; }
.article-meta { color: #777; font-size: .9rem; margin-bottom: 1.5rem; }

/* ---------- Staff / attorney ---------- */
.staff { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .staff { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.staff img { border-radius: var(--radius); width: 100%; }
.staff .role { font-family: var(--fnt-display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1rem; display: block; }

/* ---------- Values grid ---------- */
.values { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.value h4 { font-size: 1.2rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: .3rem; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: .7rem .9rem; font-family: var(--fnt-body); font-size: 1rem;
  border: 1px solid #c9ccd1; border-radius: .333rem; background: var(--white); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.consent { font-size: .78rem; color: #666; line-height: 1.5; }
.dk-bg label { color: var(--white); }
.dk-bg .consent { color: rgba(255,255,255,.7); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--navy); }
.cta-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.cta-strip h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-strip p { margin: .4rem 0 0; }

/* ---------- Footer ---------- */
footer.site-footer {
  position: relative; background: var(--dark); color: var(--white);
  background-size: cover; background-position: center;
}
footer.site-footer::before { content: ""; position: absolute; inset: 0; background: rgba(33,34,35,.88); }
footer.site-footer > * { position: relative; z-index: 2; }
footer.site-footer .cols { display: grid; gap: 2.5rem 3.5rem; grid-template-columns: 1.15fr 1.35fr 1fr 1.15fr; padding: var(--pd-v) 0 3rem; }
footer.site-footer .logo img { width: clamp(170px, 18vw, 288px); }
@media (max-width: 1099px) {
  footer.site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 3rem; }
}
@media (max-width: 620px) {
  footer.site-footer .cols { grid-template-columns: 1fr; gap: 2.4rem; padding-bottom: 2rem; }
  footer.site-footer .f-links { max-width: none; }
  .f-legal .wrap { flex-direction: column; gap: .9rem; }
}
footer.site-footer .f-head { color: var(--white); font-family: var(--fnt-body); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 1.15rem; margin-bottom: 1.4rem; }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer li { margin-bottom: .5rem; }
footer.site-footer a { color: var(--white); text-decoration: none; }
footer.site-footer a:hover { color: var(--accent-alt); }

footer.site-footer address { font-style: normal; }
.f-phone { font-size: 1.7rem; font-weight: 700; margin: 0 0 1.6rem; }
.f-social a { display: inline-flex; align-items: center; margin-right: 1.15rem; color: var(--accent-alt); }
.f-social svg { width: 22px; height: 22px; fill: var(--accent-alt); transition: fill .3s ease; }
.f-social a:hover svg { fill: #fff; }
.f-links { display: flex; flex-wrap: wrap; gap: .35rem 1.9rem; max-width: 440px; }
.f-links li { margin: 0; white-space: nowrap; }
.f-legal { border-top: 1px solid rgba(255,255,255,.14); padding: 1.5rem 0; font-size: .82rem; color: rgba(255,255,255,.65); }
.f-legal .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.f-legal a { color: rgba(255,255,255,.85); }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-20 { margin-top: 1.33rem; } .mt-40 { margin-top: 2.66rem; }
.hidden { display: none; }
.aspect-video { aspect-ratio: 16/9; }

/* Pages without a dark hero: solid header, normal flow */
body.no-hero #site-header { position: static; background: var(--dark); }
body.no-hero .article-head { padding-top: 3rem; }

/* ---------- Archive-match refinements (2026-07-15) ---------- */
.main-nav a { white-space: nowrap; }

/* Intro spaced-caps subtitle (ContentS1 h2 on the original) */
.sub-caps {
  font-family: var(--fnt-body); font-weight: 300;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--accent-alt); font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  line-height: 1.6;
}

/* Navy callout box (txt-hlt bg-bx on the original) */
.callout {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 1.9rem 2rem; text-align: center; font-style: italic; font-weight: 700;
  margin: 1.75rem 0;
}
.callout a { color: var(--accent-alt); }

/* Fancy framed image (fncy-imgs on the original) */
.fancy-img { position: relative; display: inline-block; width: 100%; }
.fancy-img .frame {
  border: 3px solid var(--primary); border-radius: 1.75rem; padding: 1.1rem;
  background: #fff;
}
.fancy-img .frame img { border-radius: 1.1rem; width: 100%; object-fit: cover; }
.fancy-img .badge {
  position: absolute; left: -1.4rem; bottom: 2.2rem; width: clamp(80px, 10vw, 128px);
  border-radius: 1.1rem; box-shadow: 0 10px 26px rgba(0,0,0,.25);
}
.dk-bg .fancy-img .frame { background: transparent; border-color: rgba(255,255,255,.85); }

/* Homepage video list rows (VideoV1 grd mx-1) */
.video-rows { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.video-rows li { border-bottom: 1px solid rgba(0,0,0,.1); }
.video-rows a { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; text-decoration: none; color: var(--text); font-weight: 600; }
.video-rows .ply {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem;
}
.video-rows a:hover { color: var(--primary); }
.video-rows a:hover .ply { background: var(--primary-dark); }

/* Homepage dark contact band over photo */
.contact-band-dark { position: relative; background: var(--dark); background-size: cover; background-position: center; }
.contact-band-dark > .overlay { position: absolute; inset: 0; background: rgba(16,20,26,.88); }
.contact-band-dark > .wrap { position: relative; z-index: 2; }
.contact-band-dark, .contact-band-dark h2, .contact-band-dark h4 { color: #fff; }
.contact-band-dark label, .contact-band-dark .consent { color: rgba(255,255,255,.9); }
.contact-band-dark .consent { color: rgba(255,255,255,.65); }

/* CTA split with photo */
.cta-split .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .cta-split .wrap { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.cta-split img { border-radius: var(--radius); width: 100%; }
