/* ===============================
   Brahmamritha Ayurveda - Modern Clinic Theme
   =============================== */

/* ===== CSS Variables ===== */
:root {
  /* Brand Colors */
  --primary-50: #f0f9f4;
  --primary-100: #dcf2e4;
  --primary-200: #bae5cc;
  --primary-300: #89d4ad;
  --primary-400: #55bb88;
  --primary-500: #2c7a4b;
  --primary-600: #236040;
  --primary-700: #1e4d35;
  --primary-800: #1a3d2b;
  --primary-900: #142d20;

  /* Accent Colors */
  --accent-orange: #ff6b35;
  --accent-gold: #ffd166;
  --accent-blue: #4a90e2;

  /* Neutrals */
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --border: #e0e0e0;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-gradient: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --container-max: 1200px;
  --nav-collapse: 992px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-gradient);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-500);
}

/* ===== Utilities ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-600);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ===== HEADER / NAVBAR ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 50%, var(--primary-500) 100%);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  max-width: var(--container-max);
  margin: 0 auto;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  color: white;
}

/* Responsive navbar for larger desktop screens */
@media (min-width: 993px) and (max-width: 1300px) {
  .brand {
    font-size: 0.95rem;
  }

  .nav-links a {
    font-size: 0.825rem;
    padding: 0.65rem 0.5rem;
  }

  .btn-cta {
    padding: 0.65rem 0.7rem !important;
  }
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  padding: 0.65rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 30px;
  height: 2px;
  background: var(--accent-gold);
  transition: transform 0.3s ease;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropbtn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  min-width: 220px;
  background: white;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
  pointer-events: none;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0s;
}

.dropdown-content a {
  display: block;
  padding: 0.85rem 1.25rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border);
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background: var(--primary-50);
  color: var(--primary-700);
  padding-left: 1.5rem;
}

/* CTA Button */
.btn-cta {
  background: var(--accent-orange);
  color: white !important;
  padding: 0.65rem 0.8rem !important;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background: #ff5722;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.btn-cta .icon {
  filter: brightness(0) invert(1);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== FLOATING CONTACT BUTTONS ===== */
.floating-contact-buttons {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
  padding-right: 1.5rem;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  color: white;
}

.floating-btn:hover {
  transform: scale(1.15) translateX(-5px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn:hover {
  animation: none;
}

.call-btn {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #ff5722 100%);
}

.floating-tooltip {
  position: absolute;
  right: 75px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.floating-tooltip::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: rgba(0, 0, 0, 0.9);
}

.floating-btn:hover .floating-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  }
  50% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3), 0 0 0 12px rgba(37, 211, 102, 0.1);
  }
  100% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  }
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 600px;
  max-height: 800px;
  overflow: hidden;
  background: #000;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

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

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 0 max(1.5rem, calc((100% - 1200px) / 2));
  z-index: 3;
}

.carousel-text {
  max-width: 650px;
  padding: 0 0 4rem 2rem;
  color: white;
  animation: slideInLeft 0.8s ease-out;
}

.carousel-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.carousel-text p {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  max-width: 600px;
}

.carousel-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Carousel Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 2rem;
}

.carousel-next {
  right: 2rem;
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.carousel-indicator.active {
  background: white;
  width: 32px;
  border-radius: 6px;
}

/* Button Styles */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(44, 122, 75, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 122, 75, 0.4);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--primary-600);
  border: 2px solid var(--primary-600);
}

.btn-secondary:hover {
  background: var(--primary-50);
}

/* Carousel Animation */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== SECTION STYLES ===== */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-800);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-gold));
  border-radius: 2px;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 1.5rem auto 0;
}

/* ===== CARD STYLES ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card-image {
  position: relative;
  width: 100%;
  padding-top: 66.67%;
  overflow: hidden;
  background: var(--bg-light);
}

.card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-800);
  margin-bottom: 0.75rem;
}

.card-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-light);
}

/* ===== STATS SECTION ===== */
.stats {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 100%);
  color: white;
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--accent-gold);
}

.stat-item p {
  font-size: 1.1rem;
  opacity: 0.95;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 5rem;
  color: var(--primary-200);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-content {
  margin-bottom: 1.5rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author-info h4 {
  font-weight: 600;
  color: var(--primary-800);
  margin-bottom: 0.25rem;
}

.rating {
  color: var(--accent-gold);
  font-size: 1.1rem;
}

/* ===== FORMS ===== */
.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(44, 122, 75, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(180deg, var(--primary-800) 0%, var(--primary-900) 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

.footer-section h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-section.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  width: 200px;
  height: 200px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.2);
}

.brand-text {
  text-align: left;
}

.brand-text .footer-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: white;
  line-height: 1.3;
}

.brand-text p {
  color: var(--accent-gold);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 500;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  padding-left: 8px;
}

.contact-info {
  line-height: 2;
}

.contact-info a {
  color: rgba(255, 255, 255, 0.9);
}

.contact-info .icon {
  display: inline-block;
  width: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--primary-700);
    padding: 1rem;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.active {
    max-height: 600px;
  }

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

  .nav-links a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.1);
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  .carousel-text h1 {
    font-size: 2.5rem;
  }

  .carousel-text p {
    font-size: 1.1rem;
  }

  .carousel-text {
    padding: 0 0 3rem 1.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-section.brand {
    align-items: center;
    text-align: center;
  }

  .brand-text {
    text-align: center;
  }

  .footer-logo {
    width: 100px;
    height: 100px;
  }

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

@media (max-width: 768px) {
  .hero-carousel {
    height: 70vh;
    min-height: 500px;
  }

  .carousel-text h1 {
    font-size: 2rem;
  }

  .carousel-text p {
    font-size: 1rem;
  }

  .carousel-text {
    padding: 0 0 2.5rem 1rem;
  }

  .carousel-btn {
    width: 48px;
    height: 48px;
  }

  .carousel-prev {
    left: 1rem;
  }

  .carousel-next {
    right: 1rem;
  }

  .carousel-indicators {
    bottom: 1.5rem;
  }

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

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

@media (max-width: 576px) {
  .hero-carousel {
    height: 60vh;
    min-height: 450px;
  }

  .carousel-text h1 {
    font-size: 1.75rem;
  }

  .carousel-text p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .carousel-text {
    padding: 0 0 2rem 0.5rem;
  }

  .carousel-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    align-items: flex-end;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-prev {
    left: 0.5rem;
  }

  .carousel-next {
    right: 0.5rem;
  }

  .carousel-indicators {
    bottom: 1rem;
    gap: 0.5rem;
  }

  .carousel-indicator {
    width: 10px;
    height: 10px;
  }

  .carousel-indicator.active {
    width: 24px;
  }

  section {
    padding: 3rem 0;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

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

  .footer-logo {
    width: 90px;
    height: 90px;
  }

  .brand-text .footer-title {
    font-size: 1.5rem;
  }

  .brand-text p {
    font-size: 1rem;
  }
}

/* ===== SOCIAL MEDIA ICONS ===== */
.social-icons {
  margin-top: 1.5rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.social-icon.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  border-color: transparent;
}

.social-icon.facebook:hover {
  background: #1877f2;
  color: white;
  border-color: transparent;
}

.social-icon.whatsapp:hover {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  border-color: transparent;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(44, 122, 75, 0.3);
  z-index: 998;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(44, 122, 75, 0.5);
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-400) 100%);
}

.scroll-to-top:active {
  transform: translateY(-2px);
}

/* ===== FLOATING BOOK APPOINTMENT BUTTON ===== */
.floating-appointment-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-blue) 0%, #357abd 100%);
  color: white;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(74, 144, 226, 0.4);
  z-index: 998;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  animation: pulse-appointment 2.5s infinite;
}

.floating-appointment-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 32px rgba(74, 144, 226, 0.6);
  color: white;
  animation: none;
}

.floating-appointment-btn:active {
  transform: translateY(-2px) scale(1.02);
}

.floating-appointment-btn svg {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.appointment-text {
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes pulse-appointment {
  0% {
    box-shadow: 0 6px 24px rgba(74, 144, 226, 0.4);
  }
  50% {
    box-shadow: 0 6px 24px rgba(74, 144, 226, 0.4), 0 0 0 15px rgba(74, 144, 226, 0.1);
  }
  100% {
    box-shadow: 0 6px 24px rgba(74, 144, 226, 0.4);
  }
}

/* Responsive adjustments for floating buttons */
@media (max-width: 768px) {
  .floating-contact-buttons {
    padding-right: 1rem;
  }

  .floating-btn {
    width: 54px;
    height: 54px;
  }

  .floating-btn svg {
    width: 28px;
    height: 28px;
  }

  .floating-tooltip {
    display: none;
  }

  .scroll-to-top {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }

  .floating-appointment-btn {
    bottom: 20px;
    left: 20px;
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
    gap: 0.5rem;
  }

  .floating-appointment-btn svg {
    width: 24px;
    height: 24px;
  }

  .social-icons div {
    justify-content: center !important;
  }

  .footer-section.contact .social-icons h4 {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .floating-contact-buttons {
    padding-right: 0.75rem;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
  }

  .floating-btn svg {
    width: 26px;
    height: 26px;
  }

  .scroll-to-top {
    width: 46px;
    height: 46px;
    bottom: 15px;
    right: 15px;
  }

  .scroll-to-top svg {
    width: 18px;
    height: 18px;
  }

  .floating-appointment-btn {
    bottom: 15px;
    left: 15px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    gap: 0.4rem;
  }

  .floating-appointment-btn svg {
    width: 22px;
    height: 22px;
  }

  .appointment-text {
    font-size: 0.85rem;
  }

  .social-icon {
    width: 40px;
    height: 40px;
  }

  .social-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* Extra small devices - show icon only for appointment button */
@media (max-width: 400px) {
  .floating-appointment-btn {
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  .appointment-text {
    display: none;
  }

  .floating-appointment-btn svg {
    width: 26px;
    height: 26px;
  }
}
