/*
Theme Name: Clenia Clinical
Theme URI: https://clenia.webflow.io/
Author: Sakhawat Hossain
Author URI: https://wordpress.org
Description: A pixel-perfect, 1:1 WordPress recreation of the Clenia design with radiant radial spotlight background, seamless transparent navigation, Inter Tight typography, rolling text buttons, and GSAP animation.
Version: 1.0.1
License: GNU General Public License v2 or later
Text Domain: clenia-clinical
*/

/* ==========================================================================
   1. EXACT CLENIA TOKENS
   ========================================================================== */
:root {
  --color--primary: #173c64;
  --color--yellow: #f7f7b9;
  --color--gray: #6a757f;
  --font-base: 'Inter Tight', Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  min-height: 100vh;
}

/* THE EXACT RADIAL SPOTLIGHT GRADIENT MATCHING SCREENSHOT */
body {
  background: radial-gradient(ellipse 65% 52% at 50% 48%, #ffffff 0%, #ffffff 30%, #fbfbe2 60%, #f7f7b9 100%);
  background-color: var(--color--yellow);
  background-attachment: fixed;
  color: var(--color--primary);
  font-family: var(--font-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   2. TRANSPARENT SEAMLESS STICKY HEADER (AUTO-SHRINK ON SCROLL)
   ========================================================================== */
.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: 0 0 0 transparent;
  transition: background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: background-color, box-shadow;
}

/* WP Admin Bar Compatibility */
body.admin-bar .site-header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px !important;
  }
}

/* Scrolled Sticky State: Solid Pure White Background & Subtle Elevation */
.site-header.is-scrolled {
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(23, 60, 100, 0.08);
  box-shadow: 0 4px 20px rgba(23, 60, 100, 0.06);
}

/* Inner 1360px Header Alignment Container */
.header-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 26px 48px 12px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header Container Shrink on Scroll */
.site-header.is-scrolled .header-container {
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-logo {
  font-size: 28px;
  font-weight: 500;
  color: var(--color--primary);
  letter-spacing: -0.035em;
  display: flex;
  align-items: center;
  line-height: 1;
  transition: font-size 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s ease;
}

.site-header.is-scrolled .brand-logo {
  font-size: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  transition: gap 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-scrolled .nav-links {
  gap: 22px;
}

.nav-item {
  position: relative;
  padding: 10px 0;
}

.nav-link {
  color: var(--color--primary);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: font-size 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.site-header.is-scrolled .nav-link {
  font-size: 13.5px;
}

.nav-link:hover {
  opacity: 0.75;
}

.nav-link svg.dropdown-arrow {
  width: 10px;
  height: 10px;
  stroke: var(--color--primary);
  stroke-width: 2;
  transition: transform 0.25s ease;
}

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

/* Pulsing Red Emergency Dot */
.emergency-pulse {
  width: 7px;
  height: 7px;
  background-color: #e53e3e;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
  box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(229, 62, 62, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(229, 62, 62, 0);
  }
}

/* Dropdown Menus (Clenia Clinical Styling) */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 290px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid rgba(23, 60, 100, 0.08);
  box-shadow: 0 14px 38px rgba(23, 60, 100, 0.12);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  z-index: 100;
}

.nav-item.has-dropdown:hover .nav-dropdown-menu,
.account-widget-wrap:hover .account-dropdown,
.account-widget-wrap.is-active .account-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-category-title {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--color--gray);
  letter-spacing: 0.06em;
  padding: 6px 20px 6px 20px;
}

.dropdown-item {
  display: block;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color--primary);
  text-decoration: none;
  transition: background-color 0.2s ease, padding-left 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #fbfbe2;
  color: var(--color--primary);
  padding-left: 24px;
}

.dropdown-divider {
  height: 1px;
  background: rgba(23, 60, 100, 0.07);
  margin: 6px 0;
}

.logout-link {
  color: #dc3545 !important;
}

.logout-link:hover {
  background-color: #fff5f5 !important;
}

/* Featured Provider Onboarding Card (Approach 2) */
.dropdown-provider-card {
  margin: 10px 12px 4px 12px;
  padding: 12px 14px;
  background-color: #fbfbe2;
  border-radius: 6px;
  border: 1px solid rgba(23, 60, 100, 0.09);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dropdown-provider-card:hover {
  background-color: #f7f7b9;
  border-color: rgba(23, 60, 100, 0.2);
}

.provider-card-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color--primary);
  opacity: 0.7;
  margin-bottom: 3px;
}

.provider-card-heading {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color--primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.provider-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color--primary);
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.provider-card-link svg {
  transition: transform 0.2s ease;
}

.dropdown-provider-card:hover .provider-card-link svg {
  transform: translateX(3px);
}

.provider-emergency-item {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--color--primary) !important;
  padding: 8px 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px;
}

.provider-emergency-item:hover {
  background-color: #fbfbe2 !important;
  padding-left: 24px !important;
}

/* Minimal Animated Lottie/Vector Ambulance Icon */
.ambulance-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ambulance-icon {
  width: 19px;
  height: 15px;
  display: block;
  transition: transform 0.25s ease;
}

.siren-beacon,
.siren-dot {
  animation: siren-flash 1.2s infinite ease-in-out;
  transform-origin: center;
}

@keyframes siren-flash {
  0%, 100% {
    opacity: 0.35;
    filter: drop-shadow(0 0 0px #e53e3e);
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 3px #e53e3e);
  }
}

.provider-emergency-item:hover .ambulance-icon,
.provider-highlight:hover .ambulance-icon {
  transform: translateX(3px);
}

.provider-highlight {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  transition: gap 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-scrolled .header-actions {
  gap: 18px;
}

/* Account Widget */
.account-widget-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
}

.account-trigger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color--primary);
  transition: transform 0.2s ease;
}

.account-trigger:hover {
  transform: scale(1.06);
}

.account-trigger .account-icon {
  width: 24px;
  height: 24px;
  display: block;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-scrolled .account-trigger .account-icon {
  width: 20px;
  height: 20px;
}

.account-dropdown {
  right: 0;
  left: auto;
  min-width: 230px;
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.2s ease;
}

.cart-trigger:hover {
  transform: scale(1.06);
}

.cart-trigger .cart-icon {
  width: 24px;
  height: 24px;
  display: block;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-scrolled .cart-trigger .cart-icon {
  width: 20px;
  height: 20px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -3px;
  background-color: var(--color--primary);
  color: #ffffff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-family: var(--font-base);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(23, 60, 100, 0.25);
  transition: width 0.35s ease, height 0.35s ease, font-size 0.35s ease, top 0.35s ease, right 0.35s ease;
}

.site-header.is-scrolled .cart-badge {
  width: 15px;
  height: 15px;
  font-size: 9.5px;
  top: -3px;
  right: -3px;
}

/* Header CTA: Initial dark navy background matching reference screenshot 1:1 */
.header-cta {
  border-radius: 3px;
  background-color: var(--color--primary) !important;
  color: #ffffff !important;
  text-transform: uppercase;
  justify-content: center;
  align-items: center;
  padding: 15px 38px;
  font-family: var(--font-base);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  box-shadow: none;
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              font-size 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.35s ease,
              border-color 0.35s ease,
              background-color 0.35s ease;
}

.site-header.is-scrolled .header-cta {
  padding: 9px 24px;
  font-size: 11.5px;
}

.header-cta .cta-text {
  position: relative;
  z-index: 2;
  color: #ffffff !important;
  transition: color 0.35s ease;
}

.header-cta .cta-overlay {
  background-color: var(--color--yellow) !important;
}

.header-cta:hover .cta-overlay {
  width: 50.5%;
  height: 50.5%;
}

.header-cta:hover .cta-text {
  color: var(--color--primary) !important;
}

.header-cta:hover {
  border-color: var(--color--primary);
  color: var(--color--primary) !important;
  box-shadow: none;
}

/* ==========================================================================
   2.1 MOBILE HAMBURGER TOGGLE BUTTON
   ========================================================================== */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 60;
  -webkit-tap-highlight-color: transparent;
  transition: width 0.35s ease, height 0.35s ease;
}

.site-header.is-scrolled .mobile-toggle {
  width: 32px;
  height: 32px;
}

.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color--primary);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  transform-origin: center;
}

.mobile-toggle.is-active .bar-top {
  transform: translateY(4px) rotate(45deg);
}

.mobile-toggle.is-active .bar-bottom {
  transform: translateY(-4px) rotate(-45deg);
}

/* ==========================================================================
   2.2 MOBILE DRAWER & BACKDROP
   ========================================================================== */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 60, 100, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 998;
}

.mobile-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background-color: #ffffff;
  border-left: 1px solid rgba(23, 60, 100, 0.08);
  box-shadow: -10px 0 35px rgba(23, 60, 100, 0.12);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-drawer.is-active {
  transform: translateX(0);
}

.drawer-header {
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(23, 60, 100, 0.08);
  background-color: #ffffff;
}

.drawer-logo {
  font-size: 26px;
  font-weight: 500;
  color: var(--color--primary);
  letter-spacing: -0.035em;
  text-decoration: none;
  line-height: 1;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  color: var(--color--primary);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-close:hover {
  opacity: 1;
  transform: scale(1.08);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 28px 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.drawer-item {
  border-bottom: 1px solid rgba(23, 60, 100, 0.06);
  padding-bottom: 8px;
}

.drawer-item:last-child {
  border-bottom: none;
}

.drawer-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--color--primary);
  text-decoration: none;
  padding: 8px 0;
  display: block;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}

.drawer-link:hover {
  opacity: 0.75;
}

/* Accordion in Mobile Drawer */
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 500;
  color: var(--color--primary);
  padding: 8px 0;
  cursor: pointer;
  text-align: left;
  letter-spacing: -0.01em;
}

.accordion-arrow {
  width: 12px;
  height: 12px;
  stroke: var(--color--primary);
  stroke-width: 2;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.has-accordion.is-open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 8px;
}

.has-accordion.is-open .accordion-content {
  max-height: 600px;
  opacity: 1;
  padding-top: 6px;
  padding-bottom: 12px;
}

.drawer-sublink {
  font-size: 14px;
  font-weight: 450;
  color: var(--color--primary);
  opacity: 0.85;
  text-decoration: none;
  padding: 6px 0;
  display: block;
  transition: opacity 0.2s ease, padding-left 0.2s ease;
}

.drawer-sublink:hover {
  opacity: 1;
  padding-left: 6px;
}

.drawer-sublink.provider-highlight {
  font-weight: 600;
  opacity: 1;
  color: var(--color--primary);
  margin-top: 4px;
}

/* Drawer Provider Card */
.drawer-provider-card {
  margin: 10px 0 4px 0;
  padding: 12px 14px;
  background-color: #fbfbe2;
  border-radius: 6px;
  border: 1px solid rgba(23, 60, 100, 0.1);
}

/* Drawer Footer */
.drawer-footer {
  margin-top: auto;
  border-top: 1px solid rgba(23, 60, 100, 0.08);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}

.drawer-user-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color--gray);
  font-weight: 600;
}

.drawer-user-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color--primary);
}

.drawer-portal-btn,
.drawer-login-btn,
.drawer-register-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(23, 60, 100, 0.14);
  color: var(--color--primary);
  background-color: #ffffff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.drawer-portal-btn:hover,
.drawer-login-btn:hover,
.drawer-register-btn:hover {
  background-color: #fbfbe2;
  border-color: var(--color--primary);
}

.drawer-logout-btn {
  text-align: center;
  font-size: 13px;
  color: #dc3545;
  text-decoration: none;
  padding: 6px 0;
  transition: opacity 0.2s ease;
}

.drawer-logout-btn:hover {
  opacity: 0.8;
}

.drawer-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  border-radius: 3px;
  background-color: var(--color--primary);
  color: #ffffff;
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 6px;
  border: 1px solid transparent;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.drawer-cta-btn:hover {
  background-color: var(--color--yellow);
  color: var(--color--primary);
  border-color: var(--color--primary);
}

/* ==========================================================================
   3. HERO SECTION (FULL VIEWPORT HEIGHT 100VH / 100DVH)
   ========================================================================== */
.hero-section {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 24px 50px 24px;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  color: var(--color--primary);
  font-size: clamp(34px, 7vw, 94px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.028em;
  margin-bottom: 26px;
  text-align: center;
}

.hero-description {
  color: var(--color--primary);
  font-size: clamp(14px, 1.35vw, 15.5px);
  font-weight: 400;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 34px auto;
  text-align: center;
  opacity: 0.88;
  letter-spacing: -0.005em;
}

.hero-cta {
  border-radius: 3px;
  background-color: var(--color--yellow);
  color: var(--color--primary);
  text-transform: uppercase;
  justify-content: center;
  align-items: center;
  padding: clamp(13px, 1.8vw, 15px) clamp(26px, 3.2vw, 38px);
  font-family: var(--font-base);
  font-size: clamp(12.5px, 1.1vw, 13.5px);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  box-shadow: none;
  transition: color 0.35s ease, border-color 0.35s ease;
}

.hero-cta .cta-text {
  position: relative;
  z-index: 2;
  transition: color 0.35s ease;
}

.cta-overlay {
  background-color: var(--color--primary);
  position: absolute;
  overflow: hidden;
  z-index: 1;
  transition: width 0.45s cubic-bezier(0.25, 1, 0.5, 1), height 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.cta-overlay.top-left {
  top: 0;
  left: 0;
  width: 0%;
  height: 50%;
}

.cta-overlay.top-right {
  top: 0;
  right: 0;
  width: 0%;
  height: 50%;
}

.cta-overlay.bottom-left {
  bottom: 0;
  left: 0;
  width: 0%;
  height: 50%;
}

.cta-overlay.bottom-right {
  bottom: 0;
  right: 0;
  width: 0%;
  height: 50%;
}

.hero-cta:hover .cta-overlay {
  width: 50.5%;
  height: 50.5%;
}

.hero-cta:hover .cta-text {
  color: #ffffff;
}

.hero-cta:hover {
  border-color: var(--color--primary);
  box-shadow: none;
}

/* ==========================================================================
   4. PIXEL-PERFECT RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Laptop / Compact Desktop (992px to 1199px) */
@media (max-width: 1199px) {
  .header-container {
    padding: 20px 32px 10px 32px;
  }
  .site-header.is-scrolled .header-container {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .nav-links {
    gap: 20px;
  }
  .nav-link {
    font-size: 14px;
  }
  .header-actions {
    gap: 18px;
  }
  .header-cta {
    padding: 13px 26px;
    font-size: 12.5px;
  }
  .site-header.is-scrolled .header-cta {
    padding: 9px 20px;
    font-size: 11px;
  }
  .site-main,
  .page-main,
  .page-content-container,
  [id^="ecare-"][id$="-root"] {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }
}

/* Tablets & Mobile Landscape (<= 991px) */
@media (max-width: 991px) {
  .header-container {
    padding: 16px 28px 10px 28px;
  }
  .site-header.is-scrolled .header-container {
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .header-actions {
    gap: 16px;
  }
  .header-cta {
    padding: 12px 22px;
    font-size: 12px;
  }
  .site-header.is-scrolled .header-cta {
    padding: 8px 18px;
    font-size: 11px;
  }
  .hero-section {
    padding: 90px 24px 40px 24px;
  }
  .hero-title {
    margin-bottom: 20px;
  }
  .hero-description {
    margin-bottom: 28px;
  }
  .site-main,
  .page-main,
  .page-content-container,
  [id^="ecare-"][id$="-root"] {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }
}

/* Phablets & Mobile Landscape (<= 767px) */
@media (max-width: 767px) {
  .header-container {
    padding: 14px 20px 8px 20px;
  }
  .site-header.is-scrolled .header-container {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .brand-logo {
    font-size: 24px;
  }
  .site-header.is-scrolled .brand-logo {
    font-size: 20px;
  }
  /* Clean Minimal Header on Mobile: hide CTA button in bar, keep cart, account and hamburger */
  .header-cta {
    display: none;
  }
  .header-actions {
    gap: 14px;
  }
  .account-dropdown {
    right: -10px;
    min-width: 220px;
  }
  .hero-section {
    padding: 80px 20px 36px 20px;
  }
  .hero-title {
    margin-bottom: 16px;
  }
  .hero-description {
    line-height: 1.55;
    margin-bottom: 24px;
  }
  .site-main,
  .page-main,
  .page-content-container,
  [id^="ecare-"][id$="-root"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Mobile Portrait & Small Screens (<= 479px) */
@media (max-width: 479px) {
  .header-container {
    padding: 12px 16px 6px 16px;
  }
  .site-header.is-scrolled .header-container {
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .brand-logo {
    font-size: 22px;
  }
  .site-header.is-scrolled .brand-logo {
    font-size: 18.5px;
  }
  .header-actions {
    gap: 12px;
  }
  .cart-trigger .cart-icon,
  .account-trigger .account-icon {
    width: 22px;
    height: 22px;
  }
  .site-header.is-scrolled .cart-trigger .cart-icon,
  .site-header.is-scrolled .account-trigger .account-icon {
    width: 19px;
    height: 19px;
  }
  .cart-badge {
    width: 16px;
    height: 16px;
    font-size: 10px;
    top: -4px;
    right: -4px;
  }
  .mobile-drawer {
    max-width: 100%;
    border-left: none;
  }
  .drawer-header {
    padding: 18px 20px;
  }
  .drawer-body {
    padding: 20px 20px 32px 20px;
    gap: 20px;
  }
  .hero-section {
    padding: 70px 16px 30px 16px;
  }
  .hero-title {
    letter-spacing: -0.025em;
    margin-bottom: 14px;
  }
  .hero-description {
    line-height: 1.5;
    margin-bottom: 22px;
  }
  .hero-cta {
    width: 100%;
    max-width: 290px;
    padding: 13px 20px;
    font-size: 12px;
  }
  .site-main,
  .page-main,
  .page-content-container,
  [id^="ecare-"][id$="-root"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ==========================================================================
   5. IN-PAGE CONTENT SECTIONS & CONTAINER ALIGNMENT (MATCHING HEADER 1360px)
   ========================================================================== */
:root {
  --site-max-width: 1360px;
  --ecare-container-width: 1360px;
}

body {
  --ecare-container-width: 1360px !important;
}

/* Fixed Header Clearance for Non-Home Pages */
body:not(.home) .site-main,
body:not(.home) .page-main,
body:not(.home) [id^="ecare-"][id$="-root"] {
  padding-top: 105px !important;
}

@media (max-width: 1199px) {
  body:not(.home) .site-main,
  body:not(.home) .page-main,
  body:not(.home) [id^="ecare-"][id$="-root"] {
    padding-top: 96px !important;
  }
}

@media (max-width: 991px) {
  body:not(.home) .site-main,
  body:not(.home) .page-main,
  body:not(.home) [id^="ecare-"][id$="-root"] {
    padding-top: 86px !important;
  }
}

@media (max-width: 767px) {
  body:not(.home) .site-main,
  body:not(.home) .page-main,
  body:not(.home) [id^="ecare-"][id$="-root"] {
    padding-top: 76px !important;
  }
}

@media (max-width: 479px) {
  body:not(.home) .site-main,
  body:not(.home) .page-main,
  body:not(.home) [id^="ecare-"][id$="-root"] {
    padding-top: 68px !important;
  }
}

/* Page Main Container matching .site-header exact 1360px boundaries */
.site-main,
.page-main,
.page-content-container,
.page-article,
.container {
  width: 100% !important;
  max-width: 1360px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* E-Care root wrappers and modules - expand to full 1360px grid */
[class*="ecare-"][class*="-wrapper"],
.ecare-instant-booking-wrapper,
.ecare-doctors-wrapper,
.ecare-care-provider-booking-wrapper,
.ecare-care-provider-wrapper,
.ecare-lab-booking-wrapper,
.ecare-lab-wrapper,
.ecare-ward-booking-wrapper,
.ecare-ward-wrapper,
.ecare-ambulance-booking-wrapper,
.ecare-ambulance-wrapper,
.ecare-blood-bank-wrapper,
.ecare-portal-wrapper,
.ecare-registration-wrapper,
.ecare-login-wrapper,
.ecare-cart-wrapper {
  width: 100% !important;
  max-width: 1360px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* E-Care React roots: apply matching responsive padding to align with header items */
[id^="ecare-"][id$="-root"],
#ecare-instant-booking-root,
#ecare-doctors-root,
#ecare-care-provider-booking-root,
#ecare-lab-booking-root,
#ecare-ward-booking-root,
#ecare-ambulance-booking-root,
#ecare-blood-bank-root,
#ecare-portal-root,
#ecare-registration-root,
#ecare-cart-root {
  width: 100% !important;
  max-width: 1360px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 10px 48px 60px 48px !important;
  box-sizing: border-box !important;
}

.page-content-container {
  padding: 10px 48px 60px 48px;
}

/* When e-care root is present inside container, prevent double-padding */
.page-content-container:has([id^="ecare-"][id$="-root"]) {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ==========================================================================
   6. MASTER CLINICAL FOOTER (CLENIA 1:1)
   ========================================================================== */
.site-footer {
  background-color: var(--color--primary);
  color: #ffffff;
  width: 100%;
  position: relative;
  z-index: 20;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 70px 48px 32px 48px;
  box-sizing: border-box;
}

/* Top Action Tag Pills */
.footer-tag-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.footer-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #ffffff;
  font-family: var(--font-base);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: transparent;
}

.footer-tag-pill:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color--yellow);
  transform: translateY(-2px);
}

.footer-tag-pill.emergency-pill {
  border-color: rgba(229, 62, 62, 0.45);
}

.footer-tag-pill.emergency-pill:hover {
  border-color: #e53e3e;
  background-color: rgba(229, 62, 62, 0.14);
  color: #ffffff;
}

.footer-tag-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.footer-tag-pill:hover .footer-tag-icon {
  transform: scale(1.08);
}

/* Main Footer Link Grid */
.footer-link-wrap {
  display: grid;
  grid-template-columns: 1.35fr 1.15fr 1.15fr 1.25fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

/* Brand Column */
.footer-brand-logo {
  font-size: 28px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.035em;
  text-decoration: none;
  line-height: 1;
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #a8b4c0;
  margin-bottom: 22px;
  max-width: 320px;
}

.footer-trust-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
}

/* Column Headings */
.footer-col-title {
  font-family: var(--font-base);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
}

.footer-nav-link {
  font-size: 14px;
  font-weight: 450;
  color: #a8b4c0;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.footer-nav-link:hover {
  color: var(--color--yellow);
  padding-left: 4px;
}

.footer-nav-link.provider-link {
  color: #ffffff;
  font-weight: 500;
}

.footer-nav-link.provider-link:hover {
  color: var(--color--yellow);
}

/* Contact Column */
.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.footer-contact-item:last-child {
  margin-bottom: 0;
}

.contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a8b4c0;
  font-weight: 600;
}

.contact-value {
  font-size: 14.5px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-value:hover {
  color: var(--color--yellow);
}

.contact-value.hotline-link {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.contact-value.hotline-link:hover {
  color: var(--color--yellow);
}

.hotline-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #e53e3e;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7);
  animation: pulse-red 2s infinite;
}

.contact-text {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}

/* Divider */
.footer-divider-wrap {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

/* Footer Bottom Bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: #a8b4c0;
}

.footer-copyright {
  font-size: 13px;
  color: #a8b4c0;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-link {
  color: #a8b4c0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-link:hover {
  color: var(--color--yellow);
}

.legal-separator {
  color: rgba(255, 255, 255, 0.2);
}

/* Footer Responsive Breakpoints */
@media (max-width: 1199px) {
  .footer-container {
    padding: 60px 32px 28px 32px;
  }
  .footer-link-wrap {
    gap: 30px;
  }
}

@media (max-width: 991px) {
  .footer-container {
    padding: 50px 28px 25px 28px;
  }
  .footer-link-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-tag-wrap {
    gap: 14px;
    margin-bottom: 42px;
  }
  .footer-tag-pill {
    padding: 14px 28px;
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .footer-container {
    padding: 40px 20px 22px 20px;
  }
  .footer-tag-wrap {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 36px;
  }
  .footer-tag-pill {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 12.5px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 479px) {
  .footer-container {
    padding: 36px 16px 20px 16px;
  }
  .footer-link-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand-logo {
    font-size: 24px;
  }
  .footer-col-title {
    font-size: 13.5px;
    margin-bottom: 14px;
  }
  .footer-legal-links {
    gap: 8px;
    font-size: 11.5px;
  }
}
