/* Zainub Mudhoo Physiotherapy theme styles */

/* ---------- Base ---------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Mulish", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: #13262B;
  background: #fff;
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.18; color: #13262B; letter-spacing: -0.01em; }
a { color: #0A8597; }
a:hover { color: #074E5A; }
img { max-width: 100%; height: auto; }
.zmpt-container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 1000; background: #0DAAC0; color: #fff; padding: .6rem 1rem; border-radius: 6px; }

/* ---------- Buttons ---------- */
.zmpt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: #0A8597; color: #fff; font-weight: 700; text-decoration: none;
  padding: .8rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer; font-size: 1rem;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease; line-height: 1;
}
.zmpt-btn:hover { background: #074E5A; color: #fff; transform: translateY(-1px); }
.zmpt-btn--accent { background: #0DAAC0; }
.zmpt-btn--accent:hover { background: #0A8597; }
.zmpt-btn--whatsapp { background: #074E5A; }
.zmpt-btn--whatsapp:hover { background: #052f37; }
.zmpt-btn--outline { background: transparent; color: #0A8597; border: 1px solid rgba(13,170,192,.5); }
.zmpt-btn--outline:hover { background: #E2F5F8; color: #074E5A; }

/* ---------- Top bar ---------- */
.zmpt-topbar { background: #0B1417; color: rgba(255,255,255,.72); font-size: .8rem; }
.zmpt-topbar__inner { display: flex; justify-content: space-between; align-items: center; padding-top: .45rem; padding-bottom: .45rem; }
.zmpt-topbar a { color: rgba(255,255,255,.78); text-decoration: none; }
.zmpt-topbar a:hover { color: #fff; }
.zmpt-topbar__right { display: flex; gap: .8rem; align-items: center; }
.zmpt-sep { opacity: .4; }
@media (max-width: 780px) { .zmpt-topbar { display: none; } }

/* ---------- Header ---------- */
.zmpt-header { position: sticky; top: 0; z-index: 100; background: #11202A; transition: box-shadow .2s ease, background .2s ease; }
.zmpt-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.28); }
.zmpt-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: .7rem; padding-bottom: .7rem; }
.zmpt-branding img, .custom-logo { max-height: 56px; width: auto; display: block; }
.zmpt-logo-fallback { display: inline-flex; }

.zmpt-nav { display: flex; align-items: center; gap: 1.25rem; }
.zmpt-menu { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.zmpt-menu li { position: relative; }
.zmpt-menu > li > a { display: block; color: #EAF2F4; text-decoration: none; font-weight: 600; font-size: .95rem; padding: .55rem .8rem; border-radius: 999px; transition: background .15s ease, color .15s ease; }
.zmpt-menu > li > a:hover { background: rgba(13,170,192,.18); color: #fff; }
.zmpt-menu .sub-menu { list-style: none; margin: 0; padding: .4rem; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border: 1px solid #e4ecee; border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.18); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .16s ease; z-index: 50; }
.zmpt-menu li.menu-item-has-children:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.zmpt-menu .sub-menu a { display: block; color: #2c4248; text-decoration: none; padding: .5rem .7rem; border-radius: 8px; font-size: .92rem; }
.zmpt-menu .sub-menu a:hover { background: #E2F5F8; color: #074E5A; }
.zmpt-menu .menu-item-has-children > a::after { content: "\25BE"; font-size: .7em; margin-left: .35em; opacity: .7; }

.zmpt-nav__cta { display: flex; align-items: center; gap: .85rem; }
.zmpt-phone { color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; }
.zmpt-phone:hover { color: #6FCFDD; }

.zmpt-nav-toggle { display: none; background: transparent; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.zmpt-nav-toggle__bar, .zmpt-nav-toggle__bar::before, .zmpt-nav-toggle__bar::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: .2s; }
.zmpt-nav-toggle__bar { top: 21px; }
.zmpt-nav-toggle__bar::before { top: -7px; }
.zmpt-nav-toggle__bar::after { top: 7px; }

@media (max-width: 980px) {
  .zmpt-nav-toggle { display: block; }
  .zmpt-nav { position: fixed; inset: 0 0 0 auto; width: min(86%, 360px); background: #11202A; flex-direction: column; align-items: stretch; gap: 0; padding: 5rem 1.25rem 2rem; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .zmpt-nav.is-open { transform: translateX(0); box-shadow: -20px 0 50px rgba(0,0,0,.4); }
  .zmpt-menu { flex-direction: column; gap: .1rem; }
  .zmpt-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: rgba(255,255,255,.06); display: none; }
  .zmpt-menu li.is-expanded > .sub-menu { display: block; }
  .zmpt-menu .sub-menu a { color: #cfe0e4; }
  .zmpt-menu .sub-menu a:hover { background: rgba(13,170,192,.2); color: #fff; }
  .zmpt-nav__cta { flex-direction: column; align-items: stretch; gap: .6rem; margin-top: 1rem; }
  .zmpt-phone { padding: .5rem 0; }
  body.zmpt-nav-open { overflow: hidden; }
}

/* ---------- Page content / blocks ---------- */
.zmpt-main--page .entry-content > * { margin-top: 0; margin-bottom: 0; }
.entry-content { overflow: hidden; }

/* Constrained inner width for core blocks */
.entry-content > .wp-block-group:not(.alignfull) > .wp-block-group__inner-container,
.entry-content > p, .entry-content > h2, .entry-content > h3, .entry-content > ul, .entry-content > ol {
  max-width: 1200px; margin-left: auto; margin-right: auto;
}

/* Eyebrow label */
.zmpt-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 800; color: #0A8597; }
.zmpt-hero .zmpt-eyebrow { color: #6FCFDD; }

/* Hero */
.zmpt-hero { background: linear-gradient(135deg, #0A8597 0%, #074E5A 100%); color: #fff; padding: 4.5rem 1.5rem; border-radius: 0; }
.zmpt-hero :is(h1,h2,h3) { color: #fff; }
.zmpt-hero p { color: rgba(255,255,255,.9); }
.zmpt-hero .zmpt-lead { font-size: 1.2rem; }

/* Section helpers */
.zmpt-section { padding: 3.5rem 1.25rem; }
.zmpt-section--sand { background: #F4F7F8; }
.zmpt-section--pale { background: #E2F5F8; }
.zmpt-section--ink { background: #11202A; color: #fff; }
.zmpt-section--ink :is(h1,h2,h3) { color: #fff; }
.zmpt-section--ink p { color: rgba(255,255,255,.88); }
.zmpt-lead { font-size: 1.2rem; color: #44565B; }

/* Cards */
.zmpt-card { background: #fff; border: 1px solid #e4ecee; border-radius: 18px; padding: 1.6rem; height: 100%; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.zmpt-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(11,20,23,.1); border-color: rgba(13,170,192,.4); }
.zmpt-card h3, .zmpt-card h4 { margin-top: 0; }

/* FAQ details */
.entry-content .wp-block-details { background: #fff; border: 1px solid #e4ecee; border-radius: 12px; padding: 1rem 1.2rem; margin: 0 auto .7rem; max-width: 1200px; }
.entry-content .wp-block-details summary { font-weight: 700; cursor: pointer; color: #13262B; }
.entry-content .wp-block-details[open] summary { color: #0A8597; margin-bottom: .5rem; }

/* Buttons block spacing */
.entry-content .wp-block-buttons { gap: .8rem; }

/* Map embed */
.zmpt-map iframe, .wp-block-embed iframe { width: 100%; border: 0; border-radius: 16px; min-height: 320px; }

/* ---------- CTA band ---------- */
.zmpt-cta-band { background: linear-gradient(135deg, #0A8597 0%, #074E5A 100%); color: #fff; padding: 3rem 1.25rem; }
.zmpt-cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.zmpt-cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.zmpt-cta-band p { margin: 0; color: rgba(255,255,255,.85); }
.zmpt-cta-band__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.zmpt-cta-band .zmpt-btn--accent { background: #0DAAC0; }
.zmpt-cta-band .zmpt-btn--whatsapp { background: rgba(255,255,255,.14); }

/* ---------- Footer ---------- */
.zmpt-footer { background: #0B1417; color: rgba(255,255,255,.72); }
.zmpt-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 3.5rem 1.25rem; }
.zmpt-footer h3 { color: #fff; font-size: 1.05rem; margin: 0 0 1rem; }
.zmpt-footer ul { list-style: none; margin: 0; padding: 0; }
.zmpt-footer li { margin-bottom: .5rem; }
.zmpt-footer a { color: rgba(255,255,255,.72); text-decoration: none; font-size: .92rem; }
.zmpt-footer a:hover { color: #6FCFDD; }
.zmpt-footer__contact li { color: rgba(255,255,255,.72); font-size: .92rem; }
.zmpt-footer .zmpt-btn--whatsapp { margin-top: 1rem; background: #0A8597; }
.zmpt-footer__bar { border-top: 1px solid rgba(255,255,255,.1); }
.zmpt-footer__bar-inner { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.25rem; font-size: .78rem; color: rgba(255,255,255,.55); flex-wrap: wrap; }
@media (max-width: 880px) { .zmpt-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .zmpt-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Sticky mobile CTA ---------- */
.zmpt-sticky-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; gap: .5rem; padding: .5rem; background: rgba(17,32,42,.97); backdrop-filter: blur(6px); }
.zmpt-sticky-cta a { flex: 1; text-align: center; padding: .7rem; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; }
.zmpt-sticky-cta a:nth-child(1) { background: #0A8597; }
.zmpt-sticky-cta a:nth-child(2) { background: #074E5A; }
.zmpt-sticky-cta a:nth-child(3) { background: #0DAAC0; }
@media (max-width: 980px) { .zmpt-sticky-cta { display: flex; } body { padding-bottom: 64px; } }

/* ---------- Blog ---------- */
.zmpt-blog-head { padding: 2.5rem 1.25rem 0; }
.zmpt-page-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem); }
.zmpt-with-sidebar { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 2.5rem; padding-top: 2rem; padding-bottom: 3.5rem; }
.zmpt-posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.zmpt-post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.zmpt-post-card__media { display: block; aspect-ratio: 16/9; background: linear-gradient(135deg,#E2F5F8,#6FCFDD); overflow: hidden; }
.zmpt-post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.zmpt-post-card__placeholder { display: block; width: 100%; height: 100%; }
.zmpt-post-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.zmpt-post-card__title { font-size: 1.25rem; margin: .4rem 0 .5rem; line-height: 1.25; }
.zmpt-post-card__title a { color: #13262B; text-decoration: none; }
.zmpt-post-card__title a:hover { color: #0A8597; }
.zmpt-post-card__excerpt { color: #44565B; font-size: .95rem; flex: 1; }
.zmpt-readmore { font-weight: 700; color: #0A8597; text-decoration: none; margin-top: .8rem; }
.zmpt-sidebar .widget { background: #F4F7F8; border-radius: 14px; padding: 1.3rem; margin-bottom: 1.5rem; }
.zmpt-sidebar .widget-title { font-size: 1.05rem; margin-top: 0; }
@media (max-width: 900px) { .zmpt-with-sidebar { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .zmpt-posts-grid { grid-template-columns: 1fr; } }

/* Single post readable width */
.zmpt-single .entry-content { max-width: 760px; margin: 0 auto; }
.zmpt-single .entry-content > * { margin-left: auto; margin-right: auto; }
.zmpt-entry-header { max-width: 760px; margin: 1rem auto 1.2rem; }
.zmpt-single .entry-title { font-size: clamp(2rem,1.4rem + 2.4vw,3rem); }
.zmpt-meta { color: #6b7c80; font-size: .9rem; }
.zmpt-featured { max-width: 1000px; margin: 0 auto 2rem; }
.zmpt-featured img { width: 100%; border-radius: 18px; }

/* 404 / search */
.zmpt-404 { padding: 4rem 1.25rem; text-align: center; max-width: 640px; margin: 0 auto; }
.zmpt-searchform { display: flex; gap: .5rem; margin: 1rem 0; }
.zmpt-searchform .search-field { flex: 1; padding: .7rem 1rem; border: 1px solid #d6e0e2; border-radius: 999px; }

/* Pagination */
.wp-block-query-pagination, .navigation.pagination { margin-top: 2.5rem; }
.navigation.pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.navigation.pagination a, .navigation.pagination span { padding: .5rem .85rem; border-radius: 8px; background: #F4F7F8; text-decoration: none; color: #0A8597; }
.navigation.pagination .current { background: #0DAAC0; color: #fff; }

/* Comments */
.zmpt-comments { max-width: 760px; margin: 2.5rem auto; }

.zmpt-credit a { color: #6FCFDD; text-decoration: none; }
.zmpt-credit a:hover { color: #fff; text-decoration: underline; }
