/* ----- GLOBAL STYLES ----- */
:root {
  --bg: #ffffff;
  --muted: #6b7280;
  --accent: #059669;
  --border: #e6e6e9;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --max-w: 1200px;
  --header-h: 64px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial;
}
* {
  box-sizing: border-box;
}
a {
  text-decoration: none;
}
body {
  margin: 0;
  background: #f8fafc;
  color: #0f172a;
}

.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 10px;
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}
.logo-mark {
  width: 50px;
  height: 50px;
  border-radius: 8px;

  display: flex;
  align-items: center;
  justify-content: center;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand .name {
  font-weight: 700;
}
.brand .tag {
  font-size: 12px;
  color: var(--muted);
}

nav.desktop {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1 1 auto;
  justify-content: center;
}
nav.desktop a,
nav.desktop button {
  background: none;
  border: 0;
  padding: 6px 8px;
  color: inherit;
  font-size: 15px;
  cursor: pointer;
}
nav.desktop a:hover,
nav.desktop button:hover {
  color: var(--accent);
}

.dropdown {
  position: relative;
}
.dropdown-panel {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 10px;
  border-radius: 8px;
}
.dropdown.open .dropdown-panel {
  display: block;
}
.dropdown-panel a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: #0f172a;
  text-decoration: none;
  font-size: 14px;
}
.dropdown-panel a:hover {
  background: #f3f4f6;
}

.cta {
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.12);
  flex: 0 0 auto;
}
.cta:hover {
  filter: brightness(1.03);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  border-radius: 8px;
}

@media (max-width: 880px) {
  nav.desktop {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .brand .tag {
    display: none;
  }
}

.offcanvas {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 92%;
  max-width: 360px;
  background: #fff;
  z-index: 60;
  transform: translateX(-110%);
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
  box-shadow: var(--shadow);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.offcanvas.open {
  transform: translateX(0);
}
.offcanvas .head button {
  position: absolute;
  top: 16px;
  right: 14px;
  padding: 8px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.offcanvas .head button:hover {
  background: #f3f4f6;
}
.offcanvas .menu {
  padding: 16px;
  overflow: auto;
}
.menu a,
.menu button {
  display: block;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  border: 0;
  background: none;
  text-align: left;
  width: 100%;
  font-size: 15px;
}
.menu a:hover,
.menu button:hover {
  background: #f8fafc;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
  z-index: 50;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Hero */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 6%;
  flex-wrap: wrap;
  background: linear-gradient(180deg, #e5f0ec, #f9fbfa);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

.hero-content {
  flex: 1;
  max-width: 550px;
}

.welcome {
  color: #5a6b63;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  font-weight: 700;
}

h1 span {
  font-style: italic;
  font-weight: 400;
}

.subtitle {
  margin: 1.5rem 0;
  color: #60746a;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  background: #264d3b;
  color: #fff;
  padding: 0.9rem 1.5rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn:hover {
  background: #1b3a2d;
}

.rating-box {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 1rem;
  padding: 1rem 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
  width: fit-content;
}

.avatars img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -10px;
}

.rating-text {
  margin-left: 1rem;
}

.stars {
  color: gold;
  font-size: 1.1rem;
}

.score {
  font-weight: 700;
  font-size: 1.1rem;
}

.rating-text p {
  font-size: 0.85rem;
  color: #5f6e68;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: right;
  margin-top: 2rem;
}

.doctor-card {
  position: relative;
  max-width: 520px;
}

.doctor-card img {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
}

.contact-box {
  position: absolute;
  bottom: -5px;
  left: 5px;
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 0.8rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.phone-icon {
  font-size: 1.3rem;
  margin-right: 0.6rem;
  color: #1b3a2d;
}

.contact-info .phone {
  font-weight: 600;
  display: flex;
  align-items: center
}

.contact-info .availability {
  font-size: 0.8rem;
  color: #6c7b76;
}

/* Responsive Design */
@media (max-width: 600px) {

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .rating-box {
    margin: 2rem auto;
  }

  .hero-image {
    margin-top: 3rem;
  }
}




.about-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.about-container {
  max-width: 1200px;
  display: flex;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.about-text {
  flex: 1 1 500px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #007BFF;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 15px;
}

.about-image {
  flex: 1 1 400px;
  text-align: center;
}
.about-image-desktop {
  display: block;
}
.about-image-mobile {
  display: none;
}

.about-image-desktop img, .about-image-mobile img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Contact */
.contact-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info {
  flex: 1 1 500px;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #007BFF;
}

.contact-info p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #555;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  width: 100%;
}

.contact-form button {
  padding: 12px;
  background-color: #007BFF;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background-color: #0056b3;
}

.contact-map {
  flex: 1 1 500px;
  min-height: 350px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Who we serve */
.who-we-serve .serve-list {
  list-style: none;
  margin: 1.5em 0;
  display: flex;
  gap: 2em;
  justify-content: center;
}

.who-we-serve .serve-list li {
  background-color: #fff;
  padding: 0.8em 1.5em;
  border-radius: 20px;
  color: #5a3c1f;
}
.why-list {
  list-style: none;
  margin: 1.5em 0;
  display: flex;
  gap: 2em;
  justify-content: center;
}

.why-list li {
  background-color: #fff;
  padding: 0.8em 1.5em;
  border-radius: 20px;
  color: #5a3c1f;
}
.why-image {
  text-align: center;
  margin-top: 30px;
}
.why-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Testimonials Section */
.testimonials-container {
  width: 80%;
  margin: 50px auto;
  text-align: center;
}

h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 40px;
}

/* Slider Container */
.testimonial-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.testimonials {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial {
  min-width: 100%;
  box-sizing: border-box;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.testimonial-icon {
  font-size: 30px;
  color: #4CAF50;
}

.testimonial-text {
  font-size: 1.1rem;
  margin-top: 20px;
  color: #666;
}

.testimonial-author {
  font-weight: bold;
  margin-top: 20px;
  color: #4CAF50;
}

/* Navigation Arrows */
.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

button {
  background-color: transparent;
  border: none;
  color: #4CAF50;
  font-size: 30px;
  cursor: pointer;
}

button:hover {
  color: #333;
}

/* Responsive Breakpoints */

/* Mobile */
@media screen and (max-width: 600px) {
  h2 {
    font-size: 2rem;
  }

  .testimonial-text {
    font-size: 1rem;
  }
}

/* Tablet */
@media screen and (min-width: 601px) and (max-width: 900px) {
  h2 {
    font-size: 2.2rem;
  }

  .testimonial-text {
    font-size: 1.1rem;
  }
}

/* Desktop */
@media screen and (min-width: 901px) {
  h2 {
    font-size: 2.5rem;
  }

  .testimonial-text {
    font-size: 1.2rem;
  }
}


/* Footer */
.site-footer {
  background: var(--accent);
  color: #fff;
  padding: 2em 0;
  text-align: center;
}

.site-footer .footer-nav a {
  color: #fff;
  margin: 0 0.8em;
  text-decoration: none;
}

.site-footer p {
  margin-top: 1.5em;
  font-size: 0.9em;
}

/* Prevent scrolling when menu is open */
.menu-open {
  overflow: hidden;
}
.footer-contact  {
  display: flex;
  align-items: center;
  color: #efeffb;
  font-size: large;
  font-weight: bold;
  justify-content: center;
 
}
.footer-contact a {
  color: #fff;
  margin: 0 0.8em 0 0;
  text-decoration: none;
  text-decoration: underline;
  background-color: #0772dc;
  padding: 5px 9px;
  border-radius: 4px;
}


@media (max-width: 768px) {
   .main-nav {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    position: fixed; /* Changed from absolute */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(250, 246, 240, 0.85); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* The "buler" effect */
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
  }

  .main-nav a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #5a3c1f;
  }

  .main-nav.active {
    display: flex;
  }

  .hamburger-inner::before,
  .hamburger-inner::after {
    content: '';
    display: block;
  }
  .hamburger-inner::before {
    top: -10px;
  }
  .hamburger-inner::after {
    bottom: -10px;
  }

  /* Animate to 'X' */
  .mobile-menu.is-active .hamburger-inner {
    transform: rotate(45deg);
  }
  .mobile-menu.is-active .hamburger-inner::before {
    top: 0;
    transform: rotate(-90deg);
  }
  .mobile-menu.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
  }

  .btn.btn-primary {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero .hero-inner {
    flex-direction: column;
  }

  .hero .hero-content {
    width: 100%;
    text-align: center;
  }
  
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text, .about-image-desktop, .about-image-mobile{
    flex: 1 1 100%;
  }
  .about-image-mobile {
    display: block; /* Show image on mobile */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
  }
  .about-image-desktop {
    display: none; /* Show image first on mobile */
  }
  .who-we-serve .serve-list {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    }
    .why-list {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    }

   .contact-container {
    flex-direction: column;
  }

  .contact-map {
    height: 300px;
  }
  .footer-contact {
    flex-direction: column;
    font-size: medium;
  }
  .footer-contact a {
    margin: 10px 0;
  }

}

@media (max-width: 480px) {
  .offcanvas .head button {
    top: 12px;
    right: 10px;
  }
}
