/* Colleyville Criminal Defense — rebuilt from the original Elementor design.
   Design tokens copied from the original site's global settings. */
:root {
  --black: #0F0F0F;
  --pure-black: #000000;
  --red: #B02A30;
  --red-dark: #8f2227;
  --text: #333333;
  --gray: #8A8C8E;
  --light: #F2F2F2;
  --white: #FFFFFF;
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --header-h: 99px;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--white); color: var(--black); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { left: 10px; top: 10px; }

:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.on-light :focus-visible, .on-light:focus-visible { outline-color: var(--red); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  padding: 17px 31px;
  border: 0;
  border-radius: 0;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover, .btn:focus-visible { background: var(--red-dark); }
.btn--sm { font-size: 15px; padding: 18px 34px; }

/* ---------- Header ---------- */
.mobile-callbar { display: none; }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(15, 15, 15, .93);
  padding: 14px 29px;
}
.site-header .inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo img { width: 190px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 38px; align-items: center; }
.main-nav a.nav-link, .main-nav button.nav-link {
  font-family: var(--font); font-size: 16px; font-weight: 600; line-height: 20px;
  color: var(--white); text-decoration: none; background: none; border: 0; padding: 10px 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: color .2s ease;
}
.main-nav a.nav-link:hover, .main-nav button.nav-link:hover,
.main-nav .has-sub:focus-within > button.nav-link { color: var(--red); }
.caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; }
.has-sub { position: relative; }
.sub-menu {
  list-style: none; margin: 0; padding: 8px 0;
  position: absolute; top: 100%; left: -16px; min-width: 200px;
  background: var(--black); box-shadow: 0 10px 24px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.open .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a {
  display: block; padding: 10px 18px; color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px;
}
.sub-menu a:hover, .sub-menu a:focus-visible { color: var(--red); }
.header-call { white-space: nowrap; }

main { padding-top: var(--header-h); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 675px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0 101px;
  background: #000 url("../img/hero-office.jpg") center center / cover no-repeat;
  color: var(--white);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 0, 0, .82) url("../img/bracket-red.svg") center center / 400px auto no-repeat;
}
.hero > * { position: relative; }
.hero h1 {
  font-size: 70px; line-height: 1; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  max-width: 720px; margin: 0 auto;
}
.hero .sub { font-size: 16px; line-height: 20px; font-weight: 600; color: #E6E6E6; margin: 26px 0 22px; }

/* ---------- Award banner ---------- */
.award-banner {
  background: var(--red); color: var(--white); text-align: center;
  min-height: 79px; display: flex; align-items: center; justify-content: center; padding: 0 29px;
}
.award-banner p { margin: 0; font-size: 19.2px; line-height: 24px; font-weight: 600; font-style: italic; }

/* ---------- Badges ---------- */
.badges { background: var(--black); padding: 29px; border-bottom: 1px solid #222; }
.badges ul {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1240px;
  display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; justify-items: center; gap: 20px;
  min-height: 122px;
}
.badges img { max-height: 122px; width: auto; }
.badges li:nth-child(1) img { max-height: 70px; }
.badges li:nth-child(6) img { max-height: 90px; }

/* ---------- Intro + attorney slider ---------- */
.intro { background: var(--black); color: var(--white); padding: 100px 101px; }
.intro .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1240px; margin: 0 auto; }
.accent-bar { display: block; width: 62px; height: 9px; background: var(--red); margin-bottom: 28px; }
.intro h2 { font-size: 40px; line-height: 50px; margin-bottom: 28px; }
.intro p { color: var(--white); }
.intro .btn { margin-top: 18px; }

.slider { position: relative; max-width: 480px; margin: 0 auto; width: 100%; }
.slider .frame { position: relative; padding: 18px 40px 0; }
.slider .frame::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: url("../img/bracket-red.svg") center / 100% 100% no-repeat;
}
.slides { position: relative; overflow: hidden; aspect-ratio: 892 / 979; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; margin: 0; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-captions { position: relative; height: 24px; margin-top: 18px; text-align: center; }
.slide-captions span {
  position: absolute; inset: 0; font-size: 12.8px; font-weight: 600; color: var(--white);
  opacity: 0; transition: opacity .6s ease;
}
.slide-captions span.is-active { opacity: 1; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.dots button {
  width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(176, 42, 48, .45);
}
.dots button[aria-current="true"] { background: var(--red); }
.dots button:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* ---------- Testimonials ---------- */
.testimonials {
  position: relative; min-height: 370px; padding: 60px 72px;
  display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white);
  background: url("../img/fort-worth-skyline.jpg") top center / cover no-repeat;
}
.testimonials::before { content: ""; position: absolute; inset: 0; background: rgba(15,15,15,.4); }
.testimonials > * { position: relative; }
.t-stars { width: 69px; margin: 0 auto 18px; }
.t-slides { position: relative; max-width: 900px; margin: 0 auto; min-height: 120px; }
.t-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; margin: 0; }
.t-slide.is-active { opacity: 1; position: relative; }
.t-slide blockquote { margin: 0; font-size: 22px; line-height: 1.45; font-style: italic; font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.t-slide figcaption { margin-top: 14px; font-size: 14px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.testimonials .dots button { background: rgba(255,255,255,.5); }
.testimonials .dots button[aria-current="true"] { background: var(--white); }

/* ---------- Practice areas ---------- */
.practice { background: var(--white); color: var(--text); padding: 70px 101px 90px; }
.practice .wrap { max-width: 1140px; }
.practice .tiles { max-width: 1060px; }
.section-title { font-size: 40px; line-height: 50px; color: var(--text); margin-bottom: 40px; }
.section-title .red { color: var(--red); }
.practice-intro { margin-bottom: 56px; }
.tiles { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 19px; }
.tiles li { flex: 0 0 calc((100% - 38px) / 3); }
.tile {
  position: relative; display: flex; align-items: center; height: 100%; min-height: 82px;
  background: var(--red); color: var(--white); text-decoration: none;
  padding: 16px 52px 16px 38px; font-weight: 700; line-height: 20px;
}
.tile img { width: 34px; height: auto; flex: 0 0 auto; filter: none; }
.tile .label {
  flex: 1; text-align: center; padding: 10px 16px; transition: background-color .2s ease, color .2s ease;
}
.tile .chev {
  position: absolute; right: 54px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: translateY(-50%) rotate(45deg);
}
.tile:hover .label, .tile:focus-visible .label { background: var(--white); color: var(--red); }
.tile:hover .chev, .tile:focus-visible .chev { color: var(--red); }

/* ---------- Consultation band ---------- */
.consult {
  position: relative;
  background: #EAEAEA url("../img/consultation-bg.jpg") bottom center / cover no-repeat fixed;
  padding: 50px 72px 38px; text-align: center; min-height: 240px;
}
.consult::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.92); }
.consult > * { position: relative; }
.consult .wrap { max-width: 760px; }
.consult h2 { font-size: 40px; line-height: 50px; color: var(--text); margin-bottom: 24px; }
.consult p { font-size: 15px; line-height: 1.7; color: var(--text); }
.consult .btn { margin-top: 6px; }

/* ---------- Office location ---------- */
.office { background: var(--black); color: var(--white); padding: 101px; }
.office .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1240px; margin: 0 auto; }
.office h2 { font-size: 40px; line-height: 50px; margin-bottom: 26px; max-width: 520px; }
.office .firm { font-weight: 700; margin: 34px 0 30px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 4px; font-weight: 600; }
.contact-list a { text-decoration: none; }
.contact-list .icon { width: 14px; flex: 0 0 14px; margin-top: 6px; color: var(--red); }
.contact-list .map-link, .office-card .map-link { color: var(--red); font-style: italic; font-weight: 600; text-decoration: none; }
.contact-list .map-link:hover, .office-card .map-link:hover { text-decoration: underline; }
.contact-list .tel { color: var(--red); }
.contact-list li.spaced { margin-top: 18px; }
.office .note { font-size: 12.8px; line-height: 19.2px; font-style: italic; margin-top: 22px; max-width: 330px; }
.pill {
  position: relative; width: 100%; max-width: 620px; aspect-ratio: 620 / 330; margin: 0 auto;
  border: 1px solid var(--red); border-radius: 999px; display: flex; align-items: center; justify-content: center;
}
.pill img { width: 54%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }

/* ---------- Offices ---------- */
.offices { background: var(--white); color: var(--text); padding: 101px; }
.offices h3 { text-align: center; font-size: 31px; line-height: 1.25; font-style: italic; margin-bottom: 50px; }
.office-cards { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1240px; margin: 0 auto; }
.office-card { border-left: 1px solid #b9b9b9; padding: 0 30px 18px; display: flex; flex-direction: column; align-items: center; }
.office-card h4 { font-size: 26px; line-height: 32.5px; font-weight: 500; margin-bottom: 14px; }
.office-card ul { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.6; font-weight: 600; }
.office-card li { display: flex; gap: 10px; margin-bottom: 6px; }
.office-card .icon { width: 13px; flex: 0 0 13px; margin-top: 5px; color: var(--red); }
.office-card .tel { color: var(--red); text-decoration: none; }

/* ---------- Footer ---------- */
.footer-logo { background: var(--black); padding: 0 10px; display: flex; justify-content: center; }
.footer-logo img { width: 560px; max-width: 100%; height: auto; }
.footer-bar {
  background: var(--pure-black); color: var(--white); text-align: center; font-size: 11.2px; line-height: 1.6;
  padding: 22px 101px; min-height: 66px;
}
.footer-bar a { font-weight: 700; text-decoration: none; }
.footer-bar a:hover { text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal { background: var(--white); color: var(--text); padding: 80px 29px 100px; }
.legal .wrap { max-width: 900px; }
.legal h1 { font-size: 40px; line-height: 50px; margin-bottom: 30px; color: var(--text); }
.legal h2 { font-size: 22px; line-height: 1.35; margin: 34px 0 14px; color: var(--text); }
.legal ul { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: 4px; }
.legal .muted { color: #666; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero { padding: 0 50px; min-height: 600px; }
  .hero h1 { font-size: 56px; }
  .intro, .office, .offices { padding-left: 50px; padding-right: 50px; }
  .practice { padding-left: 50px; padding-right: 50px; }
  .badges ul { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .tile { padding-left: 24px; padding-right: 40px; }
  .tile .chev { right: 26px; }
  .main-nav, .main-nav > ul { gap: 22px; }
}

@media (max-width: 767px) {
  .consult { background-attachment: scroll; }
  :root { --header-h: 200px; }
  .mobile-callbar {
    display: flex; align-items: center; justify-content: center; height: 49px;
    position: fixed; top: 0; left: 0; right: 0; z-index: 101;
    background: var(--red); color: var(--white); font-weight: 600; font-size: 15px; text-decoration: none;
  }
  .site-header { top: 49px; height: 151px; padding: 8px; }
  .site-header .inner { flex-direction: column; justify-content: center; gap: 8px; }
  .logo img { width: 176px; }
  .header-call { display: none; }
  .main-nav > ul { gap: 50px; }
  .main-nav a.nav-link, .main-nav button.nav-link { font-size: 16px; }
  .sub-menu { left: 50%; transform: translate(-50%, 6px); }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.open .sub-menu { transform: translate(-50%, 0); }

  .hero { min-height: 585px; padding: 0 27px; }
  .hero::before { background-size: 300px auto; }
  .hero h1 { font-size: 40px; line-height: 1; }

  .award-banner { min-height: 83px; padding: 10px 20px; }
  .award-banner p { font-size: 19px; line-height: 23.7px; }

  .badges { padding: 20px 20px 39px; }
  .badges ul { gap: 18px 14px; }
  .badges img { max-height: 92px; }
  .badges li:nth-child(1) img { max-height: 56px; }

  .intro { padding: 60px 27px; }
  .intro .grid { grid-template-columns: 1fr; gap: 50px; }
  .intro h2 { font-size: 31px; line-height: 38.7px; }

  .testimonials { padding: 50px 20px; min-height: 404px; }
  .t-slide blockquote { font-size: 19px; }

  .practice { padding: 50px 27px 60px; }
  .section-title { font-size: 31px; line-height: 38.7px; margin-bottom: 26px; }
  .practice-intro { margin-bottom: 34px; }
  .tiles li { flex: 0 0 100%; }

  .consult { padding: 46px 20px 40px; }
  .consult h2 { font-size: 31px; line-height: 38.7px; }

  .office { padding: 39px 27px 60px; }
  .office .grid { grid-template-columns: 1fr; gap: 40px; }
  .office h2 { font-size: 31px; line-height: 38.7px; }

  .offices { padding: 39px 27px 50px; }
  .offices h3 { font-size: 26px; margin-bottom: 30px; }
  .office-cards { grid-template-columns: 1fr; gap: 30px; }
  .office-card { border-left: 0; border-top: 1px solid #b9b9b9; padding-top: 24px; }

  .footer-logo img { width: 360px; }
  .footer-bar { padding: 22px 39px; }

  .legal { padding: 50px 22px 70px; }
  .legal h1 { font-size: 31px; line-height: 38.7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .t-slide, .slide-captions span, .sub-menu { transition: none; }
}
