/*
Theme Name: salonbooking
Theme URI: https://salonbooking.ke
Author: salonbooking.ke
Description: Phone-first theme for salonbooking.ke. Pairs with the salonbooking Core plugin (search, salon pages, M-Pesa booking, gift vouchers, salon dashboard). Bottom tab bar on phones, centred column on desktop, light and dark mode.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: salonbooking-theme
*/

:root{
	--bg:#F5F3F7; --surface:#FFFFFF; --ink:#1E1630; --muted:#6B6380; --line:#E3DEEB;
	--accent:#C2185B; --accent-ink:#FFFFFF; --accent-soft:#FBE4EE;
	--display:"Bricolage Grotesque","Trebuchet MS",system-ui,sans-serif;
	--body:"Figtree",system-ui,-apple-system,"Segoe UI",sans-serif;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
	--bg:#141019; --surface:#1E1826; --ink:#F1ECF7; --muted:#A59DB5; --line:#332B40;
	--accent:#F0609A; --accent-ink:#1A0B12; --accent-soft:#3A1828; color-scheme:dark}}
:root[data-theme="dark"]{
	--bg:#141019; --surface:#1E1826; --ink:#F1ECF7; --muted:#A59DB5; --line:#332B40;
	--accent:#F0609A; --accent-ink:#1A0B12; --accent-soft:#3A1828; color-scheme:dark}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);font-size:15px;line-height:1.5}
img{max-width:100%;height:auto}
a{color:var(--accent)}
h1,h2,h3,h4{font-family:var(--display);letter-spacing:-.01em;line-height:1.15;text-wrap:balance}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.skip-link{position:absolute;left:-9999px;top:8px;z-index:100;background:var(--ink);color:var(--bg);padding:8px 12px;border-radius:8px}
.skip-link:focus{left:16px}

.site{max-width:760px;margin:0 auto;min-height:100vh;padding:12px max(16px,env(safe-area-inset-right,0px)) 100px max(16px,env(safe-area-inset-left,0px))}
.site-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:6px 16px}
.brand{font-family:var(--display);font-weight:800;font-size:22px;letter-spacing:-.02em;color:var(--ink);text-decoration:none}
.brand span{color:var(--accent)}
.brand img{max-height:40px;width:auto;display:block}
.top-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:16px}
.top-nav a{color:var(--ink);text-decoration:none;font-weight:600;font-size:14px}
.top-nav a:hover{color:var(--accent)}
.top-nav .cta a{background:var(--accent);color:var(--accent-ink);padding:8px 12px;border-radius:10px}

.entry{display:flex;flex-direction:column;gap:14px}
.entry-title{font-size:28px;margin:0}
.entry-content>*:first-child{margin-top:0}
.entry-content p{margin:0 0 1em}

.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:50;background:var(--surface);border-top:1px solid var(--line);padding:0 max(16px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(16px,env(safe-area-inset-left,0px))}
.tabbar ul{max-width:560px;margin:0 auto;padding:0;list-style:none;display:grid;grid-template-columns:repeat(4,1fr)}
.tabbar a{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:12px;font-weight:600;color:var(--muted);text-decoration:none;padding:9px 4px 10px}
.tabbar a svg{width:22px;height:22px}
.tabbar a[aria-current="page"]{color:var(--accent)}

.site-footer{margin-top:40px;padding-top:16px;border-top:1px solid var(--line);font-size:13px;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px 16px;justify-content:space-between}
.site-footer a{color:var(--muted)}
.site-footer ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:12px}

.posts{display:flex;flex-direction:column;gap:12px}
.post-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px}
.post-card h2{margin:0 0 6px;font-size:20px}
.post-card a{color:var(--ink);text-decoration:none}
.pagination{display:flex;gap:8px;justify-content:center}

@media (min-width:900px){
	.site{padding-bottom:40px}
	.tabbar{display:none}
}
@media (max-width:899px){
	.top-nav{display:none}
}
