/*
Theme Name: HealthBridge China
Theme URI: https://healthbridgechina.com/
Author: HealthBridge
Author URI: https://healthbridgechina.com/
Description: 面向国际患者的中国医疗健康中介服务主题（体检、医疗绿色通道、健康管理）。内置六语言界面、SEO 结构化数据、多语言（Polylang）与可后台编辑的内容类型。设计体系：深青 + 暖金，完全响应式。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: healthbridge
Tags: business, medical, health, multilingual, translation-ready, custom-logo, custom-menu, featured-images, right-sidebar, block-styles, wide-blocks
*/

/* ============================================
   HealthBridge — Medical Tourism China
   Professional Healthcare Intermediary
   Fully Responsive Design
   ============================================ */

:root {
  /* Primary palette — deep teal + warm gold */
  --primary: #0d7377;
  --primary-dark: #095457;
  --primary-light: #14919b;
  --accent: #c9a84c;
  --accent-light: #e2c97e;
  --bg: #ffffff;
  --bg-alt: #f7f9fa;
  --bg-dark: #0a2e30;
  --text: #1a2b2c;
  --text-muted: #4a6b6d;
  --text-light: #7a9a9c;
  --border: #d4e4e5;
  --success: #2e8b57;
  --error: #c0392b;
  --shadow-sm: 0 1px 3px rgba(13,115,119,.08);
  --shadow-md: 0 4px 16px rgba(13,115,119,.10);
  --shadow-lg: 0 12px 40px rgba(13,115,119,.14);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .25s ease;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

/* Dark theme overrides */
[data-theme="dark"] {
  --bg: #0d1f20;
  --bg-alt: #122a2b;
  --bg-dark: #081e1f;
  --text: #e8f0f0;
  --text-muted: #a0c0c2;
  --text-light: #6a8a8c;
  --border: #1e3a3b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
ul, ol { list-style: none; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section ---------- */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #e8f0f0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); font-family: var(--font-display); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); margin-bottom: 12px; }
p { margin-bottom: 16px; color: var(--text-muted); }
.lead { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-muted); max-width: 700px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px;
  font-weight: 600; font-size: 1rem;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  min-height: 48px;
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--gold { background: var(--accent); color: #fff; }
.btn--gold:hover { background: #b08c3a; color: #fff; transform: translateY(-2px); }
.btn--lg { padding: 18px 36px; font-size: 1.1rem; min-height: 56px; }
.btn--sm { padding: 10px 20px; font-size: .9rem; min-height: 40px; }
.btn--full { width: 100%; }

/* ---------- Header / Nav ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
[data-theme="dark"] .header { background: rgba(13,31,32,.95); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; color: var(--primary); flex-shrink: 0; }
.logo__icon { width: 40px; height: 40px; }
.logo span { font-family: var(--font-display); }
.custom-logo { max-height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text); font-weight: 500; font-size: .95rem; position: relative; }
.nav a:hover, .nav a.active, .nav .current-menu-item > a { color: var(--primary); }
.nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width var(--transition); }
.nav a:hover::after, .nav a.active::after, .nav .current-menu-item > a::after { width: 100%; }
/* WP menu output */
.nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.nav li { position: relative; list-style: none; }
.nav ul ul { position: absolute; top: 100%; left: 0; display: none; flex-direction: column; gap: 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); min-width: 200px; padding: 8px 0; z-index: 100; }
.nav li:hover > ul { display: flex; }
.nav ul ul a { padding: 8px 16px; display: block; font-size: .9rem; }
.nav ul ul a::after { display: none; }

.nav__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lang-switch { position: relative; }
.lang-switch__btn {
  background: none; border: 1px solid var(--border); border-radius: 20px;
  padding: 6px 14px; font-size: .85rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px; min-height: 36px;
}
.lang-switch__btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-switch__menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); min-width: 160px; display: none; z-index: 100;
  padding: 6px 0;
}
.lang-switch__menu.open { display: block; }
.lang-switch__menu a { display: block; padding: 10px 16px; color: var(--text); font-size: .9rem; }
.lang-switch__menu a:hover { background: var(--bg-alt); color: var(--primary); }
.lang-switch__menu .lang-item { list-style: none; }
.lang-switch__menu .current-lang > a { font-weight: 700; color: var(--primary); }

.theme-toggle {
  background: none; border: 1px solid var(--border); border-radius: 50%;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--transition); flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }

.hamburger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; }
.hamburger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Navigation */
.nav.open {
  display: flex !important;
  position: fixed; top: 72px; left: 0; right: 0;
  background: var(--bg); flex-direction: column; padding: 24px;
  gap: 16px; border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md); z-index: 999;
  max-height: calc(100vh - 72px); overflow-y: auto;
}
.nav.open ul { flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; }
.nav.open a { font-size: 1.1rem; padding: 8px 0; }
.nav.open ul ul { position: static; display: flex; border: none; box-shadow: none; padding-left: 16px; }

/* Body top offset for fixed header */
body { padding-top: 0; }
.site-content { display: block; }

/* ---------- Hero ---------- */
.hero { padding: 160px 0 100px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute;
  top: -200px; right: -200px; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(13,115,119,.08) 0%, transparent 70%); border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute;
  bottom: -150px; left: -150px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,.06) 0%, transparent 70%); border-radius: 50%;
}
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(13,115,119,.08); color: var(--primary);
  padding: 8px 16px; border-radius: 50px; font-size: .85rem; font-weight: 600; margin-bottom: 20px;
}
.hero__badge .dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { margin-bottom: 32px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border);
}
.hero__stat { text-align: center; }
.hero__stat .num { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--primary); font-family: var(--font-display); }
.hero__stat .label { font-size: clamp(.75rem, 1.5vw, .85rem); color: var(--text-light); }

.hero__visual { position: relative; }
.hero__img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: 480px; object-fit: cover; }
.hero__card {
  position: absolute; background: var(--bg); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: 16px 20px; display: flex; align-items: center; gap: 12px;
}
.hero__card--1 { top: 30px; left: -30px; }
.hero__card--2 { bottom: 40px; right: -20px; }
.hero__card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.hero__card--1 .icon { background: rgba(13,115,119,.1); }
.hero__card--2 .icon { background: rgba(201,168,75,.15); }
.hero__card .text strong { display: block; font-size: .95rem; }
.hero__card .text span { font-size: .8rem; color: var(--text-light); }

/* ---------- Trust Bar ---------- */
.trust-bar { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.trust-bar__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.trust-bar__label {
  font-size: .85rem; color: var(--text-light); font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px; flex-shrink: 0;
}
.trust-bar__logos { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.trust-bar__logo { font-size: 1rem; font-weight: 700; color: var(--text-light); opacity: .6; transition: opacity var(--transition); white-space: nowrap; }
.trust-bar__logo:hover { opacity: 1; }

/* ---------- Services Grid ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.service-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; transition: all var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  margin-bottom: 20px; background: rgba(13,115,119,.08);
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: .95rem; margin-bottom: 16px; }
.service-card__link { font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.service-card__link:hover { gap: 10px; }

/* ---------- How It Works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; counter-reset: step; }
.step { text-align: center; padding: 32px 20px; position: relative; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 48px; right: -12px; width: 24px; height: 2px; background: var(--border); }
.step__num {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; margin: 0 auto 20px; position: relative;
}
.step__num::before { counter-increment: step; content: counter(step); }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: .9rem; }

/* ---------- Hospitals ---------- */
.hospitals__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.hospital-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); }
.hospital-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hospital-card__img { height: 200px; object-fit: cover; width: 100%; }
.hospital-card__body { padding: 24px; }
.hospital-card__tag {
  display: inline-block; background: rgba(13,115,119,.08); color: var(--primary);
  font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 50px; margin-bottom: 12px;
}
.hospital-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.hospital-card p { font-size: .9rem; margin-bottom: 12px; }
.hospital-card__meta { display: flex; gap: 16px; font-size: .8rem; color: var(--text-light); flex-wrap: wrap; }

/* ---------- Testimonials ---------- */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.testimonial { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; position: relative; }
.testimonial::before {
  content: '"'; position: absolute; top: 16px; right: 24px;
  font-size: 4rem; color: var(--accent-light); opacity: .3; font-family: var(--font-display); line-height: 1;
}
.testimonial__stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial p { font-size: .95rem; font-style: italic; margin-bottom: 20px; }
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.testimonial__author .name { font-weight: 600; font-size: .95rem; }
.testimonial__author .role { font-size: .8rem; color: var(--text-light); }

/* ---------- Pricing ---------- */
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; align-items: start; }
.pricing-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; text-align: center; transition: all var(--transition); position: relative;
}
.pricing-card--featured { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.pricing-card--featured::before {
  content: attr(data-badge); position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: .75rem; font-weight: 600; padding: 4px 14px; border-radius: 50px; white-space: nowrap;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--featured:hover { transform: scale(1.03) translateY(-4px); }
.pricing-card__name { font-size: 1.1rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.pricing-card__price { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--primary); font-family: var(--font-display); margin-bottom: 4px; }
.pricing-card__price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.pricing-card__desc { font-size: .9rem; color: var(--text-light); margin-bottom: 24px; }
.pricing-card__features { margin-bottom: 28px; text-align: left; padding: 0; }
.pricing-card__features li { padding: 8px 0; font-size: .9rem; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.pricing-card__features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }

/* ---------- Contact / Form ---------- */
.contact__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact__info h2 { margin-bottom: 16px; }
.contact__info .lead { margin-bottom: 32px; }
.contact__details { display: flex; flex-direction: column; gap: 20px; }
.contact__item { display: flex; align-items: flex-start; gap: 16px; }
.contact__item .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(13,115,119,.08); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact__item .text strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.contact__item .text span, .contact__item .text a { font-size: .9rem; color: var(--text-muted); word-break: break-all; }

.contact__form-wrapper { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group label .required { color: var(--error); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); transition: all var(--transition);
  min-height: 48px; font-size: 16px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,115,119,.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group .error-msg { color: var(--error); font-size: .8rem; margin-top: 4px; display: none; }
.form-group.error input, .form-group.error select, .form-group.error textarea { border-color: var(--error); }
.form-group.error .error-msg { display: block; }
.form-submit { width: 100%; justify-content: center; }
.form-success { display: none; text-align: center; padding: 40px; }
.form-success .icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(46,139,87,.1); color: var(--success);
  display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 20px;
}
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq__list { max-width: 800px; margin: 48px auto 0; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; transition: all var(--transition); }
.faq-item.open { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-item__q {
  width: 100%; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; font-size: 1rem; font-weight: 600; color: var(--text); text-align: left;
  min-height: 60px;
}
.faq-item__q:hover { color: var(--primary); }
.faq-item__icon {
  width: 28px; height: 28px; border-radius: 50%; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  transition: all var(--transition); flex-shrink: 0;
}
.faq-item.open .faq-item__icon { background: var(--primary); color: #fff; transform: rotate(45deg); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.faq-item__a-inner { padding: 0 24px 20px; font-size: .95rem; color: var(--text-muted); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; border-radius: var(--radius); padding: 60px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px; background: rgba(255,255,255,.05); border-radius: 50%;
}
.cta-banner::after {
  content: ''; position: absolute; bottom: -80px; left: -80px;
  width: 200px; height: 200px; background: rgba(255,255,255,.03); border-radius: 50%;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.8); margin-bottom: 28px; }
.cta-banner .btn { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-dark); color: #a0c0c2; padding: 60px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__brand .logo { color: #fff; margin-bottom: 16px; }
.footer__brand p { font-size: .9rem; color: #6a8a8c; margin-bottom: 20px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: #a0c0c2; transition: all var(--transition);
}
.footer__social a:hover { background: var(--primary); color: #fff; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer__links li { margin-bottom: 10px; }
.footer__links a, .footer__links span { color: #6a8a8c; font-size: .9rem; }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; font-size: .85rem; color: #4a6b6d;
  gap: 12px; flex-wrap: wrap;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
  transition: all var(--transition); z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-4px); }

/* ============================================
   PAGE / POST CONTENT (WordPress)
   ============================================ */
.page-hero { padding: 140px 0 40px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-hero h1 { margin-bottom: 8px; }
.page-hero .breadcrumbs { font-size: .85rem; color: var(--text-light); }
.page-hero .breadcrumbs a { color: var(--text-light); }
.page-hero .breadcrumbs a:hover { color: var(--primary); }

.entry-content { max-width: 820px; margin: 0 auto; }
.entry-content.wide { max-width: none; }
.entry-content h2 { margin-top: 40px; }
.entry-content h3 { margin-top: 32px; }
.entry-content ul, .entry-content ol { margin: 0 0 20px 24px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content ul li, .entry-content ol li { margin-bottom: 8px; color: var(--text-muted); }
.entry-content img, .entry-content .wp-block-image img { border-radius: var(--radius); }
.entry-content blockquote {
  border-left: 4px solid var(--primary); background: var(--bg-alt);
  padding: 20px 24px; margin: 24px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 12px 16px; text-align: left; }
.entry-content th { background: var(--bg-alt); font-weight: 600; }
.entry-content code { background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.entry-content a { text-decoration: underline; }

/* Single post meta */
.entry-meta { font-size: .85rem; color: var(--text-light); margin-bottom: 24px; }
.post-thumbnail img { border-radius: var(--radius); margin-bottom: 32px; }

/* ---- Post grid (archive / blog) ---- */
.posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.post-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__img { height: 200px; object-fit: cover; width: 100%; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: .78rem; color: var(--text-light); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .4px; }
.post-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--primary); }
.post-card p { font-size: .9rem; flex: 1; }
.post-card__more { font-weight: 600; font-size: .9rem; }

/* ---- Pagination ---- */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 48px 0; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); font-weight: 600;
}
.pagination .page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---- Widgets / sidebar ---- */
.widget-area { display: flex; flex-direction: column; gap: 28px; }
.widget { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.widget-title { font-size: 1.05rem; margin-bottom: 16px; }
.widget ul li { margin-bottom: 10px; }
.widget ul li a { color: var(--text-muted); font-size: .92rem; }
.widget ul li a:hover { color: var(--primary); }

/* ---- WordPress core classes ---- */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0,0,0,.6); clip: auto !important; clip-path: none;
  color: #21759b; display: block; font-size: .875rem; font-weight: 700; height: auto; left: 5px; line-height: normal;
  padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000;
}
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 16px auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--text-light); text-align: center; margin-top: 8px; }
.sticky .post-card { border-color: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.gallery-item img { border-radius: var(--radius-sm); }

/* Comments */
.comments-area { max-width: 820px; margin: 48px auto 0; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { border-bottom: 1px solid var(--border); padding: 20px 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-form textarea, .comment-form input { width: 100%; }
.comment-form input[type="submit"] {
  background: var(--primary); color: #fff; border: none; padding: 12px 28px; border-radius: 50px; font-weight: 600; min-height: 48px;
}

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); min-height: 48px; }
.search-form input[type="submit"] { background: var(--primary); color: #fff; border: none; padding: 0 24px; border-radius: var(--radius-sm); font-weight: 600; }

/* Admin bar offset */
.admin-bar .header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .header { top: 46px; } }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* ---------- Desktop Large (1200px+) ---------- */
@media (max-width: 1200px) {
  .container { max-width: 100%; }
}

/* ---------- Tablet Landscape (1024px) ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; max-width: 600px; margin: 0 auto; }
  .hero__img { height: 360px; }
  .hero__stats { grid-template-columns: repeat(4, 1fr); gap: 16px; }

  .services__grid, .hospitals__grid, .testimonials__grid, .posts__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .pricing-card--featured { transform: scale(1); }
  .pricing-card--featured:hover { transform: translateY(-4px); }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }

  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Tablet Portrait (768px) ---------- */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .container { padding: 0 20px; }

  .hero { padding: 120px 0 60px; }
  .hero__img { height: 280px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }

  .services__grid, .hospitals__grid, .testimonials__grid, .pricing__grid, .posts__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .nav { display: none; }
  .hamburger { display: flex; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

  .cta-banner { padding: 40px 24px; }
  .hero__card { display: none; }

  .trust-bar__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .trust-bar__logos { gap: 20px; }

  .page-hero { padding: 110px 0 32px; }
  .nav.open { top: 72px; }
}

/* ---------- Mobile Large (576px) ---------- */
@media (max-width: 576px) {
  .container { padding: 0 16px; }
  .section { padding: 50px 0; }

  .header__inner { height: 64px; }
  .logo { font-size: 1.1rem; gap: 8px; }
  .logo__icon { width: 32px; height: 32px; }
  .custom-logo { max-height: 32px; }

  .hero { padding: 100px 0 50px; }
  .hero__img { height: 220px; }
  .hero__badge { font-size: .75rem; padding: 6px 12px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 16px; padding-top: 24px; margin-top: 32px; }
  .hero__stat .num { font-size: 1.2rem; }
  .hero__stat .label { font-size: .7rem; }

  .service-card { padding: 28px 20px; }
  .service-card__icon { width: 48px; height: 48px; font-size: 1.4rem; }

  .hospital-card__img { height: 160px; }
  .hospital-card__body { padding: 20px; }

  .testimonial { padding: 24px 20px; }
  .testimonial::before { font-size: 3rem; top: 12px; right: 16px; }

  .pricing-card { padding: 28px 20px; }
  .pricing-card__price { font-size: 2.2rem; }

  .contact__form-wrapper { padding: 24px 20px; }

  .cta-banner { padding: 32px 20px; }

  .nav.open { top: 64px; max-height: calc(100vh - 64px); }

  .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }

  .page-hero { padding: 96px 0 28px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mobile Small (400px) ---------- */
@media (max-width: 400px) {
  .container { padding: 0 12px; }

  .hero__img { height: 180px; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 12px; }

  .btn { padding: 12px 20px; font-size: .9rem; min-height: 44px; }
  .btn--lg { padding: 14px 24px; font-size: 1rem; min-height: 48px; }

  .service-card, .hospital-card__body, .testimonial, .pricing-card { padding: 20px 16px; }

  .form-group input, .form-group select, .form-group textarea { padding: 10px 12px; }
}

/* ---------- Safe Area (Notch phones) ---------- */
@supports (padding: env(safe-area-inset-bottom)) {
  .container { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
  .nav.open { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .back-to-top { bottom: max(30px, calc(env(safe-area-inset-bottom) + 20px)); }
}

/* ---------- Landscape Mobile ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 100px 0 40px; }
  .hero__img { height: 200px; }
  .nav.open { max-height: calc(100vh - 64px); }
}

/* ---------- RTL support (Arabic) ---------- */
[dir="rtl"] .nav ul { flex-direction: row-reverse; }
[dir="rtl"] .hero__card--1 { left: auto; right: -30px; }
[dir="rtl"] .hero__card--2 { right: auto; left: -20px; }
[dir="rtl"] .footer__social { flex-direction: row-reverse; }
[dir="rtl"] .testimonial::before { right: auto; left: 24px; }
[dir="rtl"] .entry-content ul, [dir="rtl"] .entry-content ol { margin: 0 24px 20px 0; }

/* ---------- Animations ---------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate { animation: fadeInUp .6s ease forwards; }
.animate-delay-1 { animation-delay: .1s; }
.animate-delay-2 { animation-delay: .2s; }
.animate-delay-3 { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Print ---------- */
@media print { .header, .footer, .back-to-top, .cta-banner { display: none; } }
