/*
Theme Name: ZenVilla Care Theme V2
Theme URI: https://zen-villa.my/
Author: OpenAI ChatGPT
Author URI: https://chatgpt.com/
Description: A polished WordPress theme for ZenVilla elderly care / nursing home services. Version 2 adds editable service images, gallery, map, contact form shortcode, service banners and fixed CTA buttons.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zenvilla-care
Tags: custom-logo, custom-menu, featured-images, one-column, two-columns, accessibility-ready
*/

:root {
  --zv-green: #64785f;
  --zv-green-dark: #2f4738;
  --zv-green-light: #edf3ea;
  --zv-terracotta: #b96f4d;
  --zv-terracotta-dark: #995838;
  --zv-cream: #fbf7ef;
  --zv-ink: #25322b;
  --zv-muted: #68756d;
  --zv-line: rgba(47,71,56,.14);
  --zv-white: #ffffff;
  --zv-shadow: 0 18px 48px rgba(47,71,56,.12);
  --zv-radius: 24px;
  --zv-max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--zv-ink); background: var(--zv-cream); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
.zv-container { width: min(var(--zv-max), calc(100% - 32px)); margin: 0 auto; }
.zv-section { padding: 84px 0; }
.zv-section-tight { padding: 56px 0; }
.zv-eyebrow { color: var(--zv-terracotta); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin-bottom: 12px; }
.zv-title { margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.08; color: var(--zv-green-dark); }
.zv-lead { font-size: 1.1rem; color: var(--zv-muted); max-width: 760px; }
.zv-btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; }
.zv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; min-height: 48px; border-radius: 999px; font-weight: 800; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; cursor: pointer; }
.zv-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(47,71,56,.14); }
.zv-btn-primary { background: var(--zv-terracotta); color: #fff; }
.zv-btn-primary:hover { background: var(--zv-terracotta-dark); }
.zv-btn-secondary { background: #fff; border-color: var(--zv-line); color: var(--zv-green-dark); }
.zv-btn-soft { background: var(--zv-green-light); color: var(--zv-green-dark); }

.zv-topbar { background: var(--zv-green-dark); color: rgba(255,255,255,.92); font-size: .9rem; }
.zv-topbar .zv-container { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; flex-wrap: wrap; }
.zv-topbar a { color: #fff; font-weight: 700; }
.zv-site-header { background: rgba(251,247,239,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--zv-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .zv-site-header { top: 32px; }
.zv-header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.zv-brand { display: flex; align-items: center; gap: 12px; font-weight: 900; color: var(--zv-green-dark); }
.zv-brand-mark { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--zv-green), var(--zv-terracotta)); display: grid; place-items: center; color: #fff; font-family: Georgia, serif; font-weight: 900; }
.zv-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.zv-brand-text small { color: var(--zv-muted); font-weight: 700; font-size: .75rem; margin-top: 4px; }
.zv-nav { display: flex; align-items: center; gap: 20px; }
.zv-nav ul { display: flex; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; }
.zv-nav a { font-weight: 800; color: var(--zv-green-dark); font-size: .94rem; }
.zv-nav a:hover { color: var(--zv-terracotta); }
.zv-menu-toggle { display: none; border: 0; border-radius: 12px; padding: 10px 12px; background: var(--zv-green-light); color: var(--zv-green-dark); font-weight: 900; }

.zv-hero { position: relative; overflow: hidden; padding: 92px 0 76px; }
.zv-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 18% 22%, rgba(185,111,77,.22), transparent 30%), radial-gradient(circle at 86% 16%, rgba(100,120,95,.24), transparent 34%), linear-gradient(135deg, #fbf7ef 0%, #f4efe5 54%, #edf3ea 100%); z-index: -2; }
.zv-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.zv-hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.55rem, 5vw, 5.2rem); line-height: .98; margin: 0 0 22px; color: var(--zv-green-dark); }
.zv-hero-sub { color: var(--zv-muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 690px; }
.zv-hero-card { background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.72); box-shadow: var(--zv-shadow); border-radius: 34px; padding: 18px; position: relative; }
.zv-image-fill { background-position: center; background-size: cover; background-repeat: no-repeat; }
.zv-hero-media { min-height: 450px; border-radius: 28px; overflow: hidden; background: linear-gradient(135deg, rgba(100,120,95,.24), rgba(185,111,77,.18)), url('assets/img/hero-placeholder.svg') center/cover no-repeat; }
.zv-hero-badge { position: absolute; left: -12px; bottom: 30px; max-width: 260px; background: #fff; border-radius: 22px; box-shadow: var(--zv-shadow); padding: 18px; border: 1px solid var(--zv-line); font-weight: 800; }
.zv-hero-badge span { display: block; color: var(--zv-terracotta); font-size: 1.6rem; }

.zv-trust-strip { margin-top: -34px; position: relative; z-index: 4; }
.zv-trust-grid { background: #fff; border: 1px solid var(--zv-line); box-shadow: var(--zv-shadow); border-radius: var(--zv-radius); display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.zv-trust-item { padding: 24px; border-right: 1px solid var(--zv-line); }
.zv-trust-item:last-child { border-right: 0; }
.zv-trust-item strong { display:block; color: var(--zv-green-dark); font-size: 1.05rem; margin-bottom: 4px; }
.zv-trust-item span { color: var(--zv-muted); font-size: .92rem; }

.zv-split { display: grid; grid-template-columns: .88fr 1.12fr; gap: 44px; align-items: center; }
.zv-panel { background: #fff; border: 1px solid var(--zv-line); border-radius: var(--zv-radius); box-shadow: 0 10px 34px rgba(47,71,56,.08); padding: 28px; }
.zv-photo { min-height: 420px; border-radius: var(--zv-radius); overflow: hidden; background: linear-gradient(135deg, rgba(100,120,95,.3), rgba(185,111,77,.22)), url('assets/img/care-placeholder.svg') center/cover no-repeat; }
.zv-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.zv-list li { display:flex; gap: 10px; align-items: flex-start; color: var(--zv-muted); }
.zv-check { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; display:grid; place-items:center; background: var(--zv-green-light); color: var(--zv-green-dark); font-weight: 900; font-size: .82rem; }

.zv-services { background: #fff; }
.zv-section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 36px; }
.zv-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.zv-service-card, .zv-testimonial-card, .zv-faq-card { background: var(--zv-cream); border: 1px solid var(--zv-line); border-radius: var(--zv-radius); padding: 28px; transition: transform .2s ease, box-shadow .2s ease; }
.zv-service-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.zv-service-card:hover { transform: translateY(-4px); box-shadow: var(--zv-shadow); }
.zv-service-card-body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.zv-service-image { min-height: 190px; background: linear-gradient(135deg, rgba(100,120,95,.25), rgba(185,111,77,.18)), url('assets/img/service-placeholder.svg') center/cover no-repeat; }
.zv-card-icon { width: 54px; height: 54px; border-radius: 18px; display:grid; place-items:center; background: #fff; color: var(--zv-terracotta); font-size: 1.35rem; margin-top: -50px; margin-bottom: 18px; box-shadow: 0 8px 24px rgba(47,71,56,.12); position: relative; }
.zv-service-card h3 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 1.45rem; color: var(--zv-green-dark); }
.zv-service-card p { color: var(--zv-muted); }
.zv-readmore { color: var(--zv-terracotta); font-weight: 900; margin-top: auto; }

.zv-compare { background: var(--zv-green-light); }
.zv-compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.zv-compare-card { background:#fff; border:1px solid var(--zv-line); border-radius: var(--zv-radius); padding: 30px; }
.zv-compare-card h3 { margin: 0 0 16px; font-family: Georgia, serif; color: var(--zv-green-dark); font-size: 1.65rem; }
.zv-compare-card ul { margin: 0; padding-left: 20px; color: var(--zv-muted); }
.zv-compare-card li { margin-bottom: 10px; }

.zv-gallery { background: #fff; }
.zv-gallery-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 18px; }
.zv-gallery-item { min-height: 220px; border-radius: var(--zv-radius); border: 1px solid var(--zv-line); overflow: hidden; background: linear-gradient(135deg, rgba(100,120,95,.22), rgba(185,111,77,.18)), url('assets/img/gallery-placeholder.svg') center/cover no-repeat; position: relative; }
.zv-gallery-item:first-child { grid-row: span 2; min-height: 460px; }
.zv-gallery-caption { position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(255,255,255,.9); border-radius: 16px; padding: 10px 12px; font-weight: 800; color: var(--zv-green-dark); font-size: .9rem; }

.zv-testimonials { background: var(--zv-green-dark); color: #fff; }
.zv-testimonials .zv-title, .zv-testimonials .zv-eyebrow { color: #fff; }
.zv-testimonials .zv-lead { color: rgba(255,255,255,.78); }
.zv-testimonial-card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; padding: 28px; }
.zv-stars { color: #ffd166; letter-spacing: 2px; margin-bottom: 14px; }
.zv-testimonial-card p { color: rgba(255,255,255,.86); }
.zv-testimonial-card strong { display:block; margin-top: 16px; }

.zv-cta { background: linear-gradient(135deg, var(--zv-terracotta), var(--zv-green)); color:#fff; border-radius: 34px; padding: 48px; display:grid; grid-template-columns: 1fr auto; gap: 28px; align-items:center; }
.zv-cta h2 { margin:0 0 10px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.4rem); }
.zv-cta p { color: rgba(255,255,255,.88); margin:0; }
.zv-cta .zv-btn { background:#fff; color: var(--zv-green-dark); }

.zv-faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.zv-faq-card h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--zv-green-dark); }
.zv-faq-card p { color: var(--zv-muted); margin: 0; }

.zv-main { background: var(--zv-cream); }
.zv-page-hero { padding: 82px 0; background: linear-gradient(135deg, #fbf7ef, #edf3ea); border-bottom:1px solid var(--zv-line); position: relative; overflow: hidden; }
.zv-page-hero.has-bg { color: #fff; background-size: cover; background-position: center; min-height: 360px; display: flex; align-items: end; }
.zv-page-hero.has-bg::before { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(31,48,39,.84), rgba(31,48,39,.45), rgba(31,48,39,.14)); z-index:0; }
.zv-page-hero > .zv-container { position: relative; z-index: 1; }
.zv-page-hero h1 { margin: 0 0 10px; font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 4rem); color: var(--zv-green-dark); }
.zv-page-hero.has-bg h1, .zv-page-hero.has-bg .zv-lead, .zv-page-hero.has-bg .zv-eyebrow { color: #fff; }
.zv-content-card { background:#fff; border:1px solid var(--zv-line); border-radius: var(--zv-radius); padding: clamp(24px, 5vw, 54px); box-shadow: 0 10px 34px rgba(47,71,56,.07); }
.zv-content-card h2, .zv-content-card h3 { color: var(--zv-green-dark); font-family: Georgia, serif; }
.zv-service-detail-grid { display: grid; grid-template-columns: 1fr .38fr; gap: 24px; align-items: start; }
.zv-service-sidebar { position: sticky; top: 110px; }
.zv-service-sidebar .zv-panel { padding: 24px; }
.zv-mini-list { list-style:none; margin: 0; padding:0; display:grid; gap:10px; }
.zv-mini-list a { color: var(--zv-green-dark); font-weight: 800; }
.zv-mini-list a:hover { color: var(--zv-terracotta); }

.zv-contact-grid { display:grid; grid-template-columns: .92fr 1.08fr; gap:24px; }
.zv-contact-box { background:#fff; border:1px solid var(--zv-line); border-radius: var(--zv-radius); padding: 30px; box-shadow: 0 10px 34px rgba(47,71,56,.07); }
.zv-contact-box h2 { margin-top:0; color: var(--zv-green-dark); font-family: Georgia, serif; }
.zv-contact-line { padding: 14px 0; border-bottom: 1px solid var(--zv-line); color: var(--zv-muted); }
.zv-contact-line:last-child { border-bottom:0; }
.zv-map-wrap { background:#fff; border:1px solid var(--zv-line); border-radius: var(--zv-radius); overflow:hidden; box-shadow: 0 10px 34px rgba(47,71,56,.07); }
.zv-map-wrap iframe { width:100%; height: 390px; border:0; display:block; }
.zv-map-placeholder { min-height: 390px; display:grid; place-items:center; text-align:center; padding: 32px; background: linear-gradient(135deg, #edf3ea, #fbf7ef); }
.zv-shortcode-wrap .wpcf7 input, .zv-shortcode-wrap .wpcf7 textarea, .zv-shortcode-wrap input, .zv-shortcode-wrap textarea, .zv-shortcode-wrap select { width:100%; border:1px solid var(--zv-line); border-radius: 14px; padding: 12px 14px; }
.zv-shortcode-wrap input[type="submit"], .zv-shortcode-wrap button[type="submit"] { width:auto; background: var(--zv-terracotta); color:#fff; border:0; font-weight:800; cursor:pointer; }

.zv-site-footer { background: #1f3027; color: rgba(255,255,255,.78); padding: 64px 0 92px; }
.zv-footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr 1fr; gap: 34px; }
.zv-site-footer h3 { color:#fff; margin:0 0 14px; font-family: Georgia, serif; }
.zv-site-footer ul { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.zv-site-footer a:hover { color:#fff; }
.zv-footer-bottom { margin-top:40px; padding-top:18px; border-top:1px solid rgba(255,255,255,.12); font-size:.9rem; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.zv-floating-cta { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: 10px; }
.zv-floating-cta a { display:flex; align-items:center; justify-content:center; gap: 8px; min-width: 132px; min-height: 48px; border-radius: 999px; padding: 10px 16px; color:#fff; font-weight:900; box-shadow: 0 14px 30px rgba(47,71,56,.22); }
.zv-floating-cta .zv-float-wa { background:#25D366; }
.zv-floating-cta .zv-float-visit { background: var(--zv-terracotta); }
.zv-float-icon { font-size:1.05rem; }

@media (max-width: 960px) {
  .zv-menu-toggle { display: inline-flex; }
  .zv-nav { position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); background:#fff; border:1px solid var(--zv-line); border-radius: 20px; box-shadow: var(--zv-shadow); padding: 18px; display:none; align-items:stretch; flex-direction:column; }
  .zv-nav.is-open { display:flex; }
  .zv-nav ul { flex-direction: column; align-items:stretch; gap: 12px; }
  .zv-nav .zv-btn { width:100%; }
  .zv-hero-grid, .zv-split, .zv-contact-grid, .zv-service-detail-grid { grid-template-columns: 1fr; }
  .zv-service-sidebar { position: static; }
  .zv-hero-media { min-height: 340px; }
  .zv-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .zv-card-grid, .zv-compare-grid, .zv-faq-grid, .zv-footer-grid { grid-template-columns: 1fr; }
  .zv-section-head { display:block; }
  .zv-cta { grid-template-columns:1fr; padding: 34px; }
  .zv-gallery-grid { grid-template-columns: 1fr 1fr; }
  .zv-gallery-item:first-child { grid-row: auto; min-height: 260px; }
}
@media (max-width: 640px) {
  .admin-bar .zv-site-header { top: 0; }
  .zv-topbar .zv-container { display:none; }
  .zv-header-inner { min-height: 68px; }
  .zv-brand-text small { display:none; }
  .zv-hero { padding: 58px 0 54px; }
  .zv-section { padding: 58px 0; }
  .zv-trust-grid, .zv-gallery-grid { grid-template-columns: 1fr; }
  .zv-trust-item { border-right:0; border-bottom:1px solid var(--zv-line); }
  .zv-trust-item:last-child { border-bottom:0; }
  .zv-hero-badge { left: 18px; right: 18px; max-width: none; }
  .zv-floating-cta { left: 10px; right: 10px; bottom: 10px; grid-template-columns: 1fr 1fr; }
  .zv-floating-cta a { min-width:0; padding: 10px 12px; font-size:.9rem; }
  .zv-site-footer { padding-bottom: 112px; }
}
