@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.5;
  color: rgba(12, 3, 27, 0.7);
  background: rgba(76, 201, 240, 0.1);
  user-select: none;
}

.container {
  width: 82%;
  margin: 0 auto;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

h1, h2, h3, h4, h5 {
  line-height: 1.2;
}

section {
  margin-top: 6rem;
}
section > h2 {
  text-align: center;
}
section > p {
  text-align: center;
  width: 45%;
  margin: 0.6rem auto 2.5rem;
}

.btn {
  display: inline-block;
  width: fit-content;
  padding: 0.75rem 1rem;
  border-radius: 0.4rem;
  background: #f72585;
  color: #ffffff;
  cursor: pointer;
  transition: all 400ms ease;
}
.btn:hover {
  background: ligthen(#f72585, 8%);
  box-shadow: 0 1rem 1.6rem rgba(12, 3, 27, 0.15);
}

.btn-primary {
  display: inline-block;
  width: fit-content;
  padding: 0.75rem 1rem;
  border-radius: 0.4rem;
  background: #480ca8;
  color: #ffffff;
  cursor: pointer;
  transition: all 400ms ease;
}
.btn-primary:hover {
  background: ligthen(#480ca8, 8%);
  box-shadow: 0 1rem 1.6rem rgba(12, 3, 27, 0.15);
}

/* ==============================MEDIA QUERIES (MEDIUM SCREEN)==========================*/
@media screen and (max-width: 1024px) {
  .container {
    width: 90%;
  }
  section > p {
    width: 55%;
  }
}
@media screen and (max-width: 600px) {
  .section {
    width: 90%;
  }
}
nav {
  width: 100vw;
  height: 5rem;
  position: fixed;
  z-index: 10;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #480ca8, #4cc9f0);
  color: #ffffff;
  box-shadow: 0 1rem 1rem rgba(12, 3, 27, 0.1);
}
nav h1, nav h2, nav h3, nav h4, nav h5 {
  color: #ffffff;
}
nav.window-scroll {
  background: #ffffff;
}
nav.window-scroll .container button {
  color: #0c031b;
}
nav.window-scroll .container a {
  color: #0c031b;
}
nav.window-scroll .container a > h3 {
  color: #0c031b;
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav .container ul {
  display: flex;
  gap: 3rem;
  align-items: center;
}
nav .container button {
  display: none;
}
nav .container a {
  color: #ffffff;
  font-weight: 400;
  font-size: 0.9rem;
}
nav .container .nav__logo h3 {
  color: #ffffff;
}

/* ==============================MEDIA QUERIES (MEDIUM SCREEN)==========================*/
@media screen and (max-width: 1024px) {
  nav .container button {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
  }
  nav .container button#close__nav-btn {
    display: none;
  }
  nav .container ul {
    position: fixed;
    right: 5%;
    top: 5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    display: none;
    perspective: 350px;
  }
  nav .container ul li {
    width: 100%;
    opacity: 0;
    animation: flipNavItem 400ms ease forwards;
    transform-origin: top;
  }
  nav .container ul li:nth-child(2) {
    animation-delay: 200ms;
  }
  nav .container ul li:nth-child(3) {
    animation-delay: 300ms;
  }
  nav .container ul li:nth-child(4) {
    animation-delay: 400ms;
  }
  nav .container ul li:nth-child(5) {
    animation-delay: 500ms;
  }
  @keyframes flipNavItem {
    from {
      transform: rotateX(90deg);
    }
    to {
      transform: rotateX(0deg);
      opacity: 1;
    }
  }
  nav .container ul a {
    color: #ffffff;
    height: 100%;
    display: block;
    padding: 1.5rem 2rem;
    border-radius: 0;
    background: linear-gradient(#4cc9f0, #14b8eb);
  }
  nav .container ul a.btn {
    background: #f72585;
  }
}
header {
  background: linear-gradient(135deg, #480ca8, #4cc9f0);
  color: #ffffff;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 7rem;
}
header h1, header h2, header h3, header h4, header h5 {
  color: #ffffff;
}
header .container {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 46% 52%;
  gap: 18%;
  align-items: center;
  justify-content: space-between;
}
header .container .header__content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  letter-spacing: -3px;
  color: #ffffff;
  font-weight: 300;
}
header .container .header__content p {
  margin: 1rem 0 2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}
header .container .header__image {
  width: 40rem;
  height: 30rem;
  margin: 0 auto;
}
header .container .header__image img {
  border-radius: 1rem;
  width: 25rem;
  height: 30rem;
}

/* ==============================MEDIA QUERIES (MEDIUM SCREEN)==========================*/
@media screen and (max-width: 1024px) {
  header {
    height: 60vh;
  }
  header .container {
    gap: 2%;
  }
  header .container .header__content h1 {
    font-size: 2.5rem;
  }
  header .container .header__image {
    width: 8rem;
  }
  header .container .header__image img {
    border-radius: 1rem;
    width: 15rem;
    height: 30rem;
  }
}
/* ==============================MEDIA QUERIES (MEDIUM SCREEN)==========================*/
@media screen and (max-width: 600px) {
  header {
    height: 50rem; /* Change from 100vh to auto so the image doesn't overflow the screen height on small devices */
    padding-top: 5rem;
    padding-bottom: 3rem;
  }
  header .container {
    grid-template-columns: 1fr;
    text-align: center;
    justify-content: center;
  }
  header .container .header__content {
    line-height: 1.4;
  }
  
  /* 1. ADJUST THE PARENT CONTAINER */
  header .container .header__image {
    width: 100%;       /* Allow the wrapper to scale up to the available content width */
    max-width: 25rem;  /* Sets an optional upper limit so it doesn't get uncomfortably massive on tablets */
    margin: 2rem auto 0 auto; /* Added top margin to separate it cleanly from the text above */
  }
  
  /* 2. ADJUST THE IMAGE ITSELF TO FIT 100% CONTENT */
  header .container .header__image img {
    width: 100%;       /* Spans exactly 100% of its container's width */
    height: auto;      /* Maintains its original, true aspect ratio without clipping */
    object-fit: contain; /* Guarantees the entire image fits inside without hiding any part */
    display: block;
  }
}

#services .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
#services .container article {
  background: linear-gradient(135deg, #480ca8, #4cc9f0);
  color: #ffffff;
  padding: 1.5rem;
  border-radius: 1rem;
  display: flex;
  gap: 1.5rem;
  height: fit-content;
  transition: all 400ms ease;
}
#services .container article h1, #services .container article h2, #services .container article h3, #services .container article h4, #services .container article h5 {
  color: #ffffff;
}
#services .container article:hover {
  margin-top: -0.5rem;
}
#services .container article i {
  font-size: 1.7rem;
}
#services .container article div h4 {
  margin-bottom: 1rem;
}

/* ==============================MEDIA QUERIES (MEDIUM SCREEN)==========================*/
@media screen and (max-width: 1024px) {
  #services .container {
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
  }
  #services .container article {
    padding: 1.2rem;
    gap: 0.8rem;
  }
  #services .container article:hover {
    margin: 0;
  }
}
/* ==============================MEDIA QUERIES (MEDIUM SCREEN)==========================*/
@media screen and (max-width: 600px) {
  #services .container {
    grid-template-columns: 1fr;
  }
  #services .container article div h4 {
    margin-bottom: 0;
  }
}
#Products .container {
  width: 68%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
#Products .container article {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 1.5rem 1.5rem rgba(12, 3, 27, 0.1);
  position: relative;
  transition: all 700ms ease;
}
#Products .container article:hover {
  box-shadow: none;
}
#Products .container article:hover .specialist__image::before {
  left: 0;
  border-radius: 1rem;
}
#Products .container article:hover .specialist__socials, #Products .container article:hover .specialist__whatsapp {
  opacity: 1;
  visibility: visible;
}
#Products .container article .specialist__image {
  height: 10rem;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

#Products .container article .specialist__image img {

  height: 100%;
}
#Products .container article .specialist__image::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: -100%;
  background: linear-gradient(135deg, rgba(72, 12, 168, 0.8), rgba(76, 201, 240, 0.8));
  border-radius: 50%;
  transition: all 1s ease;
}
#Products .container article .specialist__details {
  margin: 1.5rem 0;
  text-align: center;
}
#Products .container article .specialist__socials {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 1s 400ms ease;
}
#Products .container article .specialist__socials a {
  background: #ffffff;
  color: #480ca8;
  padding: 0.4rem;
  display: flex;
  font-size: 0.8rem;
  border-radius: 50%;
  transition: all 400ms ease;
}
#Products .container article .specialist__socials a:hover {
  background: #480ca8;
  color: #ffffff;
}
#Products .container article .specialist__whatsapp {
  background: #54eb72;
  color: #ffffff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 45%;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem 0.5rem 0.5rem 0.5rem;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: all 1s 400ms ease;
}



/* ==============================MEDIA QUERIES (MEDIUM SCREEN)==========================*/
@media screen and (max-width: 1024px) {
  #Products .container {
    grid-template-columns: 1fr 1fr;
  }
}
/* ==============================MEDIA QUERIES (SMALL SCREEN)==========================*/
@media screen and (max-width: 600px) {
  #Products .container {
    grid-template-columns: 1fr;
  }
}
.swiper {
  width: 82%;
}
.swiper .swiper-wrapper {
  margin-bottom: 4rem;
}
.swiper .swiper-wrapper .swiper-slide {
  background: linear-gradient(135deg, #480ca8, #4cc9f0);
  color: #ffffff;
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  cursor: default;
  font-size: 0.9rem;
}
.swiper .swiper-wrapper .swiper-slide h1, .swiper .swiper-wrapper .swiper-slide h2, .swiper .swiper-wrapper .swiper-slide h3, .swiper .swiper-wrapper .swiper-slide h4, .swiper .swiper-wrapper .swiper-slide h5 {
  color: #ffffff;
}
.swiper .swiper-wrapper .swiper-slide p {
  margin-bottom: 1.5rem;
}
.swiper .swiper-wrapper .swiper-slide .patient {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.swiper .swiper-wrapper .swiper-slide .patient .avatar {
  width: 2.5rem;
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
}
.swiper .swiper-wrapper .swiper-pagination-bullet {
  background: #480ca8;
}

/* ==============================MEDIA QUERIES (SMALL SCREEN)==========================*/
@media screen and (max-width: 600px) {
  .swiper .swiper-wrapper .swiper-slide {
    padding: 1.5rem;
  }
}
#appointment .container {
  display: grid;
  grid-template-columns: 47% 47%;
  gap: 6%;
}
#appointment .container .info p {
  margin: 0.5rem 0 2rem;
}
#appointment .container .info article {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
#appointment .container .info article small {
  margin-top: 0.4rem;
  display: block;
}
#appointment .container .info article .info__icon {
  background: #f72585;
  color: #ffffff;
  padding: 0.8rem;
  height: fit-content;
  border-radius: 50%;
  display: flex;
  font-size: 1.2rem;
}
#appointment .container form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
#appointment .container .form__group {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  display: inline-block;
  font-weight: 600;
}
#appointment .container input, #appointment .container textarea, #appointment .container select {
  background: #ffffff;
  padding: 0.85rem 1rem;
  display: block;
  width: 100%;
  resize: none;
  appearance: none;
}

/* ==============================MEDIA QUERIES (MEDIUM SCREEN)==========================*/
@media screen and (max-width: 600px) {
  #appointment .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  #appointment .info h2, #appointment .info p {
    text-align: center;
  }
}
footer {
  background: #0c031b;
  padding-top: 6rem;
  margin-top: 6rem;
}
footer .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5rem;
  font-size: 0.85rem;
}
footer .container a {
  color: rgba(255, 255, 255, 0.5);
  transition: all 400ms ease;
}
footer .container a:hover {
  color: #ffffff;
}
footer .container a > h3 {
  color: #ffffff;
}
footer .container article {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.5);
}
footer .container article > div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
footer .container article > h3 {
  color: #ffffff;
}
footer .container article .footer__socials {
  gap: 1rem;
  font-size: 1.1rem;
}
footer .copyright {
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==============================MEDIA QUERIES (MEDIUM SCREEN)==========================*/
@media screen and (max-width: 1024px) {
  footer .container {
    gap: 2.5rem;
  }
}
/* ==============================MEDIA QUERIES (MEDIUM SCREEN)==========================*/
@media screen and (max-width: 600px) {
  footer .container {
    text-align: center;
    grid-template-columns: 1fr;
  }
  footer .container .btn-primary, footer .container .footer__socials {
    margin: 0 auto;
  }
  footer .container article > div {
    justify-content: center;
  }
}
/* =================== FAQs SECTION =================== */
#faqs {
    padding: 5rem 0;
}

.faq__container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq__item {
   background: linear-gradient(135deg, #480ca8, #4cc9f0) !important;
    /* background:#480ca8; Matching your dashboard canvas theme background */
    border: 1px solid #fff;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq__question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq__question h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.faq__icon i {
    font-size: 1.6rem;
    transition: transform 0.3s ease;
    color: #fff;
}

.faq__answer {
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    padding: 0 1.5rem;
    opacity: 0;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
    border-top: 1px solid transparent;
}

.faq__answer p {
    display: block;
    color: #fff;
    line-height: 1.6;
    font-size: 0.95rem;
    height: 100%;
}

/* --- Active state styles injected by JS --- */
.faq__item.active {
    border-color: #00A2ED; /* Subtle brand highlight when opened */
}

.faq__item.active .faq__answer {
    max-height: 200px; /* Big enough to comfortably accommodate the answer block text */
    padding-bottom: 1.5rem;
    padding-top: 1rem;
    opacity: 1;
    border-top-color: #2D324D;
}

.faq__item.active .faq__icon i {
    transform: rotate(135deg); /* Turns the plus icon (+) into a close icon (x) */
    color: #fff;
}


/*# sourceMappingURL=style.css.map */
