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

main,
section {
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.logo-container {
  display: flex;
  justify-content: center;
  padding: 15px 0;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: url("images/hero-bg.avif"); /* path to your image */
  background-size: cover; /* makes the image cover the whole div */
  background-position: center; /* centers the image */
  background-repeat: no-repeat; /* prevents tiling */
  padding: 100px 26px; /* space around your text */
  text-align: center; /* centers text horizontally */
  color: #263b8c; /* text color for contrast */
  position: relative;
  max-height: 55vh;
}

.social-icons {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px; /* spacing between icons */
}

.social-icons a img {
  width: 30px; /* adjust icon size */
  height: 30px;
  display: block;
  width: 24px;
  height: 24px;
}

.main-title {
  display: flex;
  flex-direction: column;
  justify-content: center; /* stack vertically */
  align-items: start; /* center horizontally */
  font-size: 3.2rem; /* adjust as needed */
  font-weight: bold;
  font-family: "FiraGO Heavy";
  border-bottom: 4px solid #263b8c;
}

.main-title .georgian {
  color: #263b8c;
}

.main-title .english {
  color: #ef041e;
}
.hero-content {
  display: flex;
  flex-direction: column;
}

.hero p {
  text-align: start; /* aligns according to writing direction */
  font-size: 1.2rem; /* adjust size */
  line-height: 1.5; /* spacing between lines */
  max-width: 600px; /* optional: limit width */
  margin: 20px 0;
  font-weight: bold;
  font-size: 21px;
  font-family: "Firago Regular";
}

#services h2 {
  text-align: center;
  padding: 25px 0;
  font-size: 40px;
  font-family: "FiraGO Heavy";
  color: #263b8c;
}

#services ul {
  list-style: none;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
}

#services ul li {
  flex: 1 1 150px;
  height: 200px;
  border-radius: 12px;
  font-weight: bold;
  display: flex;
  align-items: center; /* vertical centering */
  justify-content: center; /* horizontal centering */
  text-align: center;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-family: "FiraGO Bold";
  font-size: 18px;
  position: relative; /* for ::before */
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

#services ul li {
  position: relative;
  overflow: hidden;
  border-radius: 12px; /* optional */
  color: #fff; /* text visible */
}

/* Base styles for all service items */
#services ul li[class^="service-"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.7) blur(1px);
  background-blend-mode: overlay;
  background-color: #4c5475;
  z-index: -1;
}

/* Specific backgrounds */
#services ul li.service-lab::before {
  background-image: url("images/service-lab.avif");
}
#services ul li.service-echo::before {
  background-image: url("images/service-echo.avif");
}
#services ul li.service-xray::before {
  background-image: url("images/service-xray.avif");
}
#services ul li.service-doplerography::before {
  background-image: url("images/service-doplerography.avif");
}
#services ul li.service-holter::before {
  background-image: url("images/service-holter.avif");
}
#services ul li.service-cardio::before {
  background-image: url("images/service-cardio.avif");
}
#services ul li.service-home::before {
  background-image: url("images/service-home.avif");
}
#services ul li.service-vein::before {
  background-image: url("images/service-vein.avif");
}
#services ul li.service-bladder::before {
  background-image: url("images/service-bladder.avif");
}
#services ul li.service-doctor::before {
  background-image: url("images/service-doctor.avif");
}
#services ul li.service-transport-local::before {
  background-image: url("images/service-transport-local.avif");
  background-size: 170%;
}
#services ul li.service-transport-international::before {
  background-image: url("images/service-transport-international.avif");
  background-size: 180%;
}

.call-button {
  position: fixed;
  text-decoration: none;
  bottom: 20px;
  right: 20px;
  background-color: transparent;
  color: #fff;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  display: flex; /* icon + text side by side */
  align-items: center;
  justify-content: center;
  gap: 10px; /* space between icon and text */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 9999;
}

.call-icon {
  width: 60px; /* adjust size */
  height: 60px; /* keep square */
}

footer {
  background-color: #2c2f48; /* dark blue/purple tone */
  color: #ffffff; /* white text */
  text-align: center; /* center text */
  padding: 20px 15px; /* space around text */
  font-size: 14px; /* readable but not too big */
  font-family: "Arial", sans-serif; /* simple, clean font */
  border-top: 1px solid #444; /* subtle top border */
  position: relative; /* allows inner positioning if needed */
  z-index: 10;
}

#services ul li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

#contact {
  padding: 40px 0;
  background-color: #e8e9e5; /* light background for contrast */
}

/* Contact section header */
#contact h2 {
  text-align: center;
  padding: 20px 0;
  font-size: 40px;
  font-family: "FiraGO Heavy";
  color: #263b8c;
}

/* Contact cards container */
#contact ul {
  list-style: none;
  padding: 0 10px;
  display: flex;
  flex-direction: column; /* stack cards vertically */
  gap: 15px;
}

/* Contact cards */
#contact ul li {
  width: 100%; /* full width on mobile */
  height: 180px; /* fixed height */
  border-radius: 25px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #263b8c;
  font-family: "FiraGO Bold";
  font-size: 28px;
  background-color: #f4f5f2; /* light background */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.89); /* subtle shadow */
}

.card-icon {
  max-width: 45px;
  padding-bottom: 10px;
}

@media (min-width: 1200px) {
  .main-title {
    font-size: 4rem;
    align-items: center;
  }
  .hero p {
    font-size: 2rem;
    text-align: center;
  }

  #services ul li {
    flex: 1 1 22%; /* approximately 4 items per row */
    height: 30vh;
    width: 30vh;
    font-size: 26px;
    border-radius: 35px;
  }

  .hero-content {
    align-items: center;
  }

  #contact ul {
    font-size: 32px;
    height: 220px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 70px;
  }
  #contact ul li {
    max-width: 35vh;
    height: 200px;
  }

  .call-button {
    display: none;
  }

  .social-icons a img {
    width: 32px;
    height: 32px;
  }
}

@font-face {
  font-family: "FiraGO Heavy";
  src: url("fonts/FiraGO-Heavy.otf") format("truetype");
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: "FiraGO Regular";
  src: url("fonts/FiraGO-Regular.otf") format("truetype");
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: "FiraGO Bold";
  src: url("fonts/FiraGO-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
}
