/* ==========================================================================
   Franz Becker, Attorney at Law — Dubuque, Iowa
   Static rebuild for Cloudflare Pages
   ========================================================================== */

:root {
  --maroon:      #8b0000;
  --maroon-dark: #6d0000;
  --red:         #df3131;
  --ink:         #1c1b1a;
  --body:        #4a4744;
  --muted:       #7c7772;
  --bg:          #ffffff;
  --bg-alt:      #f7f3f0;
  --bg-warm:     #fbf8f5;
  --line:        #e7e0da;
  --gold:        #b8862f;
  --shadow-sm:   0 2px 10px rgba(28, 27, 26, .06);
  --shadow-md:   0 12px 40px rgba(28, 27, 26, .12);
  --wrap:        1160px;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --head: "Raleway", var(--sans);
  --serif: "Lora", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--maroon); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 800;
}

p { margin: 0 0 1.1em; }

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

.kicker {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 13px;
  font-weight: 700;
  color: var(--maroon);
  margin: 0 0 14px;
  display: block;
}

.section { padding: 84px 0; }
.section--alt { background: var(--bg-warm); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: .01em; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 14px;
  padding: 14px 26px;
  border-radius: 2px;
  border: 2px solid var(--maroon);
  background: var(--maroon);
  color: #fff;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: var(--maroon); border-color: #fff; }
.btn--outline { background: transparent; color: var(--maroon); }
.btn--outline:hover { background: var(--maroon); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand a { color: var(--ink); }
.brand .brand-name {
  font-family: var(--head); font-weight: 800; font-size: 22px;
  letter-spacing: .02em; color: var(--ink);
}
.brand .brand-sub {
  font-size: 11px; text-transform: uppercase; letter-spacing: .2em;
  color: var(--maroon); font-weight: 600; margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: 13.5px; color: var(--ink);
  padding: 6px 0; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--maroon); transition: width .2s ease;
}
.nav-links a:hover { color: var(--maroon); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { color: var(--maroon) !important; }
.nav-cta::after { display: none; }
.nav-links a.nav-phone {
  display: inline-flex; align-items: center; gap: 6px;
  border: 2px solid var(--maroon); padding: 8px 22px; border-radius: 2px;
  color: var(--maroon) !important; letter-spacing: .06em !important;
  white-space: nowrap;
}
.nav-phone:hover { background: var(--maroon); color: #fff !important; }
.nav-phone::after { display: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  min-height: 78vh; display: flex; align-items: center;
  background: linear-gradient(rgba(20,10,10,.62), rgba(20,10,10,.68)),
              url("../images/dubuque-hillside.jpg") center 40% / cover no-repeat;
}
.hero .wrap { position: relative; z-index: 2; }
.hero .kicker { color: #f0d9d9; }
.hero h1 {
  color: #fff; font-size: clamp(38px, 7vw, 74px);
  letter-spacing: .01em; margin-bottom: 18px; text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.hero .lede {
  font-size: clamp(19px, 2.6vw, 26px); font-family: var(--serif);
  font-style: italic; color: #f3ece6; max-width: 640px; margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* thin accent bar under hero */
.accent-bar { height: 6px; background: linear-gradient(90deg, var(--maroon), var(--red)); }

/* ---------- Practice areas ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 34px 26px; text-align: center; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .icon {
  width: 58px; height: 58px; margin: 0 auto 20px; color: var(--maroon);
}
.card h3 { font-size: 19px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--muted); margin-bottom: 16px; flex: 1; }
.card .card-link {
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; font-size: 12.5px;
}
.card .card-link::after { content: " →"; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.about-photo { position: relative; width: max-content; }
.about-photo img {
  width: 300px; max-width: 100%; border-radius: 6px; box-shadow: var(--shadow-md);
  aspect-ratio: 3/4; object-fit: cover; object-position: center top; display: block;
}
.about-photo::before {
  content: ""; position: absolute; left: -16px; top: -16px; width: 96px; height: 96px;
  border-left: 4px solid var(--maroon); border-top: 4px solid var(--maroon);
}
.about-body h2 { font-size: clamp(28px, 4vw, 40px); }
.avvo-badge {
  display: inline-block; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 20px; background: #fff; box-shadow: var(--shadow-sm);
  margin-bottom: 28px; transition: box-shadow .2s ease, transform .2s ease;
}
.avvo-badge:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.avvo-badge img { width: 460px; max-width: 100%; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 40px; }
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 36px 34px; box-shadow: var(--shadow-sm); position: relative;
}
.quote::before {
  content: "\201C"; font-family: var(--serif); font-size: 88px; line-height: 1;
  color: var(--maroon); opacity: .18; position: absolute; top: 14px; left: 20px;
}
.stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; font-size: 18px; }
.quote p { font-family: var(--serif); font-size: 17px; color: var(--ink); position: relative; z-index: 1; }
.quote .cite { font-style: normal; color: var(--muted); font-size: 14.5px; font-family: var(--sans); }
.quote .cite strong { color: var(--maroon); font-family: var(--head); }
.testi-cta { text-align: center; }

/* ---------- Legal notice ---------- */
.notice { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.notice .wrap { max-width: 900px; }
.notice h3 {
  font-size: 14px; text-transform: uppercase; letter-spacing: .16em; color: var(--maroon); text-align:center;
}
.notice p { font-size: 13.5px; line-height: 1.75; color: var(--muted); text-align: center; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-info h2 { font-size: clamp(28px, 4vw, 40px); }
.contact-list { list-style: none; margin: 26px 0 0; padding: 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.contact-list .ci-icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--maroon); color: #fff; display: grid; place-items: center;
}
.contact-list .ci-icon svg { width: 20px; height: 20px; }
.contact-list .ci-label { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.contact-list a, .contact-list span.big { font-size: 20px; font-family: var(--head); font-weight: 700; color: var(--ink); }
.contact-list a:hover { color: var(--maroon); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 34px; box-shadow: var(--shadow-md); }
.contact-form .intro { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--head); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--sans); font-size: 16px; color: var(--ink); background: var(--bg-warm);
  transition: border-color .18s ease, background .18s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--maroon); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; justify-content: center; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Sub-page article ---------- */
.page-hero {
  position: relative; color: #fff; text-align: center; padding: 96px 0 84px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.page-hero::before { content:""; position:absolute; inset:0; background: linear-gradient(rgba(20,10,10,.55), rgba(20,10,10,.72)); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .crumbs { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #eecfcf; margin-bottom: 14px; }
.page-hero .crumbs a { color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 52px); text-shadow: 0 2px 20px rgba(0,0,0,.4); }

.article { padding: 74px 0; }
.article .wrap { max-width: 820px; }
.article .lead { font-size: 20px; color: var(--ink); font-family: var(--serif); line-height: 1.6; margin-bottom: 1.4em; }
.article h2 { font-size: 28px; margin-top: 1.6em; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.article h2:first-of-type { margin-top: 0; }
.article ul { padding-left: 0; list-style: none; margin: 0 0 1.4em; }
.article ul li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.article ul li::before {
  content: ""; position: absolute; left: 4px; top: 11px; width: 9px; height: 9px;
  background: var(--maroon); transform: rotate(45deg);
}
.article .figure-inline {
  float: right; width: 260px; margin: 6px 0 24px 32px; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-md);
}
.article .figure-inline img { aspect-ratio: 3/4; object-fit: cover; object-position: center top; }
.article .figure-inline figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 10px; background: var(--bg-warm); text-align: center; }

/* CTA band on sub-pages */
.cta-band {
  background: linear-gradient(rgba(109,0,0,.92), rgba(109,0,0,.92)), url("../images/dubuque-downtown.jpg") center/cover;
  color: #fff; text-align: center; padding: 66px 0;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 4vw, 38px); }
.cta-band p { color: #f3dede; font-size: 18px; max-width: 620px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; color: #ded8d3; padding: 70px 0 30px;
  background: linear-gradient(rgba(24,18,16,.90), rgba(24,18,16,.94)), url("../images/dubuque-downtown.jpg") center/cover;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer .f-name { font-family: var(--head); font-weight: 800; font-size: 22px; color: #fff; margin-bottom: 6px; }
.site-footer .f-sub { text-transform: uppercase; letter-spacing: .2em; font-size: 11px; color: var(--gold); margin-bottom: 16px; }
.site-footer p { font-size: 14.5px; color: #cfc7c1; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #d8d0ca; font-size: 14.5px; }
.footer-links a:hover { color: #fff; }
.site-footer a { color: #f0b8b8; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center;
  font-size: 13px; color: #b6ada7;
}
.footer-bottom .credit-photo { font-size: 12px; color: #9a918b; }
.back-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--maroon); color: #fff !important; display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 90; }
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--maroon-dark); color:#fff !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 24px 20px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 0; width: 100%; border-bottom: 1px solid var(--bg-alt); }
  .nav-links a::after { display: none; }
  .nav-phone { margin-top: 10px; }
  .testimonials { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .article .figure-inline { float: none; width: 100%; max-width: 320px; margin: 0 auto 24px; }
  .hero { min-height: 70vh; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
