/*
Theme Name: Mohalla Verified
Theme URI: https://example.com/
Author: Your Name
Description: A trust-first, mobile-friendly theme for a verified local services classifieds site (maid, cook, tutor, electrician, plumber and more). Works with the Mohalla Verified Services plugin.
Version: 1.1.0
Requires at least: 5.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: mvh
*/

:root{
  --mvh-accent:#0a7a3d;
  --mvh-navy:#12263f;
  --mvh-bg:#ffffff;
  --mvh-alt:#f6f4ee;
  --mvh-surface:#ffffff;
  --mvh-text:#1d2433;
  --mvh-muted:#667085;
  --mvh-border:#e4e1d8;
  --mvh-radius:14px;
}
@media (prefers-color-scheme:dark){
  :root{--mvh-bg:#14171d;--mvh-alt:#1a1e26;--mvh-surface:#1f242d;--mvh-text:#e8eaf0;--mvh-muted:#a3aab8;--mvh-border:#323844}
}

*,*:before,*:after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--mvh-bg);color:var(--mvh-text);font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans","Noto Sans Devanagari",Mangal,"Helvetica Neue",Arial,sans-serif;font-size:16px;line-height:1.6;-webkit-text-size-adjust:100%}
img{max-width:100%;height:auto;display:block}
a{color:var(--mvh-accent)}
h1,h2,h3,h4{line-height:1.25;margin:0 0 .5em}
p{margin:0 0 1em}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mvh-skip{position:absolute;left:-9999px}
.mvh-skip:focus{left:8px;top:8px;background:#fff;color:#000;padding:8px 12px;z-index:999}

.mvh-container{width:100%;max-width:1120px;margin:0 auto;padding:0 18px}
.mvh-narrow{max-width:820px}
.mvh-section{padding:48px 0}
.mvh-alt{background:var(--mvh-alt)}
.mvh-center{text-align:center}
.mvh-muted{color:var(--mvh-muted);font-size:14px}
.mvh-h2{font-size:clamp(22px,3vw,30px);text-align:center;margin-bottom:24px}

/* Buttons */
.mvh-btn{display:inline-block;background:var(--mvh-accent);color:#fff!important;border:2px solid var(--mvh-accent);border-radius:10px;padding:11px 20px;font-size:15px;font-weight:600;text-decoration:none;cursor:pointer;line-height:1.2;font-family:inherit}
.mvh-btn:hover{filter:brightness(1.08)}
.mvh-btn-sm{padding:8px 14px;font-size:14px}
.mvh-btn-ghost{background:transparent;color:var(--mvh-accent)!important}
.mvh-btn-light{background:#fff;border-color:#fff;color:var(--mvh-navy)!important}
.mvh-wa{background:#1fa855;border-color:#1fa855}

/* Header */
.mvh-header{position:sticky;top:0;z-index:100;background:var(--mvh-surface);border-bottom:1px solid var(--mvh-border)}
.mvh-header.is-stuck{box-shadow:0 2px 12px rgba(16,24,40,.08)}
.mvh-header-in{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px}
.mvh-brand a{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--mvh-text);font-weight:800;font-size:19px}
.mvh-brand img{max-height:44px;width:auto}
.mvh-logo-mark{font-size:24px}
.mvh-toggle{display:none;background:none;border:1px solid var(--mvh-border);border-radius:8px;font-size:22px;line-height:1;padding:6px 12px;color:var(--mvh-text);cursor:pointer}
.mvh-nav{display:flex;align-items:center;gap:20px}
.mvh-menu{list-style:none;display:flex;gap:18px;margin:0;padding:0}
.mvh-menu a{text-decoration:none;color:var(--mvh-text);font-weight:600;font-size:15px}
.mvh-menu a:hover,.mvh-menu .current-menu-item>a{color:var(--mvh-accent)}
.mvh-nav-cta{display:flex;gap:8px}

/* Hero */
.mvh-hero{background:linear-gradient(135deg,var(--mvh-navy),#0d4d3a);color:#fff;padding:64px 0 72px;text-align:center}
.mvh-hero h1{font-size:clamp(28px,5vw,46px);max-width:800px;margin:0 auto 14px}
.mvh-eyebrow{display:inline-block;background:rgba(255,255,255,.14);padding:6px 14px;border-radius:999px;font-size:14px;margin-bottom:18px}
.mvh-lead{max-width:640px;margin:0 auto 28px;font-size:18px;opacity:.92}
.mvh-search{display:flex;flex-wrap:wrap;gap:10px;max-width:760px;margin:0 auto;background:var(--mvh-surface);padding:12px;border-radius:16px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.mvh-search select,.mvh-search input[type=search]{flex:1 1 180px;min-width:0;padding:13px 12px;border:1px solid var(--mvh-border);border-radius:10px;font-size:15px;background:var(--mvh-bg);color:var(--mvh-text);font-family:inherit}
.mvh-search .mvh-btn{flex:0 0 auto;padding:13px 26px}

/* Service tiles */
.mvh-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:14px}
.mvh-tile{display:flex;flex-direction:column;align-items:center;gap:8px;padding:20px 10px;background:var(--mvh-surface);border:1px solid var(--mvh-border);border-radius:var(--mvh-radius);text-decoration:none;color:var(--mvh-text);font-weight:600;text-align:center;transition:transform .15s,box-shadow .15s}
.mvh-tile:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(16,24,40,.1)}
.mvh-tile-icon{font-size:32px;line-height:1}

/* Steps & trust */
.mvh-steps,.mvh-trust{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.mvh-step,.mvh-trust>div{background:var(--mvh-surface);border:1px solid var(--mvh-border);border-radius:var(--mvh-radius);padding:22px}
.mvh-step h3{font-size:18px}
.mvh-step p,.mvh-trust p{margin:0;color:var(--mvh-muted);font-size:15px}
.mvh-num{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--mvh-accent);color:#fff;font-weight:700;margin-bottom:10px}
.mvh-trust strong{display:block;margin-bottom:4px;font-size:17px}

/* Cards */
.mvh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}
.mvh-card{background:var(--mvh-surface);border:1px solid var(--mvh-border);border-radius:var(--mvh-radius);overflow:hidden;display:flex;flex-direction:column}
.mvh-card-photo{display:block;aspect-ratio:4/3;background:var(--mvh-alt);overflow:hidden}
.mvh-card-photo img{width:100%;height:100%;object-fit:cover}
.mvh-initial{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:120px;font-size:56px;font-weight:700;color:#98a2b3}
.mvh-card-body{padding:14px;display:flex;flex-direction:column;gap:4px;flex:1}
.mvh-card-body h3{font-size:18px;margin:0}
.mvh-card-body h3 a{color:inherit;text-decoration:none}
.mvh-card-body p{margin:0}
.mvh-card-body .mvh-btn{margin-top:auto;align-self:flex-start}
.mvh-svc{font-weight:600;color:var(--mvh-accent)}
.mvh-badge{display:inline-block;align-self:flex-start;background:var(--mvh-accent);color:#fff;font-size:12px;font-weight:600;padding:3px 10px;border-radius:999px}
.mvh-stars{color:#f59e0b}
.mvh-stars span{color:var(--mvh-muted);font-size:13px}

/* CTA cards */
.mvh-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}
.mvh-cta-card{background:var(--mvh-alt);border:1px solid var(--mvh-border);border-radius:var(--mvh-radius);padding:28px}
.mvh-cta-card h3{font-size:21px}
.mvh-cta-dark{background:var(--mvh-navy);border-color:var(--mvh-navy);color:#fff}

/* Inner pages */
.mvh-pagehead{background:var(--mvh-alt);border-bottom:1px solid var(--mvh-border);padding:34px 0}
.mvh-pagehead h1{font-size:clamp(24px,4vw,36px);margin:0}
.mvh-pagehead p{margin:6px 0 0}
.mvh-content{font-size:17px}
.mvh-content>*:last-child{margin-bottom:0}
.mvh-hero-img{margin-bottom:24px;border-radius:var(--mvh-radius);overflow:hidden}
.mvh-posts{display:grid;gap:22px}
.mvh-post{display:grid;grid-template-columns:200px 1fr;gap:18px}
.mvh-post h2{font-size:22px}
.mvh-post h2 a{color:inherit;text-decoration:none}
.mvh-post-thumb img{border-radius:10px;width:100%;aspect-ratio:4/3;object-fit:cover}
.navigation.pagination{margin-top:28px;text-align:center}
.page-numbers{display:inline-block;padding:6px 12px;border:1px solid var(--mvh-border);border-radius:6px;margin:0 2px;text-decoration:none}
.page-numbers.current{background:var(--mvh-accent);border-color:var(--mvh-accent);color:#fff}

/* Worker profile */
.mvh-back{text-decoration:none;font-weight:600}
.mvh-worker{display:grid;grid-template-columns:300px 1fr;gap:28px;align-items:start}
.mvh-worker-side{position:sticky;top:84px;background:var(--mvh-surface);border:1px solid var(--mvh-border);border-radius:var(--mvh-radius);padding:16px}
.mvh-worker-side h1{font-size:24px;margin:12px 0 6px}
.mvh-worker-photo{border-radius:12px;overflow:hidden;background:var(--mvh-alt);aspect-ratio:1/1}
.mvh-worker-photo img{width:100%;height:100%;object-fit:cover}

/* Footer */
.mvh-footer{background:var(--mvh-navy);color:#d6dbe6;padding:44px 0 0;margin-top:0}
.mvh-footer a{color:#fff}
.mvh-footer h4{color:#fff;font-size:17px}
.mvh-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:28px}
.mvh-footer-menu{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.mvh-copy{border-top:1px solid rgba(255,255,255,.14);margin-top:28px;padding-top:16px;padding-bottom:20px;font-size:14px;opacity:.8}
.mvh-float-wa{position:fixed;right:16px;bottom:16px;width:54px;height:54px;border-radius:50%;background:#1fa855;color:#fff;display:flex;align-items:center;justify-content:center;font-size:26px;text-decoration:none;box-shadow:0 6px 18px rgba(0,0,0,.3);z-index:90}

/* Plugin integration: use the theme colour inside plugin screens */
body .mvs-wrap{--mvs-accent:var(--mvh-accent);--mvs-green:var(--mvh-accent);--mvs-bg:var(--mvh-surface);--mvs-border:var(--mvh-border);--mvs-muted:var(--mvh-muted);color:var(--mvh-text)}
body .mvs-card,body .mvs-box{background:var(--mvh-surface)}
body .mvs-form input[type=text],body .mvs-form input[type=tel],body .mvs-form input[type=number],body .mvs-form input[type=file],body .mvs-form select,body .mvs-form textarea,body .mvs-filters input[type=search],body .mvs-filters select{background:var(--mvh-bg);color:var(--mvh-text)}

/* Mobile */
@media (max-width:860px){
  .mvh-worker{grid-template-columns:1fr}
  .mvh-worker-side{position:static;display:grid;grid-template-columns:110px 1fr;gap:4px 14px;align-items:center}
  .mvh-worker-photo{grid-row:span 4;aspect-ratio:1/1}
  .mvh-worker-side h1{margin:0}
  .mvh-footer-grid{grid-template-columns:1fr}
}
@media (max-width:760px){
  .mvh-toggle{display:block}
  .mvh-nav{display:none;position:absolute;top:100%;left:0;right:0;background:var(--mvh-surface);border-bottom:1px solid var(--mvh-border);flex-direction:column;align-items:stretch;gap:12px;padding:16px 18px}
  .mvh-header.is-open .mvh-nav{display:flex}
  .mvh-menu{flex-direction:column;gap:2px}
  .mvh-menu a{display:block;padding:10px 0}
  .mvh-nav-cta{flex-direction:column}
  .mvh-nav-cta .mvh-btn{text-align:center}
  .mvh-hero{padding:44px 0 52px}
  .mvh-search .mvh-btn{flex:1 1 100%}
  .mvh-post{grid-template-columns:1fr}
  .mvh-section{padding:36px 0}
}
@media (max-width:480px){
  .mvh-grid{grid-template-columns:1fr}
  .mvh-tiles{grid-template-columns:repeat(3,1fr)}
  .mvh-tile{padding:14px 6px;font-size:13px}
}


/* ---- v1.1: language switch, society page, bottom navigation ---- */
.mvh-lang{display:inline-block;border:1px solid var(--mvh-border);border-radius:999px;padding:6px 12px;font-size:14px;font-weight:700;text-decoration:none;color:var(--mvh-text);background:var(--mvh-surface);line-height:1.2}
.mvh-lang-m{display:none}
.mvh-bottom{display:none}
.mvh-hero-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:18px}
.mvh-count-pill{display:inline-block;background:rgba(255,255,255,.16);padding:6px 14px;border-radius:999px;font-size:15px;margin:0}
.mvh-hero-society{background:linear-gradient(135deg,#0d4d3a,var(--mvh-navy))}
html{scroll-padding-top:76px}

@media (max-width:760px){
  .mvh-lang-m{display:inline-block;margin-left:auto}
  .mvh-lang-d{display:none}
  .mvh-has-bottom{padding-bottom:calc(68px + env(safe-area-inset-bottom,0px))}
  .mvh-has-bottom .mvh-float-wa{display:none}
  .mvh-bottom{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:110;background:var(--mvh-surface);border-top:1px solid var(--mvh-border);padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px));box-shadow:0 -4px 16px rgba(16,24,40,.08)}
  .mvh-bottom-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 4px;text-decoration:none;color:var(--mvh-muted);font-size:12px;font-weight:600;border-radius:10px}
  .mvh-bottom-icon{font-size:22px;line-height:1}
  .mvh-bottom-item.is-active{color:var(--mvh-accent);background:rgba(10,122,61,.1)}
}
