@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&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 {
  --primary-color: #0c2b4e;
  --secondary-color: #f9f9f9;
  --accent-color: #f9f9f9;
  --white-color: #fff;
  --text-color: #212121;
  --green-color: rgb(0, 128, 0);
  --warning-color: #faa533;
  --red-color: red;

  /* Font Sizes */
  --fs-base: clamp(16px, 1.5vw, 20px); /* Body text */
  --fs-h6: clamp(20px, 1.88vw, 25px);
  --fs-h5: clamp(25px, 2.35vw, 31.25px);
  --fs-h4: clamp(31.25px, 2.93vw, 39.06px);
  --fs-h3: clamp(39.06px, 3.66vw, 48.83px);
  --fs-h2: clamp(48.83px, 4.58vw, 61.04px);
  --fs-h1: clamp(61.04px, 5.72vw, 76.29px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  border: none;
  outline: none;
  transition: all 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
}

body {
  font-family: "Montserrat", sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  background-color: #fff1cbbd;
}

.container {
  max-width: 90%;
  margin: 5% auto;
}

.container-fluid {
  max-width: 100%;
  padding: 5%;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.toast-box,
.alert-box {
  position: fixed;
  width: 300px;
  pointer-events: none;
  top: 10vh;
  height: 300px;
  right: 5%;
  z-index: 99999;
}

.app-toast,
.alert {
  background-color: var(--white-color);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  padding: 10px;
  margin: 10px 0;
  border-radius: 10px;
  opacity: 1;
}

.toast-success,
.alert-success {
  color: var(--green-color);
}

.toast-warning,
.alert-warning {
  color: var(--warning-color);
}

.toast-error,
.alert-error {
  color: var(--red-color);
}

@media screen and (min-width: 888px) {
  .toast-box {
    width: 400px;
  }
}

.nav {
  position: sticky;
  top: 10px;
  left: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  background-color: var(--white-color);
  z-index: 9999;
}

.logo {
  font-size: var(--fs-h5);
  font-weight: 800;
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
  cursor: pointer;
}

.logo img,
.footer-logo img {
  width: 80px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.nav-link {
  color: var(--primary-color);
  font-weight: 700;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus {
  border-bottom: 2px solid var(--secondary-color);
}

.btn {
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
  border: 2px solid transparent;
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.btn-secondary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-cta {
  background-color: var(--white-color);
  color: var(--primary-color);
}

.btn-cta:hover,
.btn-cta:focus,
.btn-cta:active {
  background-color: transparent;
  border: 2px solid var(--white-color);
  color: var(--white-color);
}

.btn i {
  margin-right: 5px;
}

.btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.menu-toggle {
  display: none;
}

.nav-links.show-nav {
  display: flex;
}

@media screen and (max-width: 1220px) {
  .menu-toggle {
    display: block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 5px;
    font-size: var(--fs-h5);
    text-align: center;
    border-radius: 5px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    padding: 5%;
    position: absolute;
    top: 100%;
    margin-top: 10px;
    right: 0;
    width: 600px;
    background-color: var(--white-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  }
}

.hero {
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  color: var(--white-color);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.hero-text,
.socials {
  z-index: 9995;
  position: relative;
  display: flex;
}

.hero-text {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.socials {
  align-items: center;
  gap: 1rem;
}

.icon {
  padding: 5px;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-icon {
  background-color: var(--white-color);
  color: var(--primary-color);
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-items: space-between;
  gap: 1rem;
}

.stat-block {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 10px;
  border-radius: 10px;
}

.stat-block:hover,
.stat-block:focus,
.stat-block:active {
  transform: translateY(10px);
}

.about-us {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--primary-color);
}

.about {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.about-img {
  border-radius: 20px;
  overflow: hidden;
}

@media screen and (min-width: 768px) {
  .hero-text {
    width: 50ch;
  }

  .stats-section {
    grid-template-columns: repeat(4, 1fr);
  }

  .title {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 800px;
    margin: auto;
  }

  .title p {
    width: 50ch;
  }

  .about p {
    max-width: 40ch;
  }

  .about {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }
}

.services {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 2px solid var(--primary-color);
  padding: 1rem;
  border-radius: 20px;
  max-width: 400px;
}

.service-icon {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.service-item:hover,
.service-item:focus,
.service-item:active {
  transform: translateY(10px);
}

.service-item-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

@media screen and (min-width: 768px) {
  .service-items {
    flex-direction: row;
    justify-content: center;
  }

  .service-item p {
    text-align: center;
  }
}

.book-appointment {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  flex-wrap: wrap;
  background-color: var(--primary-color);
  border-radius: 10px;
  margin-top: 1rem;
}

.appointment-img img {
  max-width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.appointment-form {
  flex: 1;
  min-width: 300px;
  background-color: var(--accent-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.appointment-form h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.appointment-form .form-note {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1rem;
}

.appointment-form label {
  display: block;
  margin-top: 1rem;
  font-weight: 500;
  color: #222;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.3rem;
  border: 1px solid var(--primary-color);
  border-radius: 6px;
  font-size: 1rem;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  border: 1px solid var(--secondary-color);
}

.appointment-form textarea {
  resize: vertical;
}

.appointment-form button {
  margin-top: 1.5rem;
  border-radius: 6px;
}

@media screen and (min-width: 888px) {
  .book-appointment {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2rem;
  }
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: var(--primary-color);
}

.footer-logo,
.footer-credit {
  color: var(--secondary-color);
}

.footer-logo {
  background-color: var(--secondary-color);
  padding: 10px;
  border-radius: 10px;
}

.footer-item {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.mailto {
  color: var(--secondary-color);
  font-weight: 800;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  padding: 4rem 1rem;
  z-index: 9996;
}

.modal.show-modal {
  display: flex;
}

.modal-content {
  position: relative;
  background-color: var(--accent-color);
  z-index: 9999;
  max-width: 600px;
  width: 100%;
  padding: 2rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  text-align: center;
  overflow-y: auto;
  max-height: 90vh;
}

.modal-content h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.modal-content p {
  margin-bottom: 1rem;
}

.form-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem auto;
  text-align: center;
  gap: 1rem;
}

.payment-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
  margin-top: 1rem;
}
