/* RealWheelzMcGee site. Page styles live inline in index.html, exactly as designed.
   This file holds only page basics and the hover / press / focus states. */
body{margin:0;background:#161616;color:#F0ECE3;font-family:'Archivo',system-ui,sans-serif}
a{color:#FF601C;text-decoration:none}a:hover{color:#FF7638}
*{box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}
img{max-width:100%;height:auto}
[hidden]{display:none !important}

/* Hover and press states */
.h-solid:hover{background:#FF7638 !important;border-color:#FF7638 !important;color:#161616}
.h-ghost:hover{border-color:rgba(240,236,227,.5) !important}
.h-card:hover{border-color:rgba(240,236,227,.24) !important;background:rgba(240,236,227,.08) !important}
.h-text:hover{color:#F0ECE3 !important}
.a-solid:active{background:#D94E13 !important;transform:scale(.985)}
.a-press:active{transform:scale(.985)}
.f-field:focus{border-color:#FF601C !important;box-shadow:0 0 0 3px rgba(255,96,28,.22)}

/* Top navigation: the active page is filled orange */
.nav-btn{background:transparent;color:#F0ECE3;border:1px solid rgba(240,236,227,.24)}
.nav-btn[aria-current="page"]{background:#FF601C;color:#161616;border-color:#FF601C}

/* Choice buttons in the forms (radio buttons styled as pills) */
.opt{position:relative;display:inline-flex}
.opt input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.opt span{display:inline-flex;align-items:center;background:transparent;color:#F0ECE3;border:1px solid rgba(240,236,227,.24)}
.opt input:checked+span{background:#FF601C;color:#161616;border-color:#FF601C}
.opt input:focus-visible+span{outline:3px solid #FF601C;outline-offset:3px}

:focus-visible{outline:3px solid #FF601C;outline-offset:3px}
@media (prefers-reduced-motion:reduce){*{transition:none !important}}

/* Phones: keep the poses beside the forms from taking over the screen */
@media (max-width:700px){img[src*="pose-tablet"],img[src*="pose-phone"]{max-width:220px !important}}

/* Page headers (Services, Public speaking, About): picture stays to the right of the text
   on tablets and computers, and drops below it only on phones. */
@media (min-width:761px){
  .hero-row{flex-wrap:nowrap !important}
  .hero-row > div{flex:1 1 0 !important;min-width:0}
  .hero-row > img{flex:0 1 auto;min-width:0;width:clamp(260px,40vw,520px) !important;margin-bottom:0 !important}
  .hero-row h1{font-size:clamp(36px,calc(6.6vw - 14px),64px) !important}
}

/* Phones: everything fits the screen and the page reads centered */
@media (max-width:760px){
  main section > div, main section > div > div{min-width:0}
  .hero-row{justify-content:center}
  .hero-row > div{flex:1 1 100% !important;min-width:0;max-width:100% !important;text-align:center}
  .hero-row > div > div[style*="height:7px"]{margin-left:auto !important;margin-right:auto !important}
  .hero-row > div > div[style*="display:flex"]{justify-content:center}
  .hero-row > img{margin:0 auto !important}
  .hero-row h1{font-size:clamp(32px,10.5vw,56px) !important;overflow-wrap:break-word}
  .hero-row span{max-width:100%;white-space:normal}
  main section > div[style*="letter-spacing:6px"], main section > h2{text-align:center}
  main section > div[style*="height:7px"]{margin-left:auto !important;margin-right:auto !important}
  #updates > div > *{flex:1 1 100% !important;min-width:0}
  #updates > div > div{text-align:center}
  #updates > div > div > div[style*="height:7px"]{margin-left:auto !important;margin-right:auto !important}
  footer > div{justify-content:center !important;text-align:center}
  footer > div > div{align-items:center !important}
}

/* Phones: a size down so it reads comfortably */
@media (max-width:760px){
  .hero-row h1{font-size:clamp(28px,8.6vw,46px) !important;margin-top:20px !important}
  .hero-row span{font-size:11px !important;letter-spacing:2px !important;padding:8px 12px !important;text-wrap:balance}
  .hero-row p{font-size:16px !important}
  .hero-row > div > div[style*="height:7px"]{width:110px !important;height:6px !important;margin-top:20px !important;margin-bottom:20px !important}
  .hero-row > div > div[style*="display:flex"]{margin-top:26px !important;gap:10px !important}
  .hero-row a.h-solid, .hero-row a.h-ghost{font-size:14px !important;letter-spacing:2px !important;padding:13px 20px !important}
  .hero-row > div > div[style*="letter-spacing:6px"]{font-size:11px !important;letter-spacing:4px !important}
  .hero-row > img{width:min(100%,340px) !important}
  .hero-row{padding-top:44px !important;padding-bottom:44px !important}
  main section > h2{font-size:26px !important}
  .nav-btn{font-size:11px !important;padding:10px 12px !important;letter-spacing:1.5px !important}
  header img{width:92px !important}
  #updates h2{font-size:26px !important}
}

/* Phones: price cards, steps and quote blocks centered too */
@media (max-width:760px){
  main section div[style*="display:grid"] > div{text-align:center}
  main section div[style*="border-left:7px"]{border-left:none !important;padding:0 !important;margin-left:auto !important;margin-right:auto !important;text-align:center}
  main section div[style*="border-left:7px"]::before{content:"";display:block;width:110px;height:6px;border-radius:4px;background:#FF601C;margin:0 auto 22px}
}
