/* TQH new site – shared styles. Page markup carries its own inline styles from the approved mock-ups. */
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body.tqh{margin:0;background:#F4F4F4;font-family:'Sofia Sans','Sofia Pro',system-ui,-apple-system,'Segoe UI',sans-serif;color:#2D2A32}
body.tqh *,body.tqh *::before,body.tqh *::after{box-sizing:border-box}
body.tqh a{color:#CA1B66}body.tqh a:hover{color:#A91B5A}
body.tqh img{max-width:100%;height:auto}
body.tqh section[id]{scroll-margin-top:90px}
body.tqh [hidden]{display:none!important}
body.tqh :focus-visible{outline:3px solid #F2A521;outline-offset:2px}
.tqh-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
/* header */
.tqh-hdr{position:sticky;top:0;z-index:50}
body.admin-bar .tqh-hdr{top:32px}
.tqh-dd{position:relative;display:inline-flex}
.tqh-menu{position:absolute;top:100%;left:-16px;min-width:230px;background:#fff;border:1px solid #E8E6EA;border-radius:12px;box-shadow:0 12px 30px rgba(45,42,50,.12);padding:8px;display:none;flex-direction:column;z-index:60;margin-top:10px}
.tqh-menu::before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px}
.tqh-menu a{display:block;padding:10px 12px;border-radius:8px;color:#2D2A32!important;text-decoration:none;font-weight:500;font-size:15px}
.tqh-menu a:hover{background:#F4F4F4}
.tqh-dd:hover .tqh-menu,.tqh-dd:focus-within .tqh-menu,.tqh-dd.open .tqh-menu{display:flex}
.tqh-burger{display:none;background:none;border:1.5px solid #CFCBD3;border-radius:10px;padding:10px 12px;cursor:pointer;font:inherit;font-weight:600;color:#2D2A32}
/* form chips + states */
.tqh-chips{display:flex;flex-wrap:wrap;gap:8px}
.tqh-chip{font:inherit;font-size:15px;font-weight:600;padding:12px 16px;border-radius:10px;cursor:pointer;background:#fff;color:#2D2A32;border:1.5px solid #CFCBD3}
.tqh-chip.on{background:#CA1B66;color:#fff;border-color:#CA1B66}
.tqh-form [aria-invalid="true"]{border-color:#B3261E!important}
.tqh-err{margin:0;color:#B3261E;font-size:14px;font-weight:600}
.tqh-form button[type=submit][disabled]{opacity:.6;cursor:wait}
@media (max-width:960px){
  .tqh-hdr>div{flex-wrap:wrap!important;padding:12px 16px!important}
  .tqh-hdr img{height:44px!important}
  .tqh-burger{display:inline-block;margin-left:auto}
  .tqh-hdr nav,.tqh-hdr>div>div:last-of-type{display:none!important;width:100%}
  .tqh-hdr.open nav{display:flex!important;flex-direction:column;gap:4px!important;padding:8px 0}
  .tqh-hdr.open>div>div:last-of-type{display:flex!important;flex-direction:column;align-items:stretch!important}
  .tqh-hdr.open>div>div:last-of-type a{text-align:center;justify-content:center}
  .tqh-dd{flex-direction:column}
  .tqh-menu{position:static;display:flex;box-shadow:none;border:none;margin:0;padding:0 0 0 12px;min-width:0}
  .tqh-menu::before{display:none}
  .tqh-hdr nav>a,.tqh-dd>a{padding:10px 0}
}
@media (max-width:860px){
  .tqh-root [style*="grid-template-columns"]{grid-template-columns:1fr!important}
  .tqh-root [style*="repeat(4"],.tqh-root [style*="repeat(5"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .tqh-root section>div,.tqh-root footer>div{padding-left:max(16px,env(safe-area-inset-left,0px))!important;padding-right:max(16px,env(safe-area-inset-right,0px))!important}
  .tqh-root [style*="padding: 32px"],.tqh-root [style*="padding: 40px"],.tqh-root [style*="padding: 48px"]{padding:22px!important}
  .tqh-root h1{font-size:clamp(32px,8.5vw,44px)!important;line-height:1.15!important}
  .tqh-root h2{font-size:clamp(26px,6.5vw,34px)!important;line-height:1.2!important}
  .tqh-root [style*="display: flex"]:not(.tqh-chips){flex-wrap:wrap}
  .tqh-root [style*="flex: 1"],.tqh-root [style*="flex: 0 0"]{min-width:0}
}
@media (max-width:520px){
  .tqh-root [style*="repeat(4"],.tqh-root [style*="repeat(5"]{grid-template-columns:1fr!important}
  .tqh-root a[aria-label="Chat with us on WhatsApp"]{right:16px!important;bottom:16px!important}
}
@media (max-width:860px){
  .tqh-root [style*="height: 520px"],.tqh-root [style*="height: 480px"],.tqh-root [style*="height: 460px"]{height:220px!important;flex-basis:100%!important}
  .tqh-root [style*="padding: 80px"],.tqh-root [style*="padding: 96px"],.tqh-root [style*="padding: 88px"]{padding-top:36px!important;padding-bottom:40px!important}
  .tqh-root section[aria-label="Why parents trust us"] [style*="grid-template-columns"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* hero: phone layout */
.tqh-m-only{display:none!important}
@media (max-width:860px){
  .tqh-m-only{display:block!important}
  .tqh-d-only{display:none!important}
  .tqh-hero>div{gap:24px!important;position:relative}
  .tqh-hero .tqh-hero-sub{font-size:22px!important}
  .tqh-hero-ctas{flex-direction:column}
  .tqh-hero-ctas a{text-align:center;width:100%}
  .tqh-root .tqh-hero-art{display:none!important}
  .tqh-hero{position:relative;overflow:hidden}
  .tqh-hero::before{content:"";position:absolute;top:-30px;right:-90px;width:300px;height:300px;background:url(img/bfd3c34fc7.jpg) center/cover;opacity:.13;border-radius:50%;-webkit-mask-image:radial-gradient(circle,#000 35%,transparent 70%);mask-image:radial-gradient(circle,#000 35%,transparent 70%);pointer-events:none}
}

/* contrast: links on the charcoal footer */
body.tqh footer a:not([style*="color"]){color:#F7B8D2}
body.tqh footer a:not([style*="color"]):hover{color:#fff}

/* Tutor photos: show the whole picture (no cropping) at every width */
img[alt$="Quran Hour tutor"]{height:auto!important;aspect-ratio:371/438;object-fit:cover;object-position:center top!important}

/* Speed: reserve the logo space so the header does not jump while it loads */
img[src$="90c8ffbb6a.png"]{aspect-ratio:600/288}
