/* Sundstedt | Goodman PC - site styles */
:root {
  --navy: #0f2240;
  --navy-2: #17305a;
  --blue: #1a4fa0;          /* firm blue from the original site */
  --blue-dark: #143f80;
  --gold: #b8915a;
  --gold-soft: #f3ece1;
  --ink: #1c2433;
  --muted: #5b6577;
  --line: #e3e6ec;
  --bg: #ffffff;
  --bg-alt: #f6f5f1;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 34, 64, .06), 0 8px 24px rgba(15, 34, 64, .07);
  --shadow-hover: 0 2px 4px rgba(15, 34, 64, .08), 0 16px 40px rgba(15, 34, 64, .12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--sans); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, .h3, .h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3, .h3 { font-size: 1.28rem; }
.h4 { font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ico { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }

/* top bar + header */
.topbar { background: var(--navy); color: #c9d3e6; font-size: .86rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #dfe6f3; text-decoration: none; display: inline-flex; gap: 7px; align-items: center; }
.topbar a:hover { color: #fff; }
.topbar-r { display: inline-flex; gap: 22px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { width: 260px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav ul a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .97rem; }
.nav ul a:hover { background: var(--bg-alt); color: var(--navy); }
.nav ul a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span:not(.sr) { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; border: 2px solid var(--blue); padding: 12px 22px; border-radius: 999px; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; font-family: var(--sans); }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(26, 79, 160, .25); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--navy); border-color: #c8cfdb; }
.btn-ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--gold-soft); color: var(--navy); border-color: var(--gold-soft); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; }
.link-arrow .ico { transition: transform .15s; }
.link-arrow:hover .ico { transform: translateX(3px); }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero-bg { position: absolute; inset: 0; background: url("../img/hero.jpg") center 40% / cover no-repeat; opacity: .28; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15, 34, 64, .96) 0%, rgba(15, 34, 64, .82) 45%, rgba(15, 34, 64, .35) 100%); }
.hero-in { position: relative; z-index: 1; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.hero-copy { max-width: 700px; }
.hero h1 { color: #fff; }
.hero .lead { color: #d6deeb; font-size: 1.2rem; max-width: 620px; }
.hero .eyebrow { color: var(--gold); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 34px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.hero-facts { list-style: none; margin: 0; padding: 22px 0 0; display: flex; gap: 32px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .18); color: #c9d3e6; font-size: .95rem; }
.hero-facts strong { display: block; color: #fff; font-family: var(--serif); font-size: 1.25rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--gold); margin-bottom: 12px; }
.lead { font-size: 1.14rem; color: var(--muted); }

/* page head */
.page-head { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: clamp(52px, 7vw, 88px) 0 clamp(44px, 6vw, 72px); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .04); }
.page-head h1 { color: #fff; max-width: 820px; }
.page-head .lead { color: #cdd6e5; max-width: 720px; margin: 0; }
.crumbs { font-size: .9rem; color: #b9c4d8; margin-bottom: 10px; }
.crumbs a { color: #dfe6f3; }

/* sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.row-head { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.mt { margin-top: 48px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split-contact { align-items: start; }
.split-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split-img { margin: 0; }
.building { margin-top: 28px; max-width: 360px; }

/* grids + cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: inherit; transition: box-shadow .2s, transform .2s; }
a.card, .card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
a.card:hover, .card:has(.card-link:hover) { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-body { padding: 24px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); }
.more { display: inline-flex; gap: 6px; align-items: center; color: var(--blue); font-weight: 650; font-size: .95rem; }
.practice-card { padding: 28px 24px; }
.practice-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); margin-bottom: 18px; }
.practice-ico .ico { width: 26px; height: 26px; }
.practice-ico-lg { width: 64px; height: 64px; }
.practice-ico-lg .ico { width: 32px; height: 32px; }

/* people */
.person { text-decoration: none; color: var(--ink); display: block; }
.person-img { display: block; border-radius: var(--radius); overflow: hidden; background: #eef0f4; aspect-ratio: 4 / 5; margin-bottom: 14px; }
.person-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.person:hover .person-img img { transform: scale(1.03); }
.person strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); }
.person span:not(.person-img) { color: var(--muted); font-size: .95rem; }
.attorney-card { display: grid; grid-template-columns: 210px 1fr; }
.attorney-photo { background: #eef0f4; }
.attorney-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.attorney-card h2 a { color: var(--navy); text-decoration: none; }
.attorney-card h2 a:hover { color: var(--blue); }
.attorney-card .eyebrow { margin-bottom: 6px; }
.attorney-links a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
.badge { display: inline-flex; gap: 8px; align-items: center; background: var(--gold-soft); color: #7a5a2c; font-size: .86rem; font-weight: 650; padding: 5px 12px; border-radius: 999px; }
.badge-light { background: rgba(255, 255, 255, .12); color: #f1e3cc; }
.page-head-person { padding-bottom: 56px; }
.person-head { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.person-head-img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: 0 12px 32px rgba(0, 0, 0, .3); background: #fff; }
.person-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.inline-badge { margin-top: 12px; }

/* lists */
.plain { list-style: none; margin: 0; padding: 0; }
.checks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks .ico { color: var(--blue); }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: .9rem; }
.link-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.link-grid a { display: flex; gap: 10px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); height: 100%; transition: border-color .15s, box-shadow .15s; }
.link-grid a:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--blue); }
.link-grid .ico { color: var(--gold); }
.doc-card { padding: 26px 24px; }
.note { color: var(--muted); font-size: .92rem; margin-top: 22px; }

/* practice page */
.practice-row { display: grid; grid-template-columns: 64px 1fr; gap: 28px; padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.practice-row:first-child { padding-top: 0; }
.practice-row:last-child { border-bottom: 0; }
.lead-sm { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); }

/* news */
.news-card .card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.news-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.news-card:hover .card-img img { transform: scale(1.03); }
.card-img-ph { display: grid; place-items: center; height: 100%; color: var(--gold); }
.card-img-ph .ico { width: 48px; height: 48px; }
.news-card h3 { font-size: 1.15rem; }
.meta { color: var(--muted); font-size: .88rem; margin-bottom: 6px; }
.news-full { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.news-full:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.news-full h2 a { color: var(--navy); text-decoration: none; }
.news-full h2 a:hover { color: var(--blue); }
.news-img { margin: 8px 0 24px; }
.news-img img { border-radius: var(--radius); width: 100%; max-height: 520px; object-fit: cover; box-shadow: var(--shadow); }
.news-img.tall img { max-width: 420px; max-height: none; }
.prose { font-size: 1.06rem; }
.prose p, .prose ul { margin-bottom: 1.1em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 1.15rem; color: var(--navy); }
.back { margin-top: 36px; }

/* contact */
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.contact-list .ico { width: 22px; height: 22px; color: var(--gold); margin-top: 3px; }
.contact-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-list a { text-decoration: none; color: var(--navy); font-weight: 600; font-size: 1.05rem; }
.form-card { padding: clamp(24px, 3.5vw, 36px); }
.form h3 { margin-bottom: .2em; }
.form-note { color: var(--muted); }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; color: var(--navy); }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-weight: 400; color: var(--ink); background: #fbfbfc; border: 1px solid #cfd5df; border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 79, 160, .15); background: #fff; }
.form textarea { resize: vertical; min-height: 130px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.field-err { display: block; color: #b3261e; font-weight: 500; font-size: .86rem; margin-top: 4px; }
.form-fine { font-size: .83rem; color: var(--muted); }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .95rem; }
.alert-err { background: #fdecea; color: #8a1c14; border: 1px solid #f5c2bd; }
.alert-warn { background: #fff6e5; color: #7a4d00; border: 1px solid #f3d9a4; }
.thanks { text-align: center; padding: 28px 8px; }
.thanks .practice-ico { background: #e7f4ea; color: #2e7d32; }
.map-band { padding: 0 0 72px; text-align: center; }

/* CTA band */
.cta-band { background: var(--blue); color: #fff; background-image: linear-gradient(120deg, var(--blue) 0%, var(--navy-2) 100%); }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding-top: 52px; padding-bottom: 52px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: #d9e2f2; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* footer */
.site-footer { background: var(--navy); color: #b9c4d8; font-size: .95rem; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 40px; padding-bottom: 44px; }
.footer-logo { width: 230px; margin-bottom: 18px; }
.site-footer a { color: #dfe6f3; text-decoration: none; display: inline-flex; gap: 8px; align-items: flex-start; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer li { margin-bottom: 10px; }
.site-footer .ico { color: var(--gold); margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; padding-bottom: 28px; font-size: .85rem; }
.footer-bottom p { margin: 0 0 8px; }
.disclaimer { color: #8d9ab3; max-width: 900px; }

/* responsive */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav ul a { padding: 8px 9px; }
  .brand img { width: 220px; }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .menu-btn { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 24px 22px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15, 34, 64, .1); display: none; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: 12px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav ul a[aria-current="page"] { box-shadow: none; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .split, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .attorney-card { grid-template-columns: 160px 1fr; }
  .person-head { grid-template-columns: 150px 1fr; gap: 24px; }
  .topbar-in > a { display: none; }
  .topbar-in { justify-content: center; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-in { min-height: 70px; }
  .brand img { width: 190px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .practice-card { padding: 22px 18px; }
  .attorney-card { grid-template-columns: 1fr; }
  .attorney-photo img { aspect-ratio: 4 / 3; object-position: center 20%; }
  .person-head { grid-template-columns: 1fr; }
  .person-head-img { max-width: 200px; }
  .row2, .checks, .link-grid { grid-template-columns: 1fr; }
  .practice-row { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .topbar-r { gap: 14px; font-size: .8rem; }
  .hero-facts { gap: 18px; }
  .cta-in { padding-top: 40px; padding-bottom: 40px; }
}
@media (max-width: 420px) { .grid-4 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .site-header, .cta-band, .site-footer, .form-card { display: none; } }
