/* ==========================================================================
   Aaron A. Atkins, Attorney at Law — shared styles
   Design system derived from the firm's restored 19th-century brick office:
   brick red + charcoal ink + aged limestone paper + brass hardware accents.
   Signature motif: the "arched plaque" — echoes the building's arched window
   lintels and the brass door sign on the porch.
   ========================================================================== */

:root {
  /* Color */
  --brick: #7C3B2C;
  --brick-dark: #5A2A1F;
  --brick-light: #A85A40;
  --ink: #221E1B;
  --ink-soft: #4C443C;
  --paper: #EFE6D4;
  --paper-card: #FBF7EE;
  --brass: #A8823C;
  --brass-light: #E4D2A0;
  --line: rgba(34, 30, 27, 0.14);
  --white: #FFFFFF;

  /* Type */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-ui: 'Inter', -apple-system, Segoe UI, sans-serif;

  /* Shape */
  --radius-arch: 64px 64px 6px 6px;
  --radius-sm: 6px;
  --shadow-card: 0 12px 28px rgba(34, 30, 27, 0.10);
  --shadow-lift: 0 18px 36px rgba(34, 30, 27, 0.16);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brick); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-block;
  margin-bottom: 0.8em;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
  font-family: var(--font-ui);
  font-weight: 600;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(239, 230, 212, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 140px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.main-nav a:not(.btn) {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 14px;
  position: relative;
}

.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}

.main-nav a:not(.btn):hover::after,
.main-nav a:not(.btn):focus-visible::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.main-nav a[aria-current="page"] { color: var(--brick); }

.header-call {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn-primary {
  background: var(--brick);
  color: var(--white);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--brick-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.btn-ghost-light {
  background: rgba(251, 247, 238, 0.14);
  color: var(--white);
  border-color: rgba(251, 247, 238, 0.55);
}
.btn-ghost-light:hover, .btn-ghost-light:focus-visible {
  background: var(--white);
  color: var(--ink);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  min-height: 78vh;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34,30,27,0.35) 0%, rgba(34,30,27,0.55) 55%, rgba(28,20,16,0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 64px 24px 56px;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.hero-content .eyebrow { color: var(--brass-light); }

.hero-content h1 {
  color: var(--white);
  max-width: 15ch;
}

.hero-lede {
  font-family: var(--font-body);
  font-size: 1.2rem;
  max-width: 46ch;
  color: rgba(255,255,255,0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ==========================================================================
   Sections
   ========================================================================== */

section { padding: 72px 0; }

.section-tight { padding: 48px 0; }

.section-alt {
  background: var(--paper-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 40px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ==========================================================================
   Arched plaque — signature component
   ========================================================================== */

.plaque {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-arch);
  padding: 34px 28px 28px;
  position: relative;
}

.plaque::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: var(--brass);
}

.plaque h3 {
  margin-top: 6px;
}

a.plaque {
  text-decoration: none;
  display: block;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

a.plaque:hover, a.plaque:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--brass);
}

.plaque-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.plaque .card-link {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brick);
  display: inline-block;
  margin-top: 10px;
}

/* Stat strip */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.stat-plaque {
  text-align: center;
  padding: 30px 20px 24px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--brick);
  display: block;
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* Pull quote */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--brick-dark);
  border-left: 3px solid var(--brass);
  padding-left: 24px;
  margin: 28px 0;
}

/* ==========================================================================
   Two-column layout
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.split img {
  border-radius: var(--radius-arch);
  box-shadow: var(--shadow-card);
}

/* Storefront watercolor illustration — its painted edges fade to #FCF9F0,
   so it sits directly on a matching section background instead of a card,
   letting the artwork blend into the page rather than looking boxed in. */
.section-storefront {
  background: #FCF9F0;
}

.split .storefront-illustration {
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  height: auto;
  aspect-ratio: 1448 / 1086;
  object-fit: contain;
}

/* ==========================================================================
   Hours list
   ========================================================================== */

.hours-note {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: -4px 0 14px;
}

.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.hours-list li:last-child { border-bottom: none; }

.hours-list .day { color: var(--ink-soft); }
.hours-list .time { font-weight: 600; }

.hours-list li.is-today {
  background: var(--brass-light);
  border-radius: var(--radius-sm);
  padding-left: 12px;
  padding-right: 12px;
  margin: 2px 0;
  border-bottom-color: transparent;
}

.hours-list li.is-today .day,
.hours-list li.is-today .time {
  color: var(--brick-dark);
  font-weight: 700;
}

.hours-list li.is-today .day::after {
  content: " — today";
  font-weight: 600;
  font-style: italic;
  text-transform: none;
}

/* ==========================================================================
   Contact / office info block
   ========================================================================== */

.info-block dt {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 20px;
}
.info-block dt:first-child { margin-top: 0; }
.info-block dd {
  margin: 4px 0 0;
  font-size: 1.05rem;
}

.map-embed {
  border-radius: var(--radius-arch);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-field .hint {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 3px solid var(--brass);
  outline-offset: 1px;
  border-color: var(--brass);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px 18px;
  margin: 0 0 20px;
}

fieldset legend {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0 6px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 16px;
  margin-top: 8px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brick);
  flex-shrink: 0;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.h-captcha {
  margin: 4px 0 20px;
}

.form-status {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  display: none;
}
.form-status[data-state="success"] {
  display: block;
  background: #E4EFE0;
  color: #2E5028;
  border: 1px solid #B8D3AF;
}
.form-status[data-state="error"] {
  display: block;
  background: #F4E1DD;
  color: #7C2A1E;
  border: 1px solid #E0AFA4;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item h3 { font-size: 1.1rem; margin-bottom: 8px; }

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta-banner {
  background: var(--brick);
  background-image: linear-gradient(135deg, var(--brick) 0%, var(--brick-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 64px 24px;
}

.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.88); font-size: 1.08rem; max-width: 52ch; margin-left: auto; margin-right: auto; }

.cta-banner .btn-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* ==========================================================================
   Page banner (inner pages)
   ========================================================================== */

.page-banner {
  background: var(--ink);
  color: var(--white);
  padding: 60px 24px 52px;
  text-align: center;
}
.page-banner h1 { color: var(--white); }
.page-banner .eyebrow { color: var(--brass-light); }

.breadcrumbs {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 10px;
}
.breadcrumbs a { color: rgba(255,255,255,0.85); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(251,247,238,0.85);
  padding: 44px 24px 28px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* Cloudflare "Protected by Cloudflare" badge —
   opacity + transform ONLY, no filter/glow/background per spec. */
.cf-badge-link {
  display: inline-block;
  line-height: 0;
}

.cf-badge-link img {
  width: 130px;
  height: auto;
  opacity: 0.65;
  transform: scale(1);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.cf-badge-link:hover img,
.cf-badge-link:focus-visible img {
  opacity: 1;
  transform: scale(1.05);
}

.footer-bottom {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: rgba(251,247,238,0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
}
.footer-bottom p {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
.footer-bottom .cf-badge-link {
  flex: 0 0 auto;
}
.footer-bottom a {
  color: rgba(251,247,238,0.75);
  text-decoration: underline;
  text-decoration-color: rgba(251,247,238,0.35);
  text-underline-offset: 2px;
}
.footer-bottom a:hover, .footer-bottom a:focus-visible {
  color: var(--brass-light);
  text-decoration-color: var(--brass-light);
}

/* ==========================================================================
   404 page
   ========================================================================== */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
}
.error-page .container { max-width: 620px; }
.error-code {
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 700;
  color: var(--brass);
  line-height: 1;
  margin-bottom: 10px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split .split-media { order: -1; }
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    margin-top: 8px;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-top: 3px solid var(--brass);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lift);
    flex-direction: column;
    align-items: stretch;
    padding: 6px 20px 20px;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav ul li {
    border-bottom: 1px solid var(--line);
  }
  .main-nav ul li:last-child { border-bottom: none; }

  .main-nav a:not(.btn) {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0;
    padding: 16px 8px 16px 12px;
    display: block;
    transition: color 0.15s var(--ease), padding-left 0.15s var(--ease);
  }

  .main-nav a:not(.btn)::after { display: none; }

  .main-nav a:not(.btn)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    border-radius: 2px;
    background: var(--brass);
    transition: height 0.15s var(--ease);
  }

  .main-nav a:not(.btn):hover,
  .main-nav a:not(.btn):focus-visible,
  .main-nav a:not(.btn):active {
    color: var(--brick);
    padding-left: 20px;
  }
  .main-nav a:not(.btn):hover::before,
  .main-nav a:not(.btn):focus-visible::before,
  .main-nav a:not(.btn):active::before {
    height: 24px;
  }

  .main-nav a[aria-current="page"] {
    color: var(--brick);
    padding-left: 20px;
  }
  .main-nav a[aria-current="page"]::before {
    height: 24px;
  }

  .header-call {
    margin: 14px 0 4px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .header-call .btn { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
  section { padding: 52px 0; }
  .hero { min-height: 86vh; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
