/* ==========================================================================
   Blanco Law Center, PA — Site Stylesheet
   Palette: charcoal + deep red (see README.txt to change colors/fonts)
   ========================================================================== */

:root {
  --charcoal-950: #0e0e10;
  --charcoal-900: #17171a;
  --charcoal-800: #202024;
  --charcoal-700: #2c2c31;
  --charcoal-100: #f4f3f2;
  --charcoal-50:  #fbfaf9;
  --red-700: #8f1b1b;
  --red-600: #a3221f;
  --red-500: #b6302a;
  --ink: #1c1b1a;
  --ink-soft: #4a4846;
  --border-soft: #e7e3e0;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--charcoal-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  color: var(--ink);
}

p { margin: 0 0 1em; }
a { color: var(--red-600); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--charcoal-950);
  color: #cfcac6;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #f1e9e6; }

/* ---------- Nav ---------- */
header.site-header {
  background: var(--charcoal-900);
  border-bottom: 1px solid var(--charcoal-700);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo span { color: var(--red-500); }
.logo:hover { text-decoration: none; opacity: 0.9; }

nav.primary-nav { display: flex; align-items: center; gap: 4px; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  color: #e7e3e0;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.98rem;
}
.nav-links > li > a:hover { background: var(--charcoal-800); text-decoration: none; color: #fff; }

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  color: #e7e3e0;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary:hover { background: var(--charcoal-800); color: #fff; }
.nav-dropdown summary::after { content: "▾"; font-size: 0.7em; }
.nav-dropdown[open] summary::after { content: "▴"; }
.nav-dropdown .dropdown-menu {
  list-style: none;
  margin: 6px 0 0;
  padding: 8px;
  background: var(--charcoal-800);
  border: 1px solid var(--charcoal-700);
  border-radius: 8px;
  min-width: 240px;
}
@media (min-width: 861px) {
  .nav-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
  }
}
.nav-dropdown .dropdown-menu li a {
  display: block;
  padding: 8px 10px;
  color: #e7e3e0;
  border-radius: 6px;
  font-size: 0.94rem;
}
.nav-dropdown .dropdown-menu li a:hover { background: var(--charcoal-700); color: #fff; text-decoration: none; }

.nav-cta {
  background: var(--red-600);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--red-700); text-decoration: none; }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 860px) {
  .nav-toggle-label { display: block; }
  nav.primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal-900);
    flex-direction: column;
    align-items: stretch;
    display: none;
    border-bottom: 1px solid var(--charcoal-700);
  }
  .nav-toggle:checked ~ nav.primary-nav { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; padding: 12px; gap: 2px; }
  .nav-dropdown .dropdown-menu { position: static; }
  .nav-cta { margin: 12px; text-align: center; }
  header.site-header { position: static; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--charcoal-950) 0%, var(--charcoal-800) 100%);
  color: #f4f3f2;
  padding: 76px 0 84px;
}
.hero .container { max-width: 900px; text-align: center; }
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.4em;
}
.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red-500);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 14px;
}
.hero p.lede {
  font-size: 1.15rem;
  color: #d8d3cf;
  max-width: 700px;
  margin: 0 auto 32px;
}
.button-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
}
.btn-primary { background: var(--red-600); color: #fff !important; }
.btn-primary:hover { background: var(--red-700); text-decoration: none; }
.btn-outline { border-color: #cfcac6; color: #fff !important; }
.btn-outline:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.btn-dark { border-color: var(--charcoal-800); color: var(--charcoal-900) !important; }
.btn-dark:hover { background: var(--charcoal-900); color: #fff !important; text-decoration: none; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--charcoal-950) 0%, var(--charcoal-800) 100%);
  color: #fff;
  padding: 52px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 6px; }
.breadcrumb { color: #cfcac6; font-size: 0.9rem; }
.breadcrumb a { color: #e7e3e0; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--charcoal-100); }
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red-600);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 8px;
}
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Practice area grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 26px;
  border-top: 3px solid var(--red-600);
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }
.card a.card-link { font-weight: 600; }

/* ---------- Two-column layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 780px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Testimonial cards ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 24px;
}
.stars { color: var(--red-600); letter-spacing: 2px; margin-bottom: 10px; font-size: 1.05rem; }
.testimonial p.quote { font-style: italic; color: var(--ink); margin-bottom: 14px; }
.testimonial .meta { font-size: 0.88rem; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.source-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--charcoal-100);
  color: var(--ink-soft);
  border: 1px solid var(--border-soft);
}

.pull-quote {
  border-left: 4px solid var(--red-600);
  padding: 18px 24px;
  background: #fff;
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
}
.pull-quote p { font-style: italic; font-size: 1.05rem; margin-bottom: 6px; }
.pull-quote .attr { font-size: 0.88rem; color: var(--ink-soft); font-style: normal; }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  text-align: center;
}
.stat-strip .stat h3 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--red-600);
  margin-bottom: 4px;
}
.stat-strip .stat p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }

/* ---------- Lists ---------- */
ul.checklist { list-style: none; margin: 0; padding: 0; }
ul.checklist li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
}
ul.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red-600);
  font-weight: 700;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--red-700);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #f4d9d7; margin-bottom: 24px; }

/* ---------- Attorney photo ---------- */
.headshot-frame {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--charcoal-800), var(--charcoal-950));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}
.headshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.headshot-frame .initials {
  font-family: var(--font-head);
  font-size: 4rem;
  border: 3px solid var(--red-500);
  border-radius: 50%;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.info-block { display: flex; gap: 14px; margin-bottom: 22px; }
.info-block .label { font-weight: 700; display: block; margin-bottom: 2px; }
.map-frame {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  min-height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--charcoal-100);
  border-top: 1px solid var(--border-soft);
  padding: 18px 0;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--charcoal-950);
  color: #cfcac6;
  padding: 48px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }
footer.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
footer.site-footer a { color: #cfcac6; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer ul li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid var(--charcoal-700);
  padding-top: 18px;
  font-size: 0.82rem;
  color: #9a9591;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.small { font-size: 0.88rem; color: var(--ink-soft); }
