/* ==========================================================================
   DermaRx Hospital - Main Stylesheet
   Modern, Responsive Dermatology & Aesthetic Medicine Website
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --color-primary: #0d9488;
  --color-primary-dark: #0f766e;
  --color-primary-light: #ccfbf1;
  --color-secondary: #1e293b;
  --color-secondary-light: #334155;
  --color-accent: #f59e0b;
  --color-whatsapp: #25D366;
  --color-call: #0ea5e9;

  /* Neutral Colors */
  --color-white: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-subtle: #f1f5f9;
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-border: #e2e8f0;
  --color-border-subtle: #f1f5f9;
  --color-dark-bg: #0f172a;
  --color-dark-border: #334155;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-teal: 0 10px 25px -5px rgba(13, 148, 136, 0.35);
  --shadow-whatsapp: 0 8px 24px rgba(37, 211, 102, 0.35);
  --shadow-call: 0 8px 24px rgba(14, 165, 233, 0.35);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 50px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout & Sizing */
  --container-max-width: 1200px;
  --navbar-height: 72px;
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* --------------------------------------------------------------------------
   3. BODY
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

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

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

/* Container Utility */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --------------------------------------------------------------------------
   4. NAVIGATION (.navbar)
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background-color var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--color-border);
}

/* 5. .nav-container */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* 6. .nav-logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-secondary);
}

.nav-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.nav-logo-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* 7. .nav-links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-secondary);
  transition: color var(--transition-fast);
  padding: 8px 0;
  display: inline-block;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: width var(--transition-smooth);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 8. .hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--color-secondary);
  border-radius: 2px;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth), background-color var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8.75px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8.75px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   9. BUTTONS (.btn)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  line-height: 1.2;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn svg,
.btn i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: var(--shadow-teal);
  color: var(--color-white);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  border-color: var(--color-whatsapp);
}

.btn-whatsapp:hover {
  background-color: #20ba59;
  border-color: #20ba59;
  box-shadow: var(--shadow-whatsapp);
  color: var(--color-white);
}

.btn-call {
  background-color: var(--color-call);
  color: var(--color-white);
  border-color: var(--color-call);
}

.btn-call:hover {
  background-color: #0284c7;
  border-color: #0284c7;
  box-shadow: var(--shadow-call);
  color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-pill);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   10. HERO (.hero)
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 50%, #f8fafc 100%);
  padding-top: var(--navbar-height);
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

/* 11. .hero .container */
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

/* 13. .hero-badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  align-self: flex-start;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
  display: inline-block;
}

/* 12. .hero h1 */
.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-secondary);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 540px;
}

/* 14. .hero-cta */
.hero-cta {
  padding-top: 10px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 40px;
}

/* 15. .hero-stats */
.hero-stats {
  display: flex;
  gap: 40px;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 28px;
  flex-wrap: wrap;
  justify-content: start;
}

.hero-stat,
.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

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

/* 16. .hero-image */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  display: block;
}

/* 17. .hero-image-badge */
.hero-image-badge {
  position: absolute;
  bottom: -20px;
  left: -10px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
  animation: float-badge 4s ease-in-out infinite alternate;
}

.hero-image-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.hero-image-badge-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 2px;
}

.hero-image-badge-text p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

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

/* --------------------------------------------------------------------------
   18. SECTION BASE (.section, .section-alt)
   -------------------------------------------------------------------------- */
.section {
  padding: 80px 0;
  position: relative;
}

.section-alt {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* 19. .section-header */
.section-header {
  text-align: center;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 20. .section-badge */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   21. ABOUT (.about-grid)
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: center;
}

/* 22. .about-image */
.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.about-image::after {
  content: '';
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--color-primary);
  border-radius: var(--radius-xl);
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
}

.about-content h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.about-qualifications {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 18px;
}

.about-bio {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* 23. .trust-badges */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.trust-badge,
.trust-badge-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.trust-badge:hover,
.trust-badge-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.trust-badge-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.trust-badge-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 2px;
}

.trust-badge-text p {
  font-size: 0.825rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   24. SERVICES (.services-grid)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* 25. .service-card */
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  position: relative;
}

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

/* 26. .service-card-icon */
.service-card-icon {
  width: 56px;
  height: 56px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.5rem;
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.service-card-icon svg {
  width: 28px;
  height: 28px;
}

.service-card:hover .service-card-icon {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.08);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   27. TREATMENTS (.treatments-grid)
   -------------------------------------------------------------------------- */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

/* 28. .treatment-card */
.treatment-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.treatment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

/* 29. .treatment-card-image */
.treatment-card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
  width: 100%;
  background: #e2e8f0;
}

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

.treatment-card:hover .treatment-card-image img {
  transform: scale(1.06);
}

/* 30. .treatment-card-tag */
.treatment-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-white);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

/* 31. .treatment-card-body */
.treatment-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.treatment-card-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-secondary);
}

.treatment-card-body p {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.treatment-card-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.treatment-card-body ul li {
  position: relative;
  padding-left: 24px;
  color: var(--color-text-main);
  font-size: 0.925rem;
  line-height: 1.4;
}

.treatment-card-body ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.treatment-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   32. FACILITIES (.facilities-grid)
   -------------------------------------------------------------------------- */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* 33. .facility-card */
.facility-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* 34. .facility-card-image */
.facility-card-image {
  height: 180px;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #e0f2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.facility-card-image svg {
  width: 64px;
  height: 64px;
  color: var(--color-primary);
  transition: transform var(--transition-smooth);
}

.facility-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.facility-card:hover .facility-card-image svg {
  transform: scale(1.1);
}

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

.facility-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.facility-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.facility-card-body p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   35. REVIEWS (.reviews-overall, .reviews-grid)
   -------------------------------------------------------------------------- */
.reviews-overall {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  max-width: 500px;
  margin: 0 auto 48px;
  box-shadow: var(--shadow-sm);
}

.reviews-overall-rating {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1;
}

.reviews-overall-stars {
  color: var(--color-accent);
  font-size: 1.35rem;
  letter-spacing: 3px;
  margin: 8px 0;
}

.reviews-overall-count {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* 36. .reviews-grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* 37. .review-card */
.review-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.review-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

/* 38. .review-avatar */
.review-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.review-author h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 2px;
}

.review-author p,
.review-date {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* 39. .review-stars */
.review-stars {
  color: var(--color-accent);
  letter-spacing: 2px;
  font-size: 1rem;
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.925rem;
  color: var(--color-text-main);
  line-height: 1.6;
  font-style: normal;
}

/* --------------------------------------------------------------------------
   40. INSTAGRAM (.instagram-header)
   -------------------------------------------------------------------------- */
.instagram-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  margin-bottom: 30px;
}

.instagram-header svg {
  width: 32px;
  height: 32px;
  color: #e1306c;
}

.instagram-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.instagram-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1/1;
  background-color: var(--color-bg-subtle);
}

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

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

/* --------------------------------------------------------------------------
   41. FAQ (.faq-grid, .faq-item, .faq-question, .faq-answer, .faq-icon)
   -------------------------------------------------------------------------- */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* 42. .faq-item */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item.active {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.12);
}

/* 43. .faq-question */
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-primary);
}

/* 44. .faq-answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
  padding: 0 24px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer,
.faq-answer.active {
  max-height: 300px;
  padding: 0 24px 20px 24px;
}

/* 45. .faq-icon */
.faq-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 700;
}

.faq-item.active .faq-icon,
.faq-icon.active {
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   46. CONTACT (.contact-grid, .contact-card, .contact-map)
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 47. .contact-card */
.contact-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  align-items: flex-start;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.contact-icon,
.contact-card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-icon svg,
.contact-card-icon svg {
  width: 24px;
  height: 24px;
}

.contact-details h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 4px;
}

.contact-details p,
.contact-details a {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.contact-details a:hover {
  color: var(--color-primary);
}

/* 48. .contact-map */
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 400px;
  height: 100%;
  border: 1px solid var(--color-border);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   49. FOOTER (.footer)
   -------------------------------------------------------------------------- */
.footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 16px 0 24px;
  position: relative;
  font-size: 0.925rem;
}

/* 50. .footer-grid */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

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

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand .nav-logo-title {
  color: var(--color-white);
}

.footer-brand p {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-column h4 {
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

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

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--color-white);
  transform: translateX(3px);
}

/* 53. .footer-social */
.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-social a,
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1e293b;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.footer-social a svg,
.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-social a:hover,
.social-link:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* 52. .footer-bottom */
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

/* 54. .footer-disclaimer */
.footer-disclaimer {
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
  color: #64748b;
  margin-top: 24px;
  line-height: 1.5;
  width: 100%;
}

/* --------------------------------------------------------------------------
   55. MOBILE CTA BAR (.mobile-cta-bar)
   -------------------------------------------------------------------------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  z-index: 999;
  padding: 10px 16px;
}

.mobile-cta-bar .btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   56. WHATSAPP FLOAT (.whatsapp-float)
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-whatsapp);
  z-index: 998;
  text-decoration: none;
  transition: transform var(--transition-smooth), background-color var(--transition-fast);
  animation: pulse-green 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  background-color: #20ba59;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

/* 57. @keyframes pulse-green */
@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* --------------------------------------------------------------------------
   LOADING SKELETON (.skeleton, @keyframes shimmer)
   -------------------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(
    90deg,
    #f1f5f9 25%,
    #e2e8f0 50%,
    #f1f5f9 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */

/* Tablet & Smaller Desktop: max-width 1024px */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-badge {
    align-self: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    order: -1;
    max-width: 440px;
    margin: 0 auto;
  }

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

  .about-image {
    max-width: 380px;
    margin: 0 auto;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Mobile Devices: max-width 768px */
@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    background: var(--color-white);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    gap: 16px;
    align-items: flex-start;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 8px 0;
  }

  .nav-cta,
  .nav-container .btn {
    display: none;
  }

  .mobile-cta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .whatsapp-float {
    bottom: 80px;
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.85rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .treatments-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

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

/* Small Mobile Devices: max-width 480px */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 20px;
    justify-content: space-around;
  }

  .hero-image-badge {
    bottom: -12px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: calc(100% - 24px);
    padding: 12px 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .facilities-grid {
    grid-template-columns: 1fr;
  }

  .trust-badges {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Hide SociableKit branding (global) --- */
.sk_branding {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* --- Services List Layout (Clinical Dermatology) --- */
.services-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.services-category {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.services-category:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.services-category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary-light);
}

.services-category-title svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.services-list li {
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 8px 12px;
  background: var(--color-bg-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.services-list li::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.services-list li:hover {
  background: var(--color-primary-light);
  color: var(--color-text-dark);
}

@media (max-width: 768px) {
  .services-list-grid {
    grid-template-columns: 1fr;
  }
}
