/* ===========================================================
   HARRINGTON LAW FIRM — RESPONSIVE STYLESHEET
   =========================================================== */

/* ── Logo image ── */
.brand-logo-img {
  display: block;
  height: 110px;
  width: auto;
  object-fit: contain;
}
.brand-centered .brand-logo-img {
  height: 152px;
}
.brand .brand-logo-img {
  height: 150px;
}
.brand-logo-footer {
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

/* ===========================================================
   LARGE DESKTOP — cap widths, keep grids from over-stretching
   =========================================================== */
@media (max-width: 1280px) {
  .pa-card-slider {
    gap: 1rem;
  }
  .pa-card {
    flex: 0 0 180px;
  }
  .pa-card-img {
    height: 220px;
  }
}

/* ===========================================================
   MEDIUM-LARGE — nav starts to squeeze, 4-col → 2-col
   =========================================================== */
@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .footer-grid .footer-col-contact {
    grid-column: 1 / -1;
  }

  /* Home recognition */
  .recognition-right {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Attorney cross-links */
  .other-attorneys-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Nav CTA label */
  .schedule-label {
    display: none;
  }

  /* Blog cards */
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===========================================================
   TABLET / HAMBURGER BREAKPOINT
   =========================================================== */
@media (max-width: 950px) {

  /* ── Navigation ── */
  .main-nav,
  .schedule-label,
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  /* Nav wrapper needs space for hamburger only */
  .nav-wrap {
    padding: 0 1.5rem;
  }

  /* ── Layout helpers ── */
  .split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* ── Attorney profile ── */
  .attorney-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: left;
  }
  .attorney-photo-wrap {
    max-width: 420px;
  }

  /* ── Grids ── */
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .spec-grid {
    grid-template-columns: 1fr;
  }

  /* ── Contact form ── */
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: 1;
  }

  /* ── CTA band ── */
  .cta-band {
    flex-direction: column;
    text-align: center;
    padding: 3rem 1.8rem;
  }
  .cta-band .btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem;
  }
  .footer-grid .footer-brand {
    grid-column: 1 / -1;
  }

  /* ── Home page ── */
  .home-body-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .eval-form-row {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
  .testi-layout {
    grid-template-columns: 1fr;
  }
  .testi-left {
    position: relative;
    top: auto;
  }

  /* ── Recognition / awards ── */
  .recognition-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .recognition-right {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ── Other attorneys cross-links ── */
  .other-attorneys-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ── Attorney cards on attorney.html ── */
  .attorney-card {
    flex-direction: column;
  }

  /* ── Practice area rows ── */
  .pa-row {
    flex-wrap: wrap;
    gap: 1.2rem;
  }

  /* ── Timeline ── */
  .timeline {
    padding-left: 1.5rem;
  }

  /* ── Team grid on about.html ── */
  .team-card {
    text-align: center;
  }

  /* ── Blog cards ── */
  .blog-card .blog-media img {
    height: 200px;
  }

  /* ── Home practice area slider ── */
  .pa-card-slider {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    flex-wrap: nowrap;
    display: flex;
    gap: 1rem;
  }
  .pa-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
  }
  .pa-card-img {
    height: 240px;
  }

  /* ── Hero ── */
  .hero-fieldset legend {
    font-size: 1rem;
  }
  .hero-sub-legend {
    font-size: 0.9rem;
  }
}

/* ===========================================================
   MOBILE — ≤ 700 px
   =========================================================== */
@media (max-width: 700px) {
  :root {
    --header-h: 80px;
  }

  /* ── Container ── */
  .container {
    padding: 0 1.2rem;
  }
  .section-pad {
    padding: var(--space-xl, 4rem) 0;
  }

  /* ── Typography ── */
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  h2 {
    font-size: 1.55rem;
    line-height: 1.25;
  }
  h3 {
    font-size: 1.2rem;
  }

  /* ── Hero sections ── */
  .hero {
    aspect-ratio: 4 / 5;
    min-height: 480px;
    max-height: none;
  }
  .hero-content {
    padding: 7rem 0 3rem;
    max-width: 100%;
  }
  .hero-spec {
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.3rem;
  }
  .page-hero {
    min-height: 34vh;
  }
  .page-hero-content {
    padding: 6rem 0 2.5rem;
  }
  .page-hero h1 {
    font-size: 1.9rem;
  }

  /* ── All single-column grids ── */
  .grid-3,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* ── Badges / stat overlays ── */
  .media-badge {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 1.2rem;
  }
  .attorney-stat-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 1.2rem;
    display: inline-block;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid .footer-brand {
    grid-column: 1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  /* ── CTA band ── */
  .cta-band h2 {
    font-size: 1.4rem;
  }
  .cta-band p {
    font-size: 0.9rem;
  }

  /* ── Scroll to top ── */
  #scroll-top {
    right: 1rem;
    bottom: 1rem;
    width: 42px;
    height: 42px;
  }

  /* ── Home hero fieldset ── */
  .hero-fieldset {
    padding: 1rem 1.4rem 1.2rem;
  }
  .hero-fieldset legend {
    font-size: 0.85rem;
  }

  /* ── Why us grid ── */
  .why-grid {
    grid-template-columns: 1fr;
  }

  /* ── Practice area cards (home slider) ── */
  .pa-card {
    flex: 0 0 160px;
  }
  .pa-card-img {
    height: 200px;
  }

  /* ── Logo sizes ── */
  .brand-logo-img {
    height: 80px;
  }
  .brand-centered .brand-logo-img {
    height: 90px;
  }
  .brand .brand-logo-img {
    height: 76px;
  }

  /* ── Practice area list rows (practice.html) ── */
  .pa-row {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
  }
  .pa-row .btn {
    align-self: flex-start;
    width: 100%;
    text-align: center;
  }
  .pa-row-attorneys {
    margin-top: 0.8rem;
    flex-wrap: wrap;
  }
  .practice-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    flex-shrink: 0;
  }

  /* ── Attorney profile (individual pages) ── */
  .attorney-photo-wrap {
    max-width: 100%;
  }
  .attorney-photo-wrap img {
    width: 100%;
    border-radius: 12px;
  }
  .attorney-subnav {
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .attorney-subnav a {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  .quote-block {
    font-size: 1rem;
    padding: 1rem 1.2rem;
  }

  /* ── Credentials split (attorney pages) ── */
  .feature-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .chip-list {
    flex-direction: column;
    gap: 0.5rem;
  }
  .chip {
    font-size: 0.8rem;
  }

  /* ── Team cards (about.html) ── */
  .team-card {
    text-align: center;
  }
  .team-photo {
    margin: 0 auto;
  }

  /* ── Timeline (about.html) ── */
  .timeline {
    padding-left: 1.2rem;
  }
  .tl-item {
    padding-left: 1.5rem;
  }
  .tl-year {
    font-size: 1rem;
  }

  /* ── Value cards (about.html) ── */
  .value-card {
    padding: 1.5rem;
    text-align: center;
  }

  /* ── Recognition / awards (home) ── */
  .recognition-right {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .award-badge {
    padding: 1.2rem;
    font-size: 0.8rem;
  }

  /* ── Testimonials ── */
  .testi-card {
    padding: 1.2rem;
  }
  .testi-quote {
    font-size: 0.95rem;
  }

  /* ── Accordion (faq.html) ── */
  .acc-trigger {
    font-size: 0.95rem;
    padding: 1rem 1.2rem;
  }
  .acc-panel-inner {
    padding: 0 1.2rem 1rem;
  }

  /* ── Blog cards ── */
  .blog-card .blog-media img {
    height: 180px;
  }
  .blog-body {
    padding: 1.2rem;
  }

  /* ── Contact page ── */
  .contact-card {
    padding: 1.5rem;
  }
  .contact-info-item {
    gap: 0.8rem;
  }
  .map-frame {
    height: 220px;
  }

  /* ── Home eval form ── */
  .eval-form-row {
    grid-template-columns: 1fr;
  }

  /* ── Other attorneys cross-links ── */
  .other-attorneys-grid {
    grid-template-columns: 1fr;
  }
  .mini-attorney-card {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .mini-attorney-card img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
  }

  /* ── Attorney listing cards (attorney.html) ── */
  .attorney-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .attorney-card .team-photo {
    width: 100%;
    max-width: 220px;
  }

  /* ── Spec grid on attorney pages ── */
  .spec-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .spec-item {
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
  }

  /* ── Mobile nav ── */
  #mobile-nav {
    padding-top: calc(var(--header-h, 80px) + 1rem);
  }

  /* ── Home body list ── */
  .home-body-list li {
    font-size: 0.95rem;
  }

  /* ── Stat items on credential section ── */
  .stat-item .num {
    font-size: 2rem;
  }

  /* ── Section heads ── */
  .section-head.center {
    text-align: center;
  }

  /* ── Breadcrumb ── */
  .breadcrumb {
    font-size: 0.78rem;
  }

  /* ── Preloader text ── */
  .preloader-mark {
    font-size: 1.5rem;
  }
}

/* ===========================================================
   SMALL MOBILE — ≤ 420 px
   =========================================================== */
@media (max-width: 420px) {

  /* ── Logo ── */
  .brand-logo-img {
    height: 68px;
  }
  .brand-centered .brand-logo-img {
    height: 76px;
  }
  .brand .brand-logo-img {
    height: 64px;
  }

  /* ── Typography ── */
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.35rem;
  }

  /* ── Hero ── */
  .hero-fieldset legend {
    font-size: 0.78rem;
  }
  .hero-sub-legend {
    font-size: 0.78rem;
  }
  .hero-spec {
    font-size: 0.72rem;
  }

  /* ── Buttons ── */
  .btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.85rem;
  }

  /* ── Practice area slider cards ── */
  .pa-card {
    flex: 0 0 140px;
  }
  .pa-card-img {
    height: 175px;
  }
  .pa-card-title {
    font-size: 0.78rem;
    padding: 0.6rem;
  }

  /* ── Recognition badges ── */
  .recognition-right {
    grid-template-columns: 1fr;
  }
  .award-badge {
    flex-direction: row;
    text-align: left;
    gap: 0.8rem;
    align-items: center;
  }

  /* ── Accordion ── */
  .acc-trigger {
    font-size: 0.88rem;
  }

  /* ── Blog card meta ── */
  .blog-meta-row {
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.75rem;
  }

  /* ── Form inputs ── */
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 0.9rem;
  }

  /* ── Attorney subnav becomes scrollable ── */
  .attorney-subnav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.4rem;
  }
  .attorney-subnav a {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* ── Contact card info items ── */
  .contact-info-item .ico {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  /* ── Footer social row ── */
  .social-row {
    gap: 0.6rem;
  }
  .social-row a {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  /* ── Stat cards on attorney credential sections ── */
  .practice-card {
    padding: 1rem !important;
  }
  .stat-item .num {
    font-size: 1.75rem;
  }

  /* ── Home why-us items ── */
  .why-item {
    padding: 1rem;
  }
  .why-desc {
    font-size: 0.9rem;
  }

  /* ── CTA band ── */
  .cta-band {
    padding: 2rem 1.2rem;
  }
  .cta-band h2 {
    font-size: 1.25rem;
  }

  /* ── Mini attorney card on profile pages ── */
  .mini-attorney-card h4 {
    font-size: 0.9rem;
  }
  .mini-attorney-card .role {
    font-size: 0.75rem;
  }

  /* ── Footer links ── */
  .footer-links li,
  .footer-contact li {
    font-size: 0.85rem;
  }
  .footer-col h4 {
    font-size: 0.95rem;
  }

  /* ── Home eval form button ── */
  #home-eval-form .btn {
    width: 100%;
  }
}

/* ===========================================================
   HOME PAGE — two-row header hamburger fix
   The index.html header has .header-row-logo + .header-row-nav
   The hamburger sits inside .nav-wrap inside .header-row-nav
   =========================================================== */
@media (max-width: 950px) {
  /* Push hamburger to the far right inside the nav row */
  .header-row-nav .nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Home icon link stays left, hamburger goes right */
  .home-icon-link {
    display: flex;
    align-items: center;
  }

  /* Hamburger always on the right */
  .nav-wrap .hamburger,
  .header-row-nav .hamburger {
    margin-left: auto;
    order: 99;
  }

  /* Hide the home-row logo row on mobile — hamburger row stays visible */
  .header-row-logo {
    display: none;
  }

  /* Keep nav row visible and full-width */
  .header-row-nav {
    display: block;
  }
}

/* ===========================================================
   CONTACT PAGE — full responsive layout
   contact.html uses .split with grid-template-columns:.85fr 1.15fr
   =========================================================== */

/* Contact split becomes single column on tablet */
@media (max-width: 950px) {
  .page-contact .split {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .page-contact .contact-card {
    width: 100%;
  }
}

/* Contact page tighter mobile treatment */
@media (max-width: 700px) {
  .page-contact .section-pad {
    padding: 2.5rem 0;
  }

  /* Contact info card */
  .page-contact .contact-card {
    padding: 1.4rem;
    border-radius: 10px;
  }

  .contact-info-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
  }

  .contact-info-item h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
  }

  .contact-info-item p,
  .contact-info-item a {
    font-size: 0.88rem;
  }

  /* Contact form */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-grid .full {
    grid-column: 1;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }

  .form-group textarea {
    min-height: 130px;
  }

  /* Send button full width */
  .page-contact .btn-block {
    width: 100%;
    text-align: center;
  }

  /* Map placeholder */
  .map-frame {
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
  }

  .map-placeholder {
    padding: 2rem 1rem;
  }

  .map-placeholder h4 {
    font-size: 1rem;
  }

  /* Success message */
  #form-success {
    font-size: 0.9rem;
    padding: 1rem;
  }
}

@media (max-width: 420px) {
  .page-contact .contact-card {
    padding: 1.1rem;
  }

  .contact-info-item .ico {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 0.85rem;
  }

  .map-frame {
    height: 170px;
  }
}

/* ===========================================================
   UTILITY — ensure images never overflow their containers
   =========================================================== */
img {
  max-width: 100%;
  height: auto;
}

/* Prevent horizontal scroll from slider on all viewports */
.pa-card-slider {
  -webkit-overflow-scrolling: touch;
}

/* Scrollbar styling for practice area slider */
.pa-card-slider::-webkit-scrollbar {
  height: 4px;
}
.pa-card-slider::-webkit-scrollbar-track {
  background: transparent;
}
.pa-card-slider::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}