/* ==========================================================================
   Adv. Ashutosh Hans — public site
   Palette: court-ledger green, paper, ink, brass
   ========================================================================== */

:root {
  --green: #1f3a32;
  --green-deep: #142822;
  --green-tint: #e6ece8;
  --paper: #fafaf7;
  --white: #ffffff;
  --ink: #1a1d1c;
  --slate: #5e6663;
  --line: #d9dfdb;
  --brass: #a8823a;
  --brass-light: #c9a45c;
  --danger: #a33a2c;
  --ok: #2f6b4f;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
body.locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.05rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 600 .95rem/1 var(--sans);
  padding: .95em 1.4em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); color: var(--white); }
.btn-brass { background: var(--brass-light); color: var(--green-deep); }
.btn-brass:hover { background: #d8b673; color: var(--green-deep); }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-outline:hover { color: var(--brass-light); }
.btn-quiet { background: transparent; color: var(--slate); }
.btn-quiet:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 24px; }
.brand { text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: var(--slate); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--green); font-weight: 600; }
}

/* ---------- Hero: the nameplate ---------- */
.hero {
  background: var(--green);
  color: var(--white);
  padding: clamp(56px, 10vw, 112px) 0 clamp(56px, 9vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* faint ruled lines, like a court ledger */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(255,255,255,.035) 39px 40px);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }

.nameplate {
  border: 1px solid var(--brass-light);
  outline: 1px solid rgba(201,164,92,.35);
  outline-offset: 7px;
  padding: clamp(28px, 4.5vw, 52px) clamp(24px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.06));
  animation: plate-in .9s cubic-bezier(.2,.7,.2,1) both;
}
.nameplate-role {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass-light);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin: 0 0 .25em;
}
.nameplate h1 {
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.nameplate-rule { width: 64px; height: 1px; background: var(--brass-light); margin: clamp(20px, 3vw, 28px) 0; border: 0; }
.nameplate-meta { color: rgba(255,255,255,.72); font-size: .95rem; margin: 0; }

.hero-copy p { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.88); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@keyframes plate-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nameplate { animation: none; } * { transition: none !important; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 500; font-size: .95rem; }
.lede { font-size: 1.15rem; color: var(--slate); max-width: 60ch; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 6vw, 72px); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.prose { font-family: var(--serif); font-size: 1.12rem; line-height: 1.75; max-width: 66ch; }
.prose p { margin-bottom: 1.15em; }

/* Practice areas: a plain index, not cards */
.areas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.areas li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.areas h3 { margin: 0; font-size: 1.2rem; }
.areas p { margin: 0; color: var(--slate); }
@media (max-width: 640px) { .areas li { grid-template-columns: 1fr; } }

.courts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.courts li { background: var(--green-tint); color: var(--green); padding: 6px 12px; border-radius: 999px; font-size: .9rem; }

/* ---------- Articles list ---------- */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-row {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.post-row:first-child { border-top: 1px solid var(--line); }
.post-row.no-image { grid-template-columns: minmax(0, 1fr); }
.post-thumb { aspect-ratio: 4 / 3; background: var(--green-tint); overflow: hidden; border-radius: var(--radius); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-row h3 { font-size: 1.4rem; margin: 4px 0 8px; }
.post-row h3 a { color: var(--ink); text-decoration: none; }
.post-row h3 a:hover { color: var(--green); text-decoration: underline; }
.post-row p { color: var(--slate); margin: 0; max-width: 65ch; }
.post-meta { font-size: .875rem; color: var(--slate); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.post-meta .cat { color: var(--brass); font-weight: 600; text-decoration: none; }
@media (max-width: 640px) {
  .post-row { grid-template-columns: 1fr; gap: 16px; }
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--slate); font-size: .9rem; }
.filters a:hover { border-color: var(--green); color: var(--green); }
.filters a.active { background: var(--green); border-color: var(--green); color: var(--white); }

.pagination { display: flex; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; padding: 8px 12px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pagination span.current { background: var(--green); color: var(--white); border-color: var(--green); }

.empty { padding: 48px 0; color: var(--slate); }

/* ---------- Single article ---------- */
.page-head { padding: clamp(48px, 7vw, 80px) 0 clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 22ch; }
.page-head .lede { margin: 0; }
.article-head { max-width: 760px; }
.article-head h1 { max-width: none; }
.article-hero { max-width: 960px; margin: 40px auto 0; padding: 0 var(--gutter); }
.article-hero img { width: 100%; border-radius: var(--radius); }
.article-body { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 24px; }
.article-body .prose { max-width: none; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose blockquote { margin: 1.6em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--brass); color: var(--slate); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { margin: 1.6em 0; border-radius: var(--radius); }
.prose pre { background: var(--green-tint); padding: 16px; overflow-x: auto; font-size: .9rem; border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: .95rem; margin: 1.4em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose .ql-indent-1 { padding-left: 2em; } .prose .ql-indent-2 { padding-left: 4em; }
.article-note { max-width: 760px; margin: 0 auto 56px; padding: 0 var(--gutter); }
.article-note p { font-size: .9rem; color: var(--slate); border-top: 1px solid var(--line); padding-top: 20px; }
.share { display: flex; gap: 16px; flex-wrap: wrap; font-size: .95rem; margin-top: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 72px); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-details dl { margin: 0; }
.contact-details dt { font-size: .875rem; color: var(--slate); margin-top: 20px; }
.contact-details dd { margin: 4px 0 0; font-size: 1.05rem; }

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--slate); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--white); border: 1px solid #c4ccc8; border-radius: var(--radius);
  padding: 11px 12px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
.field textarea { min-height: 160px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--slate); }
.check input { margin-top: 5px; }
.hp { position: absolute; left: -9999px; }

.notice { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 20px; }
.notice-ok { background: #e3efe8; color: var(--ok); }
.notice-error { background: #f6e5e2; color: var(--danger); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green-tint); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { margin: 0 0 .3em; }
.cta-inner p { margin: 0; color: var(--slate); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,.85); padding: 56px 0 24px; font-size: .95rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--brass-light); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 32px; }
.footer-name { font-family: var(--serif); font-size: 1.25rem; color: var(--white); margin-bottom: 6px; }
.footer-muted { color: rgba(255,255,255,.65); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-base p { margin: 0; max-width: 70ch; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Disclaimer dialog ---------- */
.disclaimer { position: fixed; inset: 0; background: rgba(20,40,34,.72); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.disclaimer[hidden] { display: none; }
.disclaimer-panel { background: var(--paper); max-width: 560px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); border-top: 4px solid var(--brass); }
.disclaimer-panel h2 { font-size: 1.6rem; }
.disclaimer-panel ul { padding-left: 1.2em; color: var(--slate); }
.disclaimer-panel li { margin-bottom: .6em; }
.disclaimer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* Lists written in the editor */
.prose ol > li[data-list="bullet"] { list-style-type: disc; }
.prose ol > li[data-list="ordered"] { list-style-type: decimal; }

/* ---------- Photos ---------- */
.portrait { margin: 0 0 28px; max-width: 320px; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border-bottom: 3px solid var(--brass); }
.portrait-sm { max-width: 220px; margin-top: 20px; }
@media (max-width: 760px) { .portrait { max-width: 240px; } }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.gallery figure { margin: 0; }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--green-tint); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { font-size: .92rem; color: var(--slate); margin-top: 8px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 94vh; }
.lightbox::backdrop { background: rgba(20,40,34,.88); }
.lightbox img { max-width: 100%; max-height: 84vh; margin: 0 auto; border-radius: var(--radius); }
.lightbox-caption { color: #fff; text-align: center; margin: 12px 0 0; }
.lightbox-close { position: fixed; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; padding: 4px 10px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-family: var(--serif); font-size: 1.2rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.5rem; color: var(--brass); transition: transform .2s; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--green); }
.faq-answer { padding: 0 0 20px; color: var(--slate); max-width: 68ch; }

/* ---------- Save as PDF ---------- */
.article-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.pdf-btn { background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; font: 500 .9rem var(--sans); color: var(--green); cursor: pointer; }
.pdf-btn:hover { border-color: var(--green); }
.print-only { display: none; }

@media print {
  @page { margin: 18mm 16mm; }
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .disclaimer, .article-tools, .cta-band, .more-articles, .skip, .notice { display: none !important; }
  .page-head { padding: 0 0 12pt; border-bottom: 1px solid #999; }
  .wrap { padding-left: 0; padding-right: 0; }
  .article-hero { margin: 12pt 0 0; padding: 0; max-width: none; }
  .article-hero img { max-height: 70mm; object-fit: cover; }
  .article-body, .article-note { max-width: none; padding-left: 0; padding-right: 0; }
  .article-body { padding-top: 14pt; }
  .prose { font-size: 11.5pt; line-height: 1.55; }
  .prose a { color: #000; text-decoration: underline; }
  .prose h2, .prose h3 { break-after: avoid; }
  .prose img, .prose blockquote, .prose table { break-inside: avoid; }
  .print-only { display: block; font-size: 9.5pt; color: #444; border-top: 1px solid #999; padding-top: 8pt; margin-top: 16pt; }
}

/* ---------- Home: portrait in hero, photo strip ---------- */
.hero-portrait { width: 150px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--brass-light); margin-bottom: 24px; }
.gallery-home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .gallery-home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Seven menu items: switch to the mobile menu a little earlier */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--green); font-weight: 600; }
}
@media (min-width: 961px) and (max-width: 1100px) { .site-nav { gap: 20px; } }

/* ---------- Hero with profile photo: photo leads, text supports ---------- */
.hero-has-photo { padding: clamp(40px, 6vw, 72px) 0; }
.hero-photo-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-photo { margin: 0; position: relative; max-width: 440px; animation: plate-in .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-photo::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--brass-light); border-radius: var(--radius); }
.hero-photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.hero-text h1 { font-size: clamp(2.2rem, 4.2vw, 3.2rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
.hero-text .nameplate-rule { margin: 20px 0; }
.hero-tagline { font-size: clamp(1rem, 1.4vw, 1.1rem); color: rgba(255,255,255,.85); max-width: 40ch; margin: 0; }
.hero-text .hero-actions { margin-top: 24px; }
.hero-text .btn { padding: .8em 1.2em; font-size: .9rem; }
.hero-meta { margin: 24px 0 0; font-size: .875rem; color: rgba(255,255,255,.6); }
@media (prefers-reduced-motion: reduce) { .hero-photo { animation: none; } }
@media (max-width: 760px) {
  .hero-photo-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 300px; }
}

/* Keep the hero photo inside the screen on short laptop displays */
.hero-has-photo { padding: clamp(32px, 5vh, 64px) 0 clamp(40px, 6vh, 72px); }
.hero-photo { width: clamp(220px, calc((100vh - 210px) * 0.8), 380px); max-width: 100%; justify-self: center; }
.hero-photo-grid { grid-template-columns: auto minmax(0, 1fr); }
@media (max-width: 760px) {
  .hero-photo-grid { grid-template-columns: 1fr; }
  .hero-photo { width: min(280px, 80vw); justify-self: start; }
}

/* ---------- Icons ---------- */
.icon { width: 26px; height: 26px; display: block; }
.icon-badge { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(145deg, #2b5246, var(--green-deep)); color: var(--brass-light); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--brass-light); }
.icon-badge-sm { width: 46px; height: 46px; box-shadow: none; }
.icon-badge-sm .icon { width: 22px; height: 22px; }

/* ---------- Problems ---------- */
.problems-section { background: var(--white); }
.section-intro { max-width: 640px; margin-bottom: 36px; }
.section-intro h2 { margin-bottom: .3em; }
.problem-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.problem-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.problem-card h3 { font-size: 1.15rem; margin: 2px 0 6px; }
.problem-card p { margin: 0; font-size: .95rem; color: var(--slate); }
.problems-cta { margin: 32px 0 0; }
@media (max-width: 900px) { .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .problem-grid { grid-template-columns: 1fr; } }

/* ---------- Practice area cards ---------- */
.area-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.area-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 6px; padding: 28px 24px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; scroll-margin-top: 90px; }
.area-card h3 { font-size: 1.25rem; margin: 22px 0 10px; }
.area-card p { color: var(--slate); font-size: .95rem; margin: 0 0 16px; flex: 1; }
.area-link { font-weight: 600; font-size: .9rem; color: var(--brass); text-decoration: none; }
.area-link:hover { text-decoration: underline; }
.area-card:target { border-color: var(--brass); box-shadow: 0 0 0 2px var(--brass-light); }
.courts-row { margin-top: 36px; }
.courts-row p { color: var(--slate); margin-bottom: 12px; }

/* ---------- Strengths band ---------- */
.strengths-band { background: var(--green); color: #fff; }
.strengths-band h2 { margin-bottom: 32px; }
.strength-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.strength-grid li { border-top: 1px solid var(--brass-light); padding-top: 18px; }
.strength-grid h3 { font-size: 1.15rem; color: var(--brass-light); margin-bottom: 8px; }
.strength-grid p { margin: 0; color: rgba(255,255,255,.8); font-size: .95rem; }
@media (max-width: 900px) { .strength-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .strength-grid { grid-template-columns: 1fr; } }
.section.strengths-band + .section { border-top: 0; }

/* ---------- Call button in header ---------- */
.header-call { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; text-decoration: none; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.header-call:hover { background: var(--green-deep); color: #fff; }
.header-call svg { width: 16px; height: 16px; }
.header-right { display: flex; align-items: center; gap: 24px; }
@media (max-width: 1180px) { .header-call span { display: none; } .header-call { padding: 9px; } }
.site-nav { order: 1; } .header-call { order: 2; } .nav-toggle { order: 3; }

/* ---------- Card highlight (icons update) ---------- */
.problem-card, .area-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.problem-card { border-top: 3px solid var(--brass-light); }
.problem-card:hover, .area-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20, 40, 34, .12); border-color: var(--brass-light); }
.problem-card .icon-badge-sm { width: 52px; height: 52px; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--brass-light); }
.problem-card:hover .icon-badge, .area-card:hover .icon-badge { background: linear-gradient(145deg, var(--brass), #8a6a2c); color: var(--white); }
@media (prefers-reduced-motion: reduce) { .problem-card, .area-card { transition: none; } .problem-card:hover, .area-card:hover { transform: none; } }
.problem-card .icon-badge-sm .icon { width: 26px; height: 26px; }

/* ---------- Practice-area banners ---------- */
.area-card.has-banner { padding: 0; overflow: hidden; border-top: 1px solid var(--line); text-align: center; }
.area-banner { position: relative; width: 100%; height: 170px; overflow: hidden; background: #0a1411; text-align: left; }
.area-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: transform .5s ease; transform-origin: 70% 60%; }
.area-banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8, 18, 15, .85) 0%, rgba(8, 18, 15, .35) 38%, transparent 60%); }
.area-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 1; background: linear-gradient(90deg, transparent, var(--brass-light), transparent); }
.area-tag { position: absolute; z-index: 2; top: 18px; left: 18px; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-light); padding-bottom: 6px; border-bottom: 1px solid rgba(201, 164, 92, .6); }
.area-loc { position: absolute; z-index: 2; left: 18px; bottom: 16px; font-size: .78rem; color: rgba(255, 255, 255, .8); }
.area-body { display: flex; flex-direction: column; align-items: center; padding: 0 24px 24px; flex: 1; width: 100%; }
.area-body .icon-badge { margin-top: -29px; position: relative; z-index: 3; box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--brass-light), 0 6px 14px rgba(20, 40, 34, .25); }
.area-card.has-banner h3 { margin-top: 16px; }
.area-card.has-banner:hover .area-scene { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .area-card.has-banner:hover .area-scene { transform: none; } }

/* ---------- Problem pictures ---------- */
.problem-card.has-art { align-items: center; padding: 14px; gap: 16px; }
.problem-art { position: relative; flex: 0 0 116px; height: 104px; border-radius: 8px; overflow: hidden; background: #0a1411; box-shadow: 0 0 0 1px rgba(201, 164, 92, .55), 0 6px 14px rgba(20, 40, 34, .22); }
.problem-scene { width: 100%; height: 100%; display: block; transition: transform .45s ease; }
.problem-card.has-art:hover .problem-scene { transform: scale(1.08); }
@media (max-width: 600px) { .problem-art { flex-basis: 104px; height: 96px; } }
@media (prefers-reduced-motion: reduce) { .problem-card.has-art:hover .problem-scene { transform: none; } }
