:root {
  --primary-blue: #007BFF;
  --secondary-accent: #ffbd27;
  --light-bg: #f5f5f5;
  --dark-text: #222;
  --paragraph-text: #465b52;
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 40px;
  --border-radius-sm: 5px;
  --border-radius-md: 10px;
  --box-shadow-light: 0 4px 8px rgba(0, 0, 0, 0.1);
  --box-shadow-medium: 0 8px 16px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Spartan", sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Global Styles */
h1 {
  font-size: 50px;
  line-height: 64px;
  color: var(--dark-text);
}

h2 {
  font-size: 46px;
  line-height: 54px;
  color: var(--dark-text);
}

h4 {
  font-size: 20px;
  color: var(--dark-text);
}

h6 {
  font-weight: 700;
  font-size: 12px;
}

a {
  text-decoration: none; 
  color: inherit; /* Inherit color for consistent linking */
}

p {
  font-size: 16px;
  color: var(--paragraph-text);
  margin: 15px 0 20px 0;
}

.section-p1 {
  padding: var(--spacing-lg) 80px;
}

.section-m1 {
  margin: var(--spacing-lg) 0;
}

button.normal {
  font-size: 14px;
  font-weight: 600;
  padding: 15px 30px;
  color: #fff; /* Changed to white for better contrast */
  background-color: var(--primary-blue); /* Used CSS variable */
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  border: none;
  outline: none;
  transition: 0.2s;
}

button.white {
  font-size: 13px;
  font-weight: 600;
  padding: 11px 18px;
  color: #fff;
  background-color: transparent;
  cursor: pointer;
  border: 1px solid #fff;
  outline: none;
  transition: 0.2s;
}

body {
  width: 100%;
}

/* ######################################################################Header star###########################################*/
#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 80px;
  background: var(--light-bg);
  box-shadow: var(--box-shadow-light); /* Added subtle shadow */
  z-index: 999;
  position: sticky;
  top: 0;
  left: 0;
}

#header img {
  width: 150px; /* Slightly reduced for better balance */
  height: auto;
}

#servicos, #produtos, #contato {
  scroll-margin-top: 100px; /* Ensure content is not hidden by fixed header */
}

#navbar {
  display: flex;
  align-items: center;
  justify-content: center;
}

#navbar li {
  list-style: none;
  padding: 0 var(--spacing-md);
  position: relative;
}

#navbar li a {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-text);
  transition: 0.3s ease;
}

#navbar li a:hover,
#navbar li a.active {
  color: var(--primary-blue); 
}

#navbar li a.active::after,
#navbar li a:hover::after {
  content: "";
  width: 30%;
  height: 2px;
  background: var(--primary-blue);
  position: absolute;
  bottom: -4px;
  left: var(--spacing-md);
}

#mobile {
  display: none;
  align-items: center;
}

#close {
  display: none;
}

/*#########################################################Home#################################################################*/
#hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh; /* Changed to min-height for flexibility */
  padding: var(--spacing-md);
  background-color: var(--light-bg);
  overflow: hidden; /* Ensure no overflow from content */
}

#Novidade-section {
  background-color: #5b8dc2; /* Kept original blue */
  color: white;
  padding: 15px 20px;
  text-align: center;
}

.Novidade-link {
  text-decoration: none;
  color: white;
  display: block;
}

.Novidade-content {
  display: flex; 
  align-items: center;
  justify-content: center; /* Center content within the banner */
  gap: var(--spacing-md);
  max-width: 1200px; /* Increased max-width for wider screens */
  margin: 0 auto;
  flex-wrap: wrap;
}

.Novidade-content img {
  max-width: 250px; /* Adjusted image size */
  height: auto;
  border-radius: var(--border-radius-md); /* Slightly rounded corners */
  box-shadow: var(--box-shadow-light); /* Added shadow to image */
}

.texto-novidade {
  max-width: 500px; /* Increased max-width */
  display: flex;
  flex-direction: column; /* Stack text vertically */
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.texto-novidade h2 {
  font-size: 28px; /* Slightly larger */
  font-weight: bold;
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
  color: white; /* Ensure text is white */
}

.texto-novidade p {
  background-color: var(--dark-text);
  color: white;
  padding: var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  display: inline-block;
  font-size: 16px; /* Slightly larger */
  margin-top: var(--spacing-sm);
}

.hero-content {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  align-items: center;
  justify-content: center; /* Center content horizontally */
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.text-box {
  max-width: 500px; /* Adjusted max-width */
  text-align: center; /* Center text within its box */
}

.h5_normal {
  background-color: var(--primary-blue);
  color: white;
  padding: var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  display: inline-block;
  font-size: 14px; /* Slightly larger */
  margin-top: var(--spacing-sm);
}

.contact-form {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-medium); /* Stronger shadow for forms */
  width: 380px; /* Slightly wider form */
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

#hero .contact-form h2 {
  font-size: 24px; /* Larger form title */
  color: var(--dark-text); /* Ensure title color is dark */
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid #ddd; /* Lighter border */
  border-radius: var(--border-radius-sm);
  font-size: 16px;
}

#popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
  z-index: 1000;
}

.popup-content {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: var(--box-shadow-medium);
  max-width: 400px;
  width: 80%;
  transform: scale(0.8);
  animation: scaleUp 0.3s ease-in-out forwards;
}

.popup-content h3 {
  margin: 0 0 15px;
}

.popup-content button {
  background: var(--primary-blue);
  color: white; /* Changed button text color */
  border: none;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.popup-content button:hover {
  background: #0056b3; /* Darker shade of blue on hover */
}

.loading {
  display: none;
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  border-top: 3px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.8); }
  to { transform: scale(1); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#hero .normal {
  background-color: var(--primary-blue);
  color: white;
  border: none;
  padding: var(--spacing-sm);
  cursor: pointer;
  border-radius: var(--border-radius-sm);
}

#hero h4 {
  padding-bottom: 15px;
}

#hero h1 {
  color: var(--primary-blue);
}

/* ################################################# Produtos #################################################################*/
#service-section, #product-list {
  text-align: center;
  padding-top: var(--spacing-lg);
}

#service-section h2, #product-list h2 {
  margin-bottom: var(--spacing-sm);
}

#service-section p, #product-list p {
  margin-bottom: var(--spacing-lg);
}

.pro-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
}

.pro { 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  padding: var(--spacing-lg) var(--spacing-md); /* Adjusted padding */
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-light); /* Subtle shadow */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease; /* Added box-shadow transition */
  width: 23%; /* Adjusted width for better responsiveness */
  min-width: 280px; /* Increased min-width for larger cards */
  position: relative;
  text-align: left; /* Align text within card to left */
}

.pro:hover {
  transform: translateY(-5px); /* Lift effect on hover */
  box-shadow: var(--box-shadow-medium); /* Enhanced shadow on hover */
}

.pro .des i {
  font-size: 3.5rem; /* Slightly smaller icon size */
  color: var(--primary-blue); /* Used primary blue for icons */
  display: block;
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.pro img {
  width: 80%; /* Adjusted image width to be more prominent */
  max-height: 200px; /* Max height for consistent image size */
  object-fit: contain; /* Ensure image fits without distortion */
  border-radius: var(--border-radius-sm);
  display: block;
  margin: 0 auto var(--spacing-md) auto; /* Center image and add bottom margin */
}

.pro .des {
  padding: 0; /* Removed padding here, managed by card padding */
  flex-grow: 1; /* Allow description to take available space */
}

.pro .des h5 {
  padding-top: var(--spacing-sm);
  color: var(--dark-text);
  font-size: 16px; /* Slightly larger title */
  margin-bottom: var(--spacing-sm);
}

.pro .des h2 {
  padding-top: var(--spacing-sm);
  font-size: 18px; /* Slightly larger service title */
  font-weight: 700;
  color: var(--primary-blue);
}

.pro .des p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 var(--spacing-sm) 0; /* Adjusted margins */
}

.pro .product-price {
    font-size: 18px;
    color: var(--dark-text);
    font-weight: bold;
    margin-top: auto; /* Push price to bottom */
}

.contratarBtn, .cart {
  padding: 12px 20px;
  font-size: 16px;
  color: white; /* Changed text color to white */
  background-color: var(--primary-blue);
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: 100%; /* Make button full width of card */
  text-align: center;
  margin-top: var(--spacing-md); /* Add margin top */
}

.contratarBtn a {
  color: white; /* Ensure link text is white */
  display: block; /* Make the link fill the button */
}

.contratarBtn:hover {
  background-color: #0056b3; /* Darker blue on hover */
  transform: scale(1.02); /* Subtle scale up */
}

.contratarBtn:active {
  transform: scale(0.98);
}

.cart {
  width: 40px;
  height: 40px;
  line-height: 40px;
  background-color: #e8f6ea; /* Light green background for cart icon */
  color: var(--primary-blue); /* Blue icon color */
  border: 1px solid #cce7d0;
  position: absolute;
  bottom: 15px; /* Adjusted position */
  right: 15px; /* Adjusted position */
  font-size: 18px; /* Larger icon */
  display: flex; /* Use flex to center content */
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* Make it round */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Add shadow for depth */
}

/* Updated product styling for images and prices */
#product-list .pro img {
  width: 100%; /* Make product images take full width of their container */
  height: 200px; /* Fixed height for product images */
  object-fit: cover; /* Cover the area, cropping if necessary */
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--spacing-sm);
}

#product-list .pro .des {
  text-align: center; /* Center product description text */
  flex-grow: 1; /* Allow description to expand */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#product-list .pro .product-title {
  font-size: 16px;
  color: var(--dark-text);
  margin-bottom: var(--spacing-sm);
  height: 40px; /* Fixed height for titles to prevent layout shifts */
  overflow: hidden; /* Hide overflowing text */
  text-overflow: ellipsis; /* Add ellipsis for overflow */
}

#product-list .pro .product-price {
  font-size: 18px;
  color: var(--primary-blue);
  font-weight: bold;
  margin-top: auto; /* Push price to the bottom */
  margin-bottom: var(--spacing-sm);
}

/* Removed .comprarBtn styling as it's not explicitly used in the updated HTML for product cards,
   and the .contratarBtn is being used with a link inside. */

/* Banner */
/* Keeping existing banner styles for now as no specific changes were requested,
   but suggesting removal of newsletter if it's not a direct part of the maintenance theme. */

#newsletter {
  display: flex;
  justify-content: space-between; 
  flex-wrap: wrap;
  align-items: center;
  background-image: url("./images/banner/b14.png");
  background-repeat: no-repeat;
  background-position: 20% 30%;
  background-color:  #041e42;
  padding: var(--spacing-lg) 80px; /* Consistent padding */
}

#newsletter h4 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

#newsletter p {
  font-size: 14px;
  font-weight: 600;
  color: #818ea0;
}

#newsletter p span {
  color: var(--secondary-accent);
}

#newsletter .form {
  display: flex;
  width: 40%;
}

#newsletter input {
  height: 3.125rem;
  padding: 0 1.25em;
  font-size: 14px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--border-radius-sm);
  outline: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

#newsletter button {
  background-color: var(--primary-blue);
  color: #fff;
  white-space: nowrap;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: var(--spacing-lg) 80px; /* Consistent padding */
  background-color: var(--light-bg);
  border-top: 1px solid #eee; /* Subtle top border */
}

footer .col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: var(--spacing-md); 
}

footer .logo {
  width: 150px; /* Consistent logo size */
  height: auto;
  margin-bottom: var(--spacing-md);
}

footer h4 {
  font-size: 16px;
  padding-bottom: var(--spacing-md);
}

footer p {
  font-size: 14px;
  margin: 0 0 var(--spacing-sm) 0;
}

footer a {
  font-size: 14px;
  color: var(--dark-text);
  margin-bottom: var(--spacing-sm);
  transition: color 0.3s ease;
}

footer .follow {
  margin-top: var(--spacing-md);
}

footer .follow i {
    color: var(--paragraph-text);
    padding: 4px;
    cursor: pointer;
    transition: color 0.3s ease;
}

footer .follow i:hover,
footer a:hover {
  color: var(--primary-blue);
}

/* Contact Page */
#contact-details {
  display: flex;
  align-items: flex-start; /* Align items to the start for better layout */
  justify-content: space-between;
  padding: var(--spacing-lg) 80px; /* Consistent padding */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

#contact-details .details {
  width: 45%; /* Adjusted width for better spacing */
  margin-right: var(--spacing-md); /* Add some right margin */
}

#contact-details .details span {
  font-size: 28px; /* Larger heading */
  font-weight: bold;
  color: var(--dark-text);
  display: block; /* Make span a block for spacing */
  margin-bottom: var(--spacing-md);
} 

#contact-details .details h2 {
  font-size: 32px; /* Larger heading */
  line-height: 1.2;
  padding: var(--spacing-md) 0;
}

#contact-details .details h3 {
  font-size: 18px; /* Larger subheading */
  padding-bottom: var(--spacing-sm);
}

#contact-details .details li {
  list-style: none;
  display: flex;
  align-items: flex-start; /* Align icon and text to top */
  padding: var(--spacing-sm) 0;
}

#contact-details .details li i {
  font-size: 16px; /* Larger icon */
  padding-right: var(--spacing-md);
  color: var(--primary-blue); /* Blue icons */
}

#contact-details .details li p {
  margin: 0;
  font-size: 16px;
  color: var(--paragraph-text);
}

#contact-details .map {
  width: 50%; /* Adjusted map width */
  height: 450px; /* Increased map height for better visibility */
  border-radius: var(--border-radius-md); /* Rounded corners for map */
  overflow: hidden; /* Hide overflow from border-radius */
  box-shadow: var(--box-shadow-light); /* Added shadow to map */
}

#contact-details .map iframe {
  width: 100%;
  height: 100%;
  border: none; /* Removed iframe border */
}

/* Removed #form-details and its children styles as it seems to be a duplicate/unused contact form.
   The primary contact form is within the #hero section.
   If this was intended for a separate contact page, it needs to be integrated properly. */

/* Whatsapp */
.whatsapp-container {
  position: fixed;
  bottom: var(--spacing-md);
  right: var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  z-index: 9999;
}

.whatsapp-float {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease-in-out, background-color 0.3s;
  box-shadow: var(--box-shadow-medium); /* Stronger shadow for floating button */
  z-index: 10000;
  background-color: #25D366; /* WhatsApp green */
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

.whatsapp-float.active {
  transform: rotate(180deg);
}

/* No whatsapp-options in HTML, so removing its CSS. */

/* Media Queries */
@media(max-width:1024px) { /* Adjusted breakpoint for larger tablets/laptops */
  .section-p1 {
      padding: var(--spacing-lg) var(--spacing-lg);
  }

  #header {
    padding: var(--spacing-md) var(--spacing-lg);
  }

  #hero {
    height: auto; /* Allow height to adjust */
    padding: var(--spacing-lg);
  }

  .hero-content {
    flex-direction: column; /* Stack content vertically */
    text-align: center;
    gap: var(--spacing-lg);
  }

  .text-box {
    text-align: center;
  }

  .Novidade-content {
    flex-direction: column;
    text-align: center;
  }

  .texto-novidade {
    align-items: center; /* Center text in Novidade section */
    text-align: center;
  }

  #product1 .pro {
    width: 48%; /* Two columns on tablets */
  }

  #sm-banner .banner-box {
    min-width: 100%; /* Full width for banners */
    margin-bottom: var(--spacing-md);
  }

  #newsletter .form {
    width: 60%;
  }

  #contact-details {
    flex-direction: column;
    align-items: center;
  }

  #contact-details .details,
  #contact-details .map {
    width: 100%;
    margin-right: 0;
    margin-bottom: var(--spacing-md);
  }
}

@media (max-width:768px) { /* Standard tablet breakpoint */
  #header {
    padding: var(--spacing-md) var(--spacing-md);
  }

  #navbar {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    right: -300px;
    height: 100vh;
    width: 300px;
    background-color: #E3E6F6;
    box-shadow: var(--box-shadow-medium);
    padding: 80px 0 0 var(--spacing-md);
    transition: 0.3s;
  }

  #navbar.active {
    right: 0px;
  }

  #navbar li {
    margin-bottom: 25px;
  }

  #mobile {
    display: flex;
    align-items: center;
  }

  #mobile i {
    color: var(--dark-text);
    font-size: 24px;
    padding-left: var(--spacing-md);
  }

  #close {
    display: inline;
    position: absolute;
    top: 30px;
    left: 30px;
    color: var(--dark-text);
    font-size: 24px;
  }

  #lg-bag {
    display: none;
  }

  #hero .hero-content {
    flex-direction: column;
    justify-content: center;
    padding-top: var(--spacing-md);
  }

  #product1 .pro {
    margin: var(--spacing-sm);
  }

  #newsletter .form {
    width: 80%; /* Wider on smaller screens */
  }

  .whatsapp-container {
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
  }

  .whatsapp-float img {
    width: 30px;
    height: 30px;
  }
}

@media (max-width:480px){ /* Mobile breakpoint */
  .section-p1 {
    padding: var(--spacing-md) var(--spacing-md);
  }

  h1 {
    font-size: 32px;
    line-height: 40px;
  }

  h2 {
    font-size: 28px;
    line-height: 36px;
  }

  #header {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  #hero .hero-content {
    padding-top: var(--spacing-md);
  }

  .contact-form {
    width: 100%; /* Full width on mobile */
  }

  #Novidade-section .Novidade-content {
    padding: var(--spacing-md); /* Adjust padding for smaller screens */
  }

  .texto-novidade h2 {
    font-size: 22px; /* Smaller font size for h2 in Novidade */
  }

  .texto-novidade p {
    font-size: 14px; /* Smaller font size for p in Novidade */
  }

  #product1 .pro {
    width: 100%; /* Single column on mobile */
  }

  #newsletter {
    padding: var(--spacing-md);
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #newsletter .form {
    width: 100%;
    margin-top: var(--spacing-md);
  }

  footer {
    text-align: center;
    padding: var(--spacing-md);
    flex-direction: column;
    align-items: center;
  }

  footer .col {
    align-items: center; /* Center footer columns on mobile */
  }

  #contact-details {
    padding: var(--spacing-md);
  }
}