/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  padding-top: 80px; /* Account for fixed navbar */
}

/* ———————————————————————— */
/* 1. MENU (Responsive with Hamburger) */
/* ———————————————————————— */
.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  position: fixed;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.logo {
  display: block;
}

.logo-img {
  height: 40px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.bar {
  width: 28px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  transition: 0.3s;
  border-radius: 1px;
}

.menu-items {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.menu-item {
  position: relative;
  display: inline-block;
}

.menu-link {
  color: #aaa;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  display: block;
}

.menu-link:hover {
  color: #fff;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #111;
  padding: 1rem;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transform: translateY(10px);
}

.menu-item:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu-item {
  display: block;
  padding: 0.6rem 0.8rem;
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.3s, color 0.3s;
  border-radius: 4px;
}

.submenu-item:hover {
  background: #333;
  color: #fff;
}

/* ———————————————————————— */
/* MOBILE RESPONSIVE */
/* ———————————————————————— */
@media (max-width: 768px) {
  body {
    padding-top: 70px; /* Smaller padding for mobile navbar */
  }

  .menu-toggle {
    display: flex;
  }

  .menu-items {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #000;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5rem 2rem;
    transition: right 0.4s ease;
    z-index: 999;
    overflow-y: auto;
    gap: 1.5rem;
  }

  .menu-items.active {
    right: 0;
  }

  .menu-item {
    width: 100%;
  }

  .submenu {
    position: static;
    opacity: 0;
    visibility: hidden;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    margin-top: 0;
  }

  .menu-item.active .submenu {
    opacity: 1;
    visibility: visible;
    max-height: 200px;
  }

  .menu-link {
    font-size: 1.1rem;
    padding: 0.6rem 0;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .logo-img {
    height: 32px;
  }

  .banner {
    margin-top: 0;
    height: 60vh;
  }

  .banner-caption h2 {
    font-size: 1.8rem;
  }

  .intro {
    padding: 3rem 5%;
  }

  .intro-logo {
    font-size: 2.5rem;
  }

  .content-row {
    flex-direction: column;
    padding: 4rem 5%;
    text-align: center;
    gap: 2rem;
  }

  .content-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
  }

  .content-text h2::after {
    width: 40px;
    height: 2px;
  }

  .content-text .subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .content-text p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
  }

  .content-img img {
    height: 300px;
    object-fit: cover;
  }

  .projects-section {
    padding: 4rem 5%;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 5%;
  }

  .footer-social {
    gap: 1.2rem;
  }

  .footer-social img {
    height: 26px;
  }

  .footer-contact,
  .footer-links {
    font-size: 0.95rem;
  }
}

/* ———————————————————————— */
/* 2. MAIN CAROUSEL */
/* ———————————————————————— */
.banner {
  width: 100%;
  height: 70vh;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  z-index: 1;
}

.banner-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.banner-item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.banner-item.active {
  opacity: 1;
}

.banner-caption {
  opacity: 0;
  transform: translateY(30px);
  padding: 2rem;
  max-width: 800px;
  text-align: center;
  color: #fff;
}

.banner-item.active .banner-caption {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

.banner-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  transform: translateY(-50%);
  z-index: 10;
}

.banner-arrow {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  backdrop-filter: blur(5px);
  position: relative;
  z-index: 10;
}

.banner-arrow:hover {
  background: rgba(255,255,255,0.4);
}

/* Resource Links Styling */
.resource-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
}

.resource-section h4 {
  margin-bottom: 1.2rem;
  color: #fff;
  font-size: 1.1rem;
}

.resource-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #4a5568, #2d3748);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1px solid #4a5568;
}

.resource-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, #5a6578, #3d4758);
}

.resource-link-icon {
  font-size: 1.1rem;
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.dot.active {
  background: #fff;
}

/* ———————————————————————— */
/* 3. INTRO + CONTENT ROWS */
/* ———————————————————————— */
.intro {
  padding: 4rem 10%;
  text-align: center;
}

.intro-logo {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.intro-text {
  font-size: 1.2rem;
  color: #aaa;
  max-width: 800px;
  margin: 0 auto;
}

.content-row {
  display: flex;
  gap: 3rem;
  padding: 6rem 10%;
  align-items: center;
  min-height: 80vh;
  scroll-margin-top: 100px;
}

.content-text {
  flex: 1;
  font-size: 1.4rem;
  line-height: 1.6;
}

.content-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: relative;
  padding-bottom: 1rem;
}

.content-text h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, transparent);
}

.content-text .subtitle {
  font-size: 1.2rem;
  color: #b8860b;
  font-weight: 400;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid #d4af37;
  font-style: italic;
}

.content-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #e0e0e0;
  font-weight: 300;
}

.content-text p:last-child {
  margin-bottom: 0;
}

.content-img {
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
  position: relative; /* Required for absolute positioning of arrows/dots */
}

.content-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* ———————————————————————— */
/* 4. DECKING IMAGE SLIDER (Inside .content-img) */
/* ———————————————————————— */
.content-img .prev,
.content-img .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  outline: none;
  transition: background 0.3s ease;
}

.content-img .prev {
  left: 10px;
}

.content-img .next {
  right: 10px;
}

.content-img .prev:hover,
.content-img .next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.img-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.img-dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.img-dot.active {
  background: white;
}

/* ———————————————————————— */
/* Image Loading States */
/* ———————————————————————— */
.slider-image {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.slider-image.loading {
  opacity: 0.5;
}

.carousel-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 5;
  display: none;
}

.carousel-loading.active {
  display: block;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ———————————————————————— */
/* 5. PROJECT REFERENCES */
/* ———————————————————————— */
.projects-section {
  padding: 6rem 10%;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 500;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.project-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-item:hover img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  text-align: center;
}

.project-item:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* ———————————————————————— */
/* 6. PRODUCTS SHOWCASE (Pool & Sauna) */
/* ———————————————————————— */
.products-showcase {
  padding: 6rem 10%;
}

.brand-section {
  margin-bottom: 5rem;
}

.brand-section:last-child {
  margin-bottom: 0;
}

.brand-title {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 0.5rem;
}

.brand-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.brand-products img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.brand-products img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

/* Mobile responsive for brand products */
@media (max-width: 768px) {
  .products-showcase {
    padding: 4rem 5%;
  }

  .brand-title {
    font-size: 1.5rem;
  }

  .brand-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .brand-products img {
    height: 200px;
  }
}

/* ———————————————————————— */
/* 6.1 FLOATING WHATSAPP BUTTON */
/* ———————————————————————— */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 64px;
  height: 64px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-float img {
  width: 36px;
  height: 36px;
  display: block;
}

/* Mobile responsive for floating button */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float img {
    width: 32px;
    height: 32px;
  }
}

/* ———————————————————————— */
/* 7. FOOTER */
/* ———————————————————————— */
.footer {
  background: #111;
  color: #ccc;
  padding-top: 4rem;
  margin-top: 4rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  padding: 0 5%;
  margin-bottom: 3rem;
}

.footer-col {
  line-height: 1.8;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-col p {
  color: #ccc;
  font-size: 0.95rem;
}

.footer-logo {
  height: 40px;
  margin-bottom: 1rem;
  display: block;
}

.footer-contact {
  list-style: none;
  font-size: 0.95rem;
}

.footer-contact li {
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: #ccc;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social img {
  height: 28px;
  width: 28px;
  filter: invert(1);
  transition: transform 0.3s ease;
}

.footer-social img:hover {
  transform: scale(1.1);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid #333;
  color: #777;
  font-size: 0.9rem;
}