/* Barnett & Kloppers PLLC - site styles */
:root {
  --ink: #212121;
  --black: #000;
  --navy: #020d45;
  --cream: #e6e5e1;
  --muted: #5a5a5a;
  --line: #d9d9d9;
  --white: #fff;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn { display: inline-block; font-family: var(--sans); font-size: 14px; font-weight: 500; text-decoration: none; padding: 11px 22px; border: 2px solid var(--ink); background: var(--ink); color: #fff; transition: background .2s, color .2s; cursor: pointer; }
.btn:hover, .btn:focus-visible { background: #fff; color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover, .btn-light:focus-visible { background: transparent; color: #fff; }
.btn-soft { background: #efefef; color: var(--ink); border-color: #efefef; }
.btn-soft:hover, .btn-soft:focus-visible { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-outline { background: #fff; color: var(--ink); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--ink); color: #fff; }

/* Header */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #f0f0f0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 128px; }
.logo img { width: 200px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav a { text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; color: #fff;
  background: #222 url("../images/hero-sherman-downtown.jpg") center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.45)); }
.hero .wrap { position: relative; width: 100%; display: flex; justify-content: flex-end; }
.hero-text { max-width: 440px; text-align: right; }
.hero h1 { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: .25em; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero p { font-size: 18px; margin-bottom: 28px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }

/* Sections */
section { padding: 72px 0; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(30px, 3.4vw, 42px); }
.plain-list { list-style: none; padding: 0; margin: 0 0 28px; }
.plain-list li { padding: 1px 0; }

/* Services carousel */
.carousel { position: relative; max-width: 1000px; margin: 0 auto; background: var(--cream); padding-left: 44px; }
.slides { position: relative; background: var(--navy); aspect-ratio: 16/9; overflow: hidden; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 9%; opacity: 0; transition: opacity .6s ease; text-decoration: none; color: #fff; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide h3 { font-size: clamp(30px, 7vw, 96px); letter-spacing: .06em; text-transform: uppercase; font-weight: 400; line-height: 1.12; margin: 0; }
.slides::after { content: ""; position: absolute; left: 0; right: 6%; bottom: 10%; height: 1px; background: rgba(255,255,255,.4); z-index: 2; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; padding: 10px; cursor: pointer; }
.car-prev { left: 4px; color: #fff; }
.car-next { right: 10px; }
.dots { position: absolute; left: 0; right: 0; bottom: 4%; display: flex; justify-content: center; gap: 12px; z-index: 3; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); padding: 0; cursor: pointer; }
.dots button[aria-current="true"] { background: #fff; }

/* History band */
.history { background: var(--ink); padding: 96px 0; }
.history-card { background: #fff; max-width: 460px; padding: 40px 32px; }
.history-card h2 { font-size: 28px; }
.history-card p { font-size: 14px; }
.old-map { height: 420px; background: url("../images/sherman-1891.jpg") center/cover no-repeat; padding: 0; }
.band { background: #000; color: #fff; padding: 40px 0; }
.band h2 { font-size: clamp(28px, 3vw, 38px); margin: 0; }

/* Testimonial and affiliations */
.quote { text-align: center; padding: 64px 0 24px; }
.quote blockquote { margin: 0 auto; max-width: 680px; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45; }
.quote cite { display: block; margin-top: 18px; font-style: normal; font-size: 14px; }
.affil { display: flex; justify-content: center; align-items: center; gap: 72px; flex-wrap: wrap; padding: 48px 0 32px; }
.affil img { width: 200px; }
.center { text-align: center; }
.center h2 { font-size: clamp(30px, 3.4vw, 42px); }
.center p { max-width: 600px; margin: 0 auto 28px; }

/* Interior pages */
.page-head { text-align: center; padding: 64px 0 24px; }
.page-head h1 { font-size: clamp(30px, 3.4vw, 40px); }
.values { max-width: 680px; margin: 0 auto; text-align: center; }
.values h2 { font-size: 26px; }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 48px; padding-top: 32px; }
.person h2 { font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); }
.person h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; margin: 1.2em 0 .2em; }
.service { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.service:last-child { border-bottom: 0; }
.service h2 { font-size: clamp(28px, 3vw, 36px); }
.service ul { margin: .4em 0 0; padding-left: 20px; }
.service li { margin-bottom: 4px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.contact-grid h1 { font-size: 36px; }
.contact-info { margin-top: 28px; font-size: 15px; }
.contact-info a { text-decoration: none; }
.form-row { margin-bottom: 14px; }
.form-row label.sr { position: absolute; left: -9999px; }
input[type=text], input[type=email], input[type=tel], textarea { width: 100%; font: inherit; font-size: 15px; padding: 13px 12px; border: 1px solid #bdbdbd; border-radius: 0; background: #fff; color: var(--ink); }
input:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
textarea { min-height: 110px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 4px 0 16px; }
legend { font-size: 15px; margin-bottom: 6px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 6px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 12px; color: var(--muted); }
.alert { padding: 14px 16px; margin-bottom: 18px; font-size: 14px; border-left: 4px solid; }
.alert-ok { background: #eef7ef; border-color: #2e7d32; }
.alert-err { background: #fdecec; border-color: #c62828; }

/* Portal tutorial */
.video { position: relative; aspect-ratio: 16/9; max-width: 860px; margin: 0 auto 56px; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.steps { max-width: 860px; margin: 0 auto; }
.step { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; padding: 32px 0; border-top: 1px solid var(--line); }
.step h2 { font-size: 26px; }
.step img { border: 1px solid var(--line); }

/* Footer */
.site-footer { background: #000; color: #fff; padding: 56px 0 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-name { font-family: var(--serif); font-weight: 300; font-size: 19px; line-height: 1.2; margin-bottom: 24px; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 26px; font-weight: 500; }
.footer-nav a, .footer-contact a { text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { text-decoration: underline; }
.footer-contact { font-family: var(--serif); font-weight: 300; font-size: 17px; line-height: 1.6; }
.copyright { border-top: 1px solid #333; margin-top: 40px; padding-top: 20px; color: #9a9a9a; font-size: 13px; }

/* Responsive */
@media (max-width: 900px) {
  .header-inner { min-height: 92px; }
  .logo img { width: 160px; }
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid #eee; display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid #f2f2f2; }
  .header-cta { display: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .split, .team, .service, .contact-grid, .step, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { min-height: 480px; }
  .hero::before { background: rgba(0,0,0,.45); }
  .hero .wrap { justify-content: center; }
  .hero-text { text-align: center; }
  .carousel { padding-left: 0; }
  .old-map { height: 260px; }
  section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .affil { gap: 32px; }
  .affil img { width: 150px; }
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } html { scroll-behavior: auto; } }
