:root {
  --font: 'Lexend', sans-serif;
  --bg-color: #fffdf8;
  --primary-color: #00498a;
  --secondary-color: #01abe9;
  --accent-color: #fd9325;
  --accent-color-2: #828687;
  --text-color: #024687;
}

h3 {
  font-family: var(--font);
  font-size: 1.5rem;
  color: var(--text-color);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font);
  overflow-wrap: break-word;
}

body {
  background-color: var(--bg-color);
}

header {
  width: 100%;
  height: 90px;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--header-margin, 20px);
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 10px;
  color: var(--primary-color);
}

footer .a {
  text-decoration: none;
  color: var(--primary-color);
}

footer a:visited {
  color: var(--primary-color);
}

hr {
  width: 80%;
  margin: 0 auto;
  border: 1px solid var(--accent-color);
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  padding: 0 30px;
  height: 100%;
}

.container-underlay {
  background-color: var(--accent-color);
  padding: 8px 16px;
  text-align: center;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-link {
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--font);
}

.logo-link h3 {
  color: var(--accent-color);
  font-size: 2rem;
}

.logo p {
  color: var(--secondary-color);
  font-size: 1rem;
  font-weight: 300;
}

.desktop-nav {
  display: flex;
  margin-left: 40px;
  align-items: center;
}

.desktop-nav a {
  color: white;
  text-decoration: none;
  font-size: 30px;
  font-weight: 600;
  margin: 0 25px 0 0;
}

.phone-button {
  display: flex;
  align-items: center;
  background-color: var(--secondary-color);
  border: none;
  border-radius: 55px;
  padding: 12px 14px;
  margin-right: 10px;
  cursor: pointer;
  width: 100%;
}

.phone-number {
  font-weight: 400; /* <-- FIXED: Was 400px */
  font-size: 24px;
  color: white;
}

.phone-icon {
  margin-right: 8px;
}

.desktop-nav a:hover,
.contact-info a:hover {
  /* text-decoration: underline 2px;
  text-underline-offset: 0.2em; */
  color: var(--accent-color);
}

.hero {
  background-color: var(--bg-color); /* <-- FIXED: Was --header-color */
  min-height: 35vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
  padding: 10px 0;
  box-sizing: border-box;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 0;
  width: 50%;
  box-sizing: border-box;
}

.hero-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

.hero-image {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

.hero-image img {
  width: auto;
  height: 250px;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: -1.5px;
  text-wrap: balance;
  max-width: 100%;
  word-break: break-word;
}

.hero h4 {
  font-size: 16px;
  color: var(--text-color);
  font-weight: 350;
  max-width: 100%;
  word-break: break-word;
}

.cta-button-1 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 20px;
}

.cta-button-1 button {
  padding: 15px 30px;
  background-color: #00a14b;
  color: var(--bg-color);
  border: none;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 7px;
}

.service-emergency-support {
  display: grid;
  gap: 1.5rem;
  padding: 25px;
  background-image: 
    linear-gradient(to right, rgba(255,253,248,1) 15%, rgba(255,253,248, 0.3) 70%, rgba(255,253,248,0) 100%),
    url('/public/images/water_tap.jpg');
  background-size: 1200px;
  background-position: right;
  background-repeat: no-repeat;
  overflow: hidden;
}

.card {
  width: 18%;
  margin: 0;
  margin-left: 170px;
  background-color: rgba(201, 238, 255, 0.45);
  color: var(--text-color);
  border: 4px solid var(--accent-color);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  text-wrap: pretty;
}

.card h2 {
  font-size: 1.7rem;
  margin-bottom: 15px;
  font-weight: 600;
  max-width: 100%;
  word-break: break-word;
}

.card p {
  max-width: 100%;
  word-break: break-word;
}

.card p, li {
  list-style-position: inside;
  font-size: 1.2rem;
  font-weight: 350;
}

.service-introduction {
  padding: 40px 90px;
  text-align: center;
  color: var(--text-color);
  width: 70%;
  margin: 0 auto;
  text-wrap: pretty; /* <-- IMPROVEMENT: 'balance' is for headlines */
  font-size: 1.2rem;
  font-weight: 400;
  max-width: 100%;
  word-break: break-word;
}

.service-contact {
  display: flex;
  width: 80%;
  margin: 0 auto;
  flex-wrap: wrap;
  padding: 40px 20px;
  gap: 155px;
  justify-content: center;
  align-items: stretch;
  /* overflow-x: auto; <-- REMOVED: Redundant with flex-wrap */
}

.service-contact > div {
  flex: 1 1 300px;
  background-color: rgba(201, 238, 255, 0.45);
  color: var(--text-color);
  border: 4px solid var(--accent-color);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.service-info-1 {
  display: flex;
  background-color: var(--primary-color);
  width: 100%;
  height: 100%;
  margin: 0 auto;
  flex-wrap: wrap;
  padding: 40px 20px;
  gap: 125px;
  justify-content: center;
  align-items: stretch;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* .clip-path {
  clip-path: url(#clip-path-id);
}

.service-info-1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background-color: var(--primary-color);
  z-index: -1;
} */

.service-info-1 > div{
  flex: 1 1 300px;
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 4px solid var(--accent-color);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.service-info-2 {
  display: flex;
  width: 80%;
  margin: 0 auto;
  flex-wrap: wrap;
  padding: 40px 20px;
  gap: 155px;
  justify-content: center;
  align-items: stretch;
}

.service-info-2 > div{
  flex: 1 1 300px;
  background-color: rgba(201, 238, 255, 0.45);
  color: var(--text-color);
  border: 4px solid var(--accent-color);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.emergency-info {
  max-width: 400px;
  max-height: 550px;
}

.emergency-info h2 {
  text-align: center;
  font-size: 1.8rem;
}

.contact-form {
  max-width: 500px;
}

.contact-form h2 {
  text-align: center;
  font-size: 2rem;
}

.contact-form p {
  margin: 10px 0;
  font-size: 1.2rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  align-items: left;
}

.contact-form label {
  margin-bottom: 3px;
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
  margin-bottom: 15px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form textarea {
  resize: none;
  min-height: 100px;
}

.contact-form select {
  margin-bottom: 15px;
  padding: 10px;
  font-size: 14px;
  color: var(--text-color);
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form button {
  width: 160px;
  height: 35px;
  align-self: flex-start;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  background-color: #00a14b;
  color: var(--bg-color);
  cursor: pointer;
}

.special-offer {
  height: 380px;
  max-width: 670px;
  width: 100%;
}

.price-list {
  max-width: 500px;
  /* max-height: 515px; */
  /* overflow-x: auto; <-- REMOVED: Prevents double scrollbar */
  width: 100%;
}

.price-list h2 {
  padding-bottom: 15px;
  font-size: 2rem;
}

.price-list table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 320px;
}

.price-list th,
.price-list td {
  padding: 8px;
  border: 0.12rem solid var(--text-color);
  white-space: nowrap;
}

.price-list td:nth-child(1),
.price-list th:nth-child(1) {
  text-align: left;
}

.price-list td:nth-child(2),
.price-list th:nth-child(2) {
  text-align: center;
}
/*paint even rows in color*/
/* .price-list tr:nth-child(even) {
  background-color: #f8f8f8;
} */

.price-list > td {
  border: 1px solid var(--accent-color);
}

.special-offer-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.special-offer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  flex-shrink: 0;
  margin-top: 10px;
}

.special-offer-logo img {
  width: 100%;
  max-width: 100px;
  height: auto;
}

.special-offer-text {
  flex: 1;
}

.special-offer h2 {
  text-transform: uppercase;
  font-size: 2.3rem;
  text-align: left;
  margin: 0;
  margin-bottom: 5px;
}

.special-offer h3 {
  text-transform: uppercase;
  margin: 0;
  margin-bottom: 10px;
}

.special-offer p {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.special-offer ul {
  column-count: 2;
  column-gap: 15px;
  padding-left: 15px;
  margin-top: 5px;
}

.special-offer li {
  list-style-type: disc;
  margin-bottom: 8px;
  font-size: 19px;
}

.about-us { 
  height: auto;
  max-width: 500px;
  overflow-y: auto;
}

.about-us h2 {
  padding-bottom: 10px;
  font-size: 2rem;
}

.about-us p {
  margin-bottom: 10px;
  font-size: 1.2rem;
  max-width: 100%;
  word-break: break-word;
}

.about-us ul {
  list-style: none;
  padding-left: 0;
  margin-top: 30px;
}

.about-us li {
  position: relative;
  padding-left: 30px;
}

.about-us li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 23px;
  height: 23px;
  background-image: url("/public/images/icons/checkmark-48.png");
  background-size: contain;
  background-repeat: no-repeat;
}

.warranty { 
  max-width: 400px;
  max-height: 450px;
}

.warranty h2 {
  padding-bottom: 10px;
  font-size: 1.8rem;
}

.warranty li {
  font-size: 1.3rem;
}

.warranty p {
  margin-top: 15px;
}

.service-carousel {
  padding: 40px 20px;
  background: #e9e9ed;
  text-align: center;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.carousel-item {
  flex: 0 0 250px;
  margin-right: 20px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  min-height: 150px;
  text-align: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  border-radius: 50%;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 2;
  font-size: 20px;
}

.carousel-btn.left {
  left: 0;
}

.carousel-btn.right {
  right: 0;
}

.hamburger {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  height: 70px;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 70px;
  right: 0;
  background-color: var(--primary-color);
  width: 75%;
  max-width: 300px;
  text-align: right;
  padding: 10px 20px;
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  box-shadow: -4px 4px 10px rgba(0, 0, 0, 0.3);
}

.mobile-nav a {
  color: white;
  padding: 10px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav.show {
  display: flex;
  transform: translateX(0);
}

.call-button,
.whatsapp-button {
  display: none; /* <-- FIXED: Hide on desktop by default */
  position: fixed;
  bottom: 30px;
  flex-direction: row-reverse;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 15px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.call-button {
  right: 20px;
  background-color: var(--primary-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.whatsapp-button {
  left: 20px;
  background-color: #25D366;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.whatsapp-button img {
  height: 22px;
  width: auto;
}

.call-button img {
  height: 22px;
  width: auto;
}

@media (min-width: 1024px) {
  .card {
    width: 40%;
  }
}

@media (max-width: 1024px) {
  .call-button,
  .whatsapp-button {
    display: flex;
  }

  .card {
    width: 65%;
  }

  .service-introduction {
    width: 85%;
    padding: 30px 40px;
    font-size: 1.1rem;
  }

  .service-contact,
  .service-info-1,
  .service-info-2 {
    width: 90%;
    gap: 60px;
    padding: 30px 15px;
  }

  .special-offer,
  .about-us,
  .price-list,
  .warranty {
    max-width: 600px;
    margin: 0 auto;
  }

  .hero-content {
    width: 70%;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero h4 {
    font-size: 1rem;
  }

  .cta-button-1 button {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  header, footer {
    flex-direction: column;
    text-align: center;
    height: auto;
    padding: 20px 15px;
  }

  .container {
    flex-direction: row;
    align-items: center;
    text-align: center;
    padding: 0 15px;
  }

  .desktop-nav {
    flex-direction: column;
    margin-left: 0;
    margin-top: 10px;
  }

  .desktop-nav a {
    margin: 8px 0;
  }

  .hamburger {
    display: flex;
    height: 70px;
    align-items: center;
    justify-content: center;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav.show {
    display: flex;
  }

  .mobile-nav a {
    color: white;
    padding: 10px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .mobile-nav a:last-child {
    border-bottom: none;
  }

  .hero {
    height: 65vh;
    padding: 10px;
  }

  .hero h2 {
    font-size: 2rem;
    padding: 0 10px;
  }

  .logo {
    padding: 0;
  }

  .hero-header {
    padding: 10px 0 0 0;
  }

  .hero-content {
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  .hero-image img {
    height: 180px;
  }

  .card {
    width: 85%;
  }

  .cta-button-1 {
    padding-top: 10px;
  }

  .cta-button-1 button {
    font-size: 20px;
    padding: 12px 24px;
  }

  .call-button, .whatsapp-button {
    font-size: 18px;
    padding: 14px 26px;
  }

  .card {
    width: 100%;
    background-color: rgba(255, 253, 248, 0.65);
    border-left: 4px solid var(--accent-color);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }

  .card h2 {
    font-size: 1.7rem;
  }

  .card p, li {
    font-size: 1.2rem;
  }

  .about-us {
    width: 80%;
    margin: 0 auto;
  }

  .service-introduction {
    width: 90%;
    font-size: 1.2rem;
    padding: 20px;
  }

  .service-contact,
  .service-info-1,
  .service-info-2 {
    width: 100%;
    flex-direction: column;
    gap: 40px;
    padding: 20px;
  }

  .service-contact > div,
  .service-info-1 > div,
  .service-info-2 > div {
    flex: 1 1 100%;
    margin: 0 auto;
    max-width: 500px;
  }

  .service-info-1 > div {
    max-height: 550px;
  }

  .price-list h2 {
    font-size: 1.7rem;
  }

  .price-list td {
    white-space: wrap;
  }

  .special-offer,
  .about-us,
  .price-list,
  .warranty {
    width: 100%;
    max-width: 500px;
  }

  .special-offer-logo {
    margin-top: 30px;
  }

  .special-offer h2, h3 {
    font-size: 1.3rem;
    white-space: wrap;
  }

  .warranty h2 {
    font-size: 1.7rem;
  }

  .warranty li {
    font-size: 1.2rem;
  }

  .emergency-info h2 {
    font-size: 1.7rem;
  }

  .contact-form h2 {
    font-size: 1.7rem;
  }

  .about-us h2 {
    font-size: 1.7rem;
  }

  .about-us,
  .contact-form p {
    font-size: 1.2rem;
  }

  .special-offer ul {
    column-count: 1;
  }

  .hero h2 {
    font-size: 1.7rem;
  }

  .hero h4 {
    font-size: 0.95rem;
  }

  .cta-button-1 button {
    width: 100%;
    height: 60px;
    max-width: 250px;
  }

  .carousel-item {
    flex: 0 0 80%;
    margin: 0 auto;
  }

  .service-emergency-support .card {
    margin-left: 0;
  }
}

@media (max-width: 425px) {
  header {
    height: 90px;
  }

  .logo-inner {
    display: block;
    background-image: url('/public/images/icons/top-tap-logo.png');
    width: 70px;
    height: 70px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0;
    padding: 0;
  }

  .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 5;
  }

  .container h3 {
    display: none;
  }

  .container p {
    display: none;
  }

  .container-underlay p {
    font-size: 1.1rem;
  }

  .logo {
    position: absolute; 
    top: -10px; /* Adjust vertical position */
    left: 50%;
    transform: translateX(-50%); /* Centers the element horizontally */
    z-index: 6; /* High z-index to be over anything else */
    width: auto; 
    margin: 0;
    padding: 0;
    align-items: center;
  }

  .logo h3 {
    font-size: 2rem;
  }

  .logo p {
    font-size: 1rem;
    margin-top: -0.5rem;
  }

  .hero {
    min-height: 3vh;
    padding: 15px 5px;
  }

  .hero-content {
    width: 100%;
    padding: 10px;
  }

  .hero h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }

  .hero h4 {
    font-size: 0.9rem;
  }

  .cta-button-1 {
    margin-top: 5px;
  }
  .cta-button-1 button {
    font-size: 1rem;
    padding: 10px 20px;
    width: 190px;
    height: 50px;
  }

  .service-contact,
  .service-info-1,
  .service-info-2 {
    width: 95%;
    padding: 15px 10px;
    gap: 25px;
  }

  .service-contact > div,
  .service-info-1 > div,
  .service-info-2 > div {
    padding: 1rem;
  }

  .card {
    width: 100%;
    margin: 0 auto;
    font-size: 0.95rem;
  }

  .card h2 {
    font-size: 1.5rem;
  }

  .card p {
    font-size: 1rem;
  }

  .card li {
    font-size: 1rem;
  }

  .contact-form p {
    font-size: 1rem;
  }

  .special-offer,
  .about-us,
  .price-list,
  .warranty {
    width: 100%;
    max-width: 380px;
    padding: 10px;
  }

  .special-offer h2 {
    font-size: 1.2rem;
  }

  .price-list table {
    display: block;
    overflow-x: auto;
    width: 100%;
  }

  .price-list h2 {
    font-size: 1.5rem;
  }

  .special-offer h1 {
    font-size: 1.6rem;
  }

  .special-offer h3 {
    font-size: 1rem;
  }

  .special-offer p,
  .special-offer li {
    font-size: 0.95rem;
  }

  .special-offer-logo {
    margin-top: 30px;
  }

  footer {
    font-size: 0.9rem;
  }

  .call-button, .whatsapp-button {
    bottom: 15px;
    font-size: 14px;
    padding: 10px 18px;
  }

  .about-us h2 {
    font-size: 1.5rem;
  }

  .about-us p {
    font-size: 1rem;
  }

  .about-us li {
    font-size: 1rem;
  }

  .warranty h2 {
    font-size: 1.5rem;
  }

  .warranty li {
    font-size: 1rem;
  }
}