/* ==========================================================================
   Anamay Homeopathy Clinic - Design System & Custom Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Google Fonts
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --------------------------------------------------------------------------
   CSS Custom Variables (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --primary-color: #0f766e;      /* Deep Calming Teal */
  --primary-light: #f0fdfa;      /* Soft Light Teal for backgrounds */
  --primary-hover: #0d9488;      /* Mid-tone Teal for active states */
  --accent-color: #e11d48;       /* Subtle rose-red accent (replacing raw red) */
  --accent-gold: #b45309;        /* Warm Gold accent for highlight states */
  --text-dark: #1f2937;          /* Charcoal grey for excellent contrast and readability */
  --text-muted: #4b5563;         /* Muted grey for supporting text */
  --bg-white: #ffffff;
  --bg-light: #f8fafc;           /* Cool grey background */
  --border-color: #e2e8f0;       /* Soft border lines */
  --whatsapp-color: #25d366;     /* Official WhatsApp Green */
  --call-color: #0284c7;         /* Clear Sky Blue for phone calls */

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', system-ui, -apple-system, sans-serif;

  /* Layout & Spacing */
  --max-width: 1200px;
  --border-radius: 15px;         /* Required card and button corner radius */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --box-shadow: 0 10px 25px -5px rgba(15, 118, 110, 0.08), 0 8px 10px -6px rgba(15, 118, 110, 0.06);
  --box-shadow-hover: 0 20px 25px -5px rgba(15, 118, 110, 0.15), 0 10px 10px -5px rgba(15, 118, 110, 0.1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

/* Elegant heading divider line */
h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 3px;
  background-color: var(--accent-gold);
  border-radius: 2px;
}

h2.center-heading {
  display: block;
  text-align: center;
}

h2.center-heading::after {
  left: 50%;
  transform: translateX(-50%);
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* --------------------------------------------------------------------------
   Layout Containers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-bg-alt {
  background-color: var(--primary-light);
}

/* Flex & Grid Systems */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Buttons & Links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(15, 118, 110, 0.3);
}

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

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
  transform: translateY(-2px);
}

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

.btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

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

.btn-call:hover {
  background-color: #0274ae;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(2, 132, 199, 0.3);
}

/* --------------------------------------------------------------------------
   Header / Navigation Bar
   -------------------------------------------------------------------------- */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

/* When page is scrolled down */
.header-scrolled .header {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  background-color: rgba(255, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition-smooth);
}

.header-scrolled .nav-container {
  height: 70px;
}

/* Logo Brand */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

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

.logo-text span {
  color: var(--accent-gold);
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 0.5rem 0;
}

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

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

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

/* Quick Action Buttons in Nav */
.nav-actions {
  display: flex;
  gap: 0.75rem;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(240, 253, 250, 0.8) 0%, rgba(248, 250, 252, 0.9) 90%);
  padding: 8rem 0 6rem 0;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
}

.hero-subtitle {
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

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

.hero-image-bg {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
  z-index: 1;
}

.hero-image {
  position: relative;
  z-index: 2;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-hover);
  border: 5px solid var(--bg-white);
  transform: rotate(2deg);
  transition: var(--transition-smooth);
}

.hero-image:hover {
  transform: rotate(0deg) scale(1.02);
}

/* --------------------------------------------------------------------------
   Cards System (Services, Specialties, Info)
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition-smooth);
  border: 1px solid rgba(15, 118, 110, 0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
  border-color: rgba(15, 118, 110, 0.1);
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.card:hover .card-icon {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.card-link {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.card-link::after {
  content: '→';
  transition: var(--transition-smooth);
}

.card-link:hover::after {
  transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   Testimonials Slider (Special Emphasis)
   ========================================================================== */
.testimonials-section {
  position: relative;
  background-color: var(--primary-light);
  overflow: hidden;
}

.testimonials-container {
  position: relative;
  max-width: 1000px;
  margin: 3rem auto 0 auto;
}

.testimonials-slider-wrapper {
  overflow: hidden;
  position: relative;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 1rem;
}

/* Subsections displaying multiple reviews inside a slide (3 cards grid) */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.04);
  border: 1px solid rgba(15, 118, 110, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 3rem;
  color: rgba(20, 184, 166, 0.15);
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  z-index: 0;
}

.testimonial-quote p {
  position: relative;
  z-index: 1;
}

.testimonial-client {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-heading);
  border: 2px solid var(--primary-color);
}

.testimonial-info h4 {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0.1rem;
}

.testimonial-info p {
  font-size: 0.8rem;
  margin-bottom: 0;
  color: var(--accent-gold);
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.slider-btn:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
  box-shadow: var(--box-shadow-hover);
}

.slider-btn-prev {
  left: -60px;
}

.slider-btn-next {
  right: -60px;
}

/* Slider Dots Indicator */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dot.active {
  background-color: var(--primary-color);
  width: 24px;
  border-radius: 5px;
}

/* --------------------------------------------------------------------------
   CSS Marquee Gallery (Continuous scrolling)
   ========================================================================== */
.gallery-section {
  padding: 4rem 0;
  background-color: var(--bg-white);
}

.marquee-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  display: flex;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-animation 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  width: 300px;
  height: 200px;
  margin: 0 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  border: 3px solid var(--primary-light);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.marquee-item:hover {
  transform: scale(1.03);
  border-color: var(--primary-color);
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

@keyframes marquee-animation {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Moves half of the cloned/duplicated strip to slide continuously */
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   About Doctor Page Elements
   -------------------------------------------------------------------------- */
.doctor-profile-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.doctor-img-wrapper {
  position: sticky;
  top: 120px;
}

.doctor-img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-hover);
  border: 8px solid var(--bg-white);
}

.doctor-timeline {
  margin-top: 2rem;
  border-left: 2px solid var(--primary-light);
  padding-left: 1.5rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 4px solid var(--bg-light);
  box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-year {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Contact Form & Map Sections (about.html)
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
}

.contact-card {
  background-color: var(--bg-white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1.2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  color: var(--text-dark);
  transition: var(--transition-smooth);
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.form-input::placeholder {
  color: #a0aec0;
}

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

/* Branch Cards styling */
.branch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.branch-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--box-shadow);
  border-top: 4px solid var(--primary-color);
  display: flex;
  flex-direction: column;
}

.branch-name {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.branch-meta {
  margin-bottom: 1.5rem;
}

.branch-meta-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.branch-meta-icon {
  color: var(--primary-color);
  flex-shrink: 0;
  width: 20px;
}

.branch-map {
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 250px;
  margin-top: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.branch-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   Footer Layout
   ========================================================================== */
.footer {
  position: relative;
  color: var(--bg-light);
  /* Repeating leaf/nature style SVG pattern */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0c3.5 0 6 3 6 8.5C46 17 42 22 40 24c-2-2-6-7-6-15.5C34 3 36.5 0 40 0zm0 80c-3.5 0-6-3-6-8.5C34 63 38 58 40 56c2 2 6 7 6 15.5 0 5.5-2.5 8.5-40 8.5zM0 40c0-3.5 3-6 8.5-6C17 34 22 38 24 40c-2 2-7 6-15.5 6-5.5 0-8.5-2.5-8.5-40zm80 0c0 3.5-3 6-8.5 6C63 46 58 42 56 40c2-2 7-6 15.5-6 5.5 0 8.5 2.5 8.5 40z' fill='%230f766e' fill-opacity='0.15' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-color: #0c1a19;     /* Deep forest-charcoal base */
  padding: 5rem 0 2rem 0;
}

/* Dark overlay to ensure crisp readability */
.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 26, 25, 0.90);
  z-index: 1;
}

.footer-container {
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 3rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  color: var(--bg-white);
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--bg-white);
  margin-bottom: 1.5rem;
  position: relative;
  font-weight: 600;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 30px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-link:hover {
  color: var(--bg-white);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-contact-item svg {
  color: var(--primary-hover);
  flex-shrink: 0;
  width: 18px;
  margin-top: 3px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social-icon {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  transition: var(--transition-smooth);
}

.footer-social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: var(--bg-white);
}

/* --------------------------------------------------------------------------
   Floating Controls (WhatsApp and Go to Top)
   ========================================================================== */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}

.float-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
  border: none;
  font-size: 1.5rem;
}

.float-btn:hover {
  transform: translateY(-5px) scale(1.05);
}

.float-whatsapp {
  background-color: var(--whatsapp-color);
  color: var(--bg-white);
}

.float-whatsapp:hover {
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.float-top {
  background-color: var(--primary-color);
  color: var(--bg-white);
  opacity: 0;
  visibility: hidden;
}

.float-top.visible {
  opacity: 1;
  visibility: visible;
}

.float-top:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 8px 25px rgba(15, 118, 110, 0.4);
}

/* --------------------------------------------------------------------------
   Responsive Media Queries (Mobile and Tablet)
   ========================================================================== */
@media (max-width: 1024px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
  
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Hide the 3rd card in testimonial grid on tablet to avoid layout breaks */
  .testimonial-grid .testimonial-card:nth-child(3) {
    display: none;
  }
  
  .slider-btn-prev { left: -20px; }
  .slider-btn-next { right: -20px; }
  
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  /* Core Resets */
  .section {
    padding: 3.5rem 0;
  }
  
  /* Side-by-side elements now clean stack vertically */
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Header & Navigation Mobile Hamburger Menu */
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 2rem;
    gap: 2rem;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    overflow-y: auto;
  }

  .header-scrolled .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }

  .nav-menu.active {
    left: 0;
  }

  /* Hide quick-actions in nav, show inside mobile navigation drawer */
  .nav-actions {
    display: none;
  }
  
  .nav-menu .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
  }

  /* Hero Section Mobile styling */
  .hero {
    padding: 6rem 0 4rem 0;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    margin-bottom: 2rem;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-image {
    max-width: 80%;
    transform: rotate(0deg);
  }

  /* Testimonials Slider Mobile */
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-grid .testimonial-card:nth-child(2) {
    display: none; /* Only show 1 card per slide on mobile */
  }

  /* Doctor Profile Mobile */
  .doctor-profile-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .doctor-img-wrapper {
    position: relative;
    top: 0;
    max-width: 320px;
    margin: 0 auto;
  }

  /* Branches Mobile */
  .branch-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Contact Page Mobile */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-card {
    padding: 2rem 1.5rem;
  }
  
  .form-group-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Footer Mobile */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .floating-actions {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .float-btn {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
}
