/* Iqra Learning footer, rebuilt 2026-10-27 (seo-growth). Scoped under .iq-foot.
   Base measured from the live footer: white background, ink #262626, Epilogue, 96px section padding.
   Tokens from DESIGN.md: navy #002147, slate #4a5766, hairline navy at 14%, button radius 20px,
   120 to 200ms ease, depth from hairlines only. The Ask AI grid is the Rankwyre footer component
   (rw-ask, same real brand marks), re-themed light. */
.iq-foot{
  --f-ink:#262626;--f-navy:#002147;--f-slate:#4a5766;--f-line:rgba(0,33,71,.14);--f-ease:cubic-bezier(.22,.61,.36,1);
  display:grid;gap:48px 40px;grid-template-columns:1fr;font-family:Epilogue,sans-serif;color:var(--f-ink);
}
.iq-foot *{box-sizing:border-box}
.iq-foot h3,.iq-foot p,.iq-foot ul,.iq-foot li{margin:0;padding:0}
.iq-foot ul{list-style:none}
@media (min-width:768px){.iq-foot{grid-template-columns:repeat(3,1fr)}.iq-foot__brand{grid-column:1 / -1}}
@media (min-width:1100px){.iq-foot{grid-template-columns:1.5fr 1fr 1fr 1fr}.iq-foot__brand{grid-column:auto;padding-right:24px}}

/* brand column */
.iq-foot__logo{display:block;width:96px;height:auto}
.iq-foot__tag{margin-top:16px;font-size:18px;line-height:27px;max-width:34ch;text-wrap:pretty}
.iq-foot__facts{margin-top:20px;border-top:1px solid var(--f-line)}
.iq-foot__facts li{display:flex;gap:12px;align-items:flex-start;padding:10px 0;border-bottom:1px solid var(--f-line);font-size:15px;line-height:22px;color:var(--f-slate)}
.iq-foot__facts svg{width:18px;height:18px;flex:0 0 18px;margin-top:2px;color:var(--f-navy)}
.iq-foot__facts a{color:var(--f-ink);text-decoration:none}
.iq-foot__facts a:hover{color:var(--f-navy);text-decoration:underline;text-underline-offset:3px}
.iq-foot__cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.iq-foot__cta a{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 20px;
  border-radius:20px;border:1px solid var(--f-navy);font-size:17px;line-height:24px;font-weight:500;text-decoration:none;
  transition:background-color 160ms var(--f-ease),border-color 160ms var(--f-ease);
}
.iq-foot__cta a svg{width:18px;height:18px}
.iq-foot__cta .iq-foot__primary{background:var(--f-navy);color:#fff}
.iq-foot__cta .iq-foot__primary:hover{background:#00306a;border-color:#00306a}
.iq-foot__cta .iq-foot__secondary{background:#fff;color:var(--f-navy)}
.iq-foot__cta .iq-foot__secondary:hover{background:rgba(0,33,71,.05)}

/* link columns */
.iq-foot__col h3{
  padding-bottom:10px;margin-bottom:6px;border-bottom:1px solid var(--f-line);
  font-size:13px;line-height:18px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--f-navy);
}
.iq-foot__col li a{display:block;padding:7px 0;font-size:16px;line-height:24px;color:var(--f-ink);text-decoration:none;transition:color 160ms var(--f-ease)}
.iq-foot__col li a:hover{color:var(--f-navy);text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(0,33,71,.4)}
@media (max-width:767px){
  .iq-foot{grid-template-columns:1fr 1fr;gap:32px 20px}
  .iq-foot__brand{grid-column:1 / -1}
}

/* Ask AI about Iqra Learning: rw-ask, light */
.iq-foot .rw-ask{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:min(100%,400px);margin:28px 0 0}
.iq-foot .rw-ask__title{grid-column:1 / -1;margin:0 0 4px;font-size:15px;font-weight:700;line-height:1.25;color:var(--f-navy)}
.iq-foot .rw-ask a{
  display:flex;align-items:center;gap:9px;min-height:44px;padding:7px 10px 7px 7px;border-radius:10px;
  background:#fff;border:1px solid var(--f-line);font-size:14px;font-weight:600;line-height:1.2;color:var(--f-navy);
  text-decoration:none;white-space:nowrap;transition:border-color 160ms var(--f-ease);
}
.iq-foot .rw-ask a:hover{border-color:var(--f-navy)}
.iq-foot .rw-ask a:focus-visible,.iq-foot a:focus-visible{outline:2px solid var(--f-navy);outline-offset:2px}
.iq-foot .rw-ask__tile{width:28px;height:28px;border-radius:7px;background:#fff;border:1px solid var(--f-line);display:inline-grid;place-items:center;flex:none}
.iq-foot .rw-ask__tile .ail{width:17px;height:17px}
.iq-foot .rw-ask__ext{width:14px;height:14px;margin-left:auto;opacity:.55;transition:transform 160ms var(--f-ease),opacity 160ms var(--f-ease)}
.iq-foot .rw-ask a:hover .rw-ask__ext{transform:translate(1px,-1px);opacity:1}
@media (prefers-reduced-motion:reduce){.iq-foot *{transition:none !important}}

/* "Stay up to date" newsletter on the photo band (every page). Was Webflow default: square white
   field and button, no focus state. Now the site's 20px radius, 56px tall, navy action. Scoped to
   #email-form so the contact form (also .cta-form) is untouched. */
#email-form.cta-form{gap:10px;align-items:stretch}
#email-form .cta-field{
  height:56px;min-height:56px;margin:0;padding:0 22px;border-radius:20px;border:1px solid rgba(255,255,255,.7);
  background:rgba(255,255,255,.94);color:#262626;font-family:Epilogue,sans-serif;font-size:17px;
  transition:border-color 160ms cubic-bezier(.22,.61,.36,1);
}
#email-form .cta-field::placeholder{color:#4a5766}
#email-form .cta-field:focus{outline:2px solid #ffffff;outline-offset:2px;border-color:#ffffff}
#email-form .submit-button{
  height:56px;min-height:56px;padding:0 28px;border-radius:20px;border:1px solid #002147;background:#002147;color:#ffffff;
  font-family:Epilogue,sans-serif;font-size:17px;font-weight:500;line-height:56px;
  transition:background-color 160ms cubic-bezier(.22,.61,.36,1);
}
#email-form .submit-button:hover{background:#00306a;border-color:#00306a}
#email-form .submit-button:focus-visible{outline:2px solid #ffffff;outline-offset:2px}
@media (max-width:479px){#email-form.cta-form{flex-direction:column}#email-form .submit-button{width:100%}}
@media (prefers-reduced-motion:reduce){#email-form .cta-field,#email-form .submit-button{transition:none}}

/* bottom row: copyright + privacy, AI Summary, agency credit, all inside the footer (2026-10-27).
   Replaces the template's separate copyright section and the two stacked blocks under it. */
.padding-6:has(> .iq-foot){padding-top:64px;padding-bottom:24px}
.iq-foot__bottom{
  grid-column:1 / -1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 32px;
  margin-top:8px;padding-top:24px;border-top:1px solid var(--f-line);
}
.iq-foot__copy{font-size:15px;line-height:22px;color:var(--f-slate)}
.iq-foot__copy a{margin-left:12px;color:var(--f-ink);text-decoration:none}
.iq-foot__copy a:hover{color:var(--f-navy);text-decoration:underline;text-underline-offset:3px}
.iq-foot__extras{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px}
.iq-foot__bottom .rw-ai{flex-direction:row;align-items:center;gap:12px;padding:0;margin:0}
.iq-foot__bottom .rw-ai__eyebrow{font-size:11px}
.iq-foot__bottom .rw-credit{margin:0;padding:0}
@media (max-width:767px){
  .padding-6:has(> .iq-foot){padding-top:48px}
  .iq-foot__bottom{flex-direction:column;align-items:flex-start}
  .iq-foot__bottom .rw-ai{flex-direction:column;align-items:flex-start;gap:8px}
}

/* link groups as details/summary: always open from 768px (script sets open), accordions on phones */
.iq-foot__col summary{list-style:none;display:flex;align-items:center;justify-content:space-between;cursor:default}
.iq-foot__col summary::-webkit-details-marker{display:none}
.iq-foot__col summary h3{flex:1}
.iq-foot__chev{display:none}
@media (min-width:768px){.iq-foot__col summary{pointer-events:none}}
@media (max-width:767px){
  .iq-foot{grid-template-columns:1fr}
  .iq-foot__col{border-bottom:1px solid var(--f-line)}
  .iq-foot__col summary{cursor:pointer;min-height:52px}
  .iq-foot__col summary h3{padding:0;margin:0;border:0}
  .iq-foot__chev{display:block;position:relative;width:12px;height:12px;margin-right:4px}
  .iq-foot__chev::before{content:"";position:absolute;inset:0;border-right:2px solid var(--f-navy);border-bottom:2px solid var(--f-navy);transform:rotate(45deg) translate(-3px,-3px);transition:transform 160ms var(--f-ease)}
  .iq-foot__col[open] .iq-foot__chev::before{transform:rotate(225deg) translate(-3px,-3px)}
  .iq-foot__col nav{padding-bottom:12px}
  .iq-foot__copy a{display:inline-block;margin:6px 0 0}
}
/* agency credit scaled to the bottom row (its own stylesheet sets large display type) */
.iq-foot__bottom .rw-credit{font-size:15px;line-height:22px;color:var(--f-slate);display:flex;align-items:center;gap:8px}
.iq-foot__bottom .rw-credit__mark{height:22px;width:auto}
/* keep the bottom row clear of the fixed accessibility button (48px at 24px from the edge) */
@media (min-width:768px){.iq-foot__bottom{padding-right:72px}}

/* "Send us a message" contact form (contact page). Was translucent square fields straight on the photo,
   hard to read on phones. Now a white panel: hairline fields, navy 56px button. Scoped to #contact-form. */
#contact-form.cta-form{
  gap:12px;padding:24px;background:#ffffff;border-radius:16px;border:1px solid rgba(0,33,71,.14);
}
#contact-form .cta-field{
  height:52px;min-height:52px;margin:0;padding:0 18px;border-radius:12px;border:1px solid rgba(0,33,71,.28);
  background:#ffffff;color:#262626;font-family:Epilogue,sans-serif;font-size:17px;
  transition:border-color 160ms cubic-bezier(.22,.61,.36,1);
}
#contact-form textarea.cta-field{height:auto;min-height:9rem !important;padding:14px 18px;line-height:25px}
#contact-form .cta-field::placeholder{color:#4a5766}
#contact-form .cta-field:hover{border-color:rgba(0,33,71,.5)}
#contact-form .cta-field:focus{outline:2px solid #002147;outline-offset:1px;border-color:#002147}
#contact-form .submit-button{
  height:56px;min-height:56px;width:100%;margin-top:4px;padding:0 28px;border-radius:20px;border:1px solid #002147;
  background:#002147;color:#ffffff;font-family:Epilogue,sans-serif;font-size:17px;font-weight:500;line-height:54px;
  transition:background-color 160ms cubic-bezier(.22,.61,.36,1);
}
#contact-form .submit-button:hover{background:#00306a;border-color:#00306a}
#contact-form .submit-button:focus-visible{outline:2px solid #002147;outline-offset:2px}
@media (max-width:479px){#contact-form.cta-form{padding:18px}}
@media (prefers-reduced-motion:reduce){#contact-form .cta-field,#contact-form .submit-button{transition:none}}

/* Main menu (Hamza 2026-10-27: links breaking mid-word, "Academic/s", "Blo/g", between 992 and 1199px).
   The site-wide a{overflow-wrap:anywhere} from the August a11y pass let menu links split inside words once
   "Blog" made the row tighter. Menu links never wrap; the 48px gap tightens to 28px only in that range
   (measured: 584px of links + 5 gaps must fit beside the logo and the menu button at 992px). */
.menu-item-link,.menu-item-link .action{white-space:nowrap;overflow-wrap:normal}
@media (min-width:992px) and (max-width:1199px){.w-layout-hflex.gap-3-horizontal:has(> .menu-item-link){gap:28px}}

/* Full-screen menu under 992px (Hamza 2026-10-27: "fix how this looks on mobile"). Was 28 to 44px group
   headings and 18px links 43px apart, taller than the screen, with the Call/Enroll bar and the a11y button
   sitting on top of the last links. Now compact type, groups two-up from 480px, hairline group dividers, and
   the bar and a11y button hide while the menu is open. */
@media (max-width:991px){
  .nav-menu.w-nav-menu{padding-top:24px;padding-bottom:40px}
  .nav-menu-grid.w-layout-grid{grid-row-gap:0;grid-column-gap:28px}
  .nav-item-wrapper{padding:18px 0 16px;border-top:1px solid rgba(0,33,71,.1)}
  .nav-item-wrapper h3.menu-item-text{font-size:22px;line-height:28px;font-weight:700;letter-spacing:-.01em}
  .nav-item-wrapper .hover-arrow.size-3{width:22px;height:22px}
  .nav-item-wrapper .margin-top-1{margin-top:10px}
  .nav-item-wrapper .nav-link .action{font-size:17px;line-height:24px}
  body:has(.menu-button.w--open) .iq-bar,
  body:has(.menu-button.w--open) .rw-a11y-fab{display:none !important}
}
@media (min-width:480px) and (max-width:991px){.nav-menu-grid.w-layout-grid{grid-template-columns:1fr 1fr}}
@media (max-width:479px){.nav-menu-grid.w-layout-grid{grid-template-columns:1fr}}
/* Menu open = no page scroll. Webflow sized the overlay to the whole page (6,600px+) and started the menu
   108px down, so the page behind kept scrolling and the menu's bottom sat off-screen. Pin the overlay to the
   visible screen under the header and lock the page; the menu scrolls itself only if it is taller than that. */
@media (max-width:991px){
  html:has(.menu-button.w--open),body:has(.menu-button.w--open){overflow:hidden !important;touch-action:none}
  body:has(.menu-button.w--open) .w-nav-overlay{position:fixed !important;top:108px !important;bottom:0 !important;height:auto !important;overflow:hidden !important}
  body:has(.menu-button.w--open) .w-nav-overlay .nav-menu.w-nav-menu{height:100% !important;max-height:100% !important;overflow-y:auto !important;overscroll-behavior:contain;touch-action:pan-y}
}
/* menu must fit the screen without scrolling: groups two-up on phones too, tighter rhythm on small screens */
@media (max-width:479px){
  .nav-menu-grid.w-layout-grid{grid-template-columns:1fr 1fr !important;grid-column-gap:16px}
  .nav-menu.w-nav-menu{padding-top:12px;padding-bottom:16px}
  .nav-item-wrapper{padding:14px 0 12px}
  .nav-item-wrapper h3.menu-item-text{font-size:19px;line-height:24px}
  .nav-item-wrapper .hover-arrow.size-3{width:18px;height:18px}
  .nav-item-wrapper .margin-top-1{margin-top:8px}
  .nav-item-wrapper .nav-link .action{font-size:15px;line-height:21px}
}
@media (max-width:479px) and (max-height:700px){
  .nav-item-wrapper{padding:10px 0 8px}
  .nav-item-wrapper .margin-top-1{margin-top:6px}
}
