/* ==========================================================================
   ENAYA HEALTHCARE SERVICES - MODERN DESIGN SYSTEM & STYLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Caveat:wght@600;700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Brand Color Palette */
  --primary: #008fa0;
  --primary-hover: #007786;
  --primary-light: #e6f6f8;
  --primary-subtle: #f0fafb;
  --primary-gradient: linear-gradient(135deg, #008fa0 0%, #00b4d8 100%);
  --teal-gradient-text: linear-gradient(120deg, #008fa0, #00c0d8);
  
  /* Medical Pink / Magenta Category */
  --pink-accent: #d94680;
  --pink-hover: #c0266b;
  --pink-bg: #fdf2f7;
  --pink-border: #f9d8e8;
  --pink-badge-bg: #fce7f1;

  /* Nursing Cyan / Teal Category */
  --cyan-accent: #0096a6;
  --cyan-bg: #effafb;
  --cyan-border: #cdeef2;
  --cyan-badge-bg: #e0f6f8;

  /* Neutral Tones */
  --text-main: #132238;
  --text-muted: #5e718d;
  --text-light: #8a9bb2;
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f8fafc;
  --border-light: #e4edf4;
  --border-card: #e9f1f5;

  /* Dark Theme for Footer */
  --footer-bg: #091726;
  --footer-text: #94a3b8;
  --footer-border: #1a2c42;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-handwriting: 'Caveat', cursive;
  --font-arabic: 'Cairo', 'Plus Jakarta Sans', sans-serif;

  /* Shadows & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(19, 34, 56, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 143, 160, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 143, 160, 0.12);
  --shadow-card: 0 10px 30px rgba(19, 34, 56, 0.05);
  --shadow-hover: 0 20px 40px rgba(0, 143, 160, 0.16);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(228, 237, 244, 0.6);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 143, 160, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 20px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.brand-logo:hover {
  transform: scale(1.02);
}

.enaya-brand-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-logo-img {
  height: 58px;
}

/* Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.dropdown-arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.phone-call-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all var(--transition-fast);
  position: relative;
}

.phone-icon-wrap svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.phone-call-box:hover .phone-icon-wrap {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(0, 143, 160, 0.35);
}

.phone-call-box:hover .phone-icon-wrap svg {
  animation: phoneRingWiggle 0.6s ease-in-out infinite alternate;
}

.phone-details {
  display: flex;
  flex-direction: column;
}

.phone-number {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  transition: color var(--transition-fast);
}

.phone-call-box:hover .phone-number {
  color: var(--primary);
}

.phone-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 143, 160, 0.25);
  border: 1px solid transparent;
}

.btn-primary svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 143, 160, 0.35);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--primary);
  transition: all var(--transition-fast);
}

.btn-secondary svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-secondary:hover svg {
  transform: translateX(3px);
}

/* Mobile Toggle & Drawer Defaults */
.mobile-nav-toggle {
.mobile-toggle-btn,
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.mobile-toggle-btn span,
.mobile-nav-toggle span,
.hamburger-bar {
  width: 100%;
  height: 2.5px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-fast);
  display: block;
}

.mobile-nav-drawer {
  display: none;
}

/* ==========================================================================
   HERO SECTION (Full-Width Slideshow with ▦ Tile Fold / Disappear Transition)
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 640px;
  padding: 60px 0 70px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #0b1c2c;
}

/* Full Width Background Slideshow Layers */
.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  background-color: #0b1c2c;
}

.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: 50% 30%;
  background-repeat: no-repeat;
  transition: opacity 0.5s ease;
  will-change: opacity;
}

.hero-bg-layer.active {
  z-index: 1;
  opacity: 1;
}

.hero-bg-layer.under {
  z-index: 0;
  opacity: 1;
}

/* Full Width Background Image for Static Inner Pages */
.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 25%;
  display: block;
  z-index: 1;
}

/* Tile Grid Overlay Container */
.hero-tiles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  perspective: 1200px;
}

/* Individual ▦ Tile */
.hero-tile {
  position: absolute;
  background-repeat: no-repeat;
  will-change: transform, opacity, filter;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  box-sizing: border-box;
}

/* Tile Fold / Disappear Animation (Slower, Cinematic 3D Wave) */
.hero-tile.fold-disappear {
  animation: tileFoldDisappear 1.25s cubic-bezier(0.28, 0.05, 0.2, 1) forwards;
}

@keyframes tileFoldDisappear {
  0% {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1) translateZ(0);
    opacity: 1;
    filter: brightness(1) blur(0px);
  }
  35% {
    transform: perspective(1000px) rotateX(-35deg) rotateY(20deg) scale(0.94) translateZ(20px);
    opacity: 0.95;
    filter: brightness(1.15) blur(0.3px);
  }
  70% {
    transform: perspective(1000px) rotateX(-75deg) rotateY(55deg) scale(0.6) translateZ(50px);
    opacity: 0.6;
    filter: brightness(0.85) blur(2px);
  }
  100% {
    transform: perspective(1000px) rotateX(-105deg) rotateY(90deg) scale(0.1) translateZ(80px);
    opacity: 0;
    filter: brightness(0.4) blur(6px);
  }
}

/* Overlay Gradient: Light Primary / White on the Left -> Transparent on the Right */
.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.98) 25%,
    rgba(240, 250, 251, 0.95) 42%,
    rgba(240, 250, 251, 0.75) 55%,
    rgba(240, 250, 251, 0.35) 68%,
    rgba(255, 255, 255, 0.05) 80%,
    transparent 100%
  );
  z-index: 3;
  pointer-events: none;
}

/* Slide Item & Content Transitions */
.hero-slide-item {
  display: none;
  width: 100%;
  opacity: 0;
}

.hero-slide-item.active {
  display: block;
  opacity: 1;
}

.hero-content-animated {
  animation: heroSlideTextIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroSlideTextIn {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide Navigation Controls (Prev/Next & Dots) */
.hero-slider-nav {
  position: absolute;
  bottom: 24px;
  right: 48px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 50, 70, 0.12);
  border: 1px solid rgba(0, 143, 160, 0.2);
}

@media (max-width: 768px) {
  .hero-slider-nav {
    right: 50%;
    transform: translateX(50%);
    bottom: 16px;
  }
}

.hero-slider-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-slider-arrow:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 143, 160, 0.3);
}

.hero-slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
}

.hero-slider-dot.active {
  width: 24px;
  border-radius: 12px;
  background: var(--primary);
}

/* Decorative Background Wings / Emblem (Left Middle - Full Height - Opacity 0.2) */
.hero-decor-wings {
  position: absolute;
  top: 50%;
  left: -20px;
  right: auto;
  height: 90%;
  max-height: 580px;
  width: auto;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 4;
  opacity: 0.2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: emblemGentleFloat 8s ease-in-out infinite alternate;
}

.hero-decor-emblem-img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}

@keyframes emblemGentleFloat {
  0% {
    transform: translateY(-50%) rotate(0deg) scale(1);
  }
  100% {
    transform: translateY(calc(-50% - 8px)) rotate(1.5deg) scale(1.02);
  }
}

.hero-container {
  position: relative;
  z-index: 5;
  width: 100%;
}

.hero-inner-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 500px;
}

.hero-content {
  max-width: 570px;
  z-index: 6;
}

.badge-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: #0096a6;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 3.35rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: #112238;
  margin-bottom: 20px;
}

.hero-title .highlight-text {
  color: #0096a6;
  background: linear-gradient(90deg, #008fa0 0%, #00b4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.68;
  color: #556987;
  margin-bottom: 34px;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 42px;
}

/* Trust Badges Row */
.trust-badges-row {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 12px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #0096a6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0096a6;
  flex-shrink: 0;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 150, 166, 0.08);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.trust-icon-box svg {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trust-item:hover .trust-icon-box {
  transform: translateY(-4px) scale(1.1);
  background: #0096a6;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 150, 166, 0.35);
}

.trust-item:hover .trust-icon-box svg {
  transform: scale(1.15) rotate(8deg);
}

.trust-icon-box.badge-clock {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0096a6;
}

.trust-item:hover .trust-icon-box.badge-clock {
  color: #ffffff;
}

.trust-text {
  display: flex;
  flex-direction: column;
}

.trust-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #112238;
  line-height: 1.2;
}

.trust-sub {
  font-size: 0.74rem;
  color: #556987;
  font-weight: 500;
  line-height: 1.2;
}

/* Free Floating "Better Care Together" Script Callout (Right side) */
.hero-handwritten-floating {
  position: absolute;
  bottom: 25px;
  right: 15px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: rotate(-5deg);
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.95));
}

.handwritten-blue {
  font-family: var(--font-handwriting);
  font-size: 2.7rem;
  font-weight: 700;
  color: #1c3654;
  line-height: 1;
  letter-spacing: 0.5px;
}

.handwritten-pink {
  font-family: var(--font-handwriting);
  font-size: 3.1rem;
  font-weight: 700;
  color: #d94680;
  line-height: 0.95;
  margin-top: -6px;
  margin-left: 22px;
  position: relative;
  display: inline-block;
}

.pink-brush-underline {
  position: absolute;
  bottom: -10px;
  left: -10px;
  width: 120%;
  height: 18px;
  pointer-events: none;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
  padding: 96px 0 108px 0;
  background-color: #ffffff;
}

.section-header-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px auto;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Two-Column Category Cards Grid */
.services-categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Main Category Container Card */
.service-category-card {
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

/* Cyan / Nursing Category */
.service-category-card.category-nursing {
  background-color: var(--cyan-bg);
  border: 1.5px solid var(--cyan-border);
}

.service-category-card.category-nursing:hover {
  box-shadow: 0 16px 36px rgba(0, 150, 166, 0.12);
  border-color: rgba(0, 150, 166, 0.4);
}

/* Pink / Medical Category */
.service-category-card.category-medical {
  background-color: var(--pink-bg);
  border: 1.5px solid var(--pink-border);
}

.service-category-card.category-medical:hover {
  box-shadow: 0 16px 36px rgba(217, 70, 128, 0.12);
  border-color: rgba(217, 70, 128, 0.4);
}

/* Category Header */
.category-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.category-icon-pill {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-icon-pill svg {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-category-card:hover .category-icon-pill {
  transform: scale(1.12) rotate(-6deg);
}

.service-category-card.category-nursing:hover .category-icon-pill {
  box-shadow: 0 6px 20px rgba(0, 150, 166, 0.3);
}

.service-category-card.category-medical:hover .category-icon-pill {
  box-shadow: 0 6px 20px rgba(217, 70, 128, 0.3);
}

.service-category-card:hover .category-icon-pill svg {
  transform: scale(1.15);
}

.category-nursing .category-icon-pill {
  background: var(--cyan-badge-bg);
  color: var(--cyan-accent);
}

.category-medical .category-icon-pill {
  background: var(--pink-badge-bg);
  color: var(--pink-accent);
}

.category-info {
  display: flex;
  flex-direction: column;
}

.category-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 4px;
}

.category-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Nested Sub-Cards Grid */
.category-subcards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: auto;
}

.sub-service-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(228, 237, 244, 0.7);
  transition: all var(--transition-normal);
  position: relative;
}

.sub-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.sub-card-thumb {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.sub-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.sub-service-card:hover .sub-card-thumb img {
  transform: scale(1.06);
}

.sub-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sub-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.sub-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sub-card-icon svg {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sub-service-card:hover .sub-card-icon {
  transform: scale(1.22) rotate(10deg);
}

.category-nursing .sub-card-icon {
  background: var(--cyan-badge-bg);
  color: var(--cyan-accent);
}

.category-medical .sub-card-icon {
  background: var(--pink-badge-bg);
  color: var(--pink-accent);
}

.sub-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.sub-card-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.sub-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.btn-circle-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid transparent;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-circle-arrow svg {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-nursing .btn-circle-arrow {
  border-color: var(--cyan-accent);
  color: var(--cyan-accent);
  background: transparent;
}

.category-nursing .sub-service-card:hover .btn-circle-arrow {
  background: var(--cyan-accent);
  color: #ffffff;
  transform: scale(1.1) rotate(45deg);
  box-shadow: 0 4px 12px rgba(0, 150, 166, 0.35);
}

.category-medical .btn-circle-arrow {
  border-color: var(--pink-accent);
  color: var(--pink-accent);
  background: transparent;
}

.category-medical .sub-service-card:hover .btn-circle-arrow {
  background: var(--pink-accent);
  color: #ffffff;
  transform: scale(1.1) rotate(45deg);
  box-shadow: 0 4px 12px rgba(217, 70, 128, 0.35);
}

/* ==========================================================================
   WHY CHOOSE US SECTION
   ========================================================================== */
.why-choose-section {
  padding: 80px 0 96px 0;
  background-color: #fbfdfd;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  align-items: center;
  gap: 56px;
}

.why-choose-content {
  max-width: 440px;
}

.why-choose-content .section-title {
  font-size: 2.45rem;
  line-height: 1.2;
  margin-bottom: 18px;
}

.why-choose-content p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* 4 Feature Cards Row / Grid */
.features-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-pill-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 18px 24px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.feature-pill-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.feature-icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 10px rgba(0, 143, 160, 0.08);
}

.feature-icon-bubble svg {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-pill-card:hover .feature-icon-bubble {
  transform: scale(1.16) rotate(-8deg);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 143, 160, 0.35);
}

.feature-pill-card:hover .feature-icon-bubble svg {
  transform: scale(1.12) rotate(8deg);
}

.feature-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 8px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   CALL TO ACTION BANNER (CTA)
   ========================================================================== */
.cta-section {
  padding: 40px 0 60px 0;
}

.cta-banner-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #007786 0%, #0096a6 60%, #00b4d8 100%);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  min-height: 240px;
  display: flex;
  align-items: center;
}

.cta-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

.cta-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 119, 134, 0.96) 0%, rgba(0, 150, 166, 0.8) 55%, rgba(0, 180, 216, 0.35) 100%);
  z-index: 1;
}

.cta-inner-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 44px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cta-content {
  max-width: 520px;
}

.cta-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: #bbf2f6;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.cta-subtitle {
  font-size: 0.98rem;
  color: #e0f7fa;
  margin-bottom: 24px;
  line-height: 1.5;
}

.btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: all var(--transition-fast);
}

.btn-cta-white:hover {
  background: #f0fbfb;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

.cta-handwritten-badge {
  text-align: right;
  padding-right: 20px;
}

.cta-script-text {
  font-family: var(--font-handwriting);
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: relative;
}

.cta-script-sub {
  font-family: var(--font-handwriting);
  font-size: 2.6rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
  position: relative;
}

.cta-script-sub::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 80%;
  height: 3px;
  background: #f472b6;
  border-radius: 2px;
}

/* ==========================================================================
   METRICS & STATS BAR
   ========================================================================== */
.stats-section {
  padding: 24px 0 72px 0;
}

.stats-container-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-metric-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.stat-metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.stat-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 143, 160, 0.08);
}

.stat-icon-wrapper svg {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-metric-card:hover .stat-icon-wrapper {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.15) rotate(-6deg);
  box-shadow: 0 6px 18px rgba(0, 143, 160, 0.35);
}

.stat-metric-card:hover .stat-icon-wrapper svg {
  transform: scale(1.15) rotate(6deg);
}

.stat-icon-wrapper.stat-badge-247 {
  font-size: 0.85rem;
  font-weight: 800;
  border: 1.5px solid var(--primary);
  background: transparent;
}

.stat-metric-card:hover .stat-icon-wrapper.stat-badge-247 {
  background: var(--primary);
  color: #ffffff;
}

.stat-data {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 32px 0;
  border-top: 1px solid var(--footer-border);
}

.footer-top-row {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr 1.2fr;
  align-items: center;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--footer-border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.footer-nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: color var(--transition-fast);
}

.footer-nav-links a:hover {
  color: #38bdf8;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-icon-btn svg {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-icon-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-4px) scale(1.15);
  box-shadow: 0 6px 18px rgba(0, 143, 160, 0.45);
}

.social-icon-btn:hover svg {
  transform: scale(1.1) rotate(8deg);
}

.footer-contact-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #cbd5e1;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.footer-contact-icon {
  color: #38bdf8;
  font-size: 0.95rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-contact-item:hover {
  color: #38bdf8;
  transform: translateX(-3px);
}

.footer-contact-item:hover .footer-contact-icon {
  transform: scale(1.2) rotate(-8deg);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.82rem;
  color: #64748b;
}

.footer-motto {
  font-weight: 600;
  color: #94a3b8;
  position: relative;
  padding-top: 6px;
}

.footer-motto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #38bdf8;
  border-radius: 2px;
}

/* ==========================================================================
   INTERACTIVE MODAL FOR "GET IN TOUCH" / "BOOKING"
   ========================================================================== */
.modal-overlay,
.modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 28, 44, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active,
.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card,
.modal-dialog,
.modal-container {
  background: #ffffff;
  border-radius: 24px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  box-shadow: 0 25px 60px -15px rgba(0, 30, 50, 0.35), 0 0 0 1px rgba(0, 143, 160, 0.08);
  transform: scale(0.92) translateY(24px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.modal-overlay.active .modal-card,
.modal-overlay.active .modal-container,
.modal-backdrop.active .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 22px;
  padding-right: 32px;
}

.modal-kicker,
.modal-badge,
.modal-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: #e6f7fa;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.3;
}

.modal-desc,
.modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.modal-form,
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 580px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label,
.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form input[type="tel"],
.modal-form input[type="date"],
.modal-form select,
.modal-form textarea,
.form-input,
.form-select,
.form-textarea,
.form-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid #dbeafe;
  font-family: inherit;
  font-size: 0.9rem;
  color: #1e293b;
  background: #fcfdfe;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 143, 160, 0.15);
}

.modal-form input[type="file"] {
  width: 100%;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1.5px dashed #cbd5e1;
  background: #f8fafc;
  font-size: 0.85rem;
  color: #475569;
  cursor: pointer;
}

.modal-form input[type="file"]::file-selector-button {
  background: #e6f7fa;
  color: var(--primary);
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  margin-right: 10px;
  transition: background 0.2s;
}

.modal-form input[type="file"]::file-selector-button:hover {
  background: #cbf0f5;
}

.modal-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  margin-top: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Floating Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  pointer-events: none;
}

.toast-message {
  pointer-events: auto;
}

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

@keyframes slideInRight {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Universal Overflow & Layout Safety */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 24px;
  }
}

@media (max-width: 1080px) {
  .hero-section {
    min-height: 580px;
    padding: 50px 0 60px 0;
  }

  .hero-title {
    font-size: 2.85rem;
  }

  .hero-gradient-overlay {
    background: linear-gradient(
      90deg,
      #ffffff 0%,
      rgba(255, 255, 255, 0.98) 45%,
      rgba(240, 250, 251, 0.92) 60%,
      rgba(240, 250, 251, 0.6) 78%,
      rgba(255, 255, 255, 0.1) 92%,
      transparent 100%
    );
  }

  .why-choose-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .why-choose-content {
    max-width: 680px;
    margin: 0 auto;
  }

  .features-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .footer-brand,
  .footer-contact-box {
    align-items: center;
    text-align: center;
  }

  .footer-location-item,
  .footer-email-item {
    justify-content: center;
  }

  .footer-phone-cta {
    margin: 0 auto 16px auto;
  }

  .contact-hub-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 992px) {
  .main-nav,
  .header-actions .phone-call-box {
    display: none;
  }

  .mobile-toggle-btn,
  .mobile-nav-toggle {
    display: flex;
  }

  .services-categories-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-detail-grid,
  .service-detail-grid.grid-reversed {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .grid-reversed .service-showcase-wrapper {
    order: 2;
  }
}

@media (max-width: 860px) {
  .hero-section {
    min-height: 520px;
    padding: 40px 0 50px 0;
  }

  .hero-bg-img {
    object-position: 75% 25%;
    opacity: 0.88;
  }

  .hero-decor-wings {
    opacity: 0.08;
    max-height: 400px;
  }

  .hero-gradient-overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(240, 250, 251, 0.94) 65%,
      rgba(240, 250, 251, 0.72) 85%,
      rgba(255, 255, 255, 0.35) 100%
    );
  }

  .hero-inner-layout {
    flex-direction: column;
    text-align: center;
    align-items: center;
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .trust-badges-row {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .hero-handwritten-floating {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 28px;
    align-items: center;
    justify-content: center;
  }

  .stats-container-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Mobile Drawer Menu */
  .mobile-nav-drawer {
    display: flex;
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    height: calc(100vh - 76px);
    background: #ffffff;
    padding: 28px 24px;
    flex-direction: column;
    gap: 20px;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform var(--transition-normal), visibility var(--transition-normal);
    z-index: 99999;
    box-shadow: 0 10px 40px rgba(0, 50, 70, 0.15);
    overflow-y: auto;
  }

  .mobile-nav-drawer.open {
    transform: translateX(0);
    visibility: visible;
  }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
  }

  .mobile-nav-link {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-main);
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 143, 160, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
  }

  .mobile-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.92rem;
  }

  .mobile-cta-btn {
    width: 100%;
    padding: 13px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.92rem;
  }

  .cta-inner-grid {
    flex-direction: column;
    text-align: center;
    gap: 28px;
    padding: 36px 24px;
  }

  .cta-handwritten-badge {
    padding-right: 0;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2.25rem;
    letter-spacing: -0.6px;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 26px;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .service-detail-title {
    font-size: 1.85rem;
  }

  .category-subcards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-detail-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .stats-container-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stat-card {
    padding: 20px;
  }

  .trust-badges-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .trust-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 143, 160, 0.15);
    box-shadow: 0 2px 8px rgba(0, 50, 70, 0.05);
  }

  .handwritten-blue {
    font-size: 1.85rem;
  }

  .handwritten-pink {
    font-size: 2.1rem;
  }

  .contact-form-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

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

  .modal-overlay,
  .modal-backdrop {
    padding: 12px;
  }

  .modal-content-wrap,
  .modal-box,
  .modal-container {
    padding: 24px 18px;
    border-radius: 20px;
    max-height: 92vh;
  }

  .modal-title {
    font-size: 1.35rem;
  }

  .footer-bottom-row {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .footer-nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 20px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 10px 0;
  }

  .brand-logo img,
  .enaya-brand-img {
    height: 40px;
  }

  .header-actions .btn-primary {
    padding: 9px 16px;
    font-size: 0.84rem;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .service-category-card {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .category-icon-pill {
    width: 52px;
    height: 52px;
  }

  .category-title {
    font-size: 1.55rem;
  }

  .job-card {
    padding: 20px 16px;
  }

  .floating-care-badge {
    bottom: 10px;
    right: 10px;
    left: 10px;
    padding: 10px 14px;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .badge-tag {
    font-size: 0.72rem;
    letter-spacing: 1.2px;
  }
}

/* ==========================================================================
   ICON MICRO-ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes phoneRingWiggle {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-14deg) scale(1.1); }
  50% { transform: rotate(14deg) scale(1.1); }
  75% { transform: rotate(-10deg) scale(1.05); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes iconSoftPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 143, 160, 0.2);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 6px rgba(0, 143, 160, 0);
  }
}

@keyframes iconFloatGentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* ==========================================================================
   SERVICES PAGE DETAIL SECTIONS
   ========================================================================== */
.services-trust-row {
  gap: 28px;
}

.services-floating-script {
  bottom: 40px;
  right: 25px;
}

.services-detail-section {
  padding: 100px 0;
  background-color: #ffffff;
  position: relative;
}

.section-reversed-bg {
  background-color: #f7fcfd;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.service-detail-grid.grid-reversed {
  grid-template-columns: 0.85fr 1.15fr;
}

.service-section-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.tag-dash {
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.service-detail-title {
  font-size: 2.55rem;
  font-weight: 800;
  line-height: 1.18;
  color: #112238;
  letter-spacing: -0.8px;
  margin-bottom: 18px;
}

.service-detail-desc {
  font-size: 1rem;
  line-height: 1.68;
  color: #556987;
  margin-bottom: 38px;
  max-width: 560px;
}

/* 2-Card Grid in Detail Sections */
.service-detail-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.service-card-item {
  background: #ffffff;
  border: 1px solid rgba(228, 237, 244, 0.85);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 18px rgba(0, 143, 160, 0.04);
  position: relative;
}

.service-card-item:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 16px 36px rgba(0, 143, 160, 0.12);
}

.card-icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cyan-badge-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card-item:hover .card-icon-bubble {
  transform: scale(1.15) rotate(-6deg);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 143, 160, 0.35);
}

.card-item-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #112238;
  margin-bottom: 10px;
}

.card-item-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #556987;
  margin-bottom: 24px;
  flex: 1;
}

.card-learn-more-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-top: auto;
}

.link-circle-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-learn-more-link:hover .link-circle-arrow {
  background: var(--primary);
  color: #ffffff;
  transform: translateX(4px) rotate(45deg);
}

.card-learn-more-link:hover {
  color: var(--primary-hover);
}

/* Showcase Image Wrapper */
.service-showcase-wrapper {
  position: relative;
}

.showcase-img-card {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 143, 160, 0.12);
  position: relative;
  aspect-ratio: 4/4.5;
  background: #f0fafb;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.showcase-img-card:hover .showcase-img {
  transform: scale(1.04);
}

/* Floating Care Badge */
.floating-care-badge {
  position: absolute;
  bottom: 24px;
  right: 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 12px 22px 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 32px rgba(0, 143, 160, 0.2);
  border: 1px solid rgba(0, 192, 216, 0.3);
  animation: careBadgeGentleFloat 5s ease-in-out infinite alternate;
  z-index: 5;
}

.care-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e6f7fa;
  color: #008fa0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.care-badge-text {
  display: flex;
  flex-direction: column;
}

.care-badge-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: #112238;
  line-height: 1.2;
}

.care-badge-text span {
  font-size: 0.76rem;
  color: #556987;
  font-weight: 500;
}

@keyframes careBadgeGentleFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* Medical Showcase Bottom-Left Decorative Emblem */
.showcase-decor-emblem {
  position: absolute;
  bottom: -25px;
  left: -25px;
  width: 150px;
  pointer-events: none;
  opacity: 0.9;
  filter: drop-shadow(0 6px 16px rgba(0, 143, 160, 0.25));
  z-index: 4;
}

.showcase-decor-emblem img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive Rules for Services Page */
@media (max-width: 992px) {
  .service-detail-grid,
  .service-detail-grid.grid-reversed {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .grid-reversed .service-showcase-wrapper {
    order: 2;
  }
}

@media (max-width: 600px) {
  .service-detail-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .floating-care-badge {
    bottom: 12px;
    right: 12px;
    left: 12px;
    padding: 10px 16px;
  }
}

/* ==========================================================================
   FIRST-TIME VISIT SITE PRELOADER
   ========================================================================== */
html.preloader-skipped .site-preloader {
  display: none !important;
}

.site-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s ease;
  pointer-events: all;
  background-image: radial-gradient(circle at 50% 40%, rgba(0, 143, 160, 0.08) 0%, rgba(217, 70, 128, 0.04) 40%, #ffffff 80%);
}

.site-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-preloader.hidden-instantly {
  display: none !important;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  max-width: 440px;
}

.preloader-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.preloader-logo-img {
  height: 64px;
  width: auto;
  position: relative;
  z-index: 2;
  animation: preloaderLogoBreathe 2s ease-in-out infinite alternate;
}

.preloader-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 143, 160, 0.25) 0%, rgba(217, 70, 128, 0.1) 60%, transparent 80%);
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: preloaderPulse 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.preloader-bar-wrap {
  width: 220px;
  height: 4px;
  background: #eef3f6;
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
}

.preloader-bar-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #008fa0 0%, #00b4d8 50%, #d94680 100%);
  border-radius: 99px;
  transition: width 1.1s cubic-bezier(0.25, 1, 0.5, 1);
}

.preloader-tagline {
  font-size: 0.88rem;
  font-weight: 600;
  color: #556987;
  letter-spacing: 0.3px;
  opacity: 0.9;
  animation: preloaderTextFade 1.2s ease-in-out infinite alternate;
}

@keyframes preloaderLogoBreathe {
  0% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1.03);
  }
}

@keyframes preloaderPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0.3;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.8;
  }
}

@keyframes preloaderTextFade {
  0% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}
