/* ---------- GLOBAL STYLES ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #fdf8f3, #f7efe7);
  color: #333;
  overflow-x: hidden;
}

h1, h2, h3 {
  letter-spacing: 0.5px;
}

/* ---------- HEADER ---------- */
.header-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2.5rem 1rem;
  background: linear-gradient(90deg, #f5e6ca, #e8c78c);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-bottom: 3px solid #ffb74d;
}

.header-left img.clinic-logo {
  width: 120px;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

.header-right {
  text-align: center;
}

.header-right h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #3e2723;
  margin-bottom: 0.3rem;
}

.header-right h2 {
  font-size: 1.1rem;
  color: #5d4037;
}

.buttons {
  margin-top: 1.2rem;
}

.btn {
  display: inline-flex;          /* ensures consistent alignment */
  align-items: center;           /* vertically centers text */
  justify-content: center;       /* horizontally centers text */
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 30px;
  margin: 0.4rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;              /* consistent text height */
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-orange {
  background: linear-gradient(45deg, #ffb347, #ff7a00);
  color: white;
}

.btn-orange:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(255, 120, 0, 0.4);
}

.btn-blue {
  background: linear-gradient(45deg, #a3d5ff, #cbe7ff);
  color: #004080;
  min-width: 220px;              /* ensures wider button for phone number */
}

.btn-blue:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 128, 255, 0.3);
}

.google-qr {
  background: linear-gradient(135deg, #fffaf5, #fceee2);
  text-align: center;
  padding: 3rem 1rem;
  margin-top: 3rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.google-qr h2 {
  color: #ff7a00;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.google-qr p {
  color: #5d4037;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.qr-image {
  width: 220px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.qr-image:hover {
  transform: scale(1.05);
}

/* ---------- CLINIC INFO ---------- */
.clinic-info {
  background: #fff8f2;
  border-radius: 15px;
  padding: 2.5rem 1.5rem;
  max-width: 900px;
  margin: 3rem auto;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.clinic-info p {
  color: #5d4037;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ---------- DOCTORS ---------- */
section {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

section h2 {
  color: #8d6e63;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.doctor-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.doctor {
  flex: 1 1 300px;
  background: #fff8f2;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.doctor img {
  width: 100%;
  height: 250px;
  object-fit: contain;
}

.doctor h3 {
  color: #ff7a00;
  margin-top: 1rem;
  font-size: 1.2rem;
}

.doctor p {
  color: #6d4c41;
  margin: 0.5rem 0 1.5rem;
}

.doctor p strong {
  color: #d4af37;
  font-weight: 600;
}

#chat-bubble {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #ff7a00;
  color: white;
  font-size: 1.6rem;
  border-radius: 50%;
  padding: 15px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 999;
}

#chat-box {
  position: fixed;
  bottom: 90px;
  right: 25px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  width: 280px;
  display: none;
  z-index: 1000;
}

.chat-header {
  background: #ff7a00;
  color: white;
  padding: 0.8rem;
  border-radius: 15px 15px 0 0;
  font-weight: 600;
}

.chat-body {
  padding: 1rem;
  font-size: 0.95rem;
  color: #4e342e;
}

.chat-btn {
  background: #ffb347;
  border: none;
  padding: 0.5rem 1rem;
  margin: 0.3rem 0.2rem;
  border-radius: 20px;
  cursor: pointer;
  color: white;
  font-weight: 600;
}

.chat-btn:hover {
  background: #ff7a00;
}

/* ---------- SERVICES / HIGHLIGHTS ---------- */
.services {
  background: linear-gradient(135deg, #fffaf5, #fceee2);
  border-radius: 15px;
  padding: 2rem 1rem;
  margin-top: 2rem;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.services h2 {
  color: #ff7a00;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
  justify-content: center;
}

.service-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 0.8rem 0.6rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 90px;
  max-width: 180px;
  margin: 0 auto;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.1);
}

.service-icon {
  font-size: 1rem;
  color: #ff9a3c;
  margin-bottom: 0.25rem;
}

.service-card h3 {
  color: #ff7a00;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  line-height: 1.3;
}

/* ---------- GALLERY ---------- */
.gallery-section {
  background: linear-gradient(135deg, #fff3e0, #f9f4ed);
  padding: 3rem 1rem;
  border-radius: 15px;
  margin-top: 3rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.gallery-section h2 {
  color: #ff7a00;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.gallery-container {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
}

.gallery-container img {
  height: 250px;
  border-radius: 15px;
  object-fit: cover;
  flex: 0 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 3px solid #fff;
}

.gallery-container img:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ---------- CORE SERVICES ---------- */
.core-services {
  background: #fff7f0;
  border-radius: 20px;
  padding: 3rem 1rem;
  margin-top: 3rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.core-services h2 {
  color: #ff7a00;
  font-size: 1.7rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.carousel-wrapper {
  position: relative;
}

/* Desktop: grid layout */
.core-service-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-content: center;
}

/* Service card */
.core-service-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  padding: 20px;
  text-align: left;
  transition: transform 0.3s ease;
}
.core-service-card:hover { transform: translateY(-4px); }
.core-service-card span {
  display: block;
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 10px;
}
.sub-service-list {
  margin-top: 10px;
  font-size: 0.9em;
  color: #555;
}

/* Mobile: swipeable carousel */
@media (max-width: 768px) {
  .core-service-carousel {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    padding-left: 20px;
    box-sizing: border-box;
  }
  .core-service-card {
    flex: 0 0 85%;
    min-width: 85%;
    scroll-snap-align: start;
    margin-right: 10px;
  }
  .core-service-carousel > * {
    flex-shrink: 0;
  }
  .core-service-carousel::-webkit-scrollbar { display: none; }
  .carousel-arrow { display: block; }
}

/* Arrow styling */
.carousel-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #ff9a3c, #ff7a00);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 10;
  transition: background 0.3s ease, transform 0.2s ease;
}
.carousel-arrow.left { left: 5px; }
.carousel-arrow.right { right: 5px; }
.carousel-arrow:hover {
  background: linear-gradient(135deg, #ff7a00, #ff5500);
  transform: translateY(-50%) scale(1.1);
}
/* ---------- TESTIMONIALS ---------- */
.testimonials {
  background: #fff8f2;
  padding: 3rem 1rem;
  border-radius: 15px;
  margin-top: 3rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.testimonials h2 {
  color: #ff7a00;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.testimonial-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.testimonial {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  max-width: 320px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-5px);
}

.testimonial img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffb74d;
  margin-bottom: 1rem;
}

.testimonial p {
  font-size: 0.95rem;
  color: #5d4037;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.testimonial h4 {
  color: #ff7a00;
  font-size: 1rem;
  font-weight: 600;
}

/* ---------- GOOGLE REVIEW ---------- */
.google-review {
  background: linear-gradient(135deg, #fffaf5, #fceee2);
  text-align: center;
  padding: 3rem 1.5rem;
  margin-top: 3rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.google-review h2 {
  color: #ff7a00;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.google-review p {
  color: #5d4037;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* ---------- FOOTER ---------- */
footer {
  background: linear-gradient(90deg, #d7ccc8, #f5f0eb);
  color: #3e2723;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}

.footer-contact {
  margin-bottom: 1rem;
}

.footer-contact h3 {
  color: #ff7a00;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer-contact p {
  font-size: 0.95rem;
  margin: 0.3rem 0;
}

.footer-contact a {
  color: #ff7a00;
  text-decoration: none;
  font-weight: 600;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-note {
  font-size: 0.9rem;
  color: #5d4037;
  margin-top: 1rem;
}

/* Navigation buttons styling */
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

@media (max-width: 768px) {
  .header-right h1 { font-size: 2.2rem; }
  .doctor img { height: 260px; }
  .gallery-container img { height: 180px; }
  .clinic-info { padding: 1.5rem; }
  section h2 { font-size: 1.6rem; }
}
