/* ============================================
   RELIVE ZINDAGI - Modern Medical UI System
   Make Every Moment Count
   ============================================ */

/* === CSS Custom Properties === */
:root {
  /* Brand Colors - Matching Logo */
  --rz-primary: #0d6b78;
  --rz-primary-2: #2aaea8;
  --rz-primary-3: #0aa6a0;
  --rz-primary-light: #e8f6f6;
  --rz-primary-dark: #094f59;
  
  /* Neutral Colors */
  --rz-ink: #0b1f24;
  --rz-ink-light: #1a3a42;
  --rz-muted: #4a6870;
  --rz-muted-light: #6a8a92;
  
  /* Background Colors */
  --rz-bg: #f7fbfc;
  --rz-bg-alt: #eef6f7;
  --rz-surface: #ffffff;
  --rz-surface-hover: #fafefe;
  
  /* Border & Shadow */
  --rz-border: rgba(13, 107, 120, 0.12);
  --rz-border-strong: rgba(13, 107, 120, 0.22);
  --rz-focus: rgba(42, 174, 168, 0.4);
  --rz-shadow-sm: 0 2px 8px rgba(11, 31, 36, 0.06);
  --rz-shadow: 0 8px 32px rgba(11, 31, 36, 0.08);
  --rz-shadow-lg: 0 16px 48px rgba(11, 31, 36, 0.12);
  --rz-shadow-xl: 0 24px 64px rgba(11, 31, 36, 0.16);
  --rz-shadow-glow: 0 8px 32px rgba(13, 107, 120, 0.25);
  
  /* Radius - 8px System */
  --rz-radius-xs: 8px;
  --rz-radius-sm: 12px;
  --rz-radius: 16px;
  --rz-radius-lg: 24px;
  --rz-radius-xl: 32px;
  --rz-radius-full: 999px;
  
  /* Spacing - 8px System */
  --rz-space-1: 4px;
  --rz-space-2: 8px;
  --rz-space-3: 12px;
  --rz-space-4: 16px;
  --rz-space-5: 24px;
  --rz-space-6: 32px;
  --rz-space-7: 48px;
  --rz-space-8: 64px;
  --rz-space-9: 96px;
  
  /* Layout */
  --rz-max: 1200px;
  --rz-max-narrow: 720px;
  
  /* Typography */
  --rz-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --rz-font-display: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transitions */
  --rz-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --rz-transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --rz-transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === Base Reset === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--rz-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--rz-ink);
  background: var(--rz-bg);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--rz-transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Typography === */
.h1, h1 {
  font-family: var(--rz-font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--rz-ink);
  margin: 0;
}

.h2, h2 {
  font-family: var(--rz-font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--rz-ink);
  margin: 0;
}

.h3, h3 {
  font-family: var(--rz-font-display);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--rz-ink);
  margin: 0;
}

.p, p {
  margin: 0;
  color: var(--rz-muted);
  line-height: 1.7;
  font-size: 1rem;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--rz-muted);
  margin: 0;
}

.small {
  font-size: 0.875rem;
  color: var(--rz-muted);
  line-height: 1.6;
}

.text-primary { color: var(--rz-primary); }
.text-muted { color: var(--rz-muted); }
.text-center { text-align: center; }

/* === Layout === */
.container {
  width: 100%;
  max-width: var(--rz-max);
  margin: 0 auto;
  padding: 0 var(--rz-space-5);
}

.container--narrow {
  max-width: var(--rz-max-narrow);
}

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rz-border);
  transition: box-shadow var(--rz-transition), background var(--rz-transition);
}

.header:hover {
  box-shadow: var(--rz-shadow-sm);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(11, 31, 36, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rz-space-4);
  padding: var(--rz-space-4) 0;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--rz-space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover .brand__logo {
  transform: scale(1.05) rotate(2deg);
}

.brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: var(--rz-shadow), 0 0 0 2px rgba(13, 107, 120, 0.1);
  background: var(--rz-primary-light);
  object-fit: cover;
  object-position: center;
  transition: transform var(--rz-transition-bounce);
  overflow: hidden;
  clip-path: circle(50%);
}

.brand__text {
  line-height: 1.2;
}

.brand__name {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--rz-ink);
  background: linear-gradient(135deg, var(--rz-primary), var(--rz-primary-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand__tag {
  font-size: 0.75rem;
  color: var(--rz-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Navigation Links */
.navlinks {
  display: flex;
  align-items: center;
  gap: var(--rz-space-1);
}

.navlinks a {
  position: relative;
  padding: var(--rz-space-2) var(--rz-space-3);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--rz-ink-light);
  border-radius: var(--rz-radius-xs);
  transition: all var(--rz-transition);
}

.navlinks a:hover {
  color: var(--rz-primary);
  background: var(--rz-primary-light);
}

.navlinks a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rz-primary), var(--rz-primary-2));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--rz-transition);
}

.navlinks a:hover::after {
  width: calc(100% - var(--rz-space-5));
}

.navlinks a.active {
  color: var(--rz-primary);
  background: var(--rz-primary-light);
}

.navlinks a.active::after {
  width: calc(100% - var(--rz-space-5));
}

/* Header Actions */
.actions {
  display: flex;
  align-items: center;
  gap: var(--rz-space-2);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--rz-primary-light);
  border-radius: var(--rz-radius-xs);
  cursor: pointer;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--rz-primary);
  border-radius: 2px;
  transition: all var(--rz-transition);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rz-space-2);
  padding: var(--rz-space-3) var(--rz-space-5);
  font-family: var(--rz-font);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--rz-ink);
  background: var(--rz-surface);
  border: 1.5px solid var(--rz-border-strong);
  border-radius: var(--rz-radius-full);
  cursor: pointer;
  transition: all var(--rz-transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(11, 31, 36, 0.04);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.3));
  opacity: 0;
  transition: opacity var(--rz-transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--rz-shadow);
  border-color: var(--rz-primary);
  color: var(--rz-primary);
}

.btn:hover::before {
  opacity: 1;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--rz-focus);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(11, 31, 36, 0.08);
}

.btn--primary {
  background: linear-gradient(135deg, var(--rz-primary), var(--rz-primary-2));
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(13, 107, 120, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--rz-primary-dark), var(--rz-primary));
  color: #fff;
  box-shadow: 0 4px 16px rgba(13, 107, 120, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

.btn--primary:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(13, 107, 120, 0.25);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--rz-border);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--rz-surface);
  box-shadow: var(--rz-shadow-sm);
}

.btn--small {
  padding: var(--rz-space-2) var(--rz-space-4);
  font-size: 0.875rem;
}

.btn--large {
  padding: var(--rz-space-4) var(--rz-space-6);
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* === Cards === */
.card {
  position: relative;
  background: var(--rz-surface);
  border: 1px solid var(--rz-border);
  border-radius: var(--rz-radius);
  transition: all var(--rz-transition);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(13, 107, 120, 0.02) 100%);
  opacity: 0;
  transition: opacity var(--rz-transition);
  pointer-events: none;
}

.card:hover {
  border-color: var(--rz-primary);
  box-shadow: var(--rz-shadow-lg);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}


.card--interactive {
  cursor: pointer;
}

.card--interactive:hover {
  transform: translateY(-4px);
}

/* === Hero Section === */
.hero {
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 31, 36, 0.88) 0%, rgba(13, 107, 120, 0.78) 100%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, var(--rz-bg), transparent);
  z-index: 2;
  pointer-events: none;
}

/* Hero Slideshow */
.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  animation: heroSlide 24s infinite;
}

.hero__slide--1 { animation-delay: 0s; }
.hero__slide--2 { animation-delay: 6s; }
.hero__slide--3 { animation-delay: 12s; }
.hero__slide--4 { animation-delay: 18s; }

@keyframes heroSlide {
  0% { opacity: 0; }
  4% { opacity: 1; }
  25% { opacity: 1; }
  29% { opacity: 0; }
  100% { opacity: 0; }
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: var(--rz-space-8);
  padding-bottom: var(--rz-space-8);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--rz-space-7);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__card {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero__card::before {
  display: none;
}

.hero__card:hover {
  box-shadow: none;
  transform: none;
}

.hero__card .h1 {
  margin-top: var(--rz-space-4);
  color: #fff;
}

.hero__card .h1 span {
  background: linear-gradient(135deg, #4dd9d5, #7eeae6) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  font-size: 0.75em;
  display: block;
}

.hero__card .lead {
  margin-top: var(--rz-space-4);
  color: rgba(255, 255, 255, 0.9);
}

.hero__card .lead strong {
  color: #fff;
}

.hero__card .kicker {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.hero__card .kicker::before {
  background: #4dd9d5;
}

.hero__card .note {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rz-space-3);
  margin-top: var(--rz-space-6);
}

.hero__cta .btn--primary {
  box-shadow: 0 4px 20px rgba(13, 107, 120, 0.4);
}

.hero__cta .btn--primary:hover {
  box-shadow: 0 6px 28px rgba(13, 107, 120, 0.5);
}

.hero__aside {
  padding: var(--rz-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--rz-space-4);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--rz-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--rz-shadow-xl), 0 0 0 1px rgba(13, 107, 120, 0.05);
}

/* === Kicker/Badge === */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--rz-space-2);
  padding: var(--rz-space-2) var(--rz-space-4);
  background: linear-gradient(135deg, var(--rz-primary-light), rgba(42, 174, 168, 0.12));
  border: 1px solid rgba(13, 107, 120, 0.15);
  border-radius: var(--rz-radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--rz-primary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--rz-primary-2);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.card {
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: backwards;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }

/* === Aside Rows === */
.aside__row {
  display: flex;
  gap: var(--rz-space-4);
  align-items: flex-start;
  padding: var(--rz-space-4);
  border-radius: var(--rz-radius);
  border: 1px solid var(--rz-border);
  background: linear-gradient(145deg, var(--rz-surface), var(--rz-primary-light));
  transition: all var(--rz-transition);
}

.aside__row:hover {
  border-color: var(--rz-primary);
  box-shadow: var(--rz-shadow-sm);
  transform: translateX(4px);
}

.badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--rz-radius-sm);
  background: linear-gradient(135deg, var(--rz-primary), var(--rz-primary-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  box-shadow: var(--rz-shadow-sm);
}

.aside__title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--rz-ink);
  margin: 0 0 var(--rz-space-1);
}

.aside__text {
  margin: 0;
  color: var(--rz-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* === Page Hero (Inner Pages) === */
.page-hero {
  position: relative;
  padding: var(--rz-space-9) 0;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 31, 36, 0.9) 0%, rgba(13, 107, 120, 0.8) 100%);
  z-index: 1;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--rz-bg), transparent);
  z-index: 2;
  pointer-events: none;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero__content {
  max-width: 700px;
  margin: 0 auto;
}

.page-hero .kicker {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  margin-bottom: var(--rz-space-4);
}

.page-hero .kicker::before {
  background: #4dd9d5;
}

.page-hero .h1 {
  color: #fff;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.9);
  margin-top: var(--rz-space-4);
}

.page-hero--compact {
  padding: var(--rz-space-7) 0;
}

.page-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rz-space-3);
  justify-content: center;
  margin-top: var(--rz-space-5);
}

@media (max-width: 768px) {
  .page-hero {
    padding: var(--rz-space-7) 0;
  }
  
  .page-hero__cta {
    flex-direction: column;
    align-items: center;
  }
  
  .page-hero__cta .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* === Sections === */
.section {
  padding: var(--rz-space-8) 0;
  position: relative;
}

.section--alt {
  background: var(--rz-bg-alt);
}

.section--primary {
  background: linear-gradient(145deg, var(--rz-primary), var(--rz-primary-2));
  color: #fff;
}

.section--primary .h2,
.section--primary .p {
  color: #fff;
}

.section--primary .p {
  opacity: 0.9;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--rz-space-5);
  margin-bottom: var(--rz-space-6);
  flex-wrap: wrap;
}

.section__head > div {
  max-width: 600px;
}

.section__head .h2 {
  margin-bottom: var(--rz-space-2);
}

/* === Grid Layouts === */
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--rz-space-5);
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--rz-space-5);
}

.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--rz-space-5);
}

/* === Tiles === */
.tile {
  padding: var(--rz-space-5);
  transition: all var(--rz-transition);
}

.tile h3 {
  margin-bottom: var(--rz-space-3);
  transition: color var(--rz-transition);
  font-weight: 700;
}

.tile p {
  color: var(--rz-muted);
  line-height: 1.65;
}

.tile a {
  display: inline-flex;
  align-items: center;
  gap: var(--rz-space-2);
  margin-top: var(--rz-space-4);
  color: var(--rz-primary);
  font-weight: 700;
  font-size: 0.9375rem;
  transition: all var(--rz-transition);
}

.tile a:hover {
  gap: var(--rz-space-3);
  color: var(--rz-primary-dark);
}

.tile:hover {
  background: linear-gradient(135deg, var(--rz-surface), var(--rz-primary-light));
}

.tile:hover h3 {
  color: var(--rz-primary);
}

/* === Forms === */
.form {
  display: grid;
  gap: var(--rz-space-5);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--rz-space-2);
}

.label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--rz-ink);
  letter-spacing: 0.01em;
}

.label--required::after {
  content: ' *';
  color: #e53e3e;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: var(--rz-space-3) var(--rz-space-4);
  font-family: var(--rz-font);
  font-size: 1rem;
  color: var(--rz-ink);
  background: var(--rz-surface);
  border: 1.5px solid var(--rz-border-strong);
  border-radius: var(--rz-radius-sm);
  transition: all var(--rz-transition);
  -webkit-appearance: none;
  appearance: none;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--rz-primary);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--rz-primary);
  box-shadow: 0 0 0 3px var(--rz-focus), 0 1px 2px rgba(11, 31, 36, 0.04);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--rz-muted-light);
}

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a7980' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--rz-space-4) center;
  padding-right: var(--rz-space-8);
  cursor: pointer;
}

.textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.help {
  font-size: 0.8125rem;
  color: var(--rz-muted);
  line-height: 1.5;
}

.error-text {
  font-size: 0.8125rem;
  color: #e53e3e;
  line-height: 1.5;
}

/* === Notes/Alerts === */
.note {
  padding: var(--rz-space-4);
  background: linear-gradient(135deg, var(--rz-primary-light), rgba(42, 174, 168, 0.08));
  border: 1px solid rgba(13, 107, 120, 0.15);
  border-radius: var(--rz-radius-sm);
  color: var(--rz-ink);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.note--warning {
  background: linear-gradient(135deg, #fef3cd, #fff8e6);
  border-color: #f0d78c;
}

.note--success {
  background: linear-gradient(135deg, #d4edda, #e8f5eb);
  border-color: #9fd6ab;
}

.note--error {
  background: linear-gradient(135deg, #f8d7da, #fce4e6);
  border-color: #f5a6ad;
}

/* === Footer === */
.footer {
  padding: var(--rz-space-9) 0 var(--rz-space-6);
  background: linear-gradient(180deg, var(--rz-bg-alt) 0%, var(--rz-surface) 100%);
  border-top: 1px solid var(--rz-border);
  margin-top: auto;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, var(--rz-primary), var(--rz-primary-2));
  border-radius: 0 0 3px 3px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: var(--rz-space-7);
  align-items: start;
}

.footer__brand {
  max-width: 360px;
}

.footer .brand__name {
  font-size: 1.5rem;
  margin-bottom: var(--rz-space-2);
  background: linear-gradient(135deg, var(--rz-primary), var(--rz-primary-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--rz-space-6);
}

.footer__col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--rz-ink);
  margin-bottom: var(--rz-space-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer a {
  transition: color var(--rz-transition);
}

.footer a:hover {
  color: var(--rz-primary);
}

/* Social Links */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rz-primary);
  color: #fff;
  transition: all var(--rz-transition);
  box-shadow: 0 2px 8px rgba(13, 107, 120, 0.2);
}
.social-link:hover {
  background: var(--rz-primary-2);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(13, 107, 120, 0.3);
}
.social-link svg {
  flex-shrink: 0;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.floating-cta__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.floating-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-cta__btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  color: #fff;
}
.floating-cta__btn--book {
  background: var(--rz-primary);
}
.floating-cta__btn--call {
  background: var(--rz-primary-2);
}
.whatsapp-float__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #fff;
}
.whatsapp-float__tooltip,
.floating-cta__tooltip {
  position: absolute;
  right: 70px;
  background: #fff;
  color: var(--rz-ink);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.whatsapp-float__tooltip::after,
.floating-cta__tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #fff;
}
.whatsapp-float:hover .whatsapp-float__tooltip,
.floating-cta__item:hover .floating-cta__tooltip {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 640px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
  }
  .floating-cta__btn {
    width: 54px;
    height: 54px;
  }
  .whatsapp-float__btn {
    width: 54px;
    height: 54px;
  }
  .whatsapp-float__tooltip,
  .floating-cta__tooltip {
    display: none;
  }
}

.footer__copyright {
  margin-top: var(--rz-space-6);
  padding-top: var(--rz-space-5);
  border-top: 1px solid var(--rz-border);
  text-align: center;
}

/* === Toast Notifications === */
.toast {
  position: fixed;
  right: var(--rz-space-5);
  bottom: var(--rz-space-5);
  z-index: 1000;
  background: var(--rz-ink);
  color: #fff;
  padding: var(--rz-space-4) var(--rz-space-5);
  border-radius: var(--rz-radius);
  max-width: 380px;
  box-shadow: var(--rz-shadow-xl);
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  transition: all var(--rz-transition-slow);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--rz-space-3);
}

.toast::before {
  content: '';
  width: 4px;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(180deg, var(--rz-primary-2), var(--rz-primary));
  border-radius: var(--rz-radius) 0 0 var(--rz-radius);
}

.toast--show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* === Testimonial Cards === */
.testimonial-card {
  padding: var(--rz-space-6);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--rz-space-4);
  right: var(--rz-space-5);
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--rz-primary-light);
  line-height: 1;
}

.testimonial-card__rating {
  display: flex;
  gap: 2px;
  margin-top: var(--rz-space-4);
}

.testimonial-card__star {
  width: 20px;
  height: 20px;
  fill: #f6c23e;
}

/* === Doctor Cards === */
.doctor-card {
  text-align: center;
  padding: var(--rz-space-6);
}

.doctor-card__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto var(--rz-space-4);
  background: linear-gradient(135deg, var(--rz-primary-light), var(--rz-bg-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--rz-primary);
  box-shadow: var(--rz-shadow), 0 0 0 4px var(--rz-surface);
}

.doctor-card__name {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--rz-ink);
  margin-bottom: var(--rz-space-1);
}

.doctor-card__specialty {
  font-size: 0.875rem;
  color: var(--rz-primary);
  font-weight: 600;
}

/* === Step Indicator === */
.steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--rz-space-6);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--rz-border);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--rz-space-2);
  position: relative;
  z-index: 1;
}

.step__number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rz-surface);
  border: 2px solid var(--rz-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--rz-muted);
  transition: all var(--rz-transition);
}

.step--active .step__number {
  background: linear-gradient(135deg, var(--rz-primary), var(--rz-primary-2));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--rz-shadow-glow);
}

.step--completed .step__number {
  background: var(--rz-primary-2);
  border-color: transparent;
  color: #fff;
}

.step__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rz-muted);
}

.step--active .step__label {
  color: var(--rz-primary);
}

/* === Service Cards with Images === */
.service-card {
  padding: 0;
  overflow: hidden;
}

.service-card__image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--rz-transition-slow);
}

.service-card:hover .service-card__image img {
  transform: scale(1.05);
}

.service-card__content {
  padding: var(--rz-space-5);
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rz-space-2);
  margin-top: var(--rz-space-4);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--rz-space-2);
  margin-top: var(--rz-space-5);
  color: var(--rz-primary);
  font-weight: 700;
  font-size: 0.9375rem;
  transition: all var(--rz-transition);
}

.service-card__link:hover {
  gap: var(--rz-space-3);
  color: var(--rz-primary-dark);
}

.service-card__link svg {
  transition: transform var(--rz-transition);
}

.service-card:hover .service-card__link svg {
  transform: translateX(4px);
}

/* === Service Icons === */
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--rz-radius);
  background: linear-gradient(135deg, var(--rz-primary-light), rgba(42, 174, 168, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--rz-space-4);
  transition: all var(--rz-transition);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--rz-primary);
}

.card:hover .service-icon {
  background: linear-gradient(135deg, var(--rz-primary), var(--rz-primary-2));
  transform: scale(1.1) rotate(5deg);
}

.card:hover .service-icon svg {
  stroke: #fff;
}

/* === Stats Section === */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--rz-space-5);
  text-align: center;
}

.stat {
  padding: var(--rz-space-5);
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rz-primary), var(--rz-primary-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat__label {
  font-size: 0.9375rem;
  color: var(--rz-muted);
  margin-top: var(--rz-space-2);
}

/* === Loading States === */
.skeleton {
  background: linear-gradient(90deg, var(--rz-bg-alt) 25%, var(--rz-surface) 50%, var(--rz-bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--rz-radius-xs);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === Dividers === */
.divider {
  height: 1px;
  background: var(--rz-border);
  margin: var(--rz-space-6) 0;
}

.divider--thick {
  height: 4px;
  background: linear-gradient(90deg, var(--rz-primary), var(--rz-primary-2), var(--rz-primary-3));
  border-radius: 2px;
}

/* === Utility Classes === */
.mt-1 { margin-top: var(--rz-space-1); }
.mt-2 { margin-top: var(--rz-space-2); }
.mt-3 { margin-top: var(--rz-space-3); }
.mt-4 { margin-top: var(--rz-space-4); }
.mt-5 { margin-top: var(--rz-space-5); }
.mt-6 { margin-top: var(--rz-space-6); }
.mt-7 { margin-top: var(--rz-space-7); }
.mt-8 { margin-top: var(--rz-space-8); }

.mb-1 { margin-bottom: var(--rz-space-1); }
.mb-2 { margin-bottom: var(--rz-space-2); }
.mb-3 { margin-bottom: var(--rz-space-3); }
.mb-4 { margin-bottom: var(--rz-space-4); }
.mb-5 { margin-bottom: var(--rz-space-5); }
.mb-6 { margin-bottom: var(--rz-space-6); }

.gap-1 { gap: var(--rz-space-1); }
.gap-2 { gap: var(--rz-space-2); }
.gap-3 { gap: var(--rz-space-3); }
.gap-4 { gap: var(--rz-space-4); }
.gap-5 { gap: var(--rz-space-5); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.hidden { display: none !important; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* === Responsive Utility Classes === */
/* Hide on specific breakpoints */
@media (max-width: 359px) {
  .hide-xs { display: none !important; }
}

@media (min-width: 360px) and (max-width: 479px) {
  .hide-sm { display: none !important; }
}

@media (min-width: 480px) and (max-width: 575px) {
  .hide-md { display: none !important; }
}

@media (min-width: 576px) and (max-width: 767px) {
  .hide-lg { display: none !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

/* Responsive text alignment */
.text-center-mobile {
  text-align: center;
}

@media (min-width: 768px) {
  .text-center-mobile {
    text-align: left;
  }

  .text-center-desktop {
    text-align: center;
  }
}

/* Responsive gap utilities */
.gap-responsive {
  gap: var(--rz-space-3);
}

@media (min-width: 480px) {
  .gap-responsive {
    gap: var(--rz-space-4);
  }
}

@media (min-width: 768px) {
  .gap-responsive {
    gap: var(--rz-space-5);
  }
}

/* Responsive padding utility */
.padding-responsive {
  padding: var(--rz-space-4);
}

@media (min-width: 480px) {
  .padding-responsive {
    padding: var(--rz-space-5);
  }
}

@media (min-width: 768px) {
  .padding-responsive {
    padding: var(--rz-space-6);
  }
}

/* Responsive max-width */
.max-width-responsive {
  max-width: 100%;
}

@media (min-width: 768px) {
  .max-width-responsive {
    max-width: 600px;
  }
}

/* Responsive flex direction */
.flex-col-mobile {
  flex-direction: column;
}

@media (min-width: 768px) {
  .flex-col-mobile {
    flex-direction: row;
  }
}

/* Responsive grid auto-fit */
.grid-auto-fit {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--rz-space-4);
}

@media (min-width: 480px) {
  .grid-auto-fit {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Overflow prevention */
.overflow-x-hidden {
  overflow-x: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

/* Fluid spacing */
.section-gap {
  padding-top: var(--rz-space-5);
  padding-bottom: var(--rz-space-5);
}

@media (min-width: 480px) {
  .section-gap {
    padding-top: var(--rz-space-7);
    padding-bottom: var(--rz-space-7);
  }
}

@media (min-width: 768px) {
  .section-gap {
    padding-top: var(--rz-space-8);
    padding-bottom: var(--rz-space-8);
  }
}

/* === Trust Badge Component === */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--rz-space-3);
}

.trust-badge {
  flex: 1 1 140px;
  min-width: 140px;
}

.trust-badge__title {
  font-weight: 700;
  font-size: 0.8125rem;
}

@media (min-width: 480px) {
  .trust-badges {
    gap: var(--rz-space-4);
  }

  .trust-badge {
    flex: 0 0 auto;
    min-width: auto;
  }

  .trust-badge__title {
    font-size: 0.875rem;
  }
}

@media (min-width: 768px) {
  .trust-badges {
    gap: var(--rz-space-5);
  }
}

/* === H3 Heading Style === */
.h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: var(--rz-ink);
  line-height: 1.3;
}

/* === Responsive Image Improvements === */
img {
  max-width: 100%;
  height: auto;
}

.hero__slide,
.page-hero__bg {
  object-fit: cover;
  object-position: center;
}

/* === Responsive Embeds (Videos/Maps) === */
.embed-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.embed-responsive iframe,
.embed-responsive video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* === Responsive Table Wrapper === */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.table-responsive table {
  min-width: 600px;
  width: 100%;
}

/* === Better Text Wrapping === */
.text-break {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* === Prevent Long URLs from Breaking Layout === */
a:not([class]) {
  word-break: break-word;
}

/* === Responsive Spacing for CTA Sections === */
.section--primary {
  padding: var(--rz-space-6) 0;
}

@media (min-width: 480px) {
  .section--primary {
    padding: var(--rz-space-7) 0;
  }
}

@media (min-width: 768px) {
  .section--primary {
    padding: var(--rz-space-8) 0;
  }
}

/* === Improve Button Group Stacking === */
.hero__cta,
.page-hero__cta {
  display: flex;
  flex-direction: column;
  gap: var(--rz-space-2);
}

@media (min-width: 414px) {
  .hero__cta,
  .page-hero__cta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .hero__cta,
  .page-hero__cta {
    justify-content: flex-start;
  }
}

/* === Fix Nested Grid Issues === */
.grid2 > .card,
.grid3 > .card,
.grid4 > .card {
  min-width: 0; /* Prevents overflow from content */
}

/* === Responsive Lead Text === */
.lead {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST SYSTEM
   Breakpoints: 320px, 360px, 375px, 414px, 480px, 576px, 768px, 820px, 1024px, 1280px, 1440px, 1920px
   ============================================ */

/* === Base Mobile Styles (320px+) === */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* Mobile Navigation - Base */
.nav {
  flex-wrap: wrap;
  gap: var(--rz-space-2);
  min-height: auto;
  padding: var(--rz-space-3) 0;
}

.navlinks {
  order: 3;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: var(--rz-space-3) 0;
  border-top: 1px solid var(--rz-border);
  margin-top: var(--rz-space-2);
  display: none;
  background: var(--rz-surface);
}

.navlinks.active,
.navlinks--open {
  display: flex;
}

.navlinks a {
  padding: var(--rz-space-3) var(--rz-space-4);
  border-radius: 0;
  border-bottom: 1px solid var(--rz-border);
}

.navlinks a:last-child {
  border-bottom: none;
}

.navlinks a::after {
  display: none;
}

.menu-toggle {
  display: flex;
  order: 2;
}

.actions {
  flex: 1;
  justify-content: flex-end;
  gap: var(--rz-space-2);
  flex-wrap: wrap;
}

/* Hide ghost buttons on very small screens */
.actions .btn--ghost.btn--small {
  display: none;
}

.actions .btn--primary {
  order: -1;
  display: inline-flex;
}

.actions .btn--primary .btn__text {
  display: inline;
}

/* Hero - Mobile Base */
.hero {
  min-height: auto;
  padding: var(--rz-space-5) 0;
}

.hero .container {
  padding-top: var(--rz-space-4);
  padding-bottom: var(--rz-space-4);
}

.hero__grid {
  grid-template-columns: 1fr;
  gap: var(--rz-space-4);
}

.hero__aside {
  padding: var(--rz-space-4);
  max-width: 100%;
}

.hero__card {
  padding: 0;
}

.hero__cta {
  flex-direction: column;
  align-items: stretch;
  gap: var(--rz-space-2);
}

.hero__cta .btn {
  width: 100%;
  justify-content: center;
}

/* Grids - Mobile Base (Single Column) */
.grid2,
.grid3,
.grid4 {
  grid-template-columns: 1fr;
  gap: var(--rz-space-4);
}

/* Stats - Mobile Base */
.stats {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--rz-space-3);
}

.stat {
  padding: var(--rz-space-3);
}

.stat__number {
  font-size: clamp(1.5rem, 6vw, 2rem);
}

/* Footer - Mobile Base */
.footer__grid {
  grid-template-columns: 1fr;
  gap: var(--rz-space-5);
}

.footer__brand {
  max-width: 100%;
}

.footer__links {
  grid-template-columns: 1fr;
  gap: var(--rz-space-5);
}

.footer__col h4 {
  font-size: 0.8125rem;
  margin-bottom: var(--rz-space-3);
}

/* Sections - Mobile Base */
.section {
  padding: var(--rz-space-5) 0;
}

.section__head {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--rz-space-3);
  margin-bottom: var(--rz-space-4);
}

.section__head > div {
  max-width: 100%;
}

/* Cards - Mobile Base */
.card {
  border-radius: var(--rz-radius);
}

.tile {
  padding: var(--rz-space-4);
}

.service-card__image {
  height: 160px;
}

/* Forms - Mobile Base */
.input,
.select,
.textarea {
  font-size: 16px; /* Prevents iOS zoom */
  padding: var(--rz-space-3);
}

/* Steps - Mobile Base */
.steps {
  flex-direction: column;
  gap: var(--rz-space-2);
}

.steps::before {
  display: none;
}

.step {
  flex-direction: row;
  gap: var(--rz-space-3);
  width: 100%;
}

.step__label {
  text-align: left;
}

/* Aside Rows - Mobile Base */
.aside__row {
  flex-direction: row;
  padding: var(--rz-space-3);
  gap: var(--rz-space-3);
}

.badge {
  width: 40px;
  height: 40px;
  font-size: 0.75rem;
}

/* Service Icons - Mobile Base */
.service-icon {
  width: 44px;
  height: 44px;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

/* Page Hero - Mobile Base */
.page-hero {
  padding: var(--rz-space-5) 0;
}

.page-hero--compact {
  padding: var(--rz-space-4) 0;
}

.page-hero__content {
  max-width: 100%;
}

.page-hero__cta {
  flex-direction: column;
  align-items: stretch;
  gap: var(--rz-space-2);
}

.page-hero__cta .btn {
  width: 100%;
  justify-content: center;
}

/* Kicker - Mobile Base */
.kicker {
  font-size: 0.6875rem;
  padding: var(--rz-space-1) var(--rz-space-2);
}

/* Container - Mobile Base */
.container {
  padding: 0 var(--rz-space-4);
}

/* Toast - Mobile Base */
.toast {
  left: var(--rz-space-3);
  right: var(--rz-space-3);
  max-width: none;
  padding: var(--rz-space-3) var(--rz-space-4);
}

/* === 360px Breakpoint === */
@media (min-width: 360px) {
  .stats {
    gap: var(--rz-space-4);
  }
  
  .stat__number {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }
  
  .section {
    padding: var(--rz-space-6) 0;
  }
  
  .hero {
    padding: var(--rz-space-6) 0;
  }
  
  .hero__aside {
    padding: var(--rz-space-4);
  }
}

/* === 375px Breakpoint === */
@media (min-width: 375px) {
  .container {
    padding: 0 var(--rz-space-4);
  }
  
  .hero__cta {
    gap: var(--rz-space-3);
  }
  
  .kicker {
    font-size: 0.75rem;
    padding: var(--rz-space-1) var(--rz-space-3);
  }
}

/* === 414px Breakpoint === */
@media (min-width: 414px) {
  .hero__cta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .hero__cta .btn {
    width: auto;
    flex: 1 1 auto;
    min-width: 140px;
    max-width: 200px;
  }
  
  .page-hero__cta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .page-hero__cta .btn {
    width: auto;
    max-width: none;
  }
}

/* === 480px Breakpoint === */
@media (min-width: 480px) {
  .container {
    padding: 0 var(--rz-space-5);
  }
  
  .section {
    padding: var(--rz-space-7) 0;
  }
  
  .section__head {
    gap: var(--rz-space-4);
    margin-bottom: var(--rz-space-5);
  }
  
  .hero {
    padding: var(--rz-space-7) 0;
  }
  
  .hero .container {
    padding-top: var(--rz-space-5);
    padding-bottom: var(--rz-space-5);
  }
  
  .hero__aside {
    padding: var(--rz-space-5);
  }
  
  .grid2 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--rz-space-4);
  }
  
  .stats {
    gap: var(--rz-space-4);
  }
  
  .stat {
    padding: var(--rz-space-4);
  }
  
  .service-card__image {
    height: 180px;
  }
  
  .tile {
    padding: var(--rz-space-5);
  }
  
  .badge {
    width: 44px;
    height: 44px;
    font-size: 0.8125rem;
  }
  
  .service-icon {
    width: 48px;
    height: 48px;
  }
  
  .service-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .footer__links {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--rz-space-4);
  }
}

/* === 576px Breakpoint === */
@media (min-width: 576px) {
  .container {
    padding: 0 var(--rz-space-5);
  }
  
  .hero__cta .btn {
    max-width: none;
  }
  
  .stats {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--rz-space-4);
  }
  
  .stat__number {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }
  
  .footer__links {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--rz-space-5);
  }
}

/* === 768px Breakpoint === */
@media (min-width: 768px) {
  :root {
    --rz-space-7: 40px;
    --rz-space-8: 48px;
  }
  
  .container {
    padding: 0 var(--rz-space-5);
  }
  
  /* Navigation - Tablet */
  .nav {
    flex-wrap: nowrap;
    gap: var(--rz-space-4);
    min-height: 72px;
    padding: var(--rz-space-4) 0;
  }
  
  .navlinks {
    order: 0;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: var(--rz-space-2);
    padding: 0;
    border-top: none;
    margin-top: 0;
    display: flex;
    background: transparent;
  }
  
  .navlinks a {
    padding: var(--rz-space-2) var(--rz-space-3);
    border-radius: var(--rz-radius-xs);
    border-bottom: none;
  }
  
  .navlinks a::after {
    display: block;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .actions {
    flex: none;
    justify-content: flex-end;
  }
  
  .actions .btn--ghost.btn--small {
    display: inline-flex;
  }
  
  /* Hero - Tablet */
  .hero {
    min-height: 70vh;
    padding: 0;
  }
  
  .hero .container {
    padding-top: var(--rz-space-7);
    padding-bottom: var(--rz-space-7);
  }
  
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--rz-space-5);
  }
  
  .hero__aside {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .hero__cta {
    flex-direction: row;
    align-items: center;
  }
  
  .hero__cta .btn {
    width: auto;
  }
  
  /* Grids - Tablet */
  .grid3 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--rz-space-5);
  }
  
  .grid4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--rz-space-5);
  }
  
  /* Sections - Tablet */
  .section {
    padding: var(--rz-space-8) 0;
  }
  
  .section__head {
    flex-direction: row;
    align-items: flex-end;
    gap: var(--rz-space-5);
    margin-bottom: var(--rz-space-6);
  }
  
  /* Footer - Tablet */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--rz-space-6);
  }
  
  .footer__brand {
    max-width: 100%;
    text-align: center;
  }
  
  .footer__links {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer__col h4 {
    font-size: 0.875rem;
    margin-bottom: var(--rz-space-4);
  }
  
  /* Steps - Tablet */
  .steps {
    flex-direction: row;
    gap: 0;
  }
  
  .steps::before {
    display: block;
  }
  
  .step {
    flex-direction: column;
    width: auto;
    flex: 1;
    text-align: center;
  }
  
  .step__label {
    text-align: center;
  }
  
  /* Page Hero - Tablet */
  .page-hero {
    padding: var(--rz-space-7) 0;
  }
  
  .page-hero--compact {
    padding: var(--rz-space-5) 0;
  }
  
  .page-hero__cta {
    flex-direction: row;
    justify-content: center;
  }
  
  .page-hero__cta .btn {
    width: auto;
  }
  
  /* Service Card - Tablet */
  .service-card__image {
    height: 200px;
  }
}

/* === 820px Breakpoint === */
@media (min-width: 820px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--rz-space-6);
  }
  
  .hero__aside {
    max-width: none;
    margin: 0;
  }
  
  .footer__grid {
    grid-template-columns: 1.2fr 1.8fr;
    gap: var(--rz-space-7);
  }
  
  .footer__brand {
    text-align: left;
    max-width: 360px;
  }
}

/* === 1024px Breakpoint === */
@media (min-width: 1024px) {
  :root {
    --rz-space-7: 48px;
    --rz-space-8: 64px;
  }
  
  .container {
    padding: 0 var(--rz-space-5);
  }
  
  /* Hero - Desktop */
  .hero {
    min-height: 85vh;
  }
  
  .hero .container {
    padding-top: var(--rz-space-8);
    padding-bottom: var(--rz-space-8);
  }
  
  .hero__grid {
    gap: var(--rz-space-7);
  }
  
  /* Grids - Desktop */
  .grid3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Stats - Desktop */
  .stats {
    gap: var(--rz-space-5);
  }
  
  .stat {
    padding: var(--rz-space-5);
  }
  
  /* Sections - Desktop */
  .section {
    padding: var(--rz-space-8) 0;
  }
  
  /* Service Card - Desktop */
  .service-card__image {
    height: 220px;
  }
}

/* === 1280px Breakpoint === */
@media (min-width: 1280px) {
  .container {
    padding: 0 var(--rz-space-6);
  }
  
  .hero__aside {
    padding: var(--rz-space-6);
  }
  
  .service-card__image {
    height: 240px;
  }
}

/* === 1440px Breakpoint === */
@media (min-width: 1440px) {
  :root {
    --rz-max: 1320px;
  }
  
  .container {
    padding: 0 var(--rz-space-7);
  }
  
  .section {
    padding: var(--rz-space-9) 0;
  }
  
  .hero .container {
    padding-top: var(--rz-space-9);
    padding-bottom: var(--rz-space-9);
  }
}

/* === 1920px Breakpoint (Ultra-wide) === */
@media (min-width: 1920px) {
  :root {
    --rz-max: 1440px;
  }
  
  .container {
    padding: 0 var(--rz-space-8);
  }
  
  .hero__grid {
    gap: var(--rz-space-8);
  }
  
  .hero__aside {
    padding: var(--rz-space-7);
  }
}

/* === Menu Toggle Animation === */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === Touch-Friendly Adjustments === */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .input,
  .select,
  .textarea {
    min-height: 48px;
    font-size: 16px;
  }
  
  .navlinks a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .social-link {
    width: 44px;
    height: 44px;
  }
  
  .floating-cta__btn,
  .whatsapp-float__btn {
    width: 56px;
    height: 56px;
  }
}

/* === Landscape Orientation Fixes === */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--rz-space-4) 0;
  }
  
  .page-hero {
    padding: var(--rz-space-4) 0;
  }
  
  .hero__aside {
    max-height: 60vh;
    overflow-y: auto;
  }
}

/* === Safe Area Insets (Notch devices) === */
@supports (padding: max(0px)) {
  .header {
    padding-top: max(0px, env(safe-area-inset-top));
  }
  
  .footer {
    padding-bottom: max(var(--rz-space-6), env(safe-area-inset-bottom));
  }
  
  .whatsapp-float {
    bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
    right: max(24px, env(safe-area-inset-right));
  }
  
  .cookie-consent {
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, calc(env(safe-area-inset-bottom) + 16px));
  }
}

/* === Container Queries Support (Progressive Enhancement) === */
@supports (container-type: inline-size) {
  .card {
    container-type: inline-size;
  }
  
  @container (min-width: 300px) {
    .tile {
      padding: var(--rz-space-5);
    }
  }
}

/* === Print Styles === */
@media print {
  .header,
  .footer,
  .btn,
  .toast {
    display: none !important;
  }
  
  body {
    background: #fff;
    color: #000;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* === Service Title Scroll (Mobile) === */
.service-title-scroll {
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.service-title-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.service-title-scroll::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--rz-surface));
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--rz-transition);
}

.service-title-scroll.scroll-indicator::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .service-title-scroll {
    padding-bottom: 2px;
    margin-bottom: -2px;
  }
}

/* === Admin Panel Responsive Styles === */
.header--admin .navlinks a {
  font-size: 0.8125rem;
  white-space: nowrap;
}

.header--admin .admin-user {
  display: none;
}

@media (min-width: 768px) {
  .header--admin .navlinks a {
    font-size: 0.875rem;
    padding: var(--rz-space-2) var(--rz-space-2);
  }

  .header--admin .admin-user {
    display: inline;
  }
}

@media (max-width: 480px) {
  .header--admin .btn__text {
    display: none;
  }

  .header--admin .actions .btn--small {
    padding: var(--rz-space-2);
    min-width: 36px;
  }
  
  /* Mobile button improvements */
  .actions .btn--primary {
    padding: var(--rz-space-2) var(--rz-space-4);
    font-size: 0.875rem;
  }
  
  .actions .btn--primary .btn__text {
    display: inline;
  }
  
  /* Ensure touch-friendly targets */
  .btn {
    min-height: 44px;
  }
  
  .btn--small {
    min-height: 36px;
  }
}

/* Admin Dashboard Cards - Mobile First */
.header--admin + main .grid3,
.header--admin ~ main .grid3 {
  grid-template-columns: 1fr;
}

.header--admin + main .grid2,
.header--admin ~ main .grid2 {
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .header--admin + main .grid3,
  .header--admin ~ main .grid3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .header--admin + main .grid2,
  .header--admin ~ main .grid2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .header--admin + main .grid3,
  .header--admin ~ main .grid3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 3px solid var(--rz-focus);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--rz-space-3) var(--rz-space-5);
  background: var(--rz-primary);
  color: #fff;
  border-radius: var(--rz-radius-sm);
  z-index: 9999;
  transition: top var(--rz-transition);
}

.skip-link:focus {
  top: var(--rz-space-3);
}
