/*
Theme Name:   Zion Medical Solutions
Theme URI:    https://zionmedicalsolutions.com
Description:  Child theme for Zion Medical Solutions Ltd — built on Porto
Author:       Zion Medical Solutions
Template:     porto
Version:      1.0.0
Text Domain:  zion-medical-child
*/

/* ============================================================
   ZION MEDICAL SOLUTIONS — DESIGN SYSTEM
   Porto styles are inherited automatically (Template: porto).
   All brand overrides and custom section styles live here.
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS VARIABLES
---------------------------------------------------------- */
:root {
  --zm-green-deep:  #1a5c2a;
  --zm-green-main:  #2a7d3a;
  --zm-green-mid:   #3d9e4f;
  --zm-green-light: #7ab648;
  --zm-green-pale:  #f0f7f1;
  --zm-accent:      #e8f5e9;
  --zm-border:      #d4e6d6;
  --zm-white:       #ffffff;
  --zm-off-white:   #fafafa;
  --zm-text-dark:   #1a2b1c;
  --zm-text-body:   #3a4a3c;
  --zm-text-muted:  #7a8e7c;

  --zm-font-heading: 'Playfair Display', Georgia, serif;
  --zm-font-body:    'DM Sans', -apple-system, sans-serif;

  --zm-radius-sm: 8px;
  --zm-radius-md: 12px;
  --zm-radius-lg: 20px;
  --zm-shadow-sm: 0 2px 12px rgba(42,125,58,0.08);
  --zm-shadow-md: 0 8px 32px rgba(42,125,58,0.12);
  --zm-shadow-lg: 0 16px 48px rgba(42,125,58,0.16);
}

/* ----------------------------------------------------------
   2. BASE OVERRIDES
---------------------------------------------------------- */
body { font-family: var(--zm-font-body) !important; color: var(--zm-text-body); }
h1,h2,h3,h4,h5,h6 { font-family: var(--zm-font-heading) !important; color: var(--zm-text-dark); }
a { color: var(--zm-green-main); }
a:hover { color: var(--zm-green-deep); }

/* ----------------------------------------------------------
   3. NAVIGATION
---------------------------------------------------------- */
#header .header-top { background: var(--zm-green-deep) !important; }
#header .header-top,
#header .header-top a { color: rgba(255,255,255,0.85); }
#header .header-top a:hover { color: #fff; }

#header .header-main {
  background: var(--zm-white) !important;
  border-bottom: 1px solid var(--zm-border);
  box-shadow: var(--zm-shadow-sm);
}
#header nav > ul > li > a {
  font-family: var(--zm-font-body) !important;
  font-weight: 500 !important;
  color: var(--zm-text-body) !important;
}
#header nav > ul > li > a:hover,
#header nav > ul > li.current-menu-item > a { color: var(--zm-green-main) !important; }

/* ----------------------------------------------------------
   4. BUTTONS
---------------------------------------------------------- */
.btn.btn-primary,
.woocommerce .button,
.woocommerce button.button,
input[type="submit"],
button[type="submit"] {
  font-family: var(--zm-font-body) !important;
  background: var(--zm-green-main) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--zm-radius-sm) !important;
  font-weight: 700 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.btn.btn-primary:hover,
.woocommerce .button:hover { background: var(--zm-green-deep) !important; transform: translateY(-1px); }

/* ----------------------------------------------------------
   5. WOOCOMMERCE — SHOP PAGE
---------------------------------------------------------- */
.woocommerce ul.products li.product {
  border: 1px solid var(--zm-border) !important;
  border-radius: var(--zm-radius-lg) !important;
  padding: 24px !important;
  background: var(--zm-white) !important;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s !important;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--zm-shadow-md) !important;
  border-color: var(--zm-green-light) !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--zm-font-heading) !important;
  color: var(--zm-text-dark) !important;
}
.woocommerce ul.products li.product .price { color: var(--zm-green-main) !important; font-weight: 700 !important; }
.woocommerce ul.products li.product a.button {
  background: var(--zm-green-main) !important;
  color: #fff !important;
  border-radius: var(--zm-radius-sm) !important;
  width: 100% !important;
  text-align: center !important;
}

/* ----------------------------------------------------------
   6. UTILITY CLASSES (used by homepage template)
---------------------------------------------------------- */
.zm-label {
  font-size: 0.78rem; font-weight: 600; color: var(--zm-green-main);
  text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 10px;
}
.zm-title {
  font-family: var(--zm-font-heading) !important;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  color: var(--zm-text-dark); line-height: 1.2; margin-bottom: 16px;
}
.zm-sub { color: var(--zm-text-muted); font-size: 1rem; line-height: 1.75; max-width: 560px; }

/* ----------------------------------------------------------
   7. HOMEPAGE SECTION STYLES
   Each section uses .zm-section-* wrapper for easy targeting
   in the WordPress Customizer and block editor.
---------------------------------------------------------- */

/* HERO */
.zm-hero {
  min-height: 88vh;
  background: linear-gradient(135deg, var(--zm-green-deep) 0%, var(--zm-green-main) 55%, var(--zm-green-light) 100%);
  display: flex; align-items: center; position: relative; overflow: hidden;
}
.zm-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.zm-hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 80px 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; position: relative; z-index: 1;
}
.zm-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 16px; border-radius: 100px;
  font-size: 0.78rem; color: rgba(255,255,255,0.9);
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; margin-bottom: 24px;
}
.zm-hero h1 {
  font-family: var(--zm-font-heading) !important;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  color: #fff !important; line-height: 1.15; margin-bottom: 20px;
}
.zm-hero h1 em { color: var(--zm-green-light); font-style: normal; }
.zm-hero-desc { color: rgba(255,255,255,0.85); font-size: 1.05rem; line-height: 1.75; margin-bottom: 36px; }
.zm-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.zm-btn-white {
  background: #fff; color: var(--zm-green-deep); padding: 14px 30px;
  border-radius: var(--zm-radius-sm); font-weight: 700; font-size: 0.92rem;
  text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: transform 0.2s, box-shadow 0.2s; display: inline-block;
}
.zm-btn-white:hover { transform: translateY(-2px); box-shadow: var(--zm-shadow-lg); color: var(--zm-green-deep); }
.zm-btn-ghost {
  border: 2px solid rgba(255,255,255,0.6); color: #fff; padding: 14px 30px;
  border-radius: var(--zm-radius-sm); font-weight: 600; font-size: 0.92rem;
  text-decoration: none; transition: background 0.2s; display: inline-block;
}
.zm-btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }
.zm-hero-stats {
  display: flex; gap: 32px; margin-top: 48px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.15); flex-wrap: wrap;
}
.zm-stat { border-left: 3px solid rgba(255,255,255,0.3); padding-left: 16px; }
.zm-stat-num { font-family: var(--zm-font-heading); font-size: 1.8rem; color: #fff; font-weight: 700; line-height: 1; }
.zm-stat-lbl { font-size: 0.75rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
.zm-hero-visual { display: flex; justify-content: center; align-items: center; }
.zm-hero-ring {
  background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%; padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: zm-float 4s ease-in-out infinite;
}
.zm-hero-ring img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; display: block; }
@keyframes zm-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* TRUST BAR */
.zm-trust {
  background: var(--zm-green-deep); padding: 16px 48px;
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
}
.zm-trust-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.85); font-size: 0.84rem; font-weight: 500;
}
.zm-trust-item span {
  width: 20px; height: 20px; background: rgba(255,255,255,0.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
}

/* ABOUT */
.zm-about { background: var(--zm-off-white); padding: 88px 48px; }
.zm-about-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.zm-about-visual {
  background: linear-gradient(135deg, var(--zm-green-main), var(--zm-green-light));
  border-radius: var(--zm-radius-lg); padding: 40px 32px; position: relative; overflow: hidden;
}
.zm-about-visual::after {
  content: '+'; font-size: 160px; font-weight: 900; color: rgba(255,255,255,0.06);
  position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
  font-family: var(--zm-font-heading); line-height: 1; pointer-events: none;
}
.zm-impact-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.zm-mini-card {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--zm-radius-md); padding: 20px;
}
.zm-mini-card .n { font-family: var(--zm-font-heading); font-size: 2rem; color: #fff; font-weight: 700; line-height: 1; }
.zm-mini-card .l { font-size: 0.78rem; color: rgba(255,255,255,0.8); margin-top: 6px; line-height: 1.4; }
.zm-about-points { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.zm-point { display: flex; align-items: flex-start; gap: 14px; }
.zm-point-icon {
  width: 38px; height: 38px; background: var(--zm-accent);
  border-radius: var(--zm-radius-sm); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; flex-shrink: 0; margin-top: 2px;
}
.zm-point strong { font-size: 0.92rem; font-weight: 700; color: var(--zm-text-dark); display: block; margin-bottom: 3px; }
.zm-point span { font-size: 0.83rem; color: var(--zm-text-muted); line-height: 1.6; }

/* PRODUCT CARDS (homepage — link to /shop) */
.zm-products { padding: 88px 48px; background: var(--zm-white); }
.zm-products-inner { max-width: 1200px; margin: 0 auto; }
.zm-products-hd {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px; flex-wrap: wrap; gap: 20px;
}
.zm-btn-green {
  background: var(--zm-green-main); color: #fff; padding: 10px 24px;
  border-radius: var(--zm-radius-sm); font-weight: 600; font-size: 0.88rem;
  text-decoration: none; transition: background 0.2s; display: inline-block;
}
.zm-btn-green:hover { background: var(--zm-green-deep); color: #fff; }
.zm-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.zm-card {
  border: 1px solid var(--zm-border); border-radius: var(--zm-radius-lg);
  padding: 28px 24px; background: var(--zm-white);
  text-decoration: none; color: inherit; display: block;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.zm-card:hover { transform: translateY(-6px); box-shadow: var(--zm-shadow-md); border-color: var(--zm-green-light); color: inherit; text-decoration: none; }
.zm-card.featured { background: linear-gradient(135deg, var(--zm-green-deep), var(--zm-green-main)); border-color: transparent; }
.zm-card.featured .zm-card-icon { background: rgba(255,255,255,0.15); }
.zm-card.featured h3 { color: #fff !important; }
.zm-card.featured p { color: rgba(255,255,255,0.82) !important; }
.zm-card.featured .zm-tag { background: rgba(255,255,255,0.18); color: #fff; }
.zm-card.featured .zm-cta { color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.4); }
.zm-card-icon {
  width: 52px; height: 52px; background: var(--zm-green-pale);
  border-radius: var(--zm-radius-md); display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; margin-bottom: 18px;
}
.zm-card h3 { font-family: var(--zm-font-heading) !important; font-size: 1.05rem !important; color: var(--zm-text-dark); margin-bottom: 10px; }
.zm-card p { font-size: 0.85rem; color: var(--zm-text-muted); line-height: 1.65; margin-bottom: 16px; }
.zm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.zm-tag {
  background: var(--zm-accent); color: var(--zm-green-main);
  font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 100px;
}
.zm-cta {
  font-size: 0.82rem; font-weight: 600; color: var(--zm-green-main);
  border-bottom: 1px solid var(--zm-green-light); padding-bottom: 2px;
  display: inline-block; transition: color 0.2s;
}

/* SERVICES */
.zm-services { background: var(--zm-green-pale); padding: 88px 48px; }
.zm-services-inner { max-width: 1200px; margin: 0 auto; }
.zm-svc-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-top: 48px; }
.zm-svc-card {
  background: var(--zm-white); border-radius: var(--zm-radius-lg);
  padding: 32px; display: flex; gap: 20px; align-items: flex-start;
  border: 1px solid var(--zm-border); transition: box-shadow 0.25s;
}
.zm-svc-card:hover { box-shadow: var(--zm-shadow-md); }
.zm-svc-icon {
  width: 48px; height: 48px; border-radius: var(--zm-radius-md);
  background: var(--zm-green-pale); display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; flex-shrink: 0;
}
.zm-svc-card h3 { font-size: 1rem; font-weight: 700; color: var(--zm-text-dark); margin-bottom: 8px; }
.zm-svc-card p { font-size: 0.85rem; color: var(--zm-text-muted); line-height: 1.65; }

/* IMPACT */
.zm-impact { background: var(--zm-green-deep); padding: 88px 48px; }
.zm-impact-inner { max-width: 1200px; margin: 0 auto; }
.zm-impact .zm-label { color: var(--zm-green-light); }
.zm-impact .zm-title { color: #fff !important; }
.zm-impact .zm-sub { color: rgba(255,255,255,0.75); }
.zm-impact-boxes { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.zm-impact-box {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--zm-radius-lg); padding: 36px 24px; text-align: center;
}
.zm-impact-box .big { font-family: var(--zm-font-heading); font-size: 3.2rem; color: var(--zm-green-light); font-weight: 700; line-height: 1; margin-bottom: 12px; }
.zm-impact-box .lbl { color: rgba(255,255,255,0.8); font-size: 0.9rem; line-height: 1.6; }

/* STRATEGY */
.zm-strategy { padding: 88px 48px; background: var(--zm-white); }
.zm-strategy-inner { max-width: 1200px; margin: 0 auto; }
.zm-strategy-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.zm-strategy-card {
  border: 2px solid var(--zm-border); border-radius: var(--zm-radius-lg);
  padding: 36px 28px; position: relative; overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.zm-strategy-card:hover { border-color: var(--zm-green-main); transform: translateY(-4px); }
.zm-strategy-num {
  font-family: var(--zm-font-heading); font-size: 5rem; font-weight: 900;
  color: var(--zm-green-pale); position: absolute; top: 8px; right: 20px; line-height: 1;
}
.zm-strategy-card h3 { font-size: 1rem; font-weight: 700; color: var(--zm-text-dark); margin-bottom: 10px; position: relative; }
.zm-strategy-card p { font-size: 0.85rem; color: var(--zm-text-muted); line-height: 1.65; position: relative; }

/* CONTACT */
.zm-contact { background: var(--zm-green-pale); padding: 88px 48px; }
.zm-contact-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.zm-contact-details { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.zm-ci { display: flex; align-items: center; gap: 16px; }
.zm-ci-icon {
  width: 46px; height: 46px; background: var(--zm-green-main);
  border-radius: var(--zm-radius-md); display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 1.1rem; flex-shrink: 0;
}
.zm-ci-text strong { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--zm-text-muted); display: block; margin-bottom: 3px; }
.zm-ci-text a, .zm-ci-text span { color: var(--zm-text-dark); font-size: 0.95rem; font-weight: 500; text-decoration: none; }
.zm-ci-text a:hover { color: var(--zm-green-main); }
.zm-form-card {
  background: var(--zm-white); border-radius: var(--zm-radius-lg);
  padding: 40px; box-shadow: var(--zm-shadow-md);
}
.zm-form-card h3 { font-family: var(--zm-font-heading) !important; font-size: 1.4rem !important; margin-bottom: 24px; }

/* FOOTER */
#footer { background: var(--zm-text-dark) !important; color: rgba(255,255,255,0.72); }
#footer a { color: rgba(255,255,255,0.65); }
#footer a:hover { color: var(--zm-green-light); }

/* WHATSAPP FLOAT */
.zm-wa {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  background: #25D366; width: 58px; height: 58px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  text-decoration: none; font-size: 1.7rem;
  animation: zm-pulse 2.5s ease infinite; transition: transform 0.2s;
}
.zm-wa:hover { transform: scale(1.1); }
@keyframes zm-pulse {
  0%,100% { box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
  50%      { box-shadow: 0 6px 32px rgba(37,211,102,0.75); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .zm-hero-inner, .zm-about-inner, .zm-contact-inner { grid-template-columns: 1fr; }
  .zm-hero-visual { display: none; }
  .zm-cards, .zm-strategy-grid, .zm-impact-boxes { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .zm-hero, .zm-about, .zm-products, .zm-services,
  .zm-impact, .zm-strategy, .zm-contact { padding: 56px 20px; }
  .zm-hero-inner { padding: 56px 0; }
  .zm-cards, .zm-svc-grid, .zm-impact-boxes, .zm-strategy-grid { grid-template-columns: 1fr; }
  .zm-trust { gap: 16px; padding: 14px 20px; }
}
