/*
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
*/

/* Accessibility widget (assets/js/a11y-widget.*) panel in the site's navy.
   The accent (launcher, active toggles) is left unset so it keeps
   _shared-lib's original blue (#146ff8 / hover #3b82f6). */
:root {
  --a11y-panel-bg: #0D3644;
  --a11y-surface: #0A2C38;
  --a11y-border: #1B4A58;
  --a11y-border-strong: #2C5A64;
  --a11y-text-strong: #FFFFFF;
  --a11y-text: #E4F2F2;
  --a11y-text-soft: #BFD9DD;
  --a11y-text-muted: #9BCAD2;
  --a11y-scrollbar: #2C5A64;
  --a11y-knob-on: #FFFFFF;
}

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; }
  /* Review video is 80% wide on desktop -- tablets and phones get the full width */
  .rv-wrap { width: 100% !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; }
  /* Stacked: put this column after its sibling (e.g. About Us' portrait under "Our Story") */
  .m-last { order: 1; }
  .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; background-image: url('assets/images/hero-desk-mobile-poster.webp') !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; }
  /* Breadcrumb links are ~20px tall -- pad the tap area out to ~44px without moving the text (negative margin cancels the padding) */
  .crumbs a { display: inline-block; padding: 12px 6px; margin: -12px -6px; }
  /* "Schedule Your Free Consultation" needs 287px at 17.5px but the form has ~264px at 360px wide -- scale it down with the screen, and let it wrap rather than overflow on the narrowest phones */
  .ef-title { font-size: clamp(15px, 4.4vw, 17.5px) !important; white-space: normal !important; }
}

/* iOS Safari zooms the page when a focused field's text is under 16px. Placeholders
   stay at 16px too: the selects' "State" / "Case Type" labels can't shrink, so 14px
   placeholders made them look oversized next to the other fields */
@media (max-width: 960px) {
  .ov2-eval-form input, .ov2-eval-form select, .ov2-eval-form textarea { font-size: 16px !important; }
}

/* 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; }
/* Taller tap area on footer links (they were ~20px; Google asks for 24px+ on
   phones): 5px of padding above and below, cancelled by the same negative
   margin, so nothing in the footer moves. */
.footer-link, .footer-phone { display: inline-block; padding-block: 5px; margin-block: -5px; }
/* "Privacy Choices" is a <button> (it opens Osano's drawer, it doesn't
   navigate): strip the button look so it matches the links beside it. */
.privacy-choices { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding-inline: 0; font: inherit; line-height: inherit; cursor: pointer; }
.privacy-choices svg { flex: none; }
/* Hide Osano's consent banner. The preferences drawer (.osano-cm-info-dialog)
   stays, so "Privacy Choices" still opens it. */
.osano-cm-dialog { display: none !important; }
/* Osano drawer: "Powered by Osano" as small centered white text instead of the logo. */
.osano-cm-powered-by { justify-content: center !important; margin: 12px 0 0 !important; }
.osano-cm-powered-by__link { width: auto !important; color: #FFFFFF !important; font-size: 10px !important; font-weight: normal !important; line-height: 1.4 !important; text-decoration: none !important; }
.osano-cm-powered-by__logo { display: none !important; }
.osano-cm-powered-by__link::after { content: "Powered by Osano"; }
.field-input:focus { border-color: #12808C !important; outline: none; }
.field-input.field-err, .field-input.field-err:focus { border-color: #D64545 !important; }
.ov2-consent.field-err input { outline: 2px solid #D64545; outline-offset: 1px; }
.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; }
