/*
Theme Name: Musa Kalimullah Child
Theme URI: https://musakalimullah.com
Description: Child theme of Astra for musakalimullah.com. Carries the custom global header and footer and the two hand-built landing page templates (homepage and contact). All other design comes from the parent theme.
Author: Musa Kalimullah
Template: astra
Version: 1.1.26
Text Domain: musa-child
*/

/* Shared header and footer. The mk- classes are styled here, in plain
   CSS, so the header and footer look the same on every page, including
   the blog, without depending on the landing pages' Tailwind setup. */

.mk-site-header, .mk-site-footer { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.mk-site-header *, .mk-site-footer * { box-sizing: border-box; }
.mk-site-header a, .mk-site-footer a { text-decoration: none; }

.mk-site-header { position: sticky; top: 0; z-index: 999; background: #ffffff; border-bottom: 1px solid #E2E8F0; }
body.admin-bar .mk-site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .mk-site-header { top: 46px; } }
.mk-header-in { max-width: 1200px; margin: 0 auto; padding: 13px 22px; display: flex; align-items: center; gap: 18px; }
.mk-logo, .mk-flogo { display: flex; align-items: center; gap: 11px; }
.mk-tile { position: relative; width: 42px; height: 42px; border-radius: 11px; background: #0B1F3A; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; letter-spacing: .5px; flex: none; }
.mk-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #10B981; }
.mk-brand { display: flex; flex-direction: column; }
.mk-name { font-size: 16.5px; font-weight: 800; color: #0B1F3A; line-height: 1.1; }
.mk-sub { font-size: 9.5px; font-weight: 700; letter-spacing: 1.8px; color: #64748B; margin-top: 3px; text-transform: uppercase; }
.mk-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.mk-nav a { font-size: 14px; font-weight: 600; color: #334155; }
.mk-nav a:hover { color: #0B1F3A; }
.mk-nav a.on { color: #0B1F3A; box-shadow: inset 0 -2px 0 #F59E0B; padding-bottom: 3px; }
.mk-nav a.mk-cta, .mk-mmenu a.mk-cta { background: #F59E0B; color: #0B1F3A; font-weight: 700; padding: 11px 18px; border-radius: 11px; white-space: nowrap; box-shadow: none; }
.mk-burger { display: none; margin-left: auto; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.mk-burger span { width: 24px; height: 2.5px; background: #0B1F3A; border-radius: 2px; display: block; }
.mk-mmenu { display: none; border-top: 1px solid #E2E8F0; padding: 10px 22px 16px; background: #ffffff; }
.mk-mmenu.open { display: block; }
.mk-mmenu a { display: block; font-size: 15px; font-weight: 600; color: #334155; padding: 10px 0; }
.mk-mmenu a.on { color: #0B1F3A; }
.mk-mmenu a.mk-cta { text-align: center; margin-top: 8px; padding: 12px 18px; }

/* Services dropdown in the main nav (desktop) and sub links in the mobile menu. */
.mk-has-sub { position: relative; display: inline-flex; }
.mk-caret { display: inline-block; width: 0; height: 0; margin-left: 5px; vertical-align: middle; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .65; }
.mk-drop { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px); padding-top: 15px; opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease, visibility .16s; z-index: 1000; }
.mk-has-sub:hover .mk-drop, .mk-has-sub:focus-within .mk-drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mk-drop-in { display: block; background: #ffffff; border: 1px solid #E2E8F0; border-radius: 14px; box-shadow: 0 18px 40px rgba(7, 22, 41, .16); padding: 8px; min-width: 308px; }
.mk-drop a { display: block; padding: 10px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: #334155; white-space: nowrap; box-shadow: none; }
.mk-drop a:hover { background: #F1F6FB; color: #0B1F3A; }
.mk-drop a.on { background: #FDF1DD; color: #0B1F3A; box-shadow: none; }
.mk-mmenu a.mk-sub { padding: 7px 0 7px 16px; font-size: 14px; color: #64748B; }
.mk-mmenu a.mk-sub.on { color: #0B1F3A; }

.mk-site-footer { background: #071629; color: #CBD5E1; }
.mk-footer-in { max-width: 1200px; margin: 0 auto; padding: 44px 22px 0; }
.mk-cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.25fr; gap: 30px; }
.mk-fname { font-size: 16.5px; font-weight: 800; color: #fff; line-height: 1.1; }
.mk-fsub { font-size: 9.5px; font-weight: 700; letter-spacing: 1.8px; color: #7C8DA6; margin-top: 3px; text-transform: uppercase; }
.mk-fpara { font-size: 13px; line-height: 1.65; color: #94A3B8; margin-top: 14px; max-width: 300px; }
.mk-social { display: flex; gap: 9px; margin-top: 16px; }
.mk-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; color: #E2E8F0; flex: none; }
.mk-social a:hover { background: #F59E0B; color: #0B1F3A; border-color: #F59E0B; }
.mk-social svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.mk-h { font-size: 11.5px; font-weight: 800; letter-spacing: 1.6px; color: #fff; text-transform: uppercase; }
.mk-h:after { content: ""; display: block; width: 26px; height: 2.5px; background: #F59E0B; border-radius: 2px; margin-top: 7px; }
.mk-links { list-style: none; margin: 14px 0 0; padding: 0; }
.mk-links li { margin-bottom: 9px; }
.mk-links a { font-size: 13.5px; color: #CBD5E1; }
.mk-links a:hover { color: #fff; }
.mk-contact { font-size: 13.5px; line-height: 1.5; color: #CBD5E1; margin-top: 14px; }
.mk-contact b { color: #fff; }
.mk-contact a { color: #CBD5E1; font-weight: 600; }
.mk-contact-row { margin-top: 10px; }
.mk-note { font-size: 12.5px; color: #94A3B8; margin-top: 10px; }
.mk-audit { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: #F59E0B; }
.mk-bottom { margin-top: 34px; border-top: 1px solid rgba(226,232,240,.13); padding: 16px 0 18px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.mk-copy { font-size: 12.5px; color: #94A3B8; }
.mk-legal { font-size: 12.5px; color: #CBD5E1; }
.mk-legal a { color: #CBD5E1; }

@media (max-width: 900px) {
  .mk-nav a:not(.mk-cta) { display: none; }
  .mk-has-sub { display: none; }
  .mk-burger { display: flex; }
}
@media (max-width: 760px) { .mk-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) {
  .mk-cols { grid-template-columns: 1fr; }
  .mk-nav a.mk-cta { display: none; }
}

/* Mobile sticky action bar (printed by footer.php on every page).
   Hidden on desktop; on phones it keeps the two conversion actions
   one tap away without covering the footer content. */
.mk-stickybar { display: none; }
@media (max-width: 900px) {
  .mk-stickybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 998; background: #ffffff; border-top: 1px solid #E2E8F0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; box-shadow: 0 -4px 18px rgba(7, 22, 41, .12); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }
  .mk-stickybar a { flex: 1; text-align: center; font-size: 14px; font-weight: 700; padding: 12px 10px; border-radius: 11px; text-decoration: none; }
  .mk-sb-main { background: #F59E0B; color: #0B1F3A; }
  .mk-sb-wa { background: #10B981; color: #ffffff; }
  body { padding-bottom: 66px; }
}

/* Modal entrance used by the landing templates (was a no-op class
   name under the old setup; defined here so it actually animates). */
@keyframes mkFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.animate-fadeIn { animation: mkFadeIn .25s ease both; }

/* Astra hover/focus guard (added v1.1.4): Astra paints every bare <button>
   with its global blue #045cb4 on :hover/:focus (specificity 0-1-1), which
   overrides Tailwind background utilities (0-1-0) and flashes blue over the
   designed colors. Neutralize the background and let text inherit; buttons
   with a designed hover use Tailwind hover: utilities (0-2-0) and still win.
   The Fluent Forms submit button uses !important brand rules and is safe. */
body button:hover,
body button:focus,
body button:active {
  background-color: transparent;
  color: inherit;
}

/* Sticky bar link colors on hover/focus (v1.1.5): Astra's link hover blue
   would otherwise win over these single-class rules on touch focus. */
.mk-sb-main:hover, .mk-sb-main:focus { color: #0B1F3A; }
.mk-sb-wa:hover, .mk-sb-wa:focus { color: #ffffff; }

/* Hero Quick Check form (Fluent Forms form 4) spacing, v1.1.15: roomier
   input padding and a larger, readable field font, matching the spacing
   Musa pointed to in his reference screenshot. Scoped to form 4 only;
   the main form 3 keeps its own tighter styling from its form CSS. */
#fluentform_4 .ff-el-form-control {
  padding: 15px 16px;
  font-size: 16px;
  line-height: 1.5;
}
#fluentform_4 .ff-el-group {
  margin-bottom: 14px;
}
#fluentform_4 .ff-btn-submit {
  font-size: 16px;
}

/* Blog (v1.1.26): posts index (home.php), archives (archive.php) and
   single posts (single.php), plus the shared mkb-card.php partial.
   Plain CSS in the site palette, matching the shared header/footer,
   so blog pages do not depend on the landing pages' Tailwind setup. */
.mkb-wrap { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #0B1F3A; padding: 34px 0 10px; box-sizing: border-box; }
.mkb-wrap *, .mkb-wrap *::before, .mkb-wrap *::after { box-sizing: border-box; }
.mkb-wrap a { text-decoration: none; }

.mkb-hero { background: #0B1F3A; border-radius: 22px; padding: 52px 34px; text-align: center; margin-bottom: 38px; }
.mkb-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: #0B1F3A; background: #10B981; border-radius: 999px; padding: 6px 14px; }
.mkb-hero h1 { color: #ffffff; font-size: 36px; line-height: 1.18; font-weight: 800; margin: 18px auto 12px; max-width: 720px; }
.mkb-hero p { color: #CBD5E1; font-size: 16.5px; line-height: 1.65; max-width: 640px; margin: 0 auto; }

.mkb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mkb-card { background: #ffffff; border: 1px solid #E2E8F0; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.mkb-card:hover { box-shadow: 0 18px 36px -22px rgba(11, 31, 58, .35); transform: translateY(-3px); }
.mkb-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0B1F3A; }
.mkb-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkb-card-in { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mkb-chip { display: inline-block; align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #065F46; background: #ECFDF5; border: 1px solid #A7F3D0; border-radius: 999px; padding: 5px 12px; }
.mkb-card-title { font-size: 19.5px; line-height: 1.3; font-weight: 800; margin: 0; }
.mkb-card-title a { color: #0B1F3A; }
.mkb-card-title a:hover { color: #065F46; }
.mkb-card-ex { font-size: 14.5px; line-height: 1.6; color: #475569; margin: 0; flex: 1; }
.mkb-meta { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: #64748B; }
.mkb-dot-sep { width: 4px; height: 4px; border-radius: 50%; background: #94A3B8; flex: none; }
.mkb-more { font-size: 14.5px; font-weight: 700; color: #065F46; }
.mkb-more:hover { color: #10B981; }

.mkb-wrap .navigation.pagination { margin: 36px 0 6px; text-align: center; }
.mkb-wrap .page-numbers { display: inline-block; min-width: 42px; padding: 9px 13px; margin: 0 3px; border: 1px solid #E2E8F0; border-radius: 11px; background: #ffffff; color: #0B1F3A; font-size: 14px; font-weight: 700; }
.mkb-wrap .page-numbers.current { background: #0B1F3A; border-color: #0B1F3A; color: #ffffff; }
.mkb-wrap a.page-numbers:hover { border-color: #10B981; color: #065F46; }

.mkb-empty { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 20px; padding: 44px 34px; text-align: center; }
.mkb-empty h2 { font-size: 26px; font-weight: 800; margin: 0 0 10px; }
.mkb-empty p { color: #475569; font-size: 15.5px; line-height: 1.65; max-width: 560px; margin: 0 auto 12px; }

.mkb-cta { background: #0B1F3A; border-radius: 22px; padding: 46px 34px; text-align: center; margin-top: 42px; }
.mkb-cta h2 { color: #ffffff; font-size: 28px; font-weight: 800; margin: 0 0 10px; }
.mkb-cta p { color: #CBD5E1; font-size: 15.5px; line-height: 1.65; max-width: 560px; margin: 0 auto 24px; }
.mkb-btn { display: inline-block; background: #F59E0B; color: #0B1F3A; font-size: 15.5px; font-weight: 700; padding: 14px 28px; border-radius: 999px; }
.mkb-btn:hover { background: #D97706; color: #ffffff; }

.mkb-single { max-width: 780px; margin: 0 auto; }
.mkb-back { font-size: 14px; font-weight: 700; color: #065F46; }
.mkb-back:hover { color: #10B981; }
.mkb-single-cat { margin: 20px 0 12px; }
.mkb-single-title { font-size: 38px; line-height: 1.16; font-weight: 800; margin: 0 0 14px; }
.mkb-single-meta { margin-bottom: 26px; }
.mkb-single-img { border-radius: 18px; overflow: hidden; margin-bottom: 30px; }
.mkb-single-img img { width: 100%; height: auto; display: block; }

.mkb-body { font-size: 17px; line-height: 1.78; color: #334155; }
.mkb-body p { margin: 0 0 20px; }
.mkb-body h2 { font-size: 26px; line-height: 1.25; font-weight: 800; color: #0B1F3A; margin: 38px 0 14px; }
.mkb-body h3 { font-size: 20.5px; line-height: 1.3; font-weight: 800; color: #0B1F3A; margin: 30px 0 10px; }
.mkb-body ul, .mkb-body ol { margin: 0 0 20px; padding-left: 24px; }
.mkb-body li { margin-bottom: 8px; }
.mkb-body a { color: #065F46; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mkb-body a:hover { color: #10B981; }
.mkb-body strong { color: #0B1F3A; }
.mkb-body blockquote { margin: 26px 0; padding: 18px 22px; background: #F0FDF9; border-left: 4px solid #10B981; border-radius: 0 14px 14px 0; }
.mkb-body blockquote p { margin: 0; }
.mkb-body img { max-width: 100%; height: auto; border-radius: 14px; }
.mkb-body figure { margin: 26px 0; }
.mkb-body figcaption { font-size: 13px; color: #64748B; text-align: center; margin-top: 8px; }

.mkb-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 30px 0 6px; }
.mkb-tags a { font-size: 13px; font-weight: 600; color: #475569; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 999px; padding: 6px 13px; }
.mkb-tags a:hover { color: #065F46; border-color: #10B981; }

.mkb-author { display: flex; gap: 18px; align-items: flex-start; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 18px; padding: 24px; margin-top: 28px; }
.mkb-author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.mkb-author-name { font-size: 17px; font-weight: 800; color: #0B1F3A; }
.mkb-author p { font-size: 14.5px; line-height: 1.6; color: #475569; margin: 6px 0 8px; }
.mkb-author a { font-size: 14px; font-weight: 700; color: #065F46; }

.mkb-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.mkb-pn { display: block; border: 1px solid #E2E8F0; border-radius: 16px; padding: 18px 20px; background: #ffffff; }
.mkb-pn span { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #64748B; margin-bottom: 6px; }
.mkb-pn b { font-size: 15.5px; line-height: 1.4; color: #0B1F3A; }
.mkb-pn:hover { border-color: #10B981; }
.mkb-pn-next { text-align: right; }

.mkb-more-row { margin-top: 52px; }
.mkb-more-row > h2 { font-size: 26px; font-weight: 800; text-align: center; margin: 0 0 24px; }

@media (max-width: 980px) {
  .mkb-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mkb-grid { grid-template-columns: 1fr; }
  .mkb-hero { padding: 40px 22px; }
  .mkb-hero h1 { font-size: 29px; }
  .mkb-single-title { font-size: 30px; }
  .mkb-body { font-size: 16px; }
  .mkb-author { flex-direction: column; }
  .mkb-prevnext { grid-template-columns: 1fr; }
  .mkb-pn-next { text-align: left; }
  .mkb-cta { padding: 38px 22px; }
}
