/* =========================================================
   Injury banner graphic + mobile optimization
   ========================================================= */

.injury-banner {
  position: relative;
  overflow: hidden;
  background: #000;
  border-bottom: 6px solid #1a6fd4;
  text-align: center;
  color: #fff;
}

.injury-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: contrast(1.1);
}

.injury-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(26, 111, 212, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.85));
  pointer-events: none;
}

.injury-banner-inner {
  position: relative;
  z-index: 1;
  padding: 2.75rem 1rem 3rem;
}

.injury-banner-kicker {
  margin: 0 0 0.5rem;
  font-family: "Oswald", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1a6fd4;
}

.injury-banner-title {
  margin: 0 0 0.65rem;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1a6fd4;
  text-shadow: 0 4px 0 #000, 0 0 40px rgba(26, 111, 212, 0.35);
}

.injury-banner-sub {
  margin: 0 auto 1.35rem;
  max-width: 32rem;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.injury-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.injury-banner-actions .btn {
  min-width: min(100%, 260px);
}

/* =========================================================
   Mobile optimization — phones first polish for SKY LAW FIRM
   Load this stylesheet last.
   ========================================================= */

/* Base mobile safety */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Prevent iOS input zoom (font-size must be >= 16px) */
input,
select,
textarea,
button {
  font-size: 16px;
}

/* Containers */
.container {
  width: min(100% - 1.25rem, var(--max, 1180px));
}

/* —— Phones (and small tablets in portrait) —— */
@media (max-width: 768px) {
  .injury-banner-inner {
    padding: 1.75rem 0.75rem 2rem;
  }

  .injury-banner-title {
    font-size: clamp(2.15rem, 11vw, 2.85rem) !important;
  }

  .injury-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .injury-banner-actions .btn {
    width: 100%;
    min-width: 0;
  }

  /* Safe area for notched phones + sticky bar */
  body.layout-conversion,
  body.pi-site {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Top bar: phone only, full width, easy tap */
  .top-bar-conversion {
    min-height: 48px !important;
    border-bottom-width: 3px !important;
  }

  .top-bar-conversion .top-bar-inner {
    justify-content: center !important;
    padding: 0.4rem 0 !important;
  }

  .top-bar-avail,
  .top-bar-free,
  .top-bar-loc {
    display: none !important;
  }

  .top-bar-phone-lg,
  .top-bar-phone {
    font-size: 1.65rem !important;
    padding: 0.35rem 0.75rem;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  /* Header */
  .site-header,
  .header-conversion {
    min-height: 64px !important;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .header-inner {
    min-height: 64px !important;
    gap: 0.5rem;
  }

  .logo-img {
    height: 42px !important;
    max-width: 150px !important;
    transform: none !important;
  }

  .header-cta-phone {
    display: none !important;
  }

  .nav-toggle {
    display: flex !important;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  /* Full-screen-style mobile menu */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000 !important;
    border-bottom: 3px solid #1a6fd4;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0.5rem 1rem 1rem !important;
    gap: 0 !important;
    display: none;
    max-height: min(70vh, 480px);
    overflow-y: auto;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }

  .main-nav.is-open {
    display: flex !important;
  }

  .main-nav a:not(.btn) {
    padding: 0.95rem 0.35rem !important;
    min-height: 48px;
    display: flex !important;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    font-size: 1rem !important;
  }

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

  .main-nav .btn,
  .main-nav .nav-phone {
    margin-top: 0.75rem !important;
    width: 100%;
    min-height: 48px;
    text-align: center;
    justify-content: center;
  }

  /* Hero: content order — message, form, photo */
  .hero-split {
    padding: 0 !important;
  }

  .hero-split-grid,
  .hero-split-grid-clean,
  .hero-left {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    padding: 1rem 0 1.25rem !important;
  }

  .hero-split-copy {
    order: 1;
  }

  .hero-form-card,
  #start {
    order: 2;
    width: 100%;
    position: static !important;
    box-shadow: 6px 6px 0 #000 !important;
    margin: 0 !important;
  }

  .hero-photo-stage,
  .hero-attorney {
    order: 3;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .hero-split-copy h1 {
    font-size: clamp(2.1rem, 9vw, 2.75rem) !important;
    line-height: 0.95 !important;
    margin-bottom: 0.65rem !important;
  }

  .hero-split-copy .hero-lead {
    font-size: 0.98rem !important;
    line-height: 1.5 !important;
  }

  .hero-bullets {
    margin: 0.65rem 0 0.9rem !important;
  }

  .hero-bullets li {
    font-size: 0.95rem;
    padding: 0.3rem 0 0.3rem 1.35rem !important;
  }

  .hero-attorney-img {
    min-height: 280px !important;
    max-height: 340px;
    width: 100%;
    object-fit: contain !important;
  }

  .hero-form-card h2 {
    font-size: 1.75rem !important;
  }

  .hero-form-head {
    padding: 0.9rem 1rem !important;
  }

  .hero-form {
    padding: 1rem !important;
  }

  .hero-form .field {
    margin-bottom: 0.7rem !important;
  }

  .hero-form input,
  .hero-form select,
  .hero-form textarea {
    min-height: 48px;
    padding: 0.75rem 0.85rem !important;
  }

  .hero-form textarea {
    min-height: 96px;
  }

  .btn,
  .btn-xl,
  .btn-lg {
    min-height: 48px;
    width: 100%;
    max-width: 100%;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    font-size: 0.95rem !important;
    box-shadow: 4px 4px 0 #000 !important;
  }

  .btn-block {
    width: 100%;
  }

  .open-chat-gap {
    margin-left: 0 !important;
    margin-top: 0.65rem !important;
    display: flex !important;
    width: 100%;
  }

  /* Stats / billboard: 2x2 */
  .billboard {
    padding: 1rem 0 !important;
  }

  .billboard-grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.65rem !important;
  }

  .billboard-item strong,
  .stat-value {
    font-size: 1.35rem !important;
  }

  .billboard-item span,
  .stat-label {
    font-size: 0.7rem !important;
    line-height: 1.25;
  }

  .pi-trust-inner {
    gap: 0.5rem 0.75rem !important;
    padding: 0 0.25rem;
  }

  .pi-trust-inner span {
    font-size: 0.68rem !important;
    letter-spacing: 0.04em !important;
    text-align: center;
    flex: 1 1 40%;
  }

  /* Results */
  .results-meter {
    padding: 2.25rem 0 2rem !important;
  }

  .results-meter-title {
    font-size: clamp(1.55rem, 7vw, 2.1rem) !important;
    line-height: 1.05 !important;
    padding: 0 0.25rem;
  }

  .results-meter-sub {
    font-size: 0.95rem !important;
    padding: 0 0.35rem;
  }

  .recovery-number {
    font-size: clamp(2.4rem, 12vw, 3.4rem) !important;
  }

  .recovery-currency {
    font-size: 1.5rem !important;
  }

  .recovery-caption {
    font-size: 0.85rem !important;
    letter-spacing: 0.03em !important;
  }

  .badge-row {
    gap: 0.75rem !important;
    padding: 0.65rem !important;
    margin-top: 1rem !important;
  }

  .badge-row img {
    height: 32px !important;
    max-width: 100px !important;
  }

  /* Highlights / cards */
  .pi-hl-grid,
  .wins-grid,
  .reviews-grid,
  .media-grid,
  .visual-practice-grid,
  .cards-grid,
  .compare-grid,
  .about-grid,
  .about-grid-visual,
  .cta-banner-grid,
  .footer-grid,
  .steps,
  .success-strip-grid {
    grid-template-columns: 1fr !important;
  }

  .section {
    padding: 2.5rem 0 !important;
  }

  .section-head {
    margin-bottom: 1.5rem !important;
  }

  .section-head h2,
  .pi-highlights h2 {
    font-size: clamp(1.75rem, 8vw, 2.25rem) !important;
  }

  .pi-hl-card,
  .win-card,
  .card,
  .vcard {
    min-height: 0;
  }

  .vcard {
    min-height: 200px !important;
  }

  .pi-hl-card strong {
    font-size: 2rem !important;
  }

  /* Media cine */
  .cine-frame,
  .cine-card:last-child .cine-frame {
    aspect-ratio: 16 / 10 !important;
  }

  .cine-play {
    width: 48px !important;
    height: 48px !important;
  }

  /* Visual strip: slower / smaller tiles */
  .visual-tile {
    width: 200px !important;
    height: 120px !important;
  }

  /* Difference cards */
  .compare-card {
    padding: 1.25rem !important;
  }

  .compare-card.featured {
    transform: none !important;
  }

  /* Team */
  .team-preview-grid {
    grid-template-columns: 1fr !important;
  }

  .team-card {
    grid-template-columns: 1fr !important;
    padding: 1rem !important;
  }

  .team-photo--lg {
    max-width: 220px;
    margin: 0 auto;
  }

  .staff-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .staff-actions .btn {
    width: 100%;
  }

  /* About */
  .about-media-stack {
    padding: 0.75rem 0.75rem 0 !important;
  }

  .about-media-stack .about-main {
    max-height: 360px !important;
  }

  .about-copy h2 {
    font-size: 1.85rem !important;
  }

  /* CTA */
  .cta-banner-xl {
    padding: 2.25rem 0 !important;
  }

  .cta-banner-xl h2 {
    font-size: clamp(1.85rem, 8vw, 2.4rem) !important;
  }

  .cta-free-line {
    font-size: 1.45rem !important;
  }

  .cta-phone-xl {
    font-size: 2rem !important;
  }

  .cta-actions,
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn,
  .hero-actions .btn {
    width: 100%;
  }

  /* Footer */
  .site-footer {
    padding-top: 2.25rem !important;
  }

  .footer-grid {
    gap: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .legal-disclaimer {
    font-size: 0.72rem !important;
  }

  /* Sticky bar — thumb friendly + safe area */
  .sticky-call {
    display: grid !important;
    grid-template-columns: 1.35fr 1fr !important;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    z-index: 250 !important;
  }

  .sticky-call-btn,
  .sticky-form-btn {
    min-height: 54px;
    padding: 0.85rem 0.4rem !important;
    font-size: 1.05rem !important;
    line-height: 1.15;
  }

  /* Page interiors */
  .page-hero {
    padding: 2rem 0 1.75rem !important;
  }

  .page-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.25rem) !important;
  }

  .page-layout {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .page-sidebar {
    position: static !important;
  }

  .page-content {
    padding: 2rem 0 2.5rem !important;
  }

  /* Reduce motion load on phones */
  .ken-burns {
    animation-duration: 30s !important;
  }

  .visual-strip-track {
    animation-duration: 55s !important;
  }

  /* Chat widget: sit above sticky bar */
  .chat-widget,
  iframe[title*="chat" i] {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .top-bar-phone-lg {
    font-size: 1.4rem !important;
  }

  .logo-img {
    max-width: 130px !important;
    height: 38px !important;
  }

  .hero-split-copy h1 {
    font-size: 1.9rem !important;
  }

  .recovery-number {
    font-size: 2.1rem !important;
  }

  .billboard-grid {
    gap: 0.45rem !important;
  }
}

/* Landscape phones */
@media (max-width: 900px) and (orientation: landscape) {
  .hero-attorney-img {
    min-height: 220px !important;
    max-height: 260px !important;
  }

  .sticky-call-btn,
  .sticky-form-btn {
    min-height: 46px;
    padding: 0.55rem 0.35rem !important;
  }

  body.layout-conversion,
  body.pi-site {
    padding-bottom: calc(50px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Desktop: hide sticky bar (phone users need it; desktop has header phone) */
@media (min-width: 769px) {
  .sticky-call {
    display: none !important;
  }
  body.layout-conversion,
  body.pi-site {
    padding-bottom: 0 !important;
  }
}