/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Inter is loaded via <link> in layouts/_head.erb (see design system). */

/* ═══════════════════════════════════════════════════════════════
   HEALTHROOM BRAND PALETTE
   ═══════════════════════════════════════════════════════════════ */
:root {
  --hr-navy: #0B2437;
  --hr-navy-light: #122f45;
  --hr-navy-lighter: #1a3d5c;
  --hr-orange: #E8773F;
  --hr-orange-dark: #d46330;
  --hr-orange-light: #f0956a;
  --hr-cream: #F5F0E8;
  --hr-cream-dark: #ebe4d8;
  --hr-teal: #2B8B75;
  --hr-teal-light: #3aaa91;
  --hr-teal-dark: #1f6e5c;
  --hr-gold: #f59e0b;
}

/* ═══════════════════════════════════════════════════════════════
   BASE & TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */
body,
html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SLIDER SECTION
   ═══════════════════════════════════════════════════════════════ */
.hr-hero-slider-section {
  position: relative;
  overflow: hidden;
  background-color: var(--hr-navy);
}

.hr-hero-slider-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 139, 117, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 3;
}

.hr-hero-slider-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 119, 63, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 3;
}

.hr-hero-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hr-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hr-hero-slide.active {
  opacity: 1;
}

.hr-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Subtle Ken Burns zoom on the active slide */
@keyframes hero-ken-burns {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.08);
  }
}

.hr-hero-slide.active img {
  animation: hero-ken-burns 8s ease-out forwards;
}

/* Dark gradient overlay — very dark to preserve the navy design */
.hr-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg,
      rgba(11, 36, 55, 0.95) 0%,
      rgba(11, 36, 55, 0.92) 35%,
      rgba(11, 36, 55, 0.88) 60%,
      rgba(11, 36, 55, 0.82) 100%);
}

/* Slide navigation dots */
.hr-slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  padding: 0;
}

.hr-slide-dot.active {
  width: 32px;
  background: var(--hr-orange);
}

.hr-slide-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.6);
}



.hr-hero-orange-text {
  color: var(--hr-orange);
  font-style: italic;
}

.hr-btn-orange {
  background-color: var(--hr-orange);
  color: white;
  border: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(232, 119, 63, 0.35);
}

.hr-btn-orange:hover {
  background-color: var(--hr-orange-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 119, 63, 0.45);
}

.hr-btn-ghost-white {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  transition: all 0.25s ease;
}

.hr-btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: white;
  transform: translateY(-1px);
}

/* ECG animation for hero visual */
@keyframes ecg-draw {
  0% {
    stroke-dashoffset: 600;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

.ecg-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: ecg-draw 3s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════
   SHARED PAGE HEADER (for secondary pages)
   ═══════════════════════════════════════════════════════════════ */
.hr-page-header {
  background-color: var(--hr-navy);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4.5rem;
}

.hr-page-header::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 139, 117, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hr-page-header::after {
  content: '';
  position: absolute;
  bottom: -60%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 119, 63, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hr-page-header .breadcrumbs-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.hr-page-header .breadcrumbs-text a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.hr-page-header .breadcrumbs-text a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.hr-page-header h1 {
  color: white;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.hr-page-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════════ */
.hr-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hr-teal);
}

.hr-section-title {
  color: var(--hr-navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ═══════════════════════════════════════════════════════════════
   SERVICE CARDS
   ═══════════════════════════════════════════════════════════════ */
.hr-service-card {
  background: white;
  border-radius: 1rem;
  padding: 1.75rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.hr-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.hr-service-card-img {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.hr-service-card-img:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.hr-service-card-img .card-thumb {
  height: 180px;
  overflow: hidden;
}

.hr-service-card-img .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hr-service-card-img:hover .card-thumb img {
  transform: scale(1.08);
}

.hr-service-card-img .card-body {
  padding: 1.5rem;
}

.hr-service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   DOCTOR CARDS
   ═══════════════════════════════════════════════════════════════ */
.hr-doctor-card {
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hr-doctor-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hr-doctor-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.hr-doctor-card:hover img {
  transform: scale(1.05);
}

.hr-doctor-info {
  padding: 1.25rem;
}

.hr-doctor-info h3 {
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

.hr-doctor-info p {
  color: var(--hr-teal-light);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.hr-stars {
  display: flex;
  gap: 2px;
  margin-top: 0.5rem;
  align-items: center;
}

.hr-stars svg {
  width: 0.875rem;
  height: 0.875rem;
  color: #fbbf24;
  fill: #fbbf24;
}

/* Light-background doctor cards (for index page) */
.hr-doctor-card-light {
  border-radius: 1rem;
  overflow: hidden;
  background: white;
  border: 1px solid #e5e7eb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hr-doctor-card-light:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.hr-doctor-card-light img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.hr-doctor-card-light:hover img {
  transform: scale(1.05);
}

.hr-doctor-card-light .doctor-details {
  padding: 1.25rem;
  text-align: center;
}

.hr-doctor-card-light .doctor-details h3 {
  color: var(--hr-navy);
  font-weight: 700;
  font-size: 1rem;
}

.hr-doctor-card-light .doctor-details p {
  color: var(--hr-teal);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   TESTIMONIAL CARDS
   ═══════════════════════════════════════════════════════════════ */
.hr-testimonial-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0ede8;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.hr-testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* ═══════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════ */
.hr-cta-section {
  background-color: var(--hr-navy);
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
}

.hr-cta-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 139, 117, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   BLOG CARDS & CHIPS
   ═══════════════════════════════════════════════════════════════ */
.hr-blog-chip {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card figure img {
  transition: transform 0.5s ease;
}

.blog-card:hover figure img {
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════ */
.hr-nav-cta {
  background-color: var(--hr-teal);
  color: white !important;
  border: none;
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(43, 139, 117, 0.25);
}

.hr-nav-cta:hover {
  background-color: var(--hr-teal-light);
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43, 139, 117, 0.35);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.hr-footer {
  background-color: var(--hr-navy);
  color: rgba(255, 255, 255, 0.85);
}

.hr-footer a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.hr-footer a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.hr-footer .footer-title {
  color: rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   BRANDED BUTTONS (reusable)
   ═══════════════════════════════════════════════════════════════ */
.hr-btn-teal {
  background-color: var(--hr-teal);
  color: white;
  border: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(43, 139, 117, 0.3);
}

.hr-btn-teal:hover {
  background-color: var(--hr-teal-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(43, 139, 117, 0.4);
}

.hr-btn-outline-teal {
  background: transparent;
  color: var(--hr-teal);
  border: 1.5px solid var(--hr-teal);
  transition: all 0.25s ease;
}

.hr-btn-outline-teal:hover {
  background-color: var(--hr-teal);
  color: white;
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   FORM ELEMENTS (branded)
   ═══════════════════════════════════════════════════════════════ */
.hr-input {
  border: 1.5px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.hr-input:focus {
  border-color: var(--hr-teal);
  box-shadow: 0 0 0 3px rgba(43, 139, 117, 0.1);
  outline: none;
}

/* ═══════════════════════════════════════════════════════════════
   BRANDED CARDS (generic)
   ═══════════════════════════════════════════════════════════════ */
.hr-card {
  background: white;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hr-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY: ACCENTS, GRADIENTS, LINE CLAMPS
   ═══════════════════════════════════════════════════════════════ */
.accent-red {
  color: #dc2626;
}

.bg-accent-red {
  background-color: #dc2626;
  color: white;
}

.text-gradient-teal {
  background: linear-gradient(135deg, var(--hr-teal) 0%, var(--hr-teal-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

/* Floating animation for badges */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Counter animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-animate {
  animation: countUp 0.6s ease-out forwards;
}

/* Section reveal on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-section {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse ring for CTA buttons */
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(43, 139, 117, 0.4);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(43, 139, 117, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(43, 139, 117, 0);
  }
}

.pulse-ring {
  animation: pulse-ring 2s infinite;
}

/* Subtle shimmer */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(90deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SLIDER (legacy support)
   ═══════════════════════════════════════════════════════════════ */
.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  position: relative;
}

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

.hero-overlay-gradient {
  background: linear-gradient(135deg, rgba(11, 36, 55, 0.9) 0%, rgba(11, 36, 55, 0.6) 50%, rgba(11, 36, 55, 0.3) 100%);
}

.slide-dots button {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.slide-dots button.active {
  width: 1.5rem;
  background-color: white;
}

/* Service card image overlay (legacy) */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.service-card img {
  transition: transform 0.6s ease;
}

.service-card:hover img {
  transform: scale(1.08);
}

.service-card .service-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
}

/* Doctor card hover effect (legacy) */
.doctor-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.doctor-card .doctor-img {
  transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-img {
  transform: scale(1.05);
}

.doctor-card .doctor-info {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

/* Glassmorphism utility */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Text gradient utility (legacy) */
.text-gradient {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}