.appt-form input:focus, .appt-form textarea:focus { outline: 2px solid rgba(111,85,161,0.35); border-color: var(--heading); }
.modal-content h3 { margin: 0 0 8px; }
.modal-content { padding-top: 36px; }
.modal-close { top: 10px; right: 10px; }
/* Typography and base */
:root {
  --brand: #6b3df0; /* Logo purple for buttons */
  --brand-dark: #532dcf;
  --heading: #6F55A1; /* Requested heading/title color */
  --text: #1a1a1a;
  --muted: #6b7280;
  --bg: #ffffff;
  --section: #f7f9fc;
  --card: #ffffff;
  --border: #e5e7eb;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

html, body { overflow-x: hidden; }

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

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 15px;
  min-height: 90px;
  flex-wrap: nowrap;
}

.logo img { height: 90px; width: auto; }

/* Navigation Styles */
.main-nav { 
  display: flex; 
  align-items: center; 
  flex-shrink: 0; 
}
.main-nav ul { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  display: flex; 
  gap: 18px; 
  align-items: center; 
}
.main-nav a { 
  text-decoration: none; 
  color: var(--heading); 
  font-weight: 600; 
}
.main-nav .phone a { 
  color: var(--heading); 
}

/* Desktop Navigation */
.desktop-nav { 
  display: flex; 
  gap: 12px; 
  align-items: center; 
  flex-wrap: nowrap; 
  flex-shrink: 0; 
}
.desktop-nav li { 
  margin: 0; 
  flex-shrink: 0; 
  white-space: nowrap; 
}
.desktop-nav a { 
  padding: 6px 10px; 
  border-radius: 6px; 
  transition: background-color 0.2s ease; 
  white-space: nowrap; 
  display: block; 
  font-size: 14px; 
  line-height: 1.2; 
}
.desktop-nav a:hover { 
  background-color: rgba(107, 61, 240, 0.1); 
  color: var(--brand); 
}

/* Mobile Navigation */
.mobile-nav { 
  display: none; 
  position: relative; 
  order: 2; 
  margin-left: auto; 
}

/* Burger Menu */
.burger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger-menu span {
  width: 100%;
  height: 3px;
  background-color: var(--heading);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger-menu[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger-menu[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  padding: 80px 20px 20px;
  transition: right 0.3s ease;
  z-index: 1000;
  list-style: none;
  margin: 0;
  overflow-y: auto;
}

.mobile-menu.show {
  right: 0;
}

.mobile-menu li {
  margin: 0 0 20px 0;
  list-style: none;
}

.mobile-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  font-weight: 500;
  white-space: nowrap;
}

.mobile-menu a:hover {
  background-color: rgba(107, 61, 240, 0.1);
  color: var(--brand);
}

.mobile-menu .mobile-phone a {
  color: var(--heading);
  font-weight: 600;
}

.mobile-menu .mobile-wa {
  margin-top: 20px;
}

.mobile-menu .mobile-wa a {
  background: var(--brand);
  color: #fff;
  text-align: center;
}

.mobile-menu .mobile-wa a:hover {
  background: var(--brand-dark);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(107, 61, 240, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 999;
}

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

.back-to-top:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(107, 61, 240, 0.4);
}

.back-to-top:active {
  transform: translateY(0);
}
/* Shared styling so intro phone link looks like header */
.phone-link, .phone-link a { color: var(--heading); font-weight: 600; text-decoration: none; }
/* Responsive call action: number on desktop, button on mobile */
.phone-link { display: block; }
.phone-btn { display: none; }

/* Intro section phone number - always visible */
.intro .phone-link { 
  display: block !important; 
  font-size: large; 
  text-align: center; 
  margin-top: 12px; 
}
.btn.small { padding: 8px 12px; border-radius: 8px; font-weight: 600; border: 1px solid var(--brand); }
.btn.whatsapp { background: #25D366; color: #0b1220; border-color: #25D366; }
.btn.whatsapp:hover { background: #1fb056; border-color: #1fb056; }

/* Heading colors */
h1, h2, h3, h4 { color: var(--heading); }

/* Hero */
.hero { padding: 0; }
.intro.section { background: #fff; }
.intro .container { text-align: center; }
.intro h1 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.25; margin: 0 0 8px; }
.intro p { color: #2b2b2b; margin: 6px 0; }
.cta-row { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.intro .cta-row { justify-content: center; }

/* Carousel */
.slick-hero { 
  width: 100%; 
  aspect-ratio: 19 / 8; 
  max-height: 800px; 
  min-height: 280px; 
  border-radius: 0; 
  overflow: hidden; 
  box-shadow: 0 12px 28px rgba(16,24,40,0.12); 
}

.slick-hero .slick-list, 
.slick-hero .slick-track { 
  height: 100%; 
}

.slick-hero .slick-slide { 
  line-height: 0; 
  display: flex !important; 
  align-items: center; 
  justify-content: center; 
  background: #ffffff; 
}

.slick-hero img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
  object-position: center; 
  display: block; 
  background: #ffffff; 
}

/* Carousel Controls */
.slick-dots { 
  bottom: 16px; 
}

.slick-dots li button:before { 
  font-size: 10px; 
  color: rgba(255,255,255,0.8); 
  opacity: 1; 
}

.slick-dots li.slick-active button:before { 
  color: var(--brand); 
}

.slick-prev:before, 
.slick-next:before { 
  color: #fff; 
  text-shadow: 0 2px 6px rgba(0,0,0,0.4); 
}

.slick-prev { 
  left: 8px; 
  z-index: 2; 
}

.slick-next { 
  right: 8px; 
  z-index: 2; 
}

/* Buttons */
.btn { display: inline-block; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; border: 1px solid transparent; transition: all 0.2s ease; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn.outline:hover { background: rgba(107,61,240,0.10); }

/* Sections */
.section { background: var(--section); padding: 40px 0; }
.section .center { text-align: center; margin-top: 16px; }
.section h2 { font-size: 1.6rem; margin: 0 0 10px; text-align: center; }
.reviews .sub { text-align: center; }
.sub { color: var(--muted); margin-top: -6px; margin-bottom: 6px; }
.muted { color: var(--muted); }

/* Utility */
.is-hidden { display: none !important; }

/* Cards and grids */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; box-shadow: 0 6px 18px rgba(16,24,40,0.06); }
.card h3 { margin: 8px 0 8px; font-size: 1.1rem; }
.card ul { padding-left: 18px; margin: 8px 0 0; }

.reviews { background: #fff; }
.review { 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: 12px; 
  padding: 14px; 
  margin: 8px; 
  text-align: center; 
  box-shadow: 0 6px 18px rgba(16,24,40,0.06); 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: flex-start; 
}

/* Use full-size rectangular images instead of circular avatars */
.review img { 
  width: 100% !important; 
  height: 220px !important; 
  min-height: 220px; 
  max-height: 220px; 
  border-radius: 10px; 
  object-fit: cover; 
  object-position: center; 
  margin: 0 0 12px; 
  display: block; 
  flex: 0 0 auto; 
}

/* Extra specificity to override any library styles in the carousel */
.slick-reviews .slick-slide article.review img { 
  width: 100% !important; 
  height: 220px !important; 
  min-height: 220px; 
  max-height: 220px; 
  flex: 0 0 auto; 
  border-radius: 10px; 
}

.review h3 { 
  margin: 2px 0 8px; 
  font-size: 1rem; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
  width: 100%; 
  max-width: 280px; 
  min-height: 24px; 
  margin-top: 0; 
  text-align: center; 
}

.review p { 
  font-size: 0.98rem; 
  line-height: 1.55; 
  margin: 0; 
  display: -webkit-box; 
  -webkit-line-clamp: 7; 
  line-clamp: 7; 
  -webkit-box-orient: vertical; 
  overflow: hidden; 
  text-align: left; 
}

.slick-reviews .slick-track { 
  display: flex; 
  align-items: stretch; 
}

.slick-reviews .slick-slide { 
  height: auto; 
  display: flex !important; 
  justify-content: center; 
  align-items: stretch; 
}

.slick-reviews .slick-list { 
  padding: 8px 4px; 
  overflow: hidden; 
}

.slick-reviews .review { 
  max-width: 360px; 
  width: 95%; 
  height: 520px; 
  min-height: 520px; 
  padding-top: 18px; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: flex-start; 
}

.slick-reviews .slick-slide { 
  display: flex !important; 
  justify-content: center; 
}

.slick-reviews .slick-dots { 
  position: static; 
  margin-top: 8px; 
}

.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.why-image img { border-radius: 12px; box-shadow: 0 10px 24px rgba(16,24,40,0.08); }
.why-list { margin: 0; padding-left: 18px; }
.why-list li { margin: 6px 0; }
/* Scroll reveal animations */
[data-reveal] { opacity: 1; transform: none; }

/* Modern look extras */
.site-header { box-shadow: 0 2px 10px rgba(16,24,40,0.06); }
.card { transition: transform 160ms ease, box-shadow 160ms ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,24,40,0.10); }
.btn { box-shadow: 0 2px 8px rgba(15,123,255,0.15); }
.btn:active { transform: translateY(1px); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .carousel-viewport { scroll-behavior: auto; }
}

.faqs details { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.faqs summary { 
  cursor: pointer; 
  font-weight: 600; 
  list-style: none; 
  position: relative; 
  padding-right: 20px; 
}
.faqs summary::-webkit-details-marker { 
  display: none; 
}
.faqs summary::after { 
  content: '▶'; 
  position: absolute; 
  right: 0; 
  top: 50%; 
  transform: translateY(-50%); 
  color: var(--brand); 
  font-size: 0.8em; 
  transition: transform 0.2s ease; 
}
.faqs details[open] summary::after { 
  transform: translateY(-50%) rotate(90deg); 
}
.faqs .faq-image img { border-radius: 10px; margin-top: 10px; }

/* Footer */
.site-footer { background: #0b1220; color: #e5e7eb; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; padding: 28px 0; align-items: start; }
.site-footer h3, .site-footer h4 { color: #fff; margin: 0 0 8px; }
.site-footer a { color: #c7e0ff; text-decoration: none; }
.footer-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 18px 0 20px; border-top: 1px solid rgba(255,255,255,0.08); }
@media (min-width: 981px) {
  .footer-columns { margin-top: 0; }
}
/* Footer: left align content */
.footer-top .about, .footer-top .contact, .footer-top .footer-logo { text-align: left; }
.footer-top .footer-logo { display: block; }
.footer-columns ul { margin: 0; padding-left: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 14px 0; }
.footer-bottom p { margin: 0; color: #cbd5e1; font-size: 0.9rem; text-align: center; }

/* Hospital Attachments now nested under About; no special grid placement needed */
.map-section { padding: 10px 0 20px; }
.map-section h3 { color: #fff; margin: 0 0 8px; }
.map-embed { position: relative; width: 100%; padding-top: 56.25%; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 24px rgba(16,24,40,0.20); background: #0b1220; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Medium desktop screens - prevent text wrapping */
@media (max-width: 1200px) and (min-width: 981px) {
  .desktop-nav { 
    gap: 8px; 
  }
  .desktop-nav a { 
    padding: 4px 8px; 
    font-size: 13px; 
  }
  .header-inner {
    gap: 10px;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 20px; padding: 22px 0; }
  .hospital-attachments { grid-column: 1 / -1; }
  
  /* Navigation responsive */
  .desktop-nav { display: none !important; }
  .mobile-nav { 
    display: flex !important; 
    align-items: center; 
    justify-content: flex-end; 
  }
  .burger-menu {
    display: flex !important;
  }
  .phone-link { display: none; }
  .phone-btn { display: block; }
  
  /* Keep intro phone number visible on mobile */
  .intro .phone-link { 
    display: block !important; 
    font-size: 18px; 
    text-align: center; 
    margin-top: 16px; 
  }
  
  /* Reduce white space on mobile */
  .hero { 
    padding: 0; 
    margin: 0; 
  }
  .intro.section { 
    padding: 20px 0; 
  }
  .section { 
    padding: 20px 0; 
  }
  .container { 
    padding: 0 15px; 
  }
  
  /* Mobile carousel fixes */
  .slick-hero { 
    aspect-ratio: 3/2; 
    max-height: 300px; 
    min-height: 200px; 
    box-shadow: 0 2px 8px rgba(16,24,40,0.06); 
  }
  .slick-hero .slick-list, 
  .slick-hero .slick-track { 
    height: 100% !important; 
  }
  .slick-hero .slick-slide { 
    align-items: center; 
    justify-content: center; 
  }
  .slick-hero img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    object-position: center; 
  }
  .slick-dots { 
    bottom: 8px; 
  }
  .slick-dots li button:before { 
    font-size: 8px; 
  }
  
  /* Ensure proper header layout on mobile */
  .header-inner {
    gap: 15px;
    min-height: auto;
    padding: 8px 0;
  }
}

/* Modal */
.modal { position: fixed; inset: 0; display: none; }
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); backdrop-filter: blur(2px); }
.modal-content { position: relative; z-index: 2; width: min(560px, 92%); margin: 8vh auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; box-shadow: 0 20px 40px rgba(16,24,40,0.18); }
.modal-close { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: #fff; cursor: pointer; }
.modal-content > .modal-close { position: absolute; right: 8px; top: 8px; }
.appt-form .actions .modal-close { position: static; width: auto; height: auto; border-radius: 8px; padding: 10px 14px; }
.modal .modal-close { display: inline-grid; place-items: center; color: var(--heading); }
.appt-form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.appt-form .grid-col-2 { grid-column: span 2; }
.appt-form label span { display: block; font-weight: 600; margin-bottom: 4px; color: var(--heading); }
.appt-form input, .appt-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font: inherit; }
.appt-form .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }


@media (max-width: 720px) {
  .header-inner { padding: 8px 0; }
  .logo img { height: 44px; }
  .main-nav ul { gap: 8px; margin-left: auto; }
  .btn.small { padding: 6px 10px; font-size: 14px; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: 1fr; }
  .hospital-attachments { grid-column: auto; }
  .appt-form .grid { grid-template-columns: 1fr; }
  .appt-form .grid-col-2 { grid-column: auto; }
  /* Aspect-ratio keeps height proportional on mobile automatically */
  .appt-form .actions { justify-content: stretch; }
  .appt-form .actions .btn { flex: 1; text-align: center; }
  
  /* Ensure burger menu is visible on small mobile screens */
  .desktop-nav { display: none !important; }
  .mobile-nav { 
    display: flex !important; 
    align-items: center; 
    justify-content: flex-end; 
  }
  .burger-menu {
    display: flex !important;
    width: 28px;
    height: 28px;
  }
  
  /* Keep intro phone number visible on small mobile screens */
  .intro .phone-link { 
    display: block !important; 
    font-size: 16px; 
    text-align: center; 
    margin-top: 16px; 
  }
  
  /* Further reduce white space on small mobile */
  .hero { 
    padding: 0; 
    margin: 0; 
  }
  .intro.section { 
    padding: 15px 0; 
  }
  .section { 
    padding: 15px 0; 
  }
  .container { 
    padding: 0 10px; 
  }
  
  /* Small mobile carousel fixes */
  .slick-hero { 
    aspect-ratio: 3/2; 
    max-height: 280px; 
    min-height: 180px; 
    box-shadow: 0 2px 6px rgba(16,24,40,0.05); 
  }
  .slick-hero .slick-list, 
  .slick-hero .slick-track { 
    height: 100% !important; 
  }
  .slick-hero .slick-slide { 
    align-items: center; 
    justify-content: center; 
  }
  .slick-hero img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    object-position: center; 
  }
  
  /* Small mobile carousel controls */
  .slick-dots { 
    bottom: 6px; 
  }
  .slick-dots li button:before { 
    font-size: 6px; 
  }
}

/* Footer logo */
.footer-logo img { height: 82px; width: auto; display: block; }
.footer-top .footer-logo { margin-bottom: 8px; }


