@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --bg-color: #F0F1F2;
  --text-dark: #141727;
  --primary-purple: #5b72ee;
  --dark-blue: #1e2238;
  --white: #ffffff;
  --border-light: #e5e7eb;
  --text-muted: #6b7280;
  --card-bg: #eaf2ff;
  --border-white-transparent: rgba(255, 255, 255, 0.15);
  --green: #b1fd38;
  --shadow-light: rgba(0, 0, 0, 0.02);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100vw;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color: var(--text-dark);
  font-family: "Poppins", sans-serif;
}

body,
h1,
h2,
h3,
h4,
p,
span,
a,
button {
  font-family: "Poppins", sans-serif;
}

main,
.main-con,
.hero,
.services-section,
.about-section,
.review-section {
  background-color: var(--bg-color);
}

/* Header */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-inline: 22px;
  border-bottom: 1px solid rgb(194, 188, 188);
  padding: 20px;
}

.nav nav {
  display: flex;
  justify-content: space-between;
  gap: 42px;
  list-style-type: none;
  position: relative;
  right: 3rem;
}

.nav li a {
  color: rgb(75, 75, 75);
  text-align: center;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  transition: 0.2s;
  display: inline-block;
}

nav a:hover,
a:focus {
  color: rgb(102, 102, 239);
  transform: translateY(-2px);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 50px;
}

.logo h4 {
  position: relative;
  left: 30px;
  top: 3px;
  font-family: "Asap Sharp", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 30px;
}

/* hero-section */

.main-con {
  width: 100%;
  background-color: var(--bg-color);
  padding: 30px 50px 0 50px;
  flex: 1;
}

.services-section,
.about-section,
.review-section {
  background-color: var(--bg-color);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-icon {
  color: var(--primary-purple);
  font-size: 20px;
}

.btn-login {
  background-color: var(--dark-blue);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 40px;
  gap: 30px;
}

.hero-text {
  padding-bottom: 40px;
  flex: 1;
}

.hero-text h1 {
  font-size: 60px;
  line-height: 1;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 28px;
}

h1,
h2,
h3,
h4 {
  font-weight: 500;
}

.btn-book {
  background-color: var(--dark-blue);
  color: var(--white);
  border: none;
  padding: 14px 30px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 35px;
}

.subtext-con {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  max-width: 240px;
}

.subtext-con p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.img-con {
  flex: 1.1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.dr {
  position: relative;
  width: 100%;
  max-width: 330px;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  background-color: var(--card-bg);
}

.dr img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: -15px;
}

.card {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 82%;
  background: rgba(30, 34, 56, .65);
  border: 1px solid var(--border-white-transparent);
  padding: 14px 20px;
  border-radius: 16px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doc-name {
  font-size: 14px;
  font-weight: 700;
}

.doc-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.hero-services {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 30px;
}

.text-card {
  height: 180px;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.green {
  height: 220px;
  background-color: var(--green);
  color: var(--text-dark);
}

.blue {
  height: 175px;
  background-color: var(--primary-purple);
  color: var(--white);
}

.contain {
  display: flex;
  flex-direction: column;
  font-size: 21px;
  font-weight: 800;
}

.arrow-icon {
  width: 36px;
  height: 36px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  cursor: pointer;
}

.arrow-icon img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
}

/* our-service section */

.services-section {
  padding: 80px 5%;
  background-color: var(--bg-color);
}

.service-title h2 {
  font-size: 38px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 40px;
  text-align: center;
}

.service-con {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-group-one {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.service-group-one .service-main {
  width: 63%;
  display: flex;
  flex-direction: row !important;
  justify-content: space-between;
  align-items: center;
}

.service-group-one .service-side {
  width: 35%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.service-group-two {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.service-group-two .service-item {
  width: 32%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.service-card {
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  color: var(--white);
  min-height: 330px;
  box-sizing: border-box;
}

.service-card h3 {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 13px;
  opacity: .9;
  max-width: 200px;
}

.service-card .service-img {
  width: 100%;
  max-height: none;
  object-fit: cover;
  object-position: bottom center;
  margin-top: auto;
}

.service-item.gray .service-img {
  position: relative;
  top: -8rem;
  left: -3rem;
  margin-top: 0;
}

.service-main .service-img {
  max-height: 170px;
  width: 40%;
  margin-top: 0;
}

.blue {
  background-color: #6b82ee;
}

.green {
  background-color: #8cc63f;
}

.orange {
  background-color: #d99b43;
}

.gray {
  background-color: #9ca3af;
}

/* about section */

.about-section {
  padding: 60px 20px;
  background-color: var(--bg-color);
}

.about-title h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 500;
  color: var(--text-dark);
  margin: 40px;
}

.about-con {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-img {
  flex: 1;
  max-width: 320px;
  display: flex;
  position: relative;
}

.about-content-col {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-right-col {
  flex: 1;
  display: flex;
}

.dr-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  width: 100%;
  background-color: var(--card-bg);
}

.dr-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-section .dr-card .dr-info {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.65);
  padding: 12px 15px;
  border-radius: 0;
  border: 1px solid var(--border-white-transparent);
  z-index: 2;
}

.dr-card .dr-info h3 {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.dr-card .dr-info p {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.info-card {
  border-radius: 24px;
  padding: 24px;
  color: var(--white);
  font-size: 13px;
  line-height: 1.5;
}

.info-card.blue {
  background-color: var(--primary-purple);
}

.info-card.green {
  background-color: var(--green);
  color: var(--text-dark);
  height: 100%;
  display: block;
  padding: 32px;
}

.info-card.green p {
  margin-bottom: 20px;
}

.our-values h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background-color: #edf0f3;
  border: 1px solid #e1e4ed;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: 0 2px 5px var(--shadow-light);
}

/* review Section */

.review-section {
  padding: 80px 5%;
  background-color: var(--bg-color);
}

.rtitle h2 {
  font-size: 38px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 50px;
  text-align: left;
  max-width: 400px;
}

.reviews {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.review {
  width: 31%;
  background-color: var(--bg-color);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 15px var(--shadow-light);
  min-height: 260px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0;
}

.review p {
  font: 13px;
  color: #4b5563;
  margin-bottom: 24px;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--primary-purple);
  padding: 10px 16px;
  border-radius: 50px;
  width: fit-content;
}

.client-info img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.client-text {
  display: flex;
  flex-direction: column;
}

.client-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.client-role {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Footer */

footer {
  width: 100%;
  background: transparent;
  margin: 0;
  padding: 0;
}

.footer-parent {
  background-color: black;
  border-radius: 20px;
  margin-inline: 20px;
  height: 68vh;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 5rem 0 1rem 2rem;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
}

.footer-child h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: normal;
  font-size: 2rem;
}

.footer-child:first-child p {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
  position: relative;
  bottom: -80%;
}

.footer-child h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
  margin-bottom: 1rem;
}

.footer-child:nth-child(2) {
  position: relative;
  left: 5rem;
}

.footer-child:nth-child(2) p {
  line-height: 2rem;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.footer-child:nth-child(3) {
  position: relative;
  right: -12rem;
}

.footer-child:nth-child(3) p {
  line-height: 2rem;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
  width: 40%;
}

.footer-child:nth-child(4) {
  position: relative;
  left: -3rem;
}

.footer-child ul {
  list-style-type: none;
}

.footer-child a {
  color: var(--white);
  font-size: 1rem;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
  position: relative;
  left: 1px;
  line-height: 2rem;
}

.footer-child a:hover,
a:focus {
  color: #7c7f83;
}

/* TABLET RESPONSIVE */

@media (min-width: 769px) and (max-width: 1024px) {

  body {
    width: 100%;
    overflow-x: hidden;
  }

  .header {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-inline: 15px;
    padding: 15px 10px;
  }

  .logo {
    width: 100%;
    justify-content: center;
  }

  .logo img {
    width: 45px;
  }

  .logo h4 {
    left: 8px;
    top: 0;
    font-size: 20px;
  }

  .nav {
    width: 100%;
  }

  .nav nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px 18px;
    position: static;
  }

  .nav li a {
    font-size: 14px;
  }

  .main-con {
    width: 100%;
    padding: 25px 20px 0;
  }

  .hero {
    flex-direction: row;
    align-items: center;
    gap: 25px;
    margin-top: 20px;
  }

  .hero-text {
    width: 45%;
    padding-bottom: 0;
    flex-shrink: 0;
  }

  .hero-text h1 {
    font-size: 30px;
    line-height: 1.2;
  }

  .img-con {
    width: 55%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .dr {
    width: 100%;
    max-width: 260px;
  }

  .hero-services {
    width: 100%;
    padding-bottom: 0;
    gap: 15px;
  }

  .text-card {
    height: 140px;
    padding: 16px;
  }

  .green {
    height: 160px;
  }

  .blue {
    height: 120px;
  }

  .contain {
    font-size: 16px;
  }

  /* Services */

  .services-section {
    padding: 50px 20px;
  }

  .service-con {
    width: 100%;
    max-width: 100%;
  }

  .service-group-one {
    flex-direction: column;
    gap: 15px;
  }

  .service-group-one .service-main,
  .service-group-one .service-side {
    width: 100%;
  }

  .service-group-one .service-main {
    flex-direction: row !important;
  }

  .service-group-two {
    flex-wrap: wrap;
    gap: 15px;
  }

  .service-group-two .service-item {
    width: calc(50% - 7.5px);
  }

  .service-card {
    min-height: 240px;
    padding: 20px;
  }

  .service-card h3 {
    font-size: 18px;
  }

  .service-card p {
    font-size: 12px;
    max-width: 100%;
  }

  .service-card .service-img {
    width: 100%;
    max-height: 130px;
    object-fit: contain;
    margin-top: auto;
  }

  .service-main .service-img {
    width: 40%;
    max-height: 130px;
  }

  .service-item.gray .service-img {
    position: static;
    width: 100%;
    max-height: 130px;
    margin-top: auto;
  }

  img[alt="Oral Surgery"],
  img[alt="Dental Implants"] {
    width: 100%;
    max-width: 100%;
    position: static;
  }

  .service-title h2 {
    font-size: 28px;
  }

  /* About */

  .about-section {
    padding: 50px 20px;
  }

  .about-con {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .about-img {
    width: 100%;
    max-width: 320px;
    display: flex;
    justify-content: center;
    position: relative;
  }

  .about-img img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .about-img .dr-card {
    position: relative;
    width: 100%;
    max-width: 320px;
  }

  .about-section .dr-card .dr-info {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    border-radius: 0;
  }

  .about-content-col,
  .about-right-col {
    width: 100%;
    flex: none;
  }

  .about-content-col h2 {
    font-size: 24px;
  }

  .about-content-col p {
    font-size: 13px;
  }

  /* Reviews */

  .review-section {
    padding: 50px 20px;
  }

  .reviews {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
  }

  .review,
  .review-boxes .box {
    width: calc(50% - 7.5px);
  }

  /* Footer */

  .footer-parent {
    height: auto;
    flex-direction: column;
    gap: 30px;
    margin-inline: 10px;
    padding: 30px 25px;
  }

  .footer-child:first-child p {
    position: static;
  }

  .footer-child:nth-child(2),
  .footer-child:nth-child(3),
  .footer-child:nth-child(4) {
    position: static;
  }

  .footer-child:nth-child(3) p {
    width: 100%;
  }

  .footer-child h3 {
    font-size: 1.3rem;
  }

  .footer-child a {
    font-size: 12px;
  }
}

/* MOBILE RESPONSIVE */

@media (max-width: 768px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    margin: 0;
  }

  .header {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-inline: 10px;
    padding: 15px 10px;
  }

  .logo {
    width: 100%;
    justify-content: center;
  }

  .logo img {
    width: 40px;
  }

  .logo h4 {
    left: 10px;
    top: 0;
    font-size: 22px;
  }

  .nav {
    width: 100%;
  }

  .nav nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 14px;
    position: static;
  }

  .nav li a {
    font-size: 13px;
  }

  /* Hero */

  .main-con {
    width: 100%;
    padding: 20px 18px 0;
  }

  .hero {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
    width: 100%;
  }

  .hero-text {
    width: 100%;
    padding-bottom: 0;
  }

  .hero-text h1 {
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.1;
  }

  .subtext-con {
    max-width: 100%;
  }

  .img-con {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .dr {
    width: 100%;
    max-width: 330px;
  }

  .hero-services {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 0;
  }

  .text-card,
  .green,
  .blue {
    width: 100%;
    height: auto;
    min-height: 150px;
    padding: 20px;
  }

  .green {
    min-height: 180px;
  }

  .blue {
    min-height: 150px;
  }

  /* Services */

  .services-section {
    padding: 50px 20px;
  }

  .service-title h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .service-con {
    width: 100%;
    max-width: 100%;
  }

  .service-group-one,
  .service-group-two {
    flex-direction: column;
    gap: 20px;
  }

  .service-group-one .service-main,
  .service-group-one .service-side,
  .service-group-two .service-item {
    width: 100%;
  }

  .service-group-one .service-main {
    flex-direction: column !important;
  }

  .service-card {
    width: 100%;
    min-height: 230px;
    padding: 20px;
  }

  .service-card h3 {
    font-size: 20px;
  }

  .service-card p {
    font-size: 12px;
    max-width: 100%;
  }

  .service-card .service-img,
  .service-main .service-img,
  .service-item.gray .service-img {
    width: 100%;
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    position: static;
    margin-top: auto;
  }

  img[alt="Oral Surgery"],
  img[alt="Dental Implants"],
  img[alt="Cosmetic Dentistry"] {
    width: 100%;
    max-width: 100%;
    position: static;
    top: auto;
    right: auto;
    left: auto;
  }

  .service-card:last-child img {
    padding-top: 0;
  }

  /* About */

  .about-section {
    padding: 40px 20px;
  }

  .about-title h2 {
    font-size: 30px;
    margin: 20px 0 30px;
  }

  .about-con {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .about-img {
    width: 100%;
    max-width: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }

  .about-img img {
    width: 100%;
    height: auto;
    margin: 0;
  }

  .about-img .dr-card {
    position: relative;
    width: 100%;
    max-width: 330px;
    height: auto;
  }

  .about-section .dr-card .dr-info {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    border-radius: 0;
  }

  .about-content-col,
  .about-right-col {
    width: 100%;
    flex: none;
  }

  .info-card {
    width: 100%;
    padding: 22px;
  }

  /* Reviews */

  .review-section {
    padding: 50px 20px;
  }

  .rtitle h2 {
    font-size: 30px;
    margin-bottom: 30px;
  }

  .reviews {
    flex-direction: column;
    gap: 20px;
  }

  .review,
  .review-boxes .box {
    width: 100%;
    min-height: 230px;
    margin: 0;
  }

  /* Footer */

  .footer-parent {
    width: calc(100% - 20px);
    height: auto;
    min-height: 500px;
    flex-direction: column;
    gap: 30px;
    position: static;
    padding: 30px 20px;
    margin: 0 10px 20px;
  }

  .footer-child:first-child p {
    position: static;
  }

  .footer-child:nth-child(2),
  .footer-child:nth-child(3),
  .footer-child:nth-child(4) {
    position: static;
    left: auto;
    right: auto;
  }

  .footer-child:nth-child(3) p {
    width: 100%;
  }

  .footer-child h3 {
    font-size: 1.3rem;
  }

  .footer-child h2 {
    font-size: 1.1rem;
  }

  .footer-child a {
    font-size: 12px;
    line-height: 1.8rem;
  }
}

/* =========================================
   Responsive: 973px -> 1124px
   ========================================= */

@media (min-width: 973px) and (max-width: 1124px) {

    body {
        overflow-x: hidden;
    }

    /* ================= HEADER ================= */

    .header {
        margin-inline: 15px;
        padding: 15px 10px;
    }

    .nav nav {
        gap: 22px;
    }

    .nav li a {
        font-size: 16px;
        left: 0;
    }

    .logo img {
        width: 45px;
    }

    .logo h4 {
        left: 15px;
        font-size: 26px;
    }
}
