/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--pl-font-body);
  color: var(--pl-ink-900);
  background: var(--pl-paper);
  background-image: radial-gradient(var(--pl-border) 0.6px, transparent 0.6px);
  background-size: 18px 18px;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pl-terracotta-600); text-decoration: none; }
a:hover { color: var(--pl-terracotta-700); }
h1, h2, h3, h4 {
  font-family: var(--pl-font-heading);
  color: var(--pl-ink-900);
  line-height: 1.15;
  margin: 0 0 var(--pl-space-sm);
  font-weight: 600;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 var(--pl-space-sm); }
ul { padding-left: 1.2em; }
.container { max-width: var(--pl-container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--pl-space-xl) 0; position: relative; }
.section--numbered { counter-increment: pl-section; }
.section--tight { padding: var(--pl-space-lg) 0; }
.section--paper2 { background: var(--pl-paper-2); }
.section--ink { background: var(--pl-ink-900); color: var(--pl-white); }
.section--ink h2, .section--ink h3 { color: var(--pl-white); }
body { counter-reset: pl-section; }
.section__number {
  font-family: var(--pl-font-hand);
  font-size: 1.6rem;
  color: var(--pl-terracotta-500);
  display: block;
  margin-bottom: 4px;
}
.section__number::before { content: "No. " counter(pl-section, decimal-leading-zero); }

.kicker {
  display: inline-block;
  font-family: var(--pl-font-body);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--pl-terracotta-700);
  background: var(--pl-terracotta-100);
  border: 1px dashed var(--pl-terracotta-500);
  border-radius: 20px;
  padding: 5px 14px;
  transform: rotate(-2deg);
  margin-bottom: var(--pl-space-sm);
}
.section--ink .kicker { background: rgba(255,255,255,0.08); color: var(--pl-mustard-500); border-color: var(--pl-mustard-500); }

.underline-heading { position: relative; display: inline-block; }
.underline-heading::after {
  content: "";
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 2px;
  background-color: var(--pl-terracotta-600);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'%3E%3Cpath d='M2 8 C 40 -2, 60 14, 100 6 C 140 -2, 160 14, 198 6' stroke='black' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'%3E%3Cpath d='M2 8 C 40 -2, 60 14, 100 6 C 140 -2, 160 14, 198 6' stroke='black' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
.lede { font-size: 1.18rem; color: var(--pl-ink-700); max-width: 60ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.7em;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease;
  font-family: var(--pl-font-body);
}
.btn:hover { transform: rotate(-1deg) scale(1.02); }
.btn-primary { background: var(--pl-terracotta-600); color: var(--pl-btn-text); }
.btn-primary:hover { background: var(--pl-terracotta-700); color: var(--pl-btn-text); }
.btn-outline { background: transparent; border-color: var(--pl-white); color: var(--pl-white); }
.btn-outline:hover { background: var(--pl-white); color: var(--pl-ink-900); }
.btn-ink { background: var(--pl-ink-900); color: var(--pl-white); }
.btn-ink:hover { background: var(--pl-sage-700); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 1.05em 2.1em; font-size: 1.05rem; }

/* ==========================================================================
   TOP BAR / HEADER
   ========================================================================== */
.top-bar { background: var(--pl-sage-700); color: var(--pl-paper); font-size: 0.86rem; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: var(--pl-paper); font-weight: 700; }
.top-bar a:hover { color: var(--pl-mustard-500); }
.top-bar__short { display: none; }

.site-header { background: var(--pl-paper); border-bottom: 2px solid var(--pl-ink-900); position: sticky; top: 0; z-index: 500; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; position: relative; }
.site-logo img, .site-logo svg { max-width: 100%; display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center; }
.main-nav a { color: var(--pl-ink-900); font-weight: 700; font-size: 0.96rem; padding: 8px 0; position: relative; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a:hover { color: var(--pl-terracotta-600); }
.main-nav .sub-menu {
  list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: -18px;
  background: var(--pl-white); box-shadow: var(--pl-shadow-md); border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius-md); min-width: 260px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: all 0.15s ease;
}
.main-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { display: block; padding: 10px 20px; font-weight: 500; }
.main-nav .sub-menu a:hover { background: var(--pl-paper-2); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta__phone { font-weight: 700; color: var(--pl-ink-900); font-size: 1.05rem; font-family: var(--pl-font-heading); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }

/* ==========================================================================
   HERO — asymmetric magazine spread
   ========================================================================== */
.hero { padding: var(--pl-space-2xl) 0 var(--pl-space-lg); position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: var(--pl-space-lg); align-items: center; }
.hero__tag { font-family: var(--pl-font-hand); font-size: 1.6rem; color: var(--pl-terracotta-600); transform: rotate(-3deg); display: inline-block; }
.hero__actions { display: flex; gap: 16px; margin-top: var(--pl-space-md); flex-wrap: wrap; }
.hero__trust { display: flex; gap: 30px; margin-top: var(--pl-space-lg); flex-wrap: wrap; border-top: 1px dashed var(--pl-line); padding-top: var(--pl-space-md); }
.hero__trust-item strong { display: block; font-family: var(--pl-font-heading); font-size: 1.7rem; color: var(--pl-terracotta-600); }
.hero__trust-item span { font-size: 0.85rem; color: var(--pl-ink-500); }
.hero__art { justify-self: center; }
.polaroid {
  background: var(--pl-white);
  padding: 14px 14px 40px;
  box-shadow: var(--pl-shadow-lg);
  transform: rotate(3deg);
  border: 1px solid var(--pl-border);
}
.polaroid svg { display: block; }

.page-hero { background: var(--pl-ink-900); color: var(--pl-paper); padding: var(--pl-space-lg) 0; }

/* Practice-area hero: text + inset photo side by side, instead of a
   separate oversized full-width banner image. */
.practice-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.75rem; align-items: center; }
.practice-hero__photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--pl-radius-lg); box-shadow: var(--pl-shadow-lg);
  border: 1px solid rgba(255,255,255,0.12);
}

.practice-quickfacts { background: var(--pl-paper-2); border-bottom: 1px solid var(--pl-border); padding: 0.9rem 0; }
.practice-quickfacts__inner {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 0.6rem 2.25rem; font-size: 0.9rem; font-weight: 700; color: var(--pl-ink-700);
}
.page-hero h1 { color: var(--pl-white); margin-bottom: 6px; }
.breadcrumb { font-size: 0.85rem; color: var(--pl-mustard-500); }
.breadcrumb a { color: var(--pl-paper); }

/* ==========================================================================
   MAGAZINE INDEX LIST (practice areas) — replaces card grid
   ========================================================================== */
.index-list { border-top: 2px solid var(--pl-ink-900); }
.index-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: var(--pl-space-md);
  align-items: center;
  padding: var(--pl-space-md) 0;
  border-bottom: 1px dashed var(--pl-line);
  text-decoration: none;
  color: var(--pl-ink-900);
  transition: padding-left 0.15s ease;
}
.index-row:hover { padding-left: 10px; background: var(--pl-paper-2); }
.index-row__num { font-family: var(--pl-font-heading); font-size: 1.8rem; color: var(--pl-terracotta-500); }
.index-row__body h3 { margin: 0 0 4px; }
.index-row__body p { margin: 0; color: var(--pl-ink-700); font-size: 0.96rem; }
.index-row__arrow { font-size: 1.5rem; color: var(--pl-sage-600); }

/* ==========================================================================
   CARDS (used sparingly: team, value props)
   ========================================================================== */
.grid { display: grid; gap: var(--pl-space-md); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--pl-white);
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius-md);
  padding: var(--pl-space-md);
  box-shadow: var(--pl-shadow-sm);
  height: 100%;
}
.card:nth-child(even) { transform: rotate(-0.6deg); }
.card:nth-child(odd) { transform: rotate(0.6deg); }

.practice-icon {
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  border: 2px dashed var(--pl-terracotta-500);
  background: var(--pl-terracotta-100);
  color: var(--pl-terracotta-700);
  margin-bottom: var(--pl-space-sm);
}
.practice-icon svg { width: 30px; height: 30px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--pl-terracotta-600);
  margin-top: 4px;
}
.card-link::after { content: "→"; transition: transform 0.15s ease; }
.card-link:hover { color: var(--pl-terracotta-700); }
.card-link:hover::after { transform: translateX(3px); }

.team-card { text-align: center; }
.team-card__photo {
  width: 130px; height: 130px; border-radius: 50%; margin: 0 auto var(--pl-space-xs);
  background: var(--pl-sage-100); display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--pl-terracotta-500);
}
.team-card__role { color: var(--pl-terracotta-600); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ==========================================================================
   PULL-QUOTE TESTIMONIALS
   ========================================================================== */
.pull-quotes { columns: 3; column-gap: var(--pl-space-md); }
.pull-quote { break-inside: avoid; margin-bottom: var(--pl-space-md); background: var(--pl-white); border: 1px solid var(--pl-border); border-radius: var(--pl-radius-md); padding: var(--pl-space-md); position: relative; }
.pull-quote::before {
  content: "\201C"; font-family: var(--pl-font-heading); font-size: 3.5rem; color: var(--pl-terracotta-100);
  position: absolute; top: 6px; left: 14px; line-height: 1; z-index: 0;
}
.pull-quote p { position: relative; z-index: 1; font-style: italic; color: var(--pl-ink-700); }
.pull-quote__stars { color: var(--pl-mustard-500); margin-bottom: 6px; }
.pull-quote__name { font-weight: 700; color: var(--pl-ink-900); margin-top: 6px; }

.stat-strip { display: flex; justify-content: space-around; text-align: center; flex-wrap: wrap; gap: var(--pl-space-md); }
.stat-strip__item strong { display: block; font-family: var(--pl-font-heading); font-size: 2.3rem; color: var(--pl-mustard-500); }
.stat-strip__item span { font-size: 0.9rem; color: var(--pl-paper-2); }

/* ==========================================================================
   TWO-COLUMN CONTENT BLOCK
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pl-space-lg); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img, .split__media svg { width: 100%; }

/* ==========================================================================
   PRACTICE AREA DETAIL PAGE
   ========================================================================== */
.practice-detail__list { list-style: none; padding: 0; display: grid; gap: 14px; }
.practice-detail__list li { background: var(--pl-white); border: 1px solid var(--pl-border); border-left: 4px solid var(--pl-terracotta-500); padding: 14px 18px; border-radius: 0 var(--pl-radius-sm) var(--pl-radius-sm) 0; }

/* Editable content areas (block editor / Pagelayer output) */
.entry-content { max-width: 760px; }
.entry-content ul, .entry-content ol { margin: 0 0 1.5rem 1.2em; }
.entry-content li { margin-bottom: 0.6rem; }
.entry-content h2 { margin-top: 2.5rem; }
.entry-content h3 { margin-top: 1.75rem; color: var(--pl-terracotta-700); }
.faq { border-top: 2px solid var(--pl-ink-900); }
.faq__item { border-bottom: 1px dashed var(--pl-line); padding: var(--pl-space-sm) 0; }
.faq__q { font-weight: 700; font-family: var(--pl-font-heading); font-size: 1.12rem; color: var(--pl-ink-900); cursor: pointer; display: flex; justify-content: space-between; }
.faq__a { color: var(--pl-ink-700); margin-top: 10px; display: none; }
.faq__item.is-open .faq__a { display: block; }
.faq__item.is-open .faq__q::after { content: "\2013"; }
.faq__q::after { content: "+"; color: var(--pl-terracotta-600); font-size: 1.4rem; }

/* ==========================================================================
   CONTACT / FORM
   ========================================================================== */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pl-space-lg); }
.contact-form { background: var(--pl-white); border: 1px solid var(--pl-border); padding: var(--pl-space-lg); border-radius: var(--pl-radius-lg); box-shadow: var(--pl-shadow-md); }
.form-row { margin-bottom: var(--pl-space-sm); }
.form-row label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.92rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--pl-border); border-radius: var(--pl-radius-sm);
  font-family: var(--pl-font-body); font-size: 1rem; background: var(--pl-paper);
}
.office-card { background: var(--pl-ink-900); color: var(--pl-white); padding: var(--pl-space-lg); border-radius: var(--pl-radius-lg); }
.office-card h3 { color: var(--pl-white); }
.office-card .map-embed { border-radius: var(--pl-radius-md); overflow: hidden; margin-top: var(--pl-space-sm); border: 0; width: 100%; height: 260px; }

.mobile-call-bar { display: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--pl-ink-900); color: var(--pl-paper-2); padding-top: var(--pl-space-xl); font-size: 0.93rem; }
.site-footer h4 { color: var(--pl-white); font-size: 1rem; }
.site-footer a { color: var(--pl-paper-2); }
.site-footer a:hover { color: var(--pl-mustard-500); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--pl-space-md); padding-bottom: var(--pl-space-lg); border-bottom: 1px dashed rgba(255,255,255,0.2); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { padding: var(--pl-space-sm) 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; opacity: 0.85; }
.footer-disclaimer { font-size: 0.78rem; opacity: 0.7; padding-bottom: var(--pl-space-md); max-width: 90ch; }

.service-area-list { columns: 2; list-style: none; padding: 0; }
.service-area-list li::before { content: "\1F33F "; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .hero .container, .split, .contact-wrap, .practice-hero-grid { grid-template-columns: 1fr; }
  .practice-hero__photo { margin-top: 2rem; }
  .practice-quickfacts__inner { gap: 0.5rem 1.25rem; font-size: 0.82rem; }
  .hero__art { margin-top: 2.5rem; max-width: 380px; margin-left: auto; margin-right: auto; }
  .grid-3, .pull-quotes { grid-template-columns: repeat(2, 1fr); columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .index-row { grid-template-columns: 50px 1fr; }
  .index-row__arrow { display: none; }

  .site-logo img { max-width: 210px; }
  .menu-toggle { display: block; }

  /* Shortened top-bar text so each line fits on one row instead of wrapping */
  .top-bar { font-size: 0.78rem; }
  .top-bar__full { display: none; }
  .top-bar__short { display: inline; }

  /* The top bar already shows the phone number and "Free Consultation" messaging,
     so the header itself only needs the logo + hamburger at mobile/tablet widths —
     avoids cramming logo + phone + button + hamburger into one row. */
  .header-cta__phone { display: none; }
  .header-cta .btn-primary { display: none; }

  /* Mobile nav: a real dropdown panel, not the desktop horizontal menu */
  .main-nav { display: none; width: 100%; }
  .main-nav.is-open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--pl-paper); border-bottom: 2px solid var(--pl-ink-900);
    box-shadow: var(--pl-shadow-md); padding: 10px 24px 22px; max-height: 80vh; overflow-y: auto;
  }
  .main-nav.is-open ul { display: flex; flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .main-nav.is-open li { width: 100%; }
  .main-nav.is-open > ul > li > a { display: block; width: 100%; padding: 12px 4px; border-bottom: 1px dashed var(--pl-line); white-space: normal; }
  /* Sub-menu: always expanded inline on mobile instead of hover-triggered popover */
  .main-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; min-width: 0; width: 100%; padding: 0 0 8px 14px; display: none;
  }
  .main-nav.is-open .sub-menu { display: block; }
  .main-nav.is-open .sub-menu a { padding: 8px 0; width: 100%; }

  .mobile-call-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 600;
    background: var(--pl-terracotta-600); color: var(--pl-white); text-align: center;
    padding: 14px; font-weight: 800; font-size: 1.05rem; justify-content: center; gap: 10px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
  }
  body { padding-bottom: 58px; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .pull-quotes, .service-area-list { grid-template-columns: 1fr; columns: 1; }
  .site-logo img { max-width: 190px; }
}
