:root {
  --button: #2c3e50;
  --hovar: #1abc9c;
}
body {
  font-family: DM Sans,sans-serif;
  margin: 0;
  background: #f8f9fa;
  color: #333;
}

/* =========================== 📱 aleat bar   =========================== */
.alert {
    padding: 16px 18px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideFadeIn 0.6s ease-out forwards;
    position: relative;
    overflow: hidden;
    transition: opacity 0.5s ease;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 6px solid #28a745;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 6px solid #dc3545;
}

/* Slide + Fade Animation */
@keyframes slideFadeIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideFadeOut {
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

.loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #28a745;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.call-div {
  padding: 10px;
  background-color: hsl(207, 100%, 98%);
  align-content: center;
  margin-top: 15px;
  text-align: center;
}
.call-div a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  margin-top: -10px;
  color: var(--button);
  display: inline-block;
  transition: transform 0.3s ease-in-out;
}

/* Hover Zoom Animation */
.call-div a:hover {
  transform: scale(1.15); /* Zoom in */
}

/* Optional: Click effect (Zoom out slightly) */
.call-div a:active {
  transform: scale(0.95); /* Zoom out slightly on click */
}


/* ==================================== Header Styling =========================================*/
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  background-color: #ffffff;
  color: hsl(0, 0%, 24%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Logo Section */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 55px;
  margin-right: 10px;
}

.logo span {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f9d342;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #444444;
  font-weight: bold;
  transition: color 0.3s ease;
  position: relative; /* Needed for the pseudo-element positioning */
}

.nav-menu a::after {
  content: ''; /* The line is created with this */
  position: absolute;
  left: 0;
  bottom: -3px; /* Distance from the text */
  width: 0%; /* Initially, the line is hidden */
  height: 2px; /* Thickness of the line */
  background-color: #4254f9; /* Line color */
  transition: width 0.3s ease; /* Smooth animation */
}

.nav-menu a:hover {
  color: #4254f9;
}

.nav-menu a:hover::after {
  width: 100%; /* Expands the line on hover */
}

/* Hamburger Icon */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}

.hamburger div {
  height: 3px;
  background-color: #444444;
  border-radius: 2px;
}

/* Responsive Styling */
@media (max-width: 768px) {
  /* Hide navigation menu by default on small screens */
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: hsl(0, 0%, 100%);
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.3rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  }

  /* Show menu when active */
  .nav-menu.menu-active {
    display: flex;
  }

  /* Show hamburger icon */
  .hamburger {
    display: flex;
  }
}

/* ==================================== service Styling =========================================*/
.service-container {
  margin: auto;
  padding: 40px 20px;
}

.service-layout {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.sidebar,
.service-details,
.booking-form {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 20px;
}

.sidebar {
  flex: 1;
  min-width: 240px;
}

.sidebar h3 {
  margin-bottom: 10px;
}

.service-details {
  flex: 2;
  min-width: 300px;
}

.service-image {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.116);
  padding: 15px 0px ;
  border-radius: 4px;
}

.price {
  color: green;
  font-size: 1.25rem;
  font-weight: bold;
  margin: 10px 0;
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  color: #007bff;
  text-decoration: none;
}

.booking-form {
  flex: 1;
  min-width: 240px;
}

.booking-form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booking-form input,
.booking-form textarea {
  padding: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.booking-form button {
  background-color: var(--button);
  color: white;
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.booking-form button:hover {
  background-color: var(--hovar);
}


.related-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-service-list li {
  border-bottom: 1px dashed #ccc;
  padding: 10px 0;
}

.related-service-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #414345;
  padding: 5px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.related-service-list a:hover {
  background: hwb(253 92% 1%);
  padding: 5px;
  border-radius: 6px;
}

.related-image-inline {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
}

.related-name-inline {
  font-weight: 500;
  font-size: 0.95rem;
  flex: 1;
  font-size: 18px;
}


@media (max-width: 768px) {
  .service-layout {
    display: flex;
    flex-direction: column;
  }

  .service-details {
    order: 1;
  }

  .booking-form {
    order: 2;
  }

  .sidebar {
    order: 3;
  }
}


 /* ==================================== Footer =========================================*/
.footer {
  background: linear-gradient(135deg, #232526, #414345); /* Smooth gradient */
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

.footer p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #ccc;
}

.footer a {
  color: #00bcd4;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #ffffff;
}

/* Social Icons (if any) */
.footer .social-icons {
  margin-top: 1rem;
}

.footer .social-icons a {
  margin: 0 8px;
  display: inline-block;
  font-size: 1.3rem;
  color: #bbb;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer .social-icons a:hover {
  transform: scale(1.2);
  color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 1rem;
  }

  .footer p,
  .footer a {
    font-size: 0.95rem;
  }

  .footer .social-icons a {
    font-size: 1.1rem;
  }
}

/* ================================  Fechar service bar =========================================== */
  /* Container for Service Cards */
.services-grid {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping to the next row if space is limited */
  gap: 20px;
  justify-content: center; /* Center items within the container */
  max-width: 1200px;
  margin: 0 auto;
}

/* Service Card */
.service-card {
  display: flex;
  flex-direction: row;
  background-color: #fafdff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: calc(33.33% - 20px); /* Default width for 3 items per row with gap */
  text-align: left;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  flex: 1 1 calc(33.33% - 20px); /* Flexible width for responsiveness */
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Service Image */
.subservice-image {
  margin-right: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.subservice-image img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

/* Service Header */
.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.service-name {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}

/* Price Section */
.price-section {
  margin-bottom: 10px;
}

.price {
  display: flex;
  align-items: center;
}

.original-price {
  font-size: 0.8rem;
  text-decoration: line-through;
  color: #999;
  margin-right: 10px;
}

.discount-price {
  font-size: 1rem;
  color: #ff5722;
  font-weight: bold;
}

/* Button */
.select-button {
  background-color: hsl(0, 0%, 37%);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  margin-right: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: bold;
  margin-top: 5px;
}

.select-button:hover {
  background-color: #0056b3;
}

.select-button:focus {
  outline: none;
}

/* Media Queries */
@media (max-width: 768px) {
  .service-card {
    flex: 1 1 calc(100% - 20px); /* Two cards per row on medium screens */
  }

  .service-image img {
    width: 100px;
    height: 100px;
  }

  .service-name {
    font-size: 0.9rem;
  }

  .price-section {
    font-size: 1rem;
  }

  .select-button {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .service-card {
    flex: 1 1 calc(100% - 20px); /* Single card per row on small screens */
  }

  .service-image {
    margin-right: 15px;
  }

  .service-image img {
    width: 100px;
    height: 100px;
  }

  .service-name {
    font-size: 0.8rem;
  }

  .select-button {
    padding: 10px;
  }
}
  .loader-overlay-web {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FCFCFF;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
  }
  
  .loader-image-web {
    width: 250px;
  }
  @media (max-width: 768px) {
    .loader-image-web {
    width: 200px;
  }
}
