/*
 * The Law Offices of Albert J Kaiser, P.C. - site styles (2026 refresh)
 * Colors and sizes are set once in :root below. No JavaScript is used anywhere on the site.
 */

/* ---------- Fonts (self-hosted, Latin subset, SIL Open Font License) ---------- */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/source-sans-3-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(../fonts/source-serif-4-latin.woff2) format('woff2');
}

/* ---------- Design tokens ---------- */
:root {
  --navy: #173B63;
  --navy-deep: #0F2741;
  --gold: #C99A2E;        /* decorative lines only */
  --gold-light: #E3BC5C;  /* on navy backgrounds */
  --gold-text: #7A5C16;   /* gold-toned text on light backgrounds */
  --ink: #1C2733;
  --body: #3D4955;
  --muted: #4B5866;
  --label: #5A6573;
  --stone: #F4F1EA;
  --stone-dark: #E9E4D8;
  --line: #E3DDD1;
  --chip-line: #C9C2B4;
  --white: #FFFFFF;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(56px, 7vw, 96px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; color: var(--navy); }
p, figure { margin: 0; }
a { color: var(--navy); text-underline-offset: 0.15em; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.icon { flex: 0 0 auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 10;
  padding: 10px 16px; border-radius: 6px;
  background: var(--navy); color: var(--white); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }
[id] { scroll-margin-top: 12px; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: 1180px; margin: 0 auto; }
.section { padding: var(--section-y) var(--gutter); }
.section--stone { background: var(--stone); }
.stack { display: flex; flex-direction: column; }
.stack--md { gap: 36px; }
.stack--lg { gap: 40px; }
.text p, p.text { font-size: 18px; line-height: 1.65; color: var(--body); }
.muted { font-size: 16px; color: var(--muted); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-deep); color: #DCE3EC; font-size: 14px; padding: 0 var(--gutter); }
.topbar .wrap {
  min-height: 40px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0 16px;
}
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar .icon { color: var(--gold-light); }
.topbar a { min-height: 40px; color: var(--white); font-weight: 600; text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Header and main menu ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); padding: 0 var(--gutter); }
.site-header .wrap {
  padding: 14px 0; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 6px 32px;
}
.brand { display: block; padding: 4px 0; text-decoration: none; }
.brand__small {
  display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--label);
}
.brand__name {
  display: block; font-family: var(--serif); font-size: 27px; font-weight: 600;
  line-height: 1.2; color: var(--navy);
}
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0 26px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--navy); border-bottom-color: var(--chip-line); }
.main-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
@media (max-width: 420px) {
  .main-nav ul { gap: 0 18px; }
}

/* ---------- Type pieces ---------- */
.eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-text);
}
.h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.section-head--wide { max-width: 760px; gap: 18px; }
.lead { font-size: 20px; line-height: 1.6; color: var(--body); max-width: 600px; }
.lead--wide { max-width: 720px; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border: 2px solid transparent; border-radius: 8px;
  font-size: 18px; font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--gold { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-deep); font-weight: 700; }
.btn--gold:hover { background: #EFCB72; border-color: #EFCB72; color: var(--navy-deep); }
.btn--light { border-color: var(--white); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--navy); }
@media (max-width: 480px) {
  .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- Home: hero ---------- */
.hero { background: var(--stone); padding: clamp(56px, 7vw, 104px) var(--gutter); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.hero__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -0.01em; }
.hero .btn-row { padding-top: 6px; }
.hero__note { font-size: 16px; color: var(--muted); }

.portrait { margin: 0 auto; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.portrait__frame { position: relative; width: 256px; height: 376px; }
.portrait__frame::before {
  content: ""; position: absolute; left: 16px; top: 16px; width: 240px; height: 360px;
  border: 2px solid var(--gold); border-radius: 10px;
}
.portrait__frame img {
  position: absolute; left: 0; top: 0; width: 240px; height: 360px; object-fit: cover;
  border-radius: 10px; box-shadow: 0 14px 34px rgba(15, 39, 65, 0.18);
}
.portrait figcaption { text-align: center; }
.portrait__name { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--navy); }
.portrait__role { display: block; font-size: 15px; color: var(--muted); }

/* ---------- Home: credentials strip ---------- */
.credentials { border-bottom: 1px solid var(--line); padding: 40px var(--gutter); }
.credentials .wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 28px 32px; margin: 0 auto; padding: 0; list-style: none;
}
.credential { display: flex; flex-direction: column; gap: 4px; }
.credential::before { content: ""; width: 32px; height: 3px; margin-bottom: 10px; background: var(--gold); }
.credential__title { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.25; color: var(--navy); }
.credential__text { font-size: 16px; line-height: 1.45; color: var(--muted); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.card {
  display: flex; flex-direction: column; gap: 14px; padding: 28px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white);
}
.card h3 { font-size: 23px; line-height: 1.25; }
.card p { flex-grow: 1; font-size: 17px; line-height: 1.6; color: var(--body); }
.card--compact { gap: 10px; padding: 26px; }
.card--compact h3 { font-size: 22px; }
.icon-circle {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; background: var(--stone); color: var(--navy);
}
.icon-circle--sm { width: 44px; height: 44px; }
.section--stone .icon-circle { background: var(--white); }
.more-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 17px; font-weight: 600; color: var(--navy); text-decoration: none;
}
.more-link:hover { text-decoration: underline; }

/* ---------- Home: about ---------- */
.about .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 72px; }
.about__photo { margin: 0 auto; flex: 0 0 auto; }
.about__photo img { width: 260px; height: 390px; object-fit: cover; border-radius: 12px; }
.about__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

/* ---------- Home: four cornerstones ---------- */
.pillars {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 32px 40px; margin: 0; padding: 0; list-style: none;
}
.pillar { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.pillar__num { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1; color: var(--gold-text); }
.pillar h3 { font-size: 22px; }
.pillar p { font-size: 17px; line-height: 1.6; color: var(--body); }

/* ---------- Call-to-action band ---------- */
.cta { background: var(--navy); padding: clamp(48px, 6vw, 80px) var(--gutter); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.2; color: var(--white); }
.cta p { font-size: 18px; line-height: 1.6; color: #D6DEE8; }

/* ---------- Home: contact ---------- */
.contact { display: flex; flex-wrap: wrap; align-items: stretch; gap: 40px 56px; }
.contact__info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact__list { display: flex; flex-direction: column; gap: 24px; margin: 0; padding: 0; list-style: none; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item__label {
  font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label);
}
.contact-item__value { margin-top: 2px; font-size: 18px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.contact-item__value a { font-weight: 600; }
.contact__note { font-size: 15px; line-height: 1.55; color: var(--muted); }
.contact__map { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.contact__map iframe {
  display: block; flex: 1 1 auto; width: 100%; min-height: 300px;
  border: 0; border-radius: 12px; background: var(--stone-dark);
}
.contact__map .more-link { align-self: flex-start; }

/* ---------- Inner pages ---------- */
.page-intro { background: var(--stone); padding: clamp(48px, 6vw, 80px) var(--gutter); }
.page-intro .wrap { display: flex; flex-direction: column; gap: 18px; }
.page-intro--tall { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.page-intro h1 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.1; letter-spacing: -0.01em; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; padding-right: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 8px 0 0; list-style: none; }
.chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--chip-line); border-radius: 999px; background: var(--white);
  font-size: 16px; font-weight: 600; color: var(--navy); text-decoration: none;
}
.chips a:hover { border-color: var(--navy); }

.title-row { display: flex; align-items: center; gap: 16px; }
.title-row h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.15; }

.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 64px; }
.split__main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.split__main h3 { margin-top: 10px; font-size: 23px; line-height: 1.3; }
.split__aside {
  flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: 14px; background: var(--stone);
}
.split__aside h3 { font-size: 21px; line-height: 1.3; }

.panel {
  display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line); border-radius: 14px; background: var(--white);
}
.panel h3 { font-size: 24px; line-height: 1.3; }

.numbered { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: item; }
.numbered li { counter-increment: item; display: flex; gap: 12px; font-size: 17px; line-height: 1.5; color: var(--ink); }
.numbered li::before {
  content: counter(item) "."; flex: 0 0 22px;
  font-family: var(--serif); font-weight: 600; color: var(--gold-text);
}
.numbered--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px 48px; }

.checklist { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 12px; font-size: 17px; line-height: 1.45; }
.checklist .icon { margin-top: 2px; color: var(--gold-text); stroke-width: 2.25; }

.prose { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.prose p { font-size: 18px; line-height: 1.7; color: var(--body); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #C9D3DF; padding: clamp(48px, 6vw, 72px) var(--gutter) 28px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 36px; }
.site-footer a { color: var(--white); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 64px; }
.footer__firm { flex: 1 1 300px; min-width: 0; }
.footer__firm .brand__small { color: var(--gold-light); }
.footer__firm .brand__name { font-size: 26px; color: var(--white); }
.footer__address { margin-top: 18px; font-size: 16px; line-height: 1.7; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 24px 72px; }
.footer__heading {
  margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-light);
}
.footer__nav ul { margin: 0; padding: 0; list-style: none; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 40px; font-size: 16px; text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }
.footer__fine {
  display: flex; flex-direction: column; gap: 14px; padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px; line-height: 1.65; color: #AEBBCB;
}
.footer__fine strong { color: #DCE3EC; }
.footer__copy { color: #C9D3DF; }

/* ---------- Print ---------- */
@media print {
  .topbar, .main-nav, .skip-link, .cta, .contact__map, .chips, .btn-row { display: none; }
  .hero, .page-intro, .section--stone, .site-footer { background: none; color: #000; }
  .site-footer a, .footer__fine, .footer__copy { color: #000; }
  body { font-size: 12pt; }
}
