/* Blog-only fix, 2026-08-24: Blocksy's own main.min.css sets text-align:
   justify on a combined tag-selector list that includes h1-h6 (equal
   specificity to qe-tokens.css's own h1-h6 rule, and it loads later, so
   it was winning - post titles rendered with ugly stretched inter-word
   gaps instead of left alignment). */
.page-title, .entry-title, h1, h2, h3, h4, h5, h6{ text-align:left !important; }

/* ===== HEADER ===== */
.header{background:#fff; border-bottom:1px solid var(--line); padding:14px 6vw; display:flex; align-items:center; justify-content:space-between; position:sticky; top:0; z-index:50;}
@media (max-width:760px){ .header{padding:10px 5vw;} }
@media (max-width:420px){ .header{padding:8px 5vw;} }
.logo-box{display:flex; align-items:center; gap:10px;}
.logo-placeholder{display:flex; align-items:center; height:46px;}
.logo-placeholder img{height:100%; width:auto; max-width:none; display:block;}
.logo-text{font-family:'Inter',sans-serif; font-weight:500; font-size:0.72rem; line-height:1.2; color:var(--green); max-width:120px;}
@media (max-width:420px){
  .logo-placeholder{height:36px;}
  .logo-text{font-size:0.62rem; max-width:100px;}
}

.nav{display:flex; gap:26px; align-items:center;}
.nav a{text-decoration:none; color:var(--black); font-size:0.88rem; font-weight:500; position:relative; cursor:pointer;}
.nav a.has-dropdown::after{content:"▾"; font-size:0.65rem; margin-left:4px; color:#8A968E;}
.nav-cta{background:var(--gold); color:var(--black); padding:10px 20px; border-radius:8px; font-weight:700; font-size:0.85rem; text-decoration:none; white-space:nowrap;}
.dropdown{position:absolute; top:100%; left:0; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 12px 28px rgba(20,20,15,0.1); padding:8px; min-width:220px; display:none; margin-top:10px; z-index:55;}
/* .qe-dropdown-open is JS-managed (header.php) with a short close delay, so
   moving the mouse across the 10px margin-top gap toward the dropdown
   doesn't lose hover and close it before the click registers - the classic
   CSS hover-gap bug. .dropdown:hover is a harmless extra safety net. */
.nav li:hover .dropdown, .nav li.qe-dropdown-open .dropdown, .dropdown:hover{display:block;}
.dropdown a{display:block; padding:9px 12px; font-size:0.84rem; border-radius:6px;}
.dropdown a:hover{background:var(--sage); color:var(--green);}
.nav ul{list-style:none; display:flex; gap:26px; align-items:center; position:relative; margin:0; padding:0;}
.nav li{position:relative;}

.hamburger{display:none; flex-direction:column; gap:4px; cursor:pointer;}
.hamburger span{width:22px; height:2px; background:var(--black);}
@media (max-width:960px){
  .nav{display:none;}
  .hamburger{display:flex;}
}

/* Mobile nav panel (not in original desktop-only mockup - added for functional hamburger) */
.mobile-nav-panel{display:none; flex-direction:column; background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:49;}
.mobile-nav-panel.is-open{display:flex;}
.mobile-nav-panel a{padding:12px 6vw; border-top:1px solid var(--line); text-decoration:none; color:var(--black); font-size:0.9rem;}

/* ===== FOOTER ===== */
.footer{background:var(--black); color:#C9D3CD; padding:50px 6vw 0;}

.footer-newsletter{max-width:1200px; margin:0 auto 30px; padding-bottom:30px; border-bottom:1px solid rgba(255,255,255,0.1); display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;}
.footer-newsletter h4{color:#fff; font-family:'Fraunces',serif; font-weight:600; font-size:1.05rem; margin-bottom:4px;}
/* Footer text stays left (deliberate exception, 2026-08-10 sweep): narrow
   column (max-width:340px, ~2 lines) - justify on that few words per line
   would stretch big visible gaps between words, the exact "spreading" look
   this whole sweep exists to remove, not add. Same reasoning for
   .footer-about p below. */
.footer-newsletter p{color:#B9C4BE; font-size:0.82rem; max-width:340px; text-align:left;}
.fn-form{display:flex; gap:8px; flex-wrap:wrap;}
.fn-form input{padding:11px 14px; border-radius:8px; border:1px solid rgba(255,255,255,0.2); background:rgba(255,255,255,0.06); color:#fff; font-size:0.85rem; min-width:220px;}
.fn-form input::placeholder{color:#8A968E;}
.fn-form button{background:var(--gold); color:var(--black); border:none; padding:11px 22px; border-radius:8px; font-weight:700; font-size:0.85rem; cursor:pointer;}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; max-width:1200px; margin:0 auto; padding-bottom:36px;}
@media (max-width:860px){ .footer-grid{grid-template-columns:1fr 1fr; gap:26px;} }
@media (max-width:560px){ .footer-grid{grid-template-columns:1fr;} }

.footer-col h4{font-family:'Fraunces',serif; color:#fff; font-size:0.92rem; font-weight:600; margin-bottom:14px;}
.footer-col ul{list-style:none; margin:0; padding:0;}
.footer-col ul li{margin-bottom:9px;}
.footer-col ul li a{color:#B9C4BE; text-decoration:none; font-size:0.82rem;}
.footer-col ul li a:hover{color:var(--gold-soft);}
.footer-about p{font-size:0.82rem; line-height:1.6; color:#B9C4BE; margin-bottom:16px; text-align:left;}
.footer-tagline{font-family:'Fraunces',serif; color:var(--gold-soft); font-size:0.9rem; font-style:italic; margin-bottom:10px;}
.footer-social{display:flex; gap:10px;}
.footer-social a{width:32px; height:32px; border-radius:50%; border:1px solid rgba(255,255,255,0.2); display:flex; align-items:center; justify-content:center; font-size:0.75rem; color:#fff; text-decoration:none;}

.footer-bottom{border-top:1px solid rgba(255,255,255,0.1); padding:18px 0; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; max-width:1200px; margin:0 auto; font-size:0.76rem; color:#8A968E;}
.footer-bottom .powered{color:var(--gold-soft);}

/* ===== MOBILE STICKY BOTTOM BAR ===== */
/* "Icon-top big cards" design, 2026-08-18 (Ahmad-approved, height-corrected
   reference spec) - replaces the old 5-icon space-around row (.msb-item)
   with 3 equal-width cards (.qe-quickbar). .mobile-sticky itself keeps its
   existing sticky/mobile-only/shadow role as the outer wrapper; .qe-quickbar
   is the new inner grid row. */
/* Problem B fix, 2026-08-19: vertical padding halved (10px -> 5px each
   side) - this is the wrapper directly containing .qe-quickbar (the row),
   distinct from any padding inside .qe-quickbar a (the cards, Problem A) -
   was contributing its own ~20px of white space above/below the row on
   top of whatever the cards added. Horizontal 4vw kept as-is, not part of
   either reported problem. */
/* Visual test, 2026-08-19 (not final, revert to #fff if not kept):
   black wrapper background trial - see task report for readability check.
   Rebalance pass, same day: padding changed from 5px 4vw (asymmetric -
   vertical and horizontal never matched, and horizontal itself scaled with
   viewport so it drifted from the 8px card gap below) to a single 6px on
   all 4 sides, matched to .qe-quickbar's gap below - this is what makes
   the black read as one even frame/gap instead of thick-in-some-places. */
.mobile-sticky{display:none; position:sticky; bottom:0; background:#14140F; border-top:1px solid var(--line); padding:6px 6px; box-shadow:0 -8px 20px rgba(0,0,0,0.08); z-index:60;}
/* scroll-padding-bottom, 2026-08-24 (post-migration responsive audit):
   this sticky bar (~73px tall) plus the WhatsApp float above it
   (bottom:104px, 48px tall) occupy roughly the bottom 152px of the
   mobile viewport. Passively scrolling text through that zone is an
   accepted tradeoff of any persistent bottom bar (Ahmad's call,
   2026-08-23) - but an INTERACTIVE element landing there is a real
   problem: confirmed on the Contact page, where tapping into the
   Subject field scrolled it directly behind this bar, hiding the input
   box entirely. scroll-padding-bottom fixes exactly this case (any
   browser-driven scroll-into-view - tapping a field, an anchor link,
   scrollIntoView()) by reserving clearance, without needing every
   individual page/section to add its own padding. Passive manual
   scrolling is unaffected, matching the already-accepted behavior. */
@media (max-width:760px){
	.mobile-sticky{display:flex;}
	html{scroll-padding-bottom:160px;}
}
/* Bug fix, 2026-08-24 (responsive audit): confirmed on the My Account page
   (index.php's fallback .qe-generic-content wrapper - short pages like the
   login form have very little content below the fold) that the newsletter
   "Subscribe" button in the footer briefly passes behind this sticky bar +
   the WhatsApp float while manually scrolling, and on a page this short
   there isn't much scroll runway past that point. Same reserved-clearance
   approach as qe-content-pages.css's equivalent fix for content-page
   templates, applied here for anything that falls through to index.php. */
.qe-generic-content{ padding-bottom:56px; }
@media (max-width:760px){ .qe-generic-content{ padding-bottom:110px; } }
/* Restyle, 2026-08-18: smaller padding/radius, accent color per card.
   CSS-only per Ahmad's instruction (no markup/class changes) - the 3 cards
   are plain <a> children with no modifier classes, so each one's accent
   pair is set via :nth-child instead of adding new classes to the HTML.
   Bug fix, 2026-08-19: re-verified the 3 gaps live (grid + :nth-child,
   direct siblings, zero margin) and they measured exactly equal (8px/8px,
   0 edge gaps) before this fix too - whatever Ahmad's screenshot showed
   was already resolved by that point, most likely a stale/cached view
   rather than a code bug, so Bug 1/2 needed no further change here beyond
   re-confirming. Bug 3 fix: border switched from a faint neutral
   (#E5E2D8) to the full accent color at 1.5px, with a soft 8% accent tint
   on the background instead of plain white, so the color reads clearly
   without looking heavy. */
.qe-quickbar{display:grid; grid-template-columns:repeat(3,1fr); gap:6px; width:100%;}
/* Problem A fix, 2026-08-19: padding 9px->7px and gap 2px->1px. Measured
   breakdown of the 75.06px card before this fix: padding-top 9 + border-top
   1.5 + icon 19 + gap 2 + name's OWN redundant margin-top 2 (on top of the
   flex gap - a real double-spacing bug, not just a visual impression) +
   name 13.8 + gap 2 + price 16.275 (price had no explicit line-height, so
   it was inheriting a much taller default) + border-bottom 1.5 +
   padding-bottom 9 ~= 76px, matching the measured 75.06px. Content (icon +
   name + price + internal gaps), not padding, was the majority of that
   total - so the icon/price/gap changes below do more work than the
   padding cut alone. */
.qe-quickbar a{text-decoration:none; color:#14140F; background:color-mix(in srgb, var(--accent) 8%, #fff); border:1.5px solid var(--accent); border-radius:6px; padding:8px 4px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:1px;}
.qe-quickbar a:nth-child(1){--accent:#DCB178; --accent-text:#8a6633;} /* Sadqah Basic */
.qe-quickbar a:nth-child(2){--accent:#6F805A; --accent-text:#4d5a3e;} /* Sadqah Goat (Qurbani/goat segment color, per Ahmad) */
.qe-quickbar a:nth-child(3){--accent:#6D84B5; --accent-text:#3e547a;} /* Aqeeqah */
/* Bug 4 fix, 2026-08-19: .icon now holds an emoji character (reused from
   the "Four ways" section, see footer.php's ICON NOTE), not the SVG line
   icons from the previous pass - font-size replaces the old fixed
   width/height, and `color` no longer applies (emoji ignore CSS color, as
   established earlier this project). */
.qe-quickbar .icon{font-size:15px; line-height:1; display:inline-flex; align-items:center; justify-content:center;}
.qe-quickbar .name{font-family:'Fraunces',serif; font-weight:600; font-size:12px; line-height:1.05; color:#14140F;}
.qe-quickbar .price{font-family:'JetBrains Mono',monospace; font-size:10.5px; font-weight:500; line-height:1.2; color:var(--accent-text);}

/* ===== FLOATING WHATSAPP BUTTON =====
   Was desktop/tablet-only (hidden below 760px) so it never doubled up with
   the mobile sticky bar's own WhatsApp item - that item is gone as of
   2026-08-18 (WhatsApp moved here exclusively), so this button is now
   unconditional/site-wide across all breakpoints instead. */
.qe-whatsapp-float{display:flex; align-items:center; justify-content:center; position:fixed; right:24px; bottom:24px; width:56px; height:56px; border-radius:50%; background:#25D366; box-shadow:0 6px 20px rgba(20,20,15,0.25); z-index:70; text-decoration:none;}
.qe-whatsapp-float svg{width:28px; height:28px; fill:#fff;}
/* On mobile, .mobile-sticky now occupies the bottom of the viewport too -
   push the floating button up above it instead of letting the two overlap
   (bottom value verified against .mobile-sticky's actual rendered height,
   not guessed - see task report). */
@media (max-width:760px){ .qe-whatsapp-float{right:16px; bottom:104px; width:48px; height:48px;} .qe-whatsapp-float svg{width:24px; height:24px;} }
.qe-whatsapp-float .qe-wa-tooltip{position:absolute; right:66px; top:50%; transform:translateY(-50%); background:var(--black); color:#fff; font-size:0.8rem; font-weight:600; padding:7px 14px; border-radius:8px; white-space:nowrap; opacity:0; visibility:hidden; transition:opacity .15s, visibility .15s; pointer-events:none;}
.qe-whatsapp-float:hover .qe-wa-tooltip, .qe-whatsapp-float:focus-visible .qe-wa-tooltip{opacity:1; visibility:visible;}
