@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;600&display=swap');

/* ── HIDE DUPLICATE PAGE TITLE ────────────────────────────────────── */
body.hw-directory-page h1.entry-title { display: none !important; }

/* ── RESET ────────────────────────────────────────────────────────── */
.hw-directory *,
.hw-directory *::before,
.hw-directory *::after { box-sizing: border-box; }

.hw-directory {
  font-family: 'Poppins', sans-serif;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px 60px;
  background-image: linear-gradient(90deg, #E8F5DBA3 0%, #E9FBE1DB 100%);
}

/* ── PAGE HEADER ──────────────────────────────────────────────────── */
.hw-page-header {
  background: #527E4A;
  color: #fff;
  padding: 36px 40px 32px;
  margin: 24px 0 0;
  text-align: center;
  border-radius: 10px;
}
.hw-page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff !important;
}
.hw-page-header p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0 auto;
}

/* ── DISCLAIMER ───────────────────────────────────────────────────── */
.hw-disclaimer {
  background: #EBF0E9;
  border-left: 4px solid #527E4A;
  padding: 16px 20px;
  margin: 32px 0;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}
.hw-disclaimer strong { color: #527E4A; }

/* ── BREADCRUMB ───────────────────────────────────────────────────── */
.hw-breadcrumb { margin: 16px 0 24px; font-size: 13px; }
.hw-breadcrumb a { color: #527E4A; text-decoration: none; font-weight: 600; }
.hw-breadcrumb a:hover { text-decoration: underline; }

/* ── STATE/CITY HEADINGS ──────────────────────────────────────────── */
.hw-state-group { margin-bottom: 48px; }
.hw-state-heading {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700;
  color: #527E4A;
  border-bottom: 2px solid #EBF0E9;
  padding-bottom: 10px;
  margin: 40px 0 24px;
}
.hw-city-group { margin-bottom: 32px; }
.hw-city-heading {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 400;
  color: #527E4A;
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 3px solid #EBF0E9;
}

/* ── ATTORNEY LIST ────────────────────────────────────────────────── */
.hw-attorney-list { display: flex; flex-direction: column; gap: 60px; }

/* ═══════════════════════════════════════════════════════════════════
   ATTORNEY CARD — 3-column Jeffry Mitchell layout
   ═══════════════════════════════════════════════════════════════════ */
.hw-attorney-card {
  display: flex;
  background: rgb(44,100,57) !important;
  border-radius: 20px;
  overflow: hidden;
  min-height: 260px;
  padding: 30px;
  box-shadow: 0 3px 16px rgba(0,0,0,0.18);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.hw-attorney-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.28);
  transform: translateY(-2px);
}

/* ── LEFT: SKETCH ─────────────────────────────────────────────────── */
.hw-col-sketch {
  flex: 0 0 260px;
  padding: 0;
  position: relative;
  align-self: stretch;
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hw-col-sketch img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  display: block !important;
  object-fit: cover !important;
  object-position: top center !important;
}
.hw-col-sketch-placeholder {
  width: 155px;
  height: 200px;
  border-radius: 10px;
  background: rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── MIDDLE: NAME + BIO + QUALS ───────────────────────────────────── */
.hw-col-middle {
  flex: 1;
  padding: 0 0 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.hw-col-middle::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.25);
}

.hw-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 600;
  color: #fff !important;
  margin: 0 0 8px;
  line-height: 1.2;
}
.hw-card-bio {
  font-size: 16px;
  color: rgba(255,255,255,0.85) !important;
  line-height: 1.6;
  margin: 0 0 14px;
}
.hw-divider {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.35);
  border: none;
  margin: 0 0 10px;
}

/* Quals with circle checkmarks */
.hw-card-quals {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.hw-card-quals li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 16px;
  color: rgba(255,255,255,0.9) !important;
  line-height: 1.45;
}
.hw-check-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── RIGHT: FIRM INFO + BUTTON ────────────────────────────────────── */
.hw-col-right {
  flex: 0 0 300px;
  padding: 0 0 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
}

.hw-right-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hw-icon-circle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hw-right-firm {
  font-size: 22px !important;
  font-weight: 700;
  color: #fff !important;
  line-height: 1.3;
  letter-spacing: -0.2px;
}
.hw-col-right span {
  font-size: 16px;
  color: rgba(255,255,255,0.85) !important;
  line-height: 1.4;
}
.hw-right-phone {
  font-size: 22px !important;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.hw-right-divider {
  height: 1px;
  background: rgba(255,255,255,0.25);
  margin: 6px 0;
}

/* VISIT WEBSITE button — white pill, green text */
.hw-btn-visit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff !important;
  color: #527E4A !important;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 22px;
  letter-spacing: 0.3px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  text-decoration: none !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 12px;
  transition: background 0.15s ease;
  width: 100%;
  text-align: center;
}
.hw-btn-visit:hover {
  background: #EBF0E9 !important;
  color: #2e5027 !important;
}

/* PayPal / hire button — wired, hidden until PayPal links provided. Mirrors hw-btn-visit layout. */
.hw-btn-paypal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #003087 !important;
  color: #fff !important;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  text-decoration: none !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 8px;
  transition: background 0.15s ease;
  width: 100%;
  text-align: center;
}
.hw-btn-paypal:hover {
  background: #002069 !important;
  color: #fff !important;
}

/* ── STATE INDEX ──────────────────────────────────────────────────── */
.hw-state-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.hw-state-card {
  display: block;
  background: rgb(44,100,57) !important;
  border-radius: 8px;
  padding: 22px 18px;
  text-decoration: none;
  color: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.hw-state-card:hover {
  box-shadow: 0 4px 16px rgba(60,103,51,0.35);
  transform: translateY(-2px);
  color: #fff;
}
.hw-state-card-code {
  font-family: 'Playfair Display', serif;
  font-size: 34px; font-weight: 700;
  color: #fff; line-height: 1; margin-bottom: 4px;
}
.hw-state-card-name { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.75); margin-bottom: 10px; }
.hw-state-card-cities { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.hw-state-card-cities span {
  font-size: 12px;
  background: rgba(255,255,255,0.15);
  color: #fff; padding: 2px 7px;
  border-radius: 20px; font-weight: 500;
}
.hw-state-card-count {
  font-size: 12px; color: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 8px; margin-top: 4px;
}

/* ── EMPTY STATE ──────────────────────────────────────────────────── */
.hw-no-results { text-align: center; color: #999; font-style: italic; padding: 60px 0; }


/* ── TABLET 960px ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hw-directory { padding: 0 16px 40px; }

  /* Narrow sketch col, compress right col, middle takes remaining */
  .hw-col-sketch  { flex: 0 0 180px; }
  .hw-col-right   { flex: 0 0 240px; }

  /* Reduce font sizes so content fits without wrapping */
  .hw-card-name   { font-size: 20px !important; }
  .hw-card-bio    { font-size: 14px !important; }
  .hw-card-quals li { font-size: 14px !important; }
  .hw-right-firm  { font-size: 18px !important; }
  .hw-right-phone { font-size: 22px !important; }
  .hw-free-consult { font-size: 14px !important; }
  .hw-btn-visit   { font-size: 16px !important; padding: 10px 12px; }

  /* Tighten card padding */
  .hw-attorney-card { padding: 20px; }
  .hw-col-middle    { padding: 0 0 0 16px; }
  .hw-col-right     { padding: 0 0 0 16px; }

  /* Icon circles smaller */
  .hw-icon-circle { width: 36px; height: 36px; }
}

/* ── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Match Elementor: flex-wrap instead of flex-direction column */
  .hw-attorney-card {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 30px;
    border-radius: 20px;
  }

  /* Sketch: full width row, image flows naturally — no absolute, no crop */
  .hw-col-sketch {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    overflow: visible;
    border-radius: 0;
    padding: 0;
  }
  .hw-col-sketch img {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    object-fit: fill !important;
    border-radius: 15px !important;
    display: block !important;
  }

  /* Middle col: full width, padding top only */
  .hw-col-middle {
    flex: 0 0 100%;
    width: 100%;
    padding: 20px 0 0;
    border-right: none !important;
  }
  .hw-col-middle::after { display: none; }

  /* Right col: full width */
  .hw-col-right {
    flex: 0 0 100%;
    width: 100%;
    padding: 16px 0 0;
    align-items: flex-start;
  }

  /* Font adjustments for mobile */
  .hw-card-name   { font-size: 24px !important; }
  .hw-card-bio    { font-size: 15px !important; }
  .hw-card-quals li { font-size: 16px !important; }
  .hw-right-firm  { font-size: 18px !important; }
  .hw-right-phone { font-size: 26px !important; }
  .hw-btn-visit   { font-size: 16px !important; margin-top: 12px; }
  .hw-free-consult { margin: -10px 0 0 40px !important; }

  /* Page header */
  .hw-page-header h1 { font-size: 30px; }
  .hw-page-header { padding: 28px 16px; }
}

/* Free consultation text under phone */
.hw-free-consult {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.85) !important;
  margin: -5px 0 0 50px;
  line-height: 1.2;
}

/* ── LANDSCAPE SHORT VIEWPORT (phones rotated) ────────────────────── */
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 520px) {
  .hw-attorney-card {
    padding: 16px;
    border-radius: 12px;
  }
  .hw-col-sketch  { flex: 0 0 140px; }
  .hw-col-right   { flex: 0 0 210px; }
  .hw-col-middle  { padding: 0 0 0 14px; }
  .hw-col-right   { padding: 0 0 0 14px; }

  .hw-card-name   { font-size: 16px !important; margin: 0 0 4px; }
  .hw-card-bio    { font-size: 12px !important; margin: 0 0 8px; }
  .hw-divider     { margin: 0 0 8px; }
  .hw-card-quals  { gap: 4px; }
  .hw-card-quals li { font-size: 12px !important; line-height: 1.3; }
  .hw-right-firm  { font-size: 14px !important; }
  .hw-col-right span { font-size: 12px !important; }
  .hw-right-phone { font-size: 16px !important; white-space: nowrap; }
  .hw-free-consult { font-size: 11px !important; margin: -2px 0 0 36px !important; }
  .hw-btn-visit   { font-size: 13px !important; padding: 8px 10px; }
  .hw-icon-circle { width: 28px; height: 28px; }
  .hw-right-divider { margin: 3px 0; }
}

/* ── LANDSCAPE SHORT VIEWPORT (phones rotated) ────────────────────── */
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 520px) {
  .hw-attorney-card { padding: 16px; border-radius: 12px; }
  .hw-col-sketch  { flex: 0 0 140px; }
  .hw-col-right   { flex: 0 0 210px; }
  .hw-col-middle  { padding: 0 0 0 14px !important; }
  .hw-card-name   { font-size: 16px !important; margin: 0 0 4px; }
  .hw-card-bio    { font-size: 12px !important; margin: 0 0 8px; }
  .hw-divider     { margin: 0 0 6px; }
  .hw-card-quals  { gap: 4px; }
  .hw-card-quals li { font-size: 12px !important; line-height: 1.3; }
  .hw-right-firm  { font-size: 14px !important; }
  .hw-right-phone { font-size: 16px !important; white-space: nowrap; }
  .hw-free-consult { font-size: 11px !important; margin: -2px 0 0 36px !important; }
  .hw-btn-visit   { font-size: 13px !important; padding: 8px 10px; }
  .hw-icon-circle { width: 28px; height: 28px; }
  .hw-right-divider { margin: 3px 0; }
}
