/* Benton & Benton demo. Plain stylesheet.
   Tokens, fonts, spacing, header, footer, buttons and layout are copied from the
   Chatt Accelerator Law theme (chatt-accel-law 1.17.0 on chatt-base 1.47.1) as rendered by
   WordPress global styles. Where the brief's design notes differ from the theme, the theme wins.
   Fonts: Piazzolla and Public Sans, self-hosted, SIL OFL 1.1 (see fonts/LICENSE-FONTS.md). */

@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/public-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/public-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Piazzolla"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/piazzolla-700.woff2") format("woff2"); }
@font-face { font-family: "Piazzolla"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/piazzolla-900.woff2") format("woff2"); }

:root {
  /* Theme palette (theme.json) */
  --wp--preset--color--base: oklch(1 0 0);
  --wp--preset--color--contrast: oklch(0.16 0.015 200);
  --wp--preset--color--surface: oklch(0.95 0.01 200);
  --wp--preset--color--border: oklch(0.8 0.012 200);
  --wp--preset--color--primary: oklch(0.45 0.1 200);
  --wp--preset--color--primary-contrast: oklch(1 0 0);
  --wp--preset--color--accent: oklch(0.55 0.12 85);
  --wp--preset--color--accent-contrast: oklch(1 0 0);
  /* Dark set (settings.custom.chatt.dark) */
  --wp--custom--chatt--dark--base: oklch(0.08 0 0);
  --wp--custom--chatt--dark--contrast: oklch(0.94 0.01 200);
  --wp--custom--chatt--dark--surface: oklch(0.14 0.01 200);
  --wp--custom--chatt--dark--border: oklch(0.3 0.015 200);
  --wp--custom--chatt--dark--primary: oklch(0.46 0.11 200);
  --wp--custom--chatt--dark--primary-contrast: oklch(1 0 0);
  --wp--custom--chatt--dark--accent: oklch(0.75 0.11 85);
  --wp--custom--chatt--dark--accent-contrast: oklch(0 0 0);
  /* Type */
  --wp--preset--font-family--law-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wp--preset--font-family--law-heading: "Piazzolla", Georgia, "Times New Roman", serif;
  --wp--preset--font-size--small: 0.875rem;
  --wp--preset--font-size--medium: 1rem;
  --wp--preset--font-size--large: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --wp--preset--font-size--x-large: clamp(1.75rem, 1.5rem + 1.25vw, 2.25rem);
  --wp--preset--font-size--xx-large: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
  --wp--preset--font-size--hero: clamp(3rem, 2.25rem + 3.75vw, 5.5rem);
  /* Spacing and layout */
  --wp--preset--spacing--20: 1rem;
  --wp--preset--spacing--30: 1.5rem;
  --wp--preset--spacing--40: 2.5rem;
  --wp--preset--spacing--50: 4rem;
  --wp--preset--spacing--60: 6rem;
  --wp--style--block-gap: 1.5rem;
  --wp--style--root--padding-x: clamp(1rem, 4vw, 2.5rem);
  --wp--style--global--content-size: 720px;
  --wp--style--global--wide-size: 1200px;
  --button-radius: 6px;
}

:root[data-theme="dark"] {
  --wp--preset--color--base: var(--wp--custom--chatt--dark--base);
  --wp--preset--color--contrast: var(--wp--custom--chatt--dark--contrast);
  --wp--preset--color--surface: var(--wp--custom--chatt--dark--surface);
  --wp--preset--color--border: var(--wp--custom--chatt--dark--border);
  --wp--preset--color--primary: var(--wp--custom--chatt--dark--primary);
  --wp--preset--color--primary-contrast: var(--wp--custom--chatt--dark--primary-contrast);
  --wp--preset--color--accent: var(--wp--custom--chatt--dark--accent);
  --wp--preset--color--accent-contrast: var(--wp--custom--chatt--dark--accent-contrast);
  color-scheme: dark;
}
:root:not([data-theme]) { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--wp--preset--color--base);
  color: var(--wp--preset--color--contrast);
  font-family: var(--wp--preset--font-family--law-body);
  font-size: var(--wp--preset--font-size--medium);
  line-height: 1.6;
  padding-bottom: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--wp--preset--font-family--law-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.17em; }
h4 { font-size: 1em; }
p, ul, ol, dl, figure { margin: 0; }
a { color: var(--wp--preset--color--primary); }
a:hover { color: var(--wp--preset--color--accent); }
img, svg, iframe { max-width: 100%; }

.has-small-font-size { font-size: var(--wp--preset--font-size--small); }
.small { font-size: var(--wp--preset--font-size--small); }
.has-large-font-size { font-size: var(--wp--preset--font-size--large); }
.has-x-large-font-size { font-size: var(--wp--preset--font-size--x-large); }
.has-xx-large-font-size { font-size: var(--wp--preset--font-size--xx-large); }
.has-hero-font-size { font-size: var(--wp--preset--font-size--hero); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary-contrast); padding: 0.5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; }

/* Placeholders stay visible */
.ph { background: oklch(0.93 0.09 95); color: oklch(0.2 0.04 70); padding: 0 0.2em; border-radius: 3px; }
:root[data-theme="dark"] .ph { background: oklch(0.35 0.07 85); color: oklch(0.95 0.03 90); }

/* ---------- Buttons (theme: primary background, 6px radius) ---------- */
.wp-element-button {
  display: inline-block;
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-contrast);
  border: 0;
  border-radius: var(--button-radius);
  font: inherit;
  font-size: 1.125em;
  line-height: inherit;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  word-break: break-word;
}
.wp-element-button:hover { color: var(--wp--preset--color--primary-contrast); filter: brightness(1.12); }
.wp-element-button.is-small { font-size: var(--wp--preset--font-size--small); }
.wp-element-button.is-outline {
  background: transparent;
  color: currentColor;
  color: var(--wp--preset--color--contrast);
  box-shadow: inset 0 0 0 2px currentColor;
}
.wp-element-button.is-outline:hover { filter: none; background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.buttons-start { align-items: flex-start; align-content: flex-start; }
.center .buttons { justify-content: center; }

/* ---------- Header ---------- */
.chatt-site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 1.25rem 2.5rem;
  background-color: var(--wp--preset--color--base);
  border-bottom: 1px solid var(--wp--preset--color--border);
}
.chatt-header-brand { display: flex; align-items: center; }
.chatt-header-home { display: flex; flex-direction: column; text-decoration: none; color: var(--wp--preset--color--contrast); }
.chatt-header-home:hover { color: var(--wp--preset--color--contrast); }
.chatt-header-title { font-family: var(--wp--preset--font-family--law-heading); font-weight: 700; font-size: var(--wp--preset--font-size--large); line-height: 1.2; }
.chatt-header-tagline { font-size: var(--wp--preset--font-size--small); font-variant-caps: all-small-caps; letter-spacing: 0.06em; line-height: 1.3; }

.chatt-header-nav { margin-left: auto; }
.nav-toggle { display: none; }
.nav-list { list-style: none; padding: 0; display: flex; align-items: center; gap: 1.5rem; margin: 0; }
.nav-list a, .sub-toggle { color: var(--wp--preset--color--contrast); text-decoration: none; font: inherit; }
.nav-list a:hover, .sub-toggle:hover { text-decoration: underline; color: var(--wp--preset--color--contrast); }
.nav-list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.25em; }
.has-sub { position: relative; }
.sub-toggle { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; }
.sub-list {
  display: none; list-style: none; margin: 0; padding: 0.5rem 0;
  position: absolute; top: calc(100% + 0.75rem); left: -1rem; min-width: 18rem;
  background: var(--wp--preset--color--base);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 4px;
  z-index: 30;
}
.sub-list a { display: block; padding: 0.5rem 1rem; }
.has-sub.open > .sub-list, .has-sub:focus-within > .sub-list { display: block; }
@media (hover: hover) { .has-sub:hover > .sub-list { display: block; } }
.nav-call { display: none; }

.chatt-nav-utility {
  display: flex; align-items: center; gap: 4px;
  padding-left: 1.25rem; border-left: 1px solid var(--wp--preset--color--border);
}
.chatt-dark-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; margin-right: 0.75rem;
  border: 1px solid var(--wp--preset--color--border); border-radius: 999px;
  background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast);
  cursor: pointer; transition: background 0.2s ease, color 0.2s ease;
}
.chatt-dark-toggle:hover { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary-contrast); }
.chatt-dark-toggle .chatt-icon-dark { display: none; }
:root[data-theme="dark"] .chatt-dark-toggle .chatt-icon-light { display: none; }
:root[data-theme="dark"] .chatt-dark-toggle .chatt-icon-dark { display: inline; }

/* Below 600px: nav collapses to a menu, utility group drops (theme mobile-nav behavior) */
@media (max-width: 599px) {
  .chatt-site-header { padding: 1rem var(--wp--style--root--padding-x); gap: 1rem; flex-wrap: wrap; }
  .chatt-nav-utility { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: none; border: 1px solid var(--wp--preset--color--border); border-radius: 4px;
    color: var(--wp--preset--color--contrast); padding: 0.4rem 0.7rem; font: inherit; cursor: pointer;
  }
  .nav-list {
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--wp--preset--color--base); border-bottom: 1px solid var(--wp--preset--color--border);
    padding: 0.5rem var(--wp--style--root--padding-x) 1rem;
  }
  .chatt-header-nav.open .nav-list { display: flex; }
  .nav-list > li > a, .sub-toggle { display: flex; padding: 0.75rem 0; width: 100%; justify-content: space-between; }
  .sub-list { position: static; display: none; border: 0; padding: 0 0 0 1rem; min-width: 0; }
  .has-sub.open > .sub-list { display: block; }
  .has-sub:focus-within > .sub-list { display: none; }
  .has-sub.open:focus-within > .sub-list { display: block; }
  @media (hover: hover) { .has-sub:hover > .sub-list { display: none; } .has-sub.open:hover > .sub-list { display: block; } }
  .nav-call { display: block; }
}

/* ---------- Layout helpers ---------- */
.site-main { display: block; }
.wide, .narrow-680, .narrow-720, .narrow-600 { width: 100%; margin-left: auto; margin-right: auto; padding-left: var(--wp--style--root--padding-x); padding-right: var(--wp--style--root--padding-x); }
.wide { max-width: calc(1200px + 2 * var(--wp--style--root--padding-x)); }
.narrow-720 { max-width: calc(720px + 2 * var(--wp--style--root--padding-x)); }
.narrow-680 { max-width: calc(680px + 2 * var(--wp--style--root--padding-x)); }
.narrow-600 { max-width: calc(600px + 2 * var(--wp--style--root--padding-x)); }
.center { text-align: center; }
.hero > *, .page-head > *, .section > *, .band > * { }
.narrow-680 > * + *, .narrow-720 > * + *, .narrow-600 > * + * { margin-block-start: var(--wp--style--block-gap); }
.section.narrow-720 > h2 { margin-block-start: 2.5rem; }
.section.narrow-720 > h2:first-child { margin-block-start: 0; }
.section.narrow-720 > h3.faq-q { margin-block-start: 1.5rem; }

.hero { padding-top: 6rem; padding-bottom: 4rem; }
.page-head { padding-top: 6rem; padding-bottom: 2rem; }
.section { padding-top: 4rem; padding-bottom: 4rem; }
.section-title { margin-bottom: 2.5rem; }
.band { background-color: var(--wp--preset--color--surface); padding-top: 4rem; padding-bottom: 4rem; }

/* Theme hero: a short rule, small uppercase accent eyebrow, hero-size heading */
.rule { border: 0; height: 2px; background-color: var(--wp--preset--color--border); margin: 0 auto 1.5rem; width: 100px; }
.eyebrow { font-size: var(--wp--preset--font-size--small); text-transform: uppercase; letter-spacing: 0.08em; color: var(--wp--preset--color--accent); font-weight: 600; }
.hero-photo-wrap { padding-top: 4rem; }
.photo-frame {
  margin: 0; min-height: 22rem; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 2rem; background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border); border-radius: 4px;
}

/* Theme practice-areas pattern: rule-divided rows, name left, description right */
.rows { border-top: 1px solid var(--wp--preset--color--border); }
.row { display: flex; gap: 2.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--wp--preset--color--border); align-items: flex-start; }
.row > :first-child { flex: 0 0 30%; }
.row > :last-child { flex: 1 1 0; }
.row h3 a { color: var(--wp--preset--color--primary); text-decoration: underline; }
.row h3 a:hover { color: var(--wp--preset--color--accent); }

.two-col { display: flex; gap: 2.5rem; align-items: flex-start; }
.two-col > * { flex: 1 1 0; }
.two-col > * > * + * { margin-block-start: 1.5rem; }
.steps { padding-left: 1.25rem; margin-top: 1.5rem; }
.steps li + li { margin-top: 0.75rem; }
.checks { padding-left: 1.25rem; margin-top: 1.5rem; }
.checks li + li { margin-top: 0.5rem; }
.aside { font-size: var(--wp--preset--font-size--small); }

/* Attorneys */
.attorney { display: flex; gap: 2.5rem; padding: 2rem 0; border-bottom: 1px solid var(--wp--preset--color--border); align-items: flex-start; }
.attorney:first-child { border-top: 1px solid var(--wp--preset--color--border); }
.attorney > div:last-child > * + * { margin-block-start: 1rem; }
.badge {
  flex: 0 0 6rem; width: 6rem; height: 6rem; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border);
  font-family: var(--wp--preset--font-family--law-heading); font-weight: 700; font-size: 1.75rem;
  color: var(--wp--preset--color--primary);
}
.role { color: var(--wp--preset--color--contrast); font-weight: 600; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1.25rem; font-size: var(--wp--preset--font-size--small); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
.contact-form .field { margin-bottom: 1.25rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; color: var(--wp--preset--color--contrast);
  background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--border);
  border-radius: 4px; padding: 0.65rem 0.75rem;
}
.contact-form .form-note { margin: 0 0 1.25rem; }
.contact-form .wp-element-button + .form-note { margin: 1rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-details > * + * { margin-block-start: 1rem; }
.map iframe { width: 100%; height: 360px; border: 1px solid var(--wp--preset--color--border); border-radius: 4px; }

/* ---------- Footer (theme: surface background, columns, separator, bottom row) ---------- */
.site-footer { background-color: var(--wp--preset--color--surface); padding: 4rem 2.5rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-cols { display: flex; gap: 2.5rem; }
.footer-col { flex: 1 1 0; }
.footer-brand { flex: 0 0 34%; }
.footer-title { font-family: var(--wp--preset--font-family--law-heading); font-weight: 700; font-size: 1.17em; }
.footer-col > * + * { margin-block-start: 0.75rem; }
.footer-rule { border: 0; height: 1px; background-color: var(--wp--preset--color--border); margin: 2.5rem 0 1.25rem; }
.footer-legal > * + * { margin-block-start: 0.75rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Mobile bottom bar (brief; the theme has none) ---------- */
.mobile-bar { display: none; }
@media (max-width: 599px) {
  body { padding-bottom: 3.75rem; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--wp--preset--color--base); border-top: 1px solid var(--wp--preset--color--border);
  }
  .mobile-bar-link { display: flex; align-items: center; justify-content: center; min-height: 3.5rem; font-weight: 600; text-decoration: none; color: var(--wp--preset--color--primary); }
  .mobile-bar-link:first-child { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary-contrast); }
}

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
  .row, .two-col, .footer-cols, .attorney { flex-direction: column; gap: 1rem; }
  .row > :first-child, .footer-brand { flex-basis: auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding-top: 3rem; }
  .page-head { padding-top: 3rem; }
  .section, .band { padding-top: 3rem; padding-bottom: 3rem; }
  .site-footer { padding: 3rem var(--wp--style--root--padding-x) 1.5rem; }
}
@media (max-width: 1000px) and (min-width: 600px) {
  .chatt-site-header { padding: 1rem var(--wp--style--root--padding-x); gap: 1rem; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
