/* ============================================================
   HousQaid Healthcare — Main Stylesheet
   Brand: Deep Blue #0D1B2A | Emerald #1B5E20 | Gold #C9A227
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --deep-blue:   #0D1B2A;
  --emerald:     #1B5E20;
  --emerald-mid: #2E7D32;
  --gold:        #C9A227;
  --gold-light:  #E4B84A;
  --white:       #ffffff;
  --off-white:   #F8F9FA;
  --text-muted:  #5a6a7a;
  --text-dark:   #1a2b3c;
  --shadow-sm:   0 2px 12px rgba(13,27,42,.08);
  --shadow-md:   0 8px 32px rgba(13,27,42,.14);
  --shadow-lg:   0 16px 56px rgba(13,27,42,.18);
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --transition:  all .3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

/* ── Typography ── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(27,94,32,.1);
  color: var(--emerald);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(27,94,32,.2);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--deep-blue);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title span { color: var(--emerald); }

.section-subtitle {
  font-size: .97rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.gold-divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin-bottom: 24px;
}
.gold-divider--about { margin-left: 0; }

/* ── Preloader ── */
#preloader {
  position: fixed; inset: 0;
  background: var(--deep-blue);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px;
  z-index: 9999;
  transition: opacity .5s ease, visibility .5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* ring wraps the logo — logo sits centered inside the spinning ring */
.preloader-center {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-ring {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(201,162,39,.18);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}
.preloader-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}
.preloader-text {
  color: rgba(255,255,255,.4);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Navbar ── */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: transparent;
  transition: var(--transition);
}
#mainNav.scrolled {
  background: rgba(13,27,42,.97);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.navbar-brand img { height: 44px; width: auto; }

.nav-link {
  color: rgba(255,255,255,.85) !important;
  font-size: .88rem;
  font-weight: 500;
  padding: 8px 14px !important;
  border-radius: 6px;
  transition: var(--transition);
  letter-spacing: .02em;
}
.nav-link:hover,
.nav-link.active { color: var(--gold) !important; background: rgba(201,162,39,.08); }

.btn-nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--deep-blue) !important;
  font-weight: 700 !important;
  padding: 9px 22px !important;
  border-radius: 50px !important;
}
.btn-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,162,39,.4); }

/* ── Mobile Sidebar ── */
#sidebarOverlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1100;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
#sidebarOverlay.open { opacity: 1; visibility: visible; }

#mobileSidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 300px;
  background: var(--deep-blue);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
#mobileSidebar.open { transform: translateX(0); }

.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sidebar-logo { height: 40px; width: auto; }
#sidebarClose {
  background: none; border: none; color: rgba(255,255,255,.6);
  font-size: 1.2rem; cursor: pointer; padding: 4px;
  transition: color .2s;
}
#sidebarClose:hover { color: var(--gold); }

.sidebar-profile {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sidebar-avatar {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-mid));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1rem;
  flex-shrink: 0;
}
.sidebar-profile strong { color: var(--white); font-size: .9rem; display: block; }
.sidebar-profile span  { color: rgba(255,255,255,.5); font-size: .75rem; }

.sidebar-nav { padding: 12px 12px; flex: 1; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 3px;
}
.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(201,162,39,.1);
  color: var(--gold);
}
.sidebar-icon { width: 20px; text-align: center; font-size: .95rem; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.sidebar-book-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--deep-blue);
  font-weight: 700; font-size: .88rem;
  padding: 12px;
  border-radius: 50px;
  text-decoration: none;
  margin-bottom: 14px;
  transition: var(--transition);
}
.sidebar-book-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,162,39,.4); }

.sidebar-contact-info { display: flex; flex-direction: column; gap: 6px; }
.sidebar-contact-info a {
  color: rgba(255,255,255,.5);
  font-size: .78rem;
  text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}
.sidebar-contact-info a:hover { color: var(--gold); }

.sidebar-toggle-btn {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px;
  padding: 8px;
}
.sidebar-toggle-btn span {
  display: block; width: 24px; height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transition: var(--transition);
}
.sidebar-toggle-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sidebar-toggle-btn.open span:nth-child(2) { opacity: 0; }
.sidebar-toggle-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero Wrapper ── */
.hero-wrapper { display: flex; flex-direction: column; height: 100vh; min-height: 640px; }

/* ── Hero ── */
#hero { position: relative; width: 100%; flex: 1; min-height: 0; overflow: hidden; display: flex; align-items: stretch; }
#hero > .container { display: flex; align-items: stretch; position: relative; z-index: 4; }
#hero-canvas { position: absolute; inset: 0; z-index: 0; width: 100% !important; height: 100% !important; pointer-events: none; }
.hero-bg-slider { position: absolute; inset: 0; z-index: 1; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center top; background-repeat: no-repeat; opacity: 0; transition: opacity 1.4s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; z-index: 2; background: linear-gradient(105deg, rgba(13,27,42,.92) 0%, rgba(13,27,42,.7) 50%, rgba(27,94,32,.4) 100%); }
.hero-image-showcase { position: absolute; right: 0; top: 0; bottom: 0; width: 42%; z-index: 3; overflow: hidden; }
.hero-image-showcase::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(13,27,42,.95) 0%, rgba(13,27,42,.3) 35%, transparent 100%); z-index: 1; }
.hero-portrait { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity 1.4s ease-in-out; }
.hero-portrait.active { opacity: 1; }
.hero-portrait img { height: 100%; width: 100%; object-fit: contain; object-position: bottom center; filter: drop-shadow(-20px 0 40px rgba(13,27,42,.6)); }
.hero-content { position: relative; z-index: 4; max-width: 660px; padding-top: 90px; padding-bottom: 16px; display: flex; flex-direction: column; justify-content: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(201,162,39,.15); border: 1px solid rgba(201,162,39,.4); color: var(--gold); font-size: .78rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 8px 18px; border-radius: 50px; margin-bottom: 24px; backdrop-filter: blur(8px); animation: fadeInDown .8s ease .3s both; }
.hero-title { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 16px; animation: fadeInUp .9s ease .5s both; }
.hero-title .highlight { background: linear-gradient(135deg, var(--gold), var(--gold-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: clamp(.95rem, 1.8vw, 1.1rem); color: rgba(255,255,255,.82); margin-bottom: 28px; font-weight: 400; animation: fadeInUp .9s ease .7s both; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeInUp .9s ease .9s both; }
.btn-primary-hero { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--deep-blue); font-weight: 700; font-size: .95rem; padding: 14px 32px; border-radius: 50px; border: none; cursor: pointer; transition: var(--transition); box-shadow: 0 6px 25px rgba(201,162,39,.4); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary-hero:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(201,162,39,.55); color: var(--deep-blue); }
.btn-outline-hero { background: transparent; color: var(--white); font-weight: 600; font-size: .95rem; padding: 13px 32px; border-radius: 50px; border: 2px solid rgba(255,255,255,.5); cursor: pointer; transition: var(--transition); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; backdrop-filter: blur(8px); }
.btn-outline-hero:hover { background: rgba(255,255,255,.12); border-color: var(--white); color: var(--white); transform: translateY(-3px); }
.hero-stats { position: relative; z-index: 4; background: rgba(13,27,42,.92); backdrop-filter: blur(12px); border-top: 1px solid rgba(201,162,39,.2); }
.hero-stat-item { padding: 20px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.hero-stat-item:last-child { border-right: none; }
.hero-indicators { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 8px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: var(--transition); border: none; padding: 0; }
.hero-dot.active { background: var(--gold); width: 24px; border-radius: 4px; }

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(20px);  } to { opacity: 1; transform: translateY(0); } }
.hero-stat-number { font-size: 1.8rem; font-weight: 800; color: var(--gold); line-height: 1; display: block; }
.hero-stat-label { font-size: .75rem; color: rgba(255,255,255,.65); font-weight: 400; letter-spacing: .5px; margin-top: 4px; display: block; }

/* ── Section Backgrounds ── */
section { padding: 88px 0; }

.adinkra-bg {
  background: var(--deep-blue);
  position: relative;
  overflow: hidden;
}
.adinkra-bg .section-badge {
  background: rgba(201,162,39,.12);
  color: var(--gold-light);
  border-color: rgba(201,162,39,.25);
}
.adinkra-bg .section-title { color: var(--white); }
.adinkra-bg .section-title span { color: var(--gold); }
.adinkra-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(27,94,32,.12) 0%, transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(201,162,39,.06) 0%, transparent 50%);
  pointer-events: none;
}

/* ── About Section ── */
.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;  /* allow badges to overflow */
  box-shadow: var(--shadow-lg);
}
.about-image-wrapper > img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}
.about-image-badge {
  position: absolute; bottom: 24px; left: 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.badge-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-mid));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: .9rem; flex-shrink: 0;
}
.badge-text strong { font-size: .88rem; display: block; color: var(--deep-blue); }
.badge-text span   { font-size: .75rem; color: var(--text-muted); }

.about-accent-card {
  position: absolute; top: 24px; right: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  text-align: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.about-accent-card .number { display: block; font-size: 1.8rem; font-weight: 900; color: var(--deep-blue); line-height: 1; }
.about-accent-card .label  { font-size: .72rem; color: rgba(13,27,42,.8); margin-top: 4px; display: block; }

.about-feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 0; }
.about-feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .93rem; color: rgba(255,255,255,.82);
}
.about-feature-list li i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }

/* ── Nyamedua Symbol ── */
.nyamedua-symbol-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(201,162,39,.07);
  border: 1px solid rgba(201,162,39,.22);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 22px;
  width: 100%;
  max-width: 420px;
}
/* Circular container — canvas fills it, image sits centered on top */
.nyamedua-canvas-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(201,162,39,.06);
  border: 1px solid rgba(201,162,39,.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
#nyamedua-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}
.nyamedua-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: brightness(0) invert(1) sepia(1) saturate(4) hue-rotate(5deg);
  opacity: .92;
  position: relative;
  z-index: 1;
  display: block;
  flex-shrink: 0;
}
.nyamedua-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nyamedua-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .03em;
  line-height: 1.2;
}
.nyamedua-meaning {
  font-size: .82rem;
  color: rgba(255,255,255,.62);
  line-height: 1.4;
}

/* ── Gallery ── */
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  min-height: 140px;
  background: linear-gradient(135deg, #0D1B2A, #1B5E20);
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,27,42,.6), rgba(27,94,32,.4));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.4rem;
  opacity: 0; transition: opacity .35s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── Services ── */
.service-card {
  background: var(--white);
  border: 1px solid rgba(13,27,42,.07);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  height: 100%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27,94,32,.15);
}
.service-icon-wrap {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, rgba(27,94,32,.1), rgba(27,94,32,.06));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--emerald); font-size: 1.4rem;
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon-wrap {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-mid));
  color: var(--white);
}
.service-card h4 { font-size: 1.05rem; font-weight: 700; color: var(--deep-blue); margin-bottom: 10px; }
.service-card p  { font-size: .88rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.65; }
.service-link {
  font-size: .82rem; font-weight: 700; color: var(--emerald);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s;
}
.service-link:hover { gap: 10px; color: var(--emerald); }

.service-card--corporate {
  background: var(--deep-blue);
  border-color: rgba(201,162,39,.2);
}
.service-card--corporate h4,
.service-card--corporate p { color: rgba(255,255,255,.85); }
.service-card--corporate .service-link { color: var(--gold); }
.service-card--corporate .service-link:hover { color: var(--gold-light); }
.service-card--corporate .service-icon-wrap { background: rgba(201,162,39,.12); color: var(--gold); }
.service-card--corporate:hover .service-icon-wrap { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--deep-blue); }

.service-card--concierge {
  background: linear-gradient(145deg, #0a1825, #0d2318);
  border: 1px solid rgba(201,162,39,.3);
  position: relative;
  overflow: hidden;
}
.service-card--concierge::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(201,162,39,.15), transparent 70%);
  pointer-events: none;
}
.service-card--concierge h4 { color: var(--gold); }
.service-card--concierge p  { color: rgba(255,255,255,.72); }
.service-card--concierge .service-icon-wrap { background: rgba(201,162,39,.12); color: var(--gold); }
.service-card--concierge:hover .service-icon-wrap { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--deep-blue); }
.service-card--concierge .service-link { color: var(--gold); }

.corporate-perks { list-style: none; margin-bottom: 20px; display: flex; flex-direction: column; gap: 7px; }
.corporate-perks li { display: flex; align-items: center; gap: 8px; font-size: .83rem; color: rgba(255,255,255,.72); }
.corporate-perks li i { color: var(--gold); font-size: .75rem; flex-shrink: 0; }

/* ── Why Choose Us ── */
.why-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  height: 100%;
  transition: var(--transition);
}
.why-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(201,162,39,.25);
  transform: translateY(-4px);
}
.why-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(201,162,39,.15), rgba(201,162,39,.06));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.25rem;
  margin-bottom: 18px;
}
.why-card h5 { font-size: .97rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.why-card p  { font-size: .87rem; color: rgba(255,255,255,.58); line-height: 1.65; margin: 0; }

/* ── Testimonials ── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(13,27,42,.06);
  height: 100%;
}
.testimonial-stars { color: var(--gold); font-size: .85rem; margin-bottom: 14px; }
.testimonial-text {
  font-size: .91rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--deep-blue), var(--emerald));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: .78rem; font-weight: 700;
  flex-shrink: 0;
}
.testimonial-author-info strong { font-size: .88rem; display: block; color: var(--deep-blue); }
.testimonial-author-info span  { font-size: .78rem; color: var(--text-muted); }

.swiper-button-next,
.swiper-button-prev { color: var(--gold) !important; }
.swiper-pagination-bullet-active { background: var(--gold) !important; }

/* ── Blog Section ── */
#blog { background: var(--off-white); }

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(13,27,42,.06);
  height: 100%;
  display: flex; flex-direction: column;
  transition: var(--transition);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-card-img {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.blog-card-icon {
  font-size: 2.8rem;
  color: rgba(255,255,255,.25);
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex; flex-direction: column;
}

.blog-tag {
  display: inline-block;
  background: rgba(27,94,32,.08);
  color: var(--emerald);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 50px;
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 1rem; font-weight: 700;
  color: var(--deep-blue);
  line-height: 1.4;
  margin-bottom: 10px;
}
.blog-card-excerpt {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}
.blog-read-more {
  font-size: .82rem; font-weight: 700;
  color: var(--emerald);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto;
  transition: gap .2s;
}
.blog-read-more:hover { gap: 10px; color: var(--emerald-mid); }

/* ── Patient Sign-Up ── */
.signup-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 40px;
  box-shadow: var(--shadow-lg);
}
.signup-form-card .form-label { font-size: .84rem; font-weight: 600; color: var(--deep-blue); margin-bottom: 6px; }
.signup-form-card .form-control,
.signup-form-card .form-select {
  border: 1px solid rgba(13,27,42,.14);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: .9rem;
  color: var(--text-dark);
  transition: var(--transition);
}
.signup-form-card .form-control:focus,
.signup-form-card .form-select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(27,94,32,.12);
  outline: none;
}
.signup-form-card .form-control.is-invalid { border-color: #dc3545; }

.signup-success {
  text-align: center;
  padding: 40px 20px;
}
.signup-success i {
  font-size: 3.5rem;
  color: var(--emerald);
  margin-bottom: 16px;
  display: block;
}
.signup-success h4 { color: var(--deep-blue); font-weight: 800; margin-bottom: 10px; }
.signup-success p  { color: var(--text-muted); font-size: .95rem; }

/* ── Contact Section ── */
.contact-info-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  height: 100%;
}
.contact-info-item {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 22px;
}
.contact-info-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(201,162,39,.15), rgba(201,162,39,.06));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: .95rem;
  flex-shrink: 0;
}
.contact-info-text strong { font-size: .8rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 4px; }
.contact-info-text a, .contact-info-text span {
  color: var(--white); font-size: .88rem; text-decoration: none; display: block;
}
.contact-info-text a:hover { color: var(--gold); }

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}
.contact-form-card .form-label { font-size: .84rem; font-weight: 600; color: var(--deep-blue); }
.contact-form-card .form-control,
.contact-form-card .form-select {
  border: 1px solid rgba(13,27,42,.12);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: .9rem;
  transition: var(--transition);
}
.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(27,94,32,.1);
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--deep-blue), #1a3a5c);
  color: var(--white);
  font-weight: 700; font-size: .95rem;
  padding: 14px;
  border: none; border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-mid));
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(27,94,32,.4);
}

.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}
.map-wrapper iframe { width: 100%; height: 240px; border: none; display: block; }

/* ── Footer Social ── */
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); font-size: .85rem;
  text-decoration: none;
  transition: var(--transition);
}
.social-btn:hover {
  background: var(--gold);
  color: var(--deep-blue);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ── Footer ── */
footer { background: var(--deep-blue); padding: 72px 0 0; }

.footer-desc { color: rgba(255,255,255,.5); font-size: .87rem; line-height: 1.75; }

.footer-heading {
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  color: rgba(255,255,255,.5); font-size: .87rem;
  text-decoration: none;
  display: flex; align-items: center; gap: 7px;
  transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-links .fa-chevron-right { font-size: .65rem; color: var(--gold); opacity: .6; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px 0;
  margin-top: 56px;
}
.footer-bottom p, .footer-bottom span { color: rgba(255,255,255,.35); font-size: .82rem; }
.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ── Scroll To Top ── */
#scrollTop {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--deep-blue);
  border: none; border-radius: 50%;
  font-size: .95rem;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  z-index: 800;
  box-shadow: 0 4px 16px rgba(201,162,39,.4);
}
#scrollTop.visible { opacity: 1; visibility: visible; }
#scrollTop:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(201,162,39,.5); }

/* ── WhatsApp Floating Bot ── */
#whatsappBot {
  position: fixed;
  bottom: 88px; right: 28px;
  width: 56px; height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  text-decoration: none;
  z-index: 1050;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: wa-bounce 2.4s ease-in-out infinite;
}
#whatsappBot:hover {
  animation: none;
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(37,211,102,.6);
}
#whatsappBot:hover .wa-tooltip { opacity: 1; transform: translateX(0); pointer-events: auto; }
.wa-tooltip {
  position: absolute;
  right: 66px;
  background: #fff;
  color: #111;
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: #fff;
}
@keyframes wa-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  45%       { transform: translateY(-8px) scale(1); }
  65%       { transform: translateY(-4px) scale(1); }
}

/* ── Scroll Animations ── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }
.animate-delay-1 { transition-delay: .1s; }
.animate-delay-2 { transition-delay: .2s; }
.animate-delay-3 { transition-delay: .3s; }

.slide-left  { transform: translateX(-40px) !important; }
.slide-right { transform: translateX(40px)  !important; }
.slide-left.animated,
.slide-right.animated { transform: translateX(0) !important; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .hero-image-showcase { width: 36%; }
  #hero .container { padding-right: calc(36% + 24px); }
}

@media (max-width: 767px) {
  section { padding: 60px 0; }
  .hero-image-showcase { display: none; }
  .hero-wrapper { height: 100svh; min-height: 560px; }
  #hero { height: auto; min-height: 0; display: flex; align-items: flex-start; }
  #hero .container { padding: 0 20px; }
  .hero-content { padding-top: 90px; padding-bottom: 32px; text-align: center; }
  .hero-badge { font-size: .65rem; letter-spacing: 2px; padding: 7px 16px; margin-bottom: 18px; }
  .hero-title { font-size: 2.1rem; line-height: 1.14; margin-bottom: 14px; }
  .hero-subtitle { font-size: .9rem; line-height: 1.72; margin-bottom: 26px; max-width: 340px; margin-left: auto; margin-right: auto; }
  .hero-buttons { flex-direction: row; gap: 10px; justify-content: center; flex-wrap: wrap; }
  .btn-primary-hero { padding: 12px 22px; font-size: .82rem; flex: 1; min-width: 138px; max-width: 175px; justify-content: center; }
  .btn-outline-hero  { padding: 11px 22px; font-size: .82rem; flex: 1; min-width: 138px; max-width: 175px; justify-content: center; }
  .hero-indicators { bottom: 12px; }
  .hero-stats { background: rgba(13,27,42,.95); border-top: 1px solid rgba(201,162,39,.2); padding: 10px 16px 16px; }
  .hero-stats .container { padding: 0; }
  .hero-stats .row { display: flex; flex-wrap: nowrap; gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
  .hero-stats .row::-webkit-scrollbar { display: none; }
  .hero-stats .row > div { flex: 0 0 auto; width: auto; border-right: none !important; padding: 0; }
  .hero-stat-item { background: rgba(255,255,255,.07); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.15); border-radius: 50px; padding: 9px 18px; text-align: center; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
  .hero-stat-number { font-size: 1.05rem; font-weight: 800; color: var(--gold); line-height: 1; display: inline; }
  .hero-stat-label  { font-size: .68rem; color: rgba(255,255,255,.75); letter-spacing: 0; margin-top: 0; display: inline; }
  .about-image-wrapper > img { height: 280px; }
  .about-image-badge { left: 12px; bottom: 12px; }
  .about-accent-card { right: 12px; top: 12px; }
  .signup-form-card { padding: 24px 20px; }
  .contact-form-card { padding: 24px 20px; }
  .nyamedua-symbol-wrap { flex-direction: column; align-items: center; text-align: center; padding: 20px 16px; max-width: 100%; }
  .nyamedua-label { align-items: center; }
  .nyamedua-canvas-wrap { width: 100px; height: 100px; }
  /* blog card icon smaller on mobile */
  .blog-card-icon { font-size: 1.8rem; }
  .blog-card-img { height: 120px; }
  /* WhatsApp bot: smaller, keep visible above mobile browser chrome */
  #whatsappBot { width: 50px; height: 50px; font-size: 1.5rem; bottom: 80px; right: 16px; z-index: 1050; }
  .wa-tooltip { display: none; }
}

@media (max-width: 480px) {
  .gallery-item { min-height: 110px; }
  .preloader-center { width: 110px; height: 110px; }
  .preloader-logo { width: 65px; height: 65px; }
}
