/* Kish Dykstra & Scott - "modern" site (kish2.powdr.ai).
   An uplifted look for the same firm: the brand navy and orange kept,
   DM Serif Display for headlines, DM Sans for everything else, generous
   whitespace, cards and clear calls to action. Hand-written, no framework.
   Every style lives here (the Content Security Policy allows no inline
   styles). */

:root {
  --navy-900: #0b1f3a;
  --navy: #003468;
  --navy-600: #1d4f8a;
  --navy-50: #eef3f9;
  --amber: #ce7019;
  --amber-600: #b35f10;
  --amber-50: #fbf1e6;
  --ink: #1f2937;
  --muted: #5b6573;
  --line: #e4e8ee;
  --cream: #f7f5f1;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 14px 36px rgba(11, 31, 58, .10);
  --shadow-sm: 0 2px 10px rgba(11, 31, 58, .06);
  --shadow-card: 0 1px 2px rgba(11, 31, 58, .08), 0 6px 14px rgba(11, 31, 58, .12), 0 18px 36px rgba(11, 31, 58, .12);
  --shadow-card-hover: 0 2px 3px rgba(11, 31, 58, .10), 0 12px 24px rgba(11, 31, 58, .15), 0 28px 48px rgba(11, 31, 58, .14);
  --font-head: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", "Segoe UI", Arial, sans-serif;
  --header-h: 76px;
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration: none; transition: color .2s; }
a:hover, a:focus-visible { color: var(--amber-600); }
:focus-visible { outline: 3px solid rgba(206, 112, 25, .55); outline-offset: 3px; border-radius: 4px; }

h1, h2 { font-family: var(--font-head); font-weight: 400; color: var(--navy); margin: 0 0 20px; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 5.2vw, 62px); line-height: 1.06; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 21px; line-height: 1.3; color: var(--navy); margin: 0 0 10px; }
p { margin: 0 0 1em; }
.lead { font-size: 19px; color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.bg-navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #f0b36b; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy-900); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy p { color: rgba(255, 255, 255, .82); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 18px; }
.bg-navy .section-head p { color: rgba(255, 255, 255, .82); }

.icon { width: 24px; height: 24px; flex: 0 0 auto; }
.sr-only {
  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: -64px; z-index: 300;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 16px 26px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--amber); color: #fff; box-shadow: 0 8px 20px rgba(206, 112, 25, .25); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--amber-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(255, 255, 255, .16); color: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--navy); color: #fff; }
.btn-sm { padding: 11px 16px; font-size: 15px; border-radius: 10px; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.text-link { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; color: var(--navy); }
.text-link .icon { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover { color: var(--amber-600); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: block; line-height: 1; margin-right: auto; }
.brand img { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav ul a {
  display: inline-block; font-weight: 500; font-size: 16px; color: var(--ink);
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.site-nav ul a:hover, .site-nav ul a:focus-visible, .site-nav ul a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--amber); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.client-login { font-weight: 600; font-size: 15px; color: var(--navy); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--navy); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  /* Absolute (not fixed): the header's backdrop-filter makes it the
     containing block, so a fixed panel would be clipped to the header. */
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 16px 24px 40px; overflow: auto;
    border-top: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; font-size: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a[aria-current="page"] { border-bottom-color: var(--line); color: var(--amber-600); }
  .header-actions { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 24px; }
  .header-actions .btn { justify-content: center; }
  .client-login { text-align: center; font-size: 17px; }
}

/* ---------- Home: hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--navy-900) url("../img/bg-home-hero.jpg") 50% 70% / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 31, 58, .94) 0%, rgba(11, 31, 58, .78) 42%, rgba(11, 31, 58, .22) 100%);
}
.hero .container { position: relative; padding-top: 72px; padding-bottom: 72px; }
.hero-copy { max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero .lead { color: rgba(255, 255, 255, .88); font-size: 20px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.trust-item { display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: 15px; color: var(--navy); }
.trust-item .icon-wrap {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  background: var(--amber-50); color: var(--amber-600);
  display: grid; place-items: center;
}

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.split-copy p { color: var(--muted); font-size: 17px; }
.split-copy .btn { margin-top: 10px; }
.photo-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 5 / 4; background: var(--navy-50);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.photo-chip {
  position: absolute; left: 20px; bottom: 20px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--navy); font-weight: 600; font-size: 15px;
  padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-sm);
}
.photo-chip .icon { color: var(--amber); width: 20px; height: 20px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
/* Raised cards: the layered shadow at rest. card-static also drops the hover
   lift (team page, practice areas); card-raised keeps it and deepens the
   shadow (clickable attorney cards on the home page). */
.card-static, .card-static:hover { transform: none; box-shadow: var(--shadow-card); border-color: var(--line); }
.card-raised { box-shadow: var(--shadow-card); }
.card-raised:hover { box-shadow: var(--shadow-card-hover); border-color: var(--line); }
.card p { color: var(--muted); font-size: 16px; margin: 0; }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 22px;
  background: var(--navy-50); color: var(--navy); display: grid; place-items: center;
}
.card-icon .icon { width: 26px; height: 26px; }

.service-list {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px;
}
.service-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); }
.service-list .icon { width: 22px; height: 22px; color: var(--amber); }
.services-more { margin-top: 44px; font-weight: 600; color: var(--navy); }

/* ---------- Why a CELA ---------- */
.cela .split { grid-template-columns: 1fr 1fr; gap: 72px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stat {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius); padding: 36px 24px; text-align: center;
}
.stat-number { display: block; font-family: var(--font-head); font-size: 64px; line-height: 1; color: #fff; }
.stat-label { display: block; margin-top: 12px; font-size: 15px; color: rgba(255, 255, 255, .78); }
.bg-navy .btn-primary { box-shadow: none; }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.person { display: flex; flex-direction: column; }
.avatar {
  width: 72px; height: 72px; border-radius: 50%; margin-bottom: 20px;
  background: var(--navy); color: #fff;
  font-family: var(--font-head); font-size: 26px; letter-spacing: .02em;
  display: grid; place-items: center;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--amber);
}
.person h3 { margin-bottom: 4px; }
.person-role {
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--amber-600); margin-bottom: 14px;
}
.person p { flex: 1 1 auto; margin-bottom: 18px; }
.people-large { grid-template-columns: 1fr; gap: 20px; }
.people-large .person { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.people-large .person h3 { font-size: 26px; }
.people-large .person p { color: var(--ink); font-size: 17px; margin: 0; }
.people-large .avatar { width: 96px; height: 96px; font-size: 34px; margin-bottom: 0; }
.person-head { display: flex; flex-direction: column; gap: 16px; }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #fff; border-radius: 24px; padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  box-shadow: var(--shadow);
}
.cta h2 { color: #fff; margin-bottom: 10px; font-size: clamp(28px, 3vw, 38px); }
.cta p { color: rgba(255, 255, 255, .82); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; flex: 0 0 auto; }
.cta-phone { font-family: var(--font-head); font-size: 30px; color: #fff; display: inline-flex; align-items: center; gap: 12px; }
.cta-phone:hover { color: #f0b36b; }
.cta-phone .icon { color: #f0b36b; width: 26px; height: 26px; }

/* ---------- Page hero (team, contact, simple pages) ---------- */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--navy-900) url("../img/bg-team-hero.jpg") 50% 58% / cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 31, 58, .94), rgba(11, 31, 58, .72)); }
.page-hero.plain { background-image: none; background: var(--navy-900); }
.page-hero.plain::before { display: none; }
.page-hero .container { position: relative; padding-top: 84px; padding-bottom: 72px; max-width: 900px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255, 255, 255, .85); max-width: 680px; }
.page-hero blockquote {
  margin: 28px 0 0; padding: 0 0 0 20px; border-left: 3px solid var(--amber);
  font-family: var(--font-head); font-size: 24px; line-height: 1.35; color: #fff;
}
.page-hero blockquote footer { font-family: var(--font-body); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: #f0b36b; margin-top: 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.form-card, .info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow-sm);
}
.info-card { background: var(--cream); }
.form-note { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field legend, .field > label, .hp label { display: block; padding: 0; margin: 0 0 8px; font-weight: 600; font-size: 14px; color: var(--navy); }
.req { color: var(--amber-600); }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sublabel { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
input[type="text"], input[type="email"], textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--ink);
  padding: 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0, 52, 104, .12);
}
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  margin: 0 0 20px; padding: 14px 16px; border-radius: 10px;
  font-size: 15px; font-weight: 500; background: var(--navy-50); color: var(--navy);
  border-left: 4px solid var(--navy);
}
.form-status.is-error { background: #fbeeed; color: #7a1b15; border-left-color: #b3261e; }
.form-alt { font-size: 14px; color: var(--muted); margin: 18px 0 0; line-height: 1.6; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon-wrap {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  background: #fff; color: var(--amber-600); display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.info-list strong { display: block; color: var(--navy); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.info-list p { margin: 0; color: var(--ink); }
.info-list a { font-weight: 600; }
.map-card { margin-top: 32px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-card iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Simple pages (disclaimer, thank you, 404) ---------- */
.article { max-width: 760px; }
.article h2 { font-size: 26px; margin: 40px 0 12px; }
.article p, .article li { color: var(--ink); font-size: 17px; }
.article .btn { margin-top: 12px; }
.center { text-align: center; }
.article.center { margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .78); padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 46px; height: auto; margin-bottom: 14px; }
.footer-wordmark { font-family: var(--font-head); font-size: 22px; color: #fff; margin: 0 0 6px; }
.footer-tag { margin: 0; color: rgba(255, 255, 255, .62); }
.site-footer h3 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer p { margin: 0 0 10px; }
.site-footer a { color: rgba(255, 255, 255, .86); }
.site-footer a:hover, .site-footer a:focus-visible { color: #f0b36b; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px; color: rgba(255, 255, 255, .6);
}
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .split, .cela .split { grid-template-columns: 1fr; gap: 40px; }
  .cards, .people { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .people-large .person { grid-template-columns: 1fr; gap: 20px; }
  .hero { min-height: 560px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .cards, .people, .stats, .service-list, .name-row, .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .hero .container { padding-top: 56px; padding-bottom: 56px; }
  .hero .lead { font-size: 18px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta { flex-direction: column; align-items: flex-start; padding: 36px 28px; border-radius: 18px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .form-card, .info-card { padding: 28px 22px; }
  .map-card iframe { height: 280px; }
  .page-hero .container { padding-top: 56px; padding-bottom: 52px; }
  .page-hero blockquote { font-size: 20px; }
}
