/* ============================================
   EVERCARE - Design Tokens & Variables
   (Consolidated from all page-specific files)
   ============================================ */
:root {
  /* Colors - Primary Palette */
  --color-oblivion-primary: #020B37;
  --color-midnight-primary: #143388;
  --color-midnight-60-tint: #A1ADCF;
  --color-midnight-96-tint: #F9FAFF;
  --color-white: #FFFFFF;

  /* Colors - Accent (Hedgehog Mushroom) */
  --color-hedgehog-primary: #FBF0DA;
  --color-hedgehog-80-tint: #FEFCF8;
  --color-hedgehog-40-shade: #979083;
  --color-hedgehog-20-shade: #C9C0AE;

  /* Colors - Blue Accent (Karimun) */
  --color-karimun-60-tint: #9AD2F7;
  --color-karimun-60-shade: #01395E;
  --color-karimun-80-tint: #CCE8FB;
  --color-karimun-40-shade: #01558C;
  --color-karimun-20-shade: #0272BB;

  /* Colors - Oblivion Shades */
  --color-oblivion-80-shade: #CCCED7;
  --color-oblivion-60-shade: #9A9DAF;
  --color-oblivion-20-shade: #353C5F;

  /* Colors - Midnight Tints */
  --color-midnight-80-tint: #D0D6E7;
  --color-midnight-20-tint: #435CA0;

  /* Colors - Semantic */
  --color-text-secondary: #4A5565;
  --color-text-dark: #101828;
  --color-text-heading: #101828;
  --color-services-bg: #DEEEFD;

  /* Spacing Scale */
  --spacing-2xs: 0px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 20px;
  --spacing-xl: 24px;
  --spacing-2xl: 32px;
  --spacing-3xl: 40px;
  --spacing-6xl: 80px;

  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-round: 999px;

  /* Typography */
  --font-primary: 'Kumbh Sans', sans-serif;
  --font-secondary: 'Inter', sans-serif;
}


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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  color: var(--color-oblivion-primary);
  background-color: var(--color-white);
  line-height: 1.5;
}

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

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

ul, ol {
  list-style: none;
}

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


/* ============================================
   Layout - Page Container
   ============================================ */
.page {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-x: hidden;
}


/* ============================================
   Component - Header
   ============================================ */
.header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 1080px;
  max-width: calc(100% - 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs) var(--spacing-lg);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0px 2px 16.1px 0px rgba(2, 11, 55, 0.24);
  z-index: 100;
}

.header__logo {
  height: 40px;
  width: auto;
}

.header__nav {
  display: flex;
  gap: var(--spacing-2xl);
  align-items: center;
}

.header__nav-link {
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-oblivion-primary);
  transition: opacity 0.2s;
}

.header__nav-link:hover {
  opacity: 0.7;
}

.header__actions {
  display: flex;
  gap: var(--spacing-xl);
  align-items: center;
}

.header__login {
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  color: var(--color-oblivion-primary);
}

.header__login:hover {
  opacity: 0.7;
}


/* ============================================
   Component - Header Profile Dropdown
   ============================================ */
.header__profile {
  position: relative;
}

.header__profile-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  color: var(--color-oblivion-primary);
  padding: 4px 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.header__profile-btn:hover {
  opacity: 0.7;
}

.header__profile-icon {
  flex-shrink: 0;
}

.header__profile-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header__profile-chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.header__profile--open .header__profile-chevron {
  transform: rotate(180deg);
}

.header__profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--color-white);
  border: 1px solid var(--color-midnight-60-tint);
  border-radius: var(--radius-sm);
  box-shadow: 0px 4px 16px rgba(2, 11, 55, 0.12);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
  z-index: 200;
}

.header__profile--open .header__profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__profile-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--color-oblivion-primary);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.header__profile-dropdown-item:hover {
  background: var(--color-midnight-96-tint);
}

.header__profile-dropdown-item--logoff {
  color: #dc3545;
  border-top: 1px solid var(--color-midnight-80-tint);
  margin-top: 4px;
  padding-top: 12px;
}


/* ============================================
   Component - Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  border-radius: var(--radius-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  transition: opacity 0.2s, transform 0.1s;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--color-midnight-primary);
  color: var(--color-hedgehog-primary);
}

.btn--primary-white-text {
  background: var(--color-midnight-primary);
  color: var(--color-white);
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-oblivion-primary);
  border: 1px solid var(--color-midnight-60-tint);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-oblivion-primary);
}

.btn--small {
  font-size: 14px;
  padding: var(--spacing-sm) var(--spacing-md);
  gap: var(--spacing-xs);
}

.btn--small .btn__icon {
  width: 16px;
  height: 16px;
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn__icon img {
  width: 100%;
  height: 100%;
}


/* ============================================
   Component - Badge / Pill
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--color-karimun-60-tint);
  border-radius: var(--radius-round);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-oblivion-primary);
}


/* ============================================
   Component - Feature Card
   (Shared between index and about-us pages)
   ============================================ */
.feature-card {
  flex: 1;
  background: var(--color-midnight-96-tint);
  border: 1px solid var(--color-midnight-60-tint);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.feature-card--fixed-height {
  height: 252px;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.feature-card__icon img {
  width: 100%;
  height: 100%;
}

.feature-card__icon--bg {
  background: var(--color-oblivion-80-shade);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card__icon--bg img {
  width: 24px;
  height: 24px;
}

.feature-card__text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.feature-card__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.feature-card__description {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: var(--color-text-secondary);
}


/* ============================================
   Component - Stats Row
   (Shared between index and services pages)
   ============================================ */
.stats {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  width: 1360px;
  max-width: 100%;
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 var(--spacing-xs);
}

.stat__icon {
  width: 64px;
  height: 64px;
  background: var(--color-karimun-80-tint);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat__icon img {
  width: 32px;
  height: 32px;
}

.stat__number {
  font-size: 48px;
  font-weight: 400;
  line-height: 48px;
  text-align: center;
  letter-spacing: 0.35px;
}

.stat__label {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  letter-spacing: -0.3125px;
}


/* ============================================
   Section - CTA (Your Health, Our Priority)
   ============================================ */
.cta {
  position: relative;
  width: 100%;
  height: 756px;
  background: var(--color-midnight-96-tint);
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  top: 136px;
  left: 0;
  width: 100%;
  height: 620px;
  background: var(--color-hedgehog-primary);
  overflow: clip;
}

.cta__image {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 1130px;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 1;
}

.cta__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__content {
  position: absolute;
  top: 520px;
  left: 50%;
  transform: translateX(-50%);
  width: 898px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}

.cta__title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.2;
  width: 437px;
}

.cta__right {
  width: 437px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-xl);
  height: 156px;
}

.cta__description {
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  flex: 1 0 0;
}

.cta__buttons {
  display: flex;
  gap: var(--spacing-md);
  width: 100%;
}

.cta__buttons .btn {
  flex: 1;
}

.cta__buttons .btn--primary-white-text {
  font-weight: 600;
}


/* ============================================
   Section - Footer
   ============================================ */
.footer {
  width: 100%;
  background: var(--color-hedgehog-primary);
  padding: var(--spacing-3xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3xl);
}

.footer__main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer__logo {
  height: 41px;
  width: auto;
}

.footer__tagline {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.3125px;
  max-width: 412px;
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  background: var(--color-oblivion-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.footer__social-link:hover {
  opacity: 0.8;
}

.footer__social-link img {
  width: 20px;
  height: 20px;
}

.footer__links {
  display: flex;
  gap: var(--spacing-6xl);
}

.footer__column {
  width: 160px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer__column-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 27px;
  letter-spacing: -0.44px;
}

.footer__column-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer__column-link {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.3125px;
  transition: opacity 0.2s;
}

.footer__column-link:hover {
  opacity: 0.7;
}

/* Footer Bottom */
.footer__bottom {
  border-top: 1px solid var(--color-oblivion-primary);
  padding-top: 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copyright {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.15px;
}

.footer__legal {
  display: flex;
  gap: var(--spacing-xl);
}

.footer__legal-link {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.15px;
  transition: opacity 0.2s;
}

.footer__legal-link:hover {
  opacity: 0.7;
}


/* ============================================
   Responsive - Tablet (max-width: 1280px)
   ============================================ */
@media (max-width: 1280px) {
  .cta {
    height: auto;
    padding-bottom: var(--spacing-6xl);
  }

  .cta__image {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: calc(100% - 80px);
    margin: var(--spacing-3xl) auto 0;
    height: 350px;
  }

  .cta__bg {
    position: relative;
    top: auto;
    height: auto;
    padding: var(--spacing-6xl) var(--spacing-3xl);
  }

  .cta__content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: calc(100% - 80px);
    max-width: 898px;
    margin: 0 auto;
    flex-direction: column;
    gap: var(--spacing-3xl);
  }

  .cta__title {
    font-size: 48px;
    width: 100%;
  }

  .cta__right {
    width: 100%;
    height: auto;
  }

  .footer__main {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-3xl);
  }

  .footer__brand {
    align-items: center;
    text-align: center;
  }

  .footer__tagline {
    text-align: center;
  }

  .footer__socials {
    justify-content: center;
  }

  .footer__links {
    gap: var(--spacing-3xl);
  }

  .stats {
    width: 100%;
  }
}


/* ============================================
   Responsive - Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  .header {
    width: calc(100% - 32px);
  }

  .header__nav {
    display: none;
  }

  .stats {
    flex-wrap: wrap;
  }

  .stat {
    min-width: 45%;
  }

  .feature-card--fixed-height {
    height: auto;
  }

  .cta__image {
    width: calc(100% - 48px);
  }

  .cta__content {
    width: calc(100% - 48px);
  }

  .cta__title {
    font-size: 36px;
  }

  .cta__buttons {
    flex-direction: column;
  }

  .footer {
    padding: var(--spacing-xl);
  }

  .footer__tagline {
    max-width: 100%;
  }

  .footer__links {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
  }

  .footer__column {
    width: 100%;
    max-width: 280px;
    align-items: center;
    text-align: center;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    text-align: center;
  }

  .footer__legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
  }
}


/* ============================================
   Component - Cookie Consent Banner
   ============================================ */
.cookie-consent {
  position: fixed;
  bottom: var(--spacing-xl);
  left: var(--spacing-xl);
  transform: translateY(100%);
  width: 720px;
  max-width: calc(100% - 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
  padding: var(--spacing-lg) var(--spacing-xl);
  background: var(--color-white);
  border: 1px solid var(--color-midnight-60-tint);
  border-radius: var(--radius-md);
  box-shadow: 0px 4px 24px rgba(2, 11, 55, 0.18);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-consent__text {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--color-oblivion-primary);
  flex: 1;
}

.cookie-consent__actions {
  display: flex;
  gap: var(--spacing-xs);
  flex-shrink: 0;
}

.cookie-consent__btn--accept {
  background: var(--color-midnight-primary);
  color: var(--color-hedgehog-primary);
  font-size: 14px;
  padding: var(--spacing-xs) var(--spacing-md);
}

.cookie-consent__btn--decline {
  background: var(--color-white);
  color: var(--color-oblivion-primary);
  border: 1px solid var(--color-midnight-60-tint);
  font-size: 14px;
  padding: var(--spacing-xs) var(--spacing-md);
}

@media (max-width: 768px) {
  .cookie-consent {
    flex-direction: column;
    text-align: center;
    bottom: var(--spacing-md);
  }

  .cookie-consent__actions {
    width: 100%;
  }

  .cookie-consent__btn--accept,
  .cookie-consent__btn--decline {
    flex: 1;
  }
}
