/*
Theme Name: Ovation Law Firm v2
Description: Redesign theme converted from the version-2/*.dc.html design comps. Installed alongside the existing v1 theme so the two can be switched between easily (no A/B testing, no per-visitor split -- just a theme switch).
Author: Ovation Law Firm
Version: 1.0.0
Text Domain: ovation-v2
*/

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; max-width: 100vw; }
img, video { max-width: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: #1E2A3B;
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #12808C; }
a:hover { color: #0E6771; }
::selection { background: #FFDC00; color: #0D3644; }
input, select, textarea, button { font-family: inherit; }
input::placeholder, textarea::placeholder { color: #8FA3A8; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
* { box-sizing: border-box; }

.pa-wrap:hover .pa-menu { display: block !important; }

/* Plain pages (index.php: privacy/terms/disclaimer) -- h1-h3 have margin:0 above, so give the content a fixed gap under the h1 whatever its first element is (a <p> on Privacy, an <h3> on Terms/Disclaimer) */
.entry-content { margin-top: 16px; }
.entry-content > :first-child { margin-top: 0; }

/* Sticky header only while the hero is on screen -- footer.php toggles .hdr-hidden once the hero scrolls out from under it */
#site-header { transition: transform 0.25s ease, visibility 0s linear 0s; }
#site-header.hdr-hidden { transform: translateY(-100%); visibility: hidden; transition: transform 0.25s ease, visibility 0s linear 0.25s; }
#site-header.hdr-static { position: relative !important; }

@media (max-width: 1120px) and (min-width: 961px) {
  #hdr-phone { display: none !important; }
}

@media (max-width: 960px) {
  .m-callbar { display: block !important; }
  /* Room for the fixed .m-callbar (9 + 37 + 3 + 22 + 9 = 80px, plus the iOS safe area) -- on the footer, not body, so the footer background runs behind the bar */
  #locations { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .how-div { border-left: none !important; border-top: 1px solid rgba(255,255,255,0.12) !important; padding-top: 28px !important; }
  .m-nav { display: none !important; }
  .m-menu { display: block !important; }
  .m-menu summary::-webkit-details-marker { display: none; }
  .hdr-bar { gap: 14px !important; padding: 0 18px !important; }
  .m-1 { grid-template-columns: minmax(0,1fr) !important; gap: 32px !important; }
  .m-1 > *, .m-2 > *, .m-sm1 > * { min-width: 0; }
  .m-2 { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .foot-loc p { font-size: 12px !important; white-space: nowrap; }
  .foot-loc > div > div { font-size: 14px !important; }
  .m-static { position: static !important; }
  .m-padx { padding: 56px 0 !important; }
  .hero-media { position: absolute !important; inset: 0 !important; height: 100% !important; }
  .hero-body { position: relative !important; z-index: 2 !important; padding: 44px 0 56px !important; }
  .hero-scrim { background: linear-gradient(180deg, rgba(8,48,60,0.86) 0%, rgba(8,48,60,0.9) 55%, rgba(8,48,60,0.95) 100%) !important; z-index: 1; }
}

@media (max-width: 640px) {
  .m-sm1 { grid-template-columns: minmax(0,1fr) !important; }
  #hdr-phone { display: none !important; }
  .hero-trust-d { display: none !important; }
  .hero-trust-m { display: flex !important; }
  .g-badge { width: 100%; box-sizing: border-box; justify-content: center; padding: 9px 16px !important; gap: 11px !important; }
  .g-badge-txt { display: flex !important; align-items: center; gap: 9px; }
  .g-badge-txt > span:last-child { margin-top: 0 !important; }
  .trust-trio { gap: 2vw !important; flex-wrap: nowrap !important; white-space: nowrap !important; width: 100%; justify-content: center; max-width: 100%; box-sizing: border-box; padding: 0 4px; }
  .trust-trio span { font-size: clamp(9px,3vw,14px) !important; font-weight: 600; }
  [data-hdr-cta] { padding: 10px 13px !important; font-size: 12.5px !important; }
  /* Section containers (.sec) are 28px wide / 76-96px tall in the comps -- too roomy on a phone */
  .sec { padding: 56px 20px !important; }
  footer .sec { padding: 48px 20px 32px !important; }
  .hero-body > .m-1 { padding: 0 20px !important; }
  /* Review video is 16:9 -- the desktop's fixed-height cover box crops most of the frame on a phone */
  .rv-wrap { height: auto !important; aspect-ratio: 16 / 9; }
  .rv-video { height: 100% !important; margin-top: 0 !important; }
  .rv-play { width: 56px !important; height: 56px !important; }
  .rv-cap { padding: 10px 14px !important; flex-wrap: nowrap !important; }
  .rv-cap > div:first-child > div:first-child { font-size: 15px !important; }
  .rv-cap > div:first-child > div:last-child { font-size: 12px !important; }
  .rv-cap > div:last-child { font-size: 10px !important; letter-spacing: 0.14em !important; white-space: nowrap; }
}

/* Inner-page hero trust strip (dog-bite/pedestrian/spinal/lemon-law/etc. page heroes) */
@media (max-width: 960px) {
  .trust-strip { flex-wrap: wrap !important; gap: 10px 18px !important; padding: 16px 18px !important; justify-content: center !important; }
  .trust-strip > span { font-size: 15px !important; font-weight: 700 !important; }
  .trust-strip > span:nth-child(2) { order: 3 !important; flex: 0 0 100% !important; justify-content: center !important; }
}
@media (max-width: 640px) {
  .trust-strip { gap: 8px 14px !important; padding: 14px 14px !important; justify-content: center !important; }
  .trust-strip > span { font-size: 13.5px !important; gap: 6px !important; }
}

/* Link hover states (comps used a non-standard style-hover="..." attribute -- real :hover rules instead) */
.nav-link:hover { color: #FFDC00 !important; }
.pa-item:hover { background: #F0F8F8 !important; color: #12808C !important; }
.cta-primary:hover { background: #F0CD00 !important; }
.cta-dark:hover { background: #12808C !important; }
.cta-outline:hover { color: #FFDC00 !important; }
.underline-link:hover { color: #12808C !important; }
.footer-link:hover { color: #12808C !important; }
.footer-dark .footer-link:hover { color: #FFDC00 !important; }
.footer-dark .footer-phone:hover { color: #FFFFFF !important; }
.field-input:focus { border-color: #12808C !important; outline: none; }
.gold-link:hover { color: #FFDC00 !important; }
a.cta-outline[href^="tel:"]:hover { border-color: #FFDC00 !important; }
#hdr-phone:hover { opacity: 0.85; }
/* Practice Areas index: header Call button, Learn More buttons, cards */
.pa-btn:hover { border-color: #12808C !important; color: #12808C !important; }
.pa-card { transition: border-color .18s ease; }
.pa-card:hover { border-color: #9BBFC5 !important; }

/* Inner-page comps (the homepage comp uses the base values above) */
body:not(.home) { color: #1C2E33; }
body:not(.home) ::selection { background: #FFDC00; color: #071A21; }
body:not(.home) a, body:not(.home) button { transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
