/*
Theme Name: WashroomMate
Theme URI: https://washroommate.ng/
Author: WashroomMate
Description: Presentation-only theme for the WashroomMate cleaning business in Abuja. All booking, payment and business logic lives in the WashroomMate Core plugin; this theme only lays out pages and places the plugin's shortcodes.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: washroommate
*/

/* ---------------------------------------------------------------------
   Tokens
   --------------------------------------------------------------------- */
:root {
	--wmt-ink: #102a2c;          /* deep teal ink: text, header, footer */
	--wmt-muted: #4d6466;
	--wmt-brand: #0f6e6a;        /* brand teal */
	--wmt-brand-dark: #0a5552;
	--wmt-brand-ink: #ffffff;
	--wmt-wash: #e8f3f1;         /* aqua wash backgrounds */
	--wmt-line: #cfe0dd;         /* grout lines, borders */
	--wmt-cta: #f2b53a;          /* soap-yellow call to action */
	--wmt-cta-dark: #d99a1c;
	--wmt-paper: #ffffff;
	--wmt-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
	--wmt-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wmt-max: 1180px;
	--wmt-measure: 68ch;
	--wmt-gutter: clamp(1rem, 4vw, 2rem);
	--wmt-step--1: .875rem;
	--wmt-step-0: 1.0625rem;
	--wmt-step-1: 1.25rem;
	--wmt-step-2: clamp(1.45rem, 1.2rem + 1vw, 1.75rem);
	--wmt-step-3: clamp(1.8rem, 1.4rem + 1.8vw, 2.4rem);
	--wmt-step-4: clamp(2.3rem, 1.6rem + 3.4vw, 3.9rem);
}

/* ---------------------------------------------------------------------
   Base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--wmt-body); font-size: var(--wmt-step-0); line-height: 1.6; color: var(--wmt-ink); background: var(--wmt-paper); text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--wmt-brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--wmt-brand-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--wmt-cta); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--wmt-display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--wmt-step-4); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: var(--wmt-step-3); }
h3 { font-size: var(--wmt-step-1); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 1rem; top: 1rem; z-index: 999; width: auto; height: auto; clip: auto; padding: .75rem 1rem; background: var(--wmt-paper); color: var(--wmt-ink); }
.wrap { width: 100%; max-width: var(--wmt-max); margin-inline: auto; padding-inline: var(--wmt-gutter); }

/* Buttons (shared with plugin's .wm-btn look) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.4rem; font: 600 1rem/1.2 var(--wmt-body); border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { text-decoration: none; }
.btn-cta { background: var(--wmt-cta); color: var(--wmt-ink); }
.btn-cta:hover { background: var(--wmt-cta-dark); color: var(--wmt-ink); }
.btn-outline { border-color: currentColor; color: var(--wmt-ink); background: transparent; }
.btn-outline:hover { background: var(--wmt-ink); color: #fff; border-color: var(--wmt-ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--wmt-ink); }

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--wmt-line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--wmt-ink); text-decoration: none; font-family: var(--wmt-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; }
.brand:hover { color: var(--wmt-ink); }
.brand-mark { width: 30px; height: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; background: var(--wmt-line); border-radius: 6px; flex: none; }
.brand-mark span { border-radius: 2px; background: var(--wmt-wash); }
.brand-mark span:nth-child(1) { background: var(--wmt-brand); }
.brand-mark span:nth-child(4) { background: var(--wmt-cta); }
.brand img { max-height: 44px; width: auto; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; white-space: nowrap; padding: .5rem .7rem; color: var(--wmt-ink); text-decoration: none; font-weight: 500; border-radius: 6px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { background: var(--wmt-wash); color: var(--wmt-brand-dark); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-actions .signin { white-space: nowrap; color: var(--wmt-ink); font-weight: 600; text-decoration: none; padding: .5rem; }
.header-actions .btn { white-space: nowrap; min-height: 42px; padding: .55rem 1.1rem; }
.nav-toggle { display: none; margin-left: auto; min-height: 42px; padding: .4rem .9rem; font: 600 .95rem var(--wmt-body); color: var(--wmt-ink); background: transparent; border: 1.5px solid var(--wmt-line); border-radius: 999px; cursor: pointer; }

@media (max-width: 1140px) {
	.nav-toggle { display: inline-flex; align-items: center; }
	.primary-nav, .header-actions .signin { display: none; }
	.header-actions { margin-left: 0; }
	.site-header.is-open .primary-nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--wmt-paper); border-bottom: 1px solid var(--wmt-line); padding: .5rem var(--wmt-gutter) 1rem; }
	.site-header.is-open .primary-nav ul { flex-direction: column; }
	.site-header.is-open .primary-nav a { padding: .8rem .5rem; border-bottom: 1px solid var(--wmt-wash); border-radius: 0; }
	.site-header.is-open .primary-nav .mobile-only { display: block; }
}
@media (max-width: 480px) { .header-actions .btn { padding: .5rem .85rem; font-size: .92rem; } .brand { font-size: 1.15rem; } }
.primary-nav .mobile-only { display: none; }

/* ---------------------------------------------------------------------
   Hero with the washroom-tile wall (the one bold element)
   --------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--wmt-paper); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.hero h1 { max-width: 13ch; margin-bottom: .4em; }
.hero-lede { font-size: var(--wmt-step-1); color: var(--wmt-muted); max-width: 40ch; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .98rem; }
.hero-facts li { display: flex; gap: .65rem; align-items: baseline; }
.hero-facts li::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--wmt-brand); border-radius: 2px; transform: translateY(-1px); }

.tile-wall { --cols: 6; --grout: 5px; position: relative; aspect-ratio: 1; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: var(--grout); padding: var(--grout); background: var(--wmt-line); border-radius: 18px; overflow: hidden; isolation: isolate; box-shadow: 0 30px 60px -30px rgba(16,42,44,.35); }
.tile-wall .t { position: relative; border-radius: 4px; background: #f7fbfa; transition: background-color .6s ease; transition-delay: calc(var(--c) * 90ms + 250ms); }
/* before the clean: dull, uneven tiles */
.tile-wall:not(.is-clean) .t { background: #d8dfdc; }
.tile-wall:not(.is-clean) .t:nth-child(3n) { background: #cfd7d3; }
.tile-wall:not(.is-clean) .t:nth-child(5n+1) { background: #c9d1cd; }
/* after: a clean wall with a teal border course and a single soap-yellow tile */
.tile-wall .t.teal { background: var(--wmt-brand); }
.tile-wall .t.aqua { background: var(--wmt-wash); }
.tile-wall .t.soap { background: var(--wmt-cta); }
.tile-wall .t.shine::after { content: ""; position: absolute; inset: 14% 55% 55% 14%; border-radius: 50%; background: rgba(255,255,255,.75); filter: blur(1px); opacity: 0; transition: opacity .4s ease 1.3s; }
.tile-wall.is-clean .t.shine::after { opacity: 1; }
/* the squeegee pass */
.tile-wall::after { content: ""; position: absolute; top: -10%; bottom: -10%; width: 22%; left: -30%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.85) 45%, rgba(232,243,241,.9) 55%, rgba(255,255,255,0)); transform: skewX(-12deg); z-index: 2; pointer-events: none; }
.tile-wall.is-clean::after { animation: squeegee 1.15s cubic-bezier(.55,.1,.35,1) .2s forwards; }
@keyframes squeegee { to { left: 115%; } }
.tile-wall .wall-label { position: absolute; z-index: 3; left: 50%; bottom: 7%; transform: translateX(-50%); padding: .55rem 1rem; background: var(--wmt-ink); color: #fff; border-radius: 999px; font-size: .9rem; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .4s ease 1.5s; }
.tile-wall.is-clean .wall-label { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
	.tile-wall .t, .tile-wall .t.shine::after, .tile-wall .wall-label { transition: none !important; }
	.tile-wall::after { display: none; }
}
@media (max-width: 860px) {
	.hero .wrap { grid-template-columns: 1fr; }
	.tile-wall { max-width: 420px; width: 100%; justify-self: center; --cols: 6; }
	.hero-visual { order: -1; }
	.hero h1 { max-width: 16ch; }
}
@media (max-width: 860px) { .hero-visual { order: 0; } }

/* ---------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------- */
.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band-wash { background: var(--wmt-wash); }
.band-ink { background: var(--wmt-ink); color: #e9f2f1; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink a:not(.btn) { color: var(--wmt-cta); }
.band-head { max-width: 46rem; margin-bottom: 2.25rem; }
.band-head p { color: var(--wmt-muted); font-size: var(--wmt-step-1); margin: 0; }
.band-ink .band-head p { color: #b9cfcd; }
.band-foot { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 5px solid var(--wmt-line); }
.steps li { counter-increment: step; position: relative; padding: 1.5rem 1.25rem 0 0; }
.steps li::before { content: counter(step); position: absolute; top: -1.15rem; left: 0; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; background: var(--wmt-brand); color: #fff; font: 700 1rem var(--wmt-display); border-radius: 6px; }
.steps h3 { margin-top: .75rem; }
.steps p { color: var(--wmt-muted); margin: 0; font-size: 1rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; border-top: 0; border-left: 5px solid var(--wmt-line); padding-left: 1.5rem; row-gap: 1.75rem; } .steps li { padding: 0; } .steps li::before { left: -2.65rem; top: 0; } .steps h3 { margin-top: 0; } }

/* Business split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .8rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 4px; background: var(--wmt-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.band-ink .check-list li::before { background-color: var(--wmt-cta); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23102a2c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.sector-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding: 5px; background: rgba(255,255,255,.12); border-radius: 14px; }
.sector-grid div { background: rgba(255,255,255,.06); padding: 1.15rem 1.2rem; border-radius: 6px; }
.sector-grid strong { display: block; color: #fff; font-family: var(--wmt-display); font-size: 1.1rem; margin-bottom: .2rem; }
.sector-grid span { color: #b9cfcd; font-size: .95rem; }

/* Areas */
.areas-block .wm-areas { columns: 3 13rem; column-gap: 2rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.areas-block .wm-areas li { break-inside: avoid; padding: .35rem 0; border-bottom: 1px solid var(--wmt-line); }
.areas-block h3 { display: none; }

/* CTA band */
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { margin: 0; max-width: 22ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------------------------------------------------------------------
   Inner pages
   --------------------------------------------------------------------- */
.page-hero { background: var(--wmt-wash); border-bottom: 5px solid var(--wmt-line); position: relative; overflow: hidden; }
.page-hero .wrap { padding-block: clamp(2rem, 5vw, 3.5rem); position: relative; }
.page-hero h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); max-width: 22ch; margin: 0; }
.page-hero .lede { margin: .75rem 0 0; color: var(--wmt-muted); font-size: var(--wmt-step-1); max-width: 52ch; }
.page-hero::after { content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 260px; background-image: linear-gradient(var(--wmt-line) 4px, transparent 4px), linear-gradient(90deg, var(--wmt-line) 4px, transparent 4px); background-size: 44px 44px; opacity: .7; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
@media (max-width: 700px) { .page-hero::after { width: 120px; opacity: .45; } }
.breadcrumbs { font-size: .9rem; margin-bottom: .6rem; color: var(--wmt-muted); }
.breadcrumbs a { color: var(--wmt-muted); }

.entry { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }
.entry-content { max-width: var(--wmt-measure); }
.entry-wide .entry-content { max-width: none; }
.entry-content > * + h2 { margin-top: 2.2em; }
.entry-content > * + h3 { margin-top: 1.6em; }
.entry-content h2 { font-size: var(--wmt-step-2); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.25em; }
.entry-content li { margin-bottom: .35em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .97rem; }
.entry-content th, .entry-content td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--wmt-line); vertical-align: top; }
.entry-content th { background: var(--wmt-wash); font-weight: 600; }
.entry-content blockquote { margin: 1.5em 0; padding: .25em 0 .25em 1.25em; border-left: 4px solid var(--wmt-brand); }
.entry-content .lead { font-size: var(--wmt-step-1); color: var(--wmt-muted); }
.entry-content .callout { padding: 1.1rem 1.25rem; background: var(--wmt-wash); border-radius: 10px; border-left: 5px solid var(--wmt-brand); margin: 1.5em 0; }
.entry-content .callout p:last-child { margin: 0; }
.entry-content .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5em 0; }
.entry-content details { border: 1px solid var(--wmt-line); border-radius: 10px; padding: 0 1.1rem; margin-bottom: .6rem; background: var(--wmt-paper); }
.entry-content summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style-position: outside; }
.entry-content details[open] summary { border-bottom: 1px solid var(--wmt-wash); margin-bottom: .75rem; }
.entry-content details > *:last-child { margin-bottom: 1rem; }
.updated { font-size: .9rem; color: var(--wmt-muted); }

/* Page with a side column (service pages) */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.with-aside .entry-content { max-width: var(--wmt-measure); }
.aside-card { position: sticky; top: 96px; padding: 1.5rem; border: 1px solid var(--wmt-line); border-radius: 14px; background: var(--wmt-paper); }
.aside-card h2 { font-size: 1.25rem; }
.aside-card p { color: var(--wmt-muted); font-size: .98rem; }
.aside-card .btn { width: 100%; margin-bottom: .6rem; }
@media (max-width: 960px) { .with-aside { grid-template-columns: 1fr; } .aside-card { position: static; } }

/* Plugin widget pages: give the booking form room */
.entry-tool .entry-content { max-width: 860px; }

/* Child-page cards (services index) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.card-grid a { display: block; height: 100%; padding: 1.25rem 1.35rem; border: 1px solid var(--wmt-line); border-radius: 12px; text-decoration: none; color: var(--wmt-ink); background: var(--wmt-paper); transition: border-color .15s; }
.card-grid a:hover { border-color: var(--wmt-brand); }
.card-grid strong { display: block; font-family: var(--wmt-display); font-size: 1.2rem; margin-bottom: .3rem; }
.card-grid span { color: var(--wmt-muted); font-size: .97rem; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer { background: var(--wmt-ink); color: #b9cfcd; font-size: .97rem; }
.site-footer a { color: #e9f2f1; text-decoration: none; }
.site-footer a:hover { color: var(--wmt-cta); text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-block: 3.5rem 2.5rem; }
.footer-top h2 { font-size: 1rem; color: #fff; margin-bottom: .9rem; font-family: var(--wmt-body); letter-spacing: 0; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-brand .brand { color: #fff; margin-bottom: .75rem; }
.footer-brand .brand-mark { background: rgba(255,255,255,.18); }
.footer-brand .brand-mark span { background: rgba(255,255,255,.12); }
.footer-brand .brand-mark span:nth-child(1) { background: #3fa39d; }
.footer-brand .brand-mark span:nth-child(4) { background: var(--wmt-cta); }
.footer-brand p { max-width: 32ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .88rem; }
.site-footer .wm-contact-list { color: #b9cfcd; list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer .wm-contact-list strong { color: #fff; font-weight: 600; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* Sticky mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 700px) {
	.mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--wmt-paper); border-top: 1px solid var(--wmt-line); box-shadow: 0 -6px 20px rgba(16,42,44,.08); }
	.mobile-bar .btn { flex: 1; min-height: 46px; padding-inline: .5rem; }
	body.has-mobile-bar { padding-bottom: 76px; }
}

/* 404 */
.not-found { text-align: left; padding-block: 5rem; }

/* ---------------------------------------------------------------------
   Plugin widgets: align their buttons with the theme
   --------------------------------------------------------------------- */
.wm-btn { font-family: var(--wmt-body); border-radius: 999px !important; }
.wm-service-card h3 { font-family: var(--wmt-display); }

/* App page (full-screen operations app) */
body.wmt-app-page { background: #f5f9f8; }
body.wmt-app-page .wm-gate { max-width: 460px; margin: 4rem auto; padding: 2rem; }
.app-gate-brand { display: flex; justify-content: center; padding-top: 3rem; }

@media print {
	.site-header, .site-footer, .mobile-bar, .page-hero::after { display: none !important; }
}

/* Phones: the bottom bar carries "Book a cleaning", so the header keeps only brand + menu. */
@media (max-width: 560px) { .header-actions { display: none; } }
