/* KimRim Law — shared styles for all three pages.
   Palette: trustworthy navy blue, restrained gold, warm white. Change a color once
   here and every page follows. */
:root {
  --ink: #161a22;
  --navy: #1b2c4f;
  --navy-deep: #121f3b;
  --night: #16243f;
  --floor: #0c1529;
  --blue: #2c4a7c;
  --gold: #c69b55;
  --gold-light: #e3c68f;
  --paper: #e2effd; /* "Clear sky" light blue, less gray than the first try (#eaf2fb). Options: /colors */
  --white: #fff;
  --muted: #5a6070;
  --line: #c6dbf5;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.small { font-size: .88rem; color: var(--muted); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--navy); color: #fff; padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }


/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(226, 239, 253, .96); /* = --paper at 96% */ backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header nav { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.logo { width: 218px; height: auto; }
.links { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; font-size: .92rem; font-weight: 650; }
.links a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.links a:hover, .links a[aria-current="page"] { border-bottom-color: var(--gold); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .3em; padding: 13px 20px; border: 1px solid var(--navy); background: var(--navy); color: #fff; text-decoration: none; font-weight: 750; letter-spacing: .01em; transition: background .2s ease, transform .2s ease; }
.button:hover { background: var(--navy-deep); transform: translateY(-1px); }
.button.gold { background: var(--gold); border-color: var(--gold); color: #161a22; }
.button.gold:hover { background: #d7b272; }
.links .button { padding: 11px 18px; border-bottom-width: 1px; }
.text-link { font-weight: 750; text-underline-offset: 5px; }

/* Home hero */
.hero { padding: 0; min-height: 640px; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--white); }
.hero-copy { padding: 88px 64px 78px max(20px, calc((100vw - 1160px) / 2)); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 5.4rem); line-height: .98; letter-spacing: -.045em; margin: 18px 0 26px; }
.hero h1 em { font-weight: 400; color: var(--blue); }
.lede { font-size: 1.18rem; color: #3d4351; max-width: 630px; margin: 0 0 32px; }
.actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-image { position: relative; min-height: 560px; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(18, 31, 59, .55)); }

/* Interior page hero */
.page-hero { padding: 84px 0 66px; background: var(--white); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -.045em; max-width: 900px; margin: 16px 0 24px; }
.page-hero p { font-size: 1.18rem; color: #404654; max-width: 720px; margin: 0; }

/* Sections */
section { padding: 88px 0; }
.section-title { font-size: clamp(2.1rem, 4vw, 3.9rem); line-height: 1.08; letter-spacing: -.035em; margin: 10px 0; }
.intro { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.intro-copy { font-size: 1.08rem; }
.intro-copy p:first-child { font-size: 1.3rem; color: var(--navy); margin-top: 8px; }
.section-head { display: flex; justify-content: space-between; gap: 50px; align-items: end; margin-bottom: 44px; }
.section-head p { max-width: 520px; margin: 0; }

.services-band, .dark { background: var(--navy); color: var(--white); }
.services-band .eyebrow, .dark .eyebrow { color: var(--gold-light); }
.services-band .section-head p, .dark p { color: #d7ddea; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-grid.two { grid-template-columns: repeat(2, 1fr); }
.service { padding: 32px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.service h3 { font-size: 1.55rem; line-height: 1.18; margin: 26px 0 12px; }
.service p { color: #474d5b; margin: 0; }
.num { color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .14em; }
.services-band .service-grid { border-color: rgba(255, 255, 255, .28); }
.services-band .service { background: transparent; border-color: rgba(255, 255, 255, .28); }
.services-band .service p { color: #d2d9e7; }
.services-band .num { color: var(--gold-light); }

.fees-grid, .bio, .about { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.bio, .about { align-items: start; }
.quote { border-left: 5px solid var(--gold); padding: 8px 0 8px 34px; }
.quote p { font-size: 1.12rem; color: #404654; }
.fee-card { background: var(--white); color: var(--ink); padding: 36px; border-left: 5px solid var(--gold); }
.fee-card.plain { background: var(--paper); border-left: 0; }
.fee-card h3 { margin: 0 0 12px; font-size: 1.65rem; }
.fee-card p { color: #414756; margin: 0 0 14px; }
.dark .fee-card p { color: #414756; }
.dark .fee-card .small { color: var(--muted); }

.portrait { width: 100%; height: 560px; object-fit: cover; }
.bio-copy p:first-of-type { font-size: 1.24rem; color: var(--navy); }
.facts { border-top: 1px solid var(--line); margin: 30px 0 0; }
.fact { display: grid; grid-template-columns: 115px 1fr; gap: 24px; padding: 17px 0; border-bottom: 1px solid var(--line); margin: 0; }
.fact dt { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); padding-top: 3px; }
.fact dd { margin: 0; }

.contact { text-align: center; background: var(--night); color: #fff; }
.contact .eyebrow { color: var(--gold-light); }
.contact h2 { max-width: 820px; margin: 12px auto 22px; }
.contact p { max-width: 690px; margin: 0 auto 28px; color: #d2d9e7; }
.contact .contact-meta { margin-top: 26px; margin-bottom: 0; font-size: .92rem; color: #c3cad9; }
.contact .contact-meta a { color: #fff; }

/* Footer */
.site-footer { background: var(--floor); color: #b7bfd0; padding: 30px 0; font-size: .8rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-grid p { margin: 0; max-width: 760px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 880px) {
  .site-header nav { flex-wrap: wrap; gap: 6px 20px; padding: 12px 0; min-height: 0; }
  .logo { width: 170px; }
  .links { width: 100%; gap: 20px; flex-wrap: wrap; font-size: .9rem; }
  .links li:last-child { margin-left: auto; }
  html { scroll-padding-top: 140px; }
  /* Photo first on narrow screens so Kimberly is in the first viewport. */
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 44px 20px 60px; }
  .hero-image { order: -1; min-height: 0; height: 380px; overflow: visible; display: flex; flex-direction: column; }
  .hero-image img { flex: 1; min-height: 0; }
  .hero-image::after { display: none; }
  .intro, .fees-grid, .bio, .about { grid-template-columns: 1fr; gap: 38px; }
  .service-grid, .service-grid.two { grid-template-columns: 1fr 1fr; }
  .section-head { display: block; }
  .section-head p { margin-top: 18px; }
  section { padding: 66px 0; }
  .portrait { height: 480px; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .logo { width: 146px; }
  .links { gap: 14px; font-size: .86rem; }
  .links .button { padding: 8px 12px; }
  .hide-sm { display: none; }
  .hero-copy { padding: 36px 16px 52px; }
  .hero-image { height: 340px; }
  .service-grid, .service-grid.two { grid-template-columns: 1fr; }
  .service { padding: 26px 22px; }
  .fact { grid-template-columns: 1fr; gap: 4px; }
  .quote { padding-left: 22px; }
  .fee-card { padding: 26px 22px; }
  .page-hero { padding: 54px 0; }
  .portrait { height: 400px; }
}

/* September update: photo + text pairs, her own words, bio side photos */
.media-left, .media-right { align-items: start; }
.feature-photo { width: 100%; max-height: 640px; object-fit: cover; object-position: 50% 20%; }
.her-words { margin: 22px 0 26px; padding: 0 0 0 26px; border-left: 3px solid var(--gold); }
.her-words p { font-size: 1.05rem; line-height: 1.75; margin: 0 0 14px; }
.her-words footer { font-family: var(--serif); font-style: italic; color: var(--gold-light); }
.bio-media { display: grid; gap: 28px; position: sticky; top: 120px; }
.aside-photo { margin: 0; }
.aside-photo img { width: 100%; height: auto; }
.aside-photo figcaption { margin-top: 8px; font-size: .84rem; color: var(--muted); }
.bio-copy cite { font-style: italic; }
.hero-image img { object-position: 50% 22%; }
.portrait { object-position: 50% 20%; }
@media (max-width: 880px) {
  .bio-media { position: static; }
  .media-right .feature-photo { order: -1; }
  .feature-photo { max-height: 460px; }
}

/* Comfortable tap targets for inline links on touch screens (WCAG 2.5.8). */
@media (max-width: 560px) {
  .contact-meta a, .service .text-link, .page-hero .text-link { display: inline-block; padding: 8px 0; }
}

.band-cta { margin-top: 32px; }
.white-band { background: var(--white); }

/* Sept 24 review: justified body copy on every page (centered contact band excepted). */
main section:not(.contact) p:not(.eyebrow):not(.num):not(.band-cta), main dd { text-align: justify; }
.nowrap { white-space: nowrap; }

/* Service mark beside the logo (SM = services; switch to TM or ® only as registration allows). */
.brand { display: inline-flex; align-items: flex-start; gap: 2px; text-decoration: none; color: var(--ink); }
.service-mark { font: 700 .62rem/1 var(--sans); letter-spacing: .04em; margin-top: 4px; }
@media (max-width: 560px) { .service-mark { font-size: .52rem; margin-top: 2px; } }

/* Justified text (Kimberly's choice) opens wide gaps on narrow phones; hyphenate there. */
@media (max-width: 560px) { main section:not(.contact) p, main dd { hyphens: auto; -webkit-hyphens: auto; } }
