

/* PRODUCT PAGE STYLES */

.product-banner {
    position: relative;
    background: url('images/LandingPageBanner.png') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 220px 20px 100px;
    overflow: hidden;
    height: 90vh;
}

.product-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.product-banner .banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.product-banner h1 {
    font-size: 48px;
    margin-bottom: 12px;
    font-weight: 700;
}

.product-banner p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.banner-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1;
    margin-bottom: -25px;
}

/* ===== DROPDOWN (HOVER GAP FIX – FINAL) ===== */
.dropdown {
  position: relative;
}

/* Toggle */
.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Chevron */
.dropdown .chevron {
  font-size: 12px;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px); /* 👈 NO MAGIC NUMBERS */
  left: 0;

  background: linear-gradient(
    180deg,
    #FFFFFF 0%,
    #F4F7FF 35%,
    #EAF1FF 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 20px 40px rgba(10,88,202,0.18);
  border: 1px solid rgba(10,88,202,0.12);
  border-radius: 8px;

  padding: 14px 0;
  min-width: 220px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;

  transition: opacity .25s ease, transform .25s ease;
  z-index: 1000;
}

/* 🔥 HOVER BRIDGE (THIS IS THE KEY FIX) */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}

/* Show dropdown */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Rotate chevron */
.dropdown:hover .chevron {
  transform: rotate(180deg);
}

/* Dropdown links */
.dropdown-menu a {
  padding: 10px 20px;
  font-size: 14px;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 530;
  display: block;
  transition: background .25s ease, color .25s ease;
}

.dropdown-menu a:hover {
  background: #f2f6fc;
  color: #700e0e
}



/* Desktop hover logic */
@media (min-width: 901px) {

    .dropdown:hover .dropdown-menu,
    .dropdown-menu:hover {
        display: flex !important;
    }

    /* keep menu visible for 100ms when leaving toggle */
    .dropdown-menu {
        transition: opacity .2s ease, visibility .2s ease;
    }
}

/* Mobile click logic */
@media (max-width: 900px) {
    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        min-width: 100%;
    }

    .dropdown-menu a {
        border-bottom: 1px solid #eaeaea;
        padding-left: 32px;
    }

    .product-banner h1 {
        font-size: 28px;
        margin-bottom: 10px;
        font-weight: 700;
    }

    .product-banner {
        height: 50vh;
    }
}

.products-section {
  padding: 10px 40px;
  padding-bottom: 100px;
  background: #fff;
}

.product-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 70px;
}

.product-intro h2 {
  font-size: 36px;
  color: #0B1E4A;
  margin-bottom: 10px;
}

.product-intro p {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
}

/* ===== PRODUCT ITEM ===== */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.product-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 100px;
}

.product-item.left .product-image {
  order: 1;
}
.product-item.left .product-text {
  order: 2;
}

.product-item.right .product-image {
  order: 2;
}
.product-item.right .product-text {
  order: 1;
}

/* ===== PRODUCT IMAGE ===== */
.product-image {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 500px;
  max-width: 550px;
}

.product-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  position: relative;
  z-index: 3;
  background: #fff;
}

/* ===== GRAPHIC SHAPES ===== */
/* ===== MODERN PRODUCT DESIGN ELEMENTS ===== */
.product-graphic {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Navy angled band — top left, like a diagonal slice */
.product-item.left .product-graphic::before {
  content: "";
  position: absolute;
  top: -45px;
  left: -60px;
  width: 50%;
  height: 100px;
  background: linear-gradient(135deg, #2c3e64, #fff);
  transform: skew(-20deg);
  border-radius: 12px;
  z-index: 0;
  opacity: 0.95;
}

/* Mirrored layout for right-side items */
.product-item.right .product-graphic::before {
  content: "";
  position: absolute;
  top: -45px;
  right: -60px;
  width: 50%;
  height: 100px;
  background: linear-gradient(135deg, #fff, #2c3e64);
  transform: skew(20deg);
  border-radius: 12px;
  opacity: 0.95;
  z-index: 0;
}

/* Image styling — elevated look */
.product-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  position: relative;
  z-index: 2;
  background: #fff;
}


/* ===== TEXT ===== */
.product-text {
  flex: 1;
  min-width: 300px;
  max-width: 480px;
  z-index: 3;
}

.product-text h3 {
  font-size: 24px;
  color: #0B1E4A;
  margin-bottom: 10px;
}

.product-text p {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .product-item {
    flex-direction: column;
    text-align: center;
  }

  .product-banner {
    padding: 150px 20px 100px;
  }
}

/* ===== RESPONSIVE DESIGN FOR GRAPHIC SHAPES ===== */
@media (max-width: 900px) {
  /* Overall graphic positioning */
  .product-graphic {
    inset: 0;
  }

  /* Simplify and center shapes */
  .product-item.left .product-graphic::before,
  .product-item.right .product-graphic::before {
    top: -10px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) skew(0deg);
    width: 85%;
    height: 22%;
    border-radius: 20px;
  }

  .product-item.left .product-graphic::after,
  .product-item.right .product-graphic::after {
    bottom: -10px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) skew(0deg);
    width: 75%;
    height: 18%;
    border-radius: 20px;
  }
}

/* Even more compact for phones */
@media (max-width: 600px) {
  .product-item.left .product-graphic::before,
  .product-item.right .product-graphic::before {
    width: 85%;
    height: 40%;
  }

  .product-item.left .product-graphic::before{
    margin-left: -35px;
  }

  .product-item.right{
    margin-right: -35px;
  }

  .product-item.left .product-graphic::after,
  .product-item.right .product-graphic::after {
    width: 75%;
    height: 1.5%;
  }
}

/* ===== Product Text Enhancements ===== */
.product-text h4 {
  font-size: 18px;
  color: #0B1E4A;
  margin-top: 20px;
  margin-bottom: 10px;
}

.specs ul {
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
}

.specs ul li {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
  border-bottom: 1px dashed #ddd;
  padding: 4px 0;
}

/* ===== Color Options with Tooltips ===== */
.color-options {
  margin-top: 15px;
}

.color-options .colors {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
  position: relative;
}

.color-options .color {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover & focus animation */
.color-options .color:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Tooltip styling */
.color-options .color::after {
  content: attr(data-label);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: rgba(11, 30, 74, 0.9);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

/* Tooltip arrow */
.color-options .color::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(11, 30, 74, 0.9) transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Show tooltip on hover */
.color-options .color:hover::after,
.color-options .color:hover::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .color-options .color {
    width: 26px;
    height: 26px;
  }

  .color-options .color::after {
    font-size: 11px;
  }
}

.color-options .color.active::after,
.color-options .color.active::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}



/* ===== Responsive Design — Clean & Scaled for Tablets & Mobiles ===== */

/* Tablet View (up to 1024px) */
@media (max-width: 1024px) {
  .products-section {
    padding: 60px 20px;
  }

  .product-item {
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 40px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  /* make image smaller and contained */
  .product-image {
    order: 1 !important;
    width: 100%;
    max-width: 450px;
    min-width: unset;
    margin: 0 auto;
  }

  .product-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
  }

  .product-text {
    order: 2 !important;
    width: 100%;
    max-width: 650px;
    padding: 0 16px;
  }

  .product-text h3 {
    font-size: 22px;
  }

  .product-text p {
    font-size: 15px;
    line-height: 1.6;
  }

  .specs ul {
    text-align: left;
    display: inline-block;
  }

  .product-graphic {
    display: none;
  }

  .product-item.right{
    margin-right: 0px;
  };
}

/* Mobile View (up to 768px) */
@media (max-width: 768px) {
  .products-section {
    padding: 50px 14px;
  }

  .product-item {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    gap: 25px;
    width: 100%;
    max-width: 100%;
  }

  .product-image {
    order: 1 !important;
    width: 100%;
    max-width: 340px;
    min-width: unset;
    margin: 0 auto;
  }

  .product-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
  }

  .product-text {
    order: 2 !important;
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
    padding: 0 10px;
  }

  .product-text h3 {
    font-size: 18px;
  }

  .product-text p {
    font-size: 14px;
    line-height: 1.6;
  }

  .specs ul {
    text-align: left;
    display: inline-block;
    font-size: 14px;
  }

  .color-options .colors {
    justify-content: center;
  }

  .product-graphic {
    display: none;
  }
}

/* Prevent unwanted overflow */
body, html {
  overflow-x: hidden !important;
}

/* ===== Feature List with Consistent Icon (Perfect Spacing) ===== */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  position: relative;
  padding-left: 40px; /* increased padding to move text right */
  margin-bottom: 12px;
  font-size: 15px;
  color: #333;
  line-height: 1.7;
}

/* Clean navy checkmark */
.feature-list li::before {
  content: "✔";
  left: 10px; /* shifted a bit right from 0 */
  top: 0;
  color: #2c3e64;
  font-weight: bold;
  font-size: 17px;
  line-height: 1.7;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .feature-list li {
    font-size: 14px;
    padding-left: 38px; /* still balanced on mobile */
  }

  .feature-list li::before {
    font-size: 16px;
    left: 8px;
  }
}


/* ===== Enhanced Color Options ===== */
.color-options {
  margin-top: 25px;
}

.color-options h4 {
  font-size: 20px;
  color: #0B1E4A;
  margin-bottom: 15px;
  border-bottom: 2px solid #d4b15c;
  display: inline-block;
  padding-bottom: 4px;
}

.finish-category {
  margin-bottom: 25px;
}

.finish-category h5 {
  font-size: 16px;
  color: #2c3e64;
  margin-bottom: 10px;
  font-weight: 600;
}

.color-options .colors {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.color-options .color {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.color-options .color:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Tooltip label */
.color-options .color::after {
  content: attr(data-label);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 30, 74, 0.9);
  color: #fff;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 4px;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.color-options .color:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .color-options .color {
    width: 30px;
    height: 30px;
  }
  .color-options .color::after {
    font-size: 10px;
  }
}


/* ===== WHY CHOOSE SYSTEM ALUMINIUM ===== */
.why-aluminium {
  background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
  padding: 70px 40px;
  text-align: center;
  border-top: 2px solid #e6eaf0;
  border-bottom: 2px solid #e6eaf0;
  margin-bottom: 80px;
}

.why-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.why-header h2 {
  font-size: 28px;
  color: #0B1E4A;
  font-weight: 700;
  margin: 0;
}

.why-line {
  flex: 1;
  max-width: 200px;
  height: 2px;
  background: #d4b15c;
  border-radius: 1px;
}

/* Horizontal layout */
.why-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto; /* allows horizontal scroll on small screens */
  scrollbar-width: thin;
  scrollbar-color: #d4b15c transparent;
}

.why-item {
  padding-top: 4px;
  flex: 1;
  min-width: 160px;
  max-width: 180px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-item i {
  font-size: 40px;
  color: #2c3e64;
  background: #fff;
  padding: 16px;
  border-radius: 50%;
  border: 2px solid #d4b15c;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.why-item:hover i {
  background: #d4b15c;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.why-item strong {
  color: #0B1E4A;
  font-size: 14px;
}

.why-item p {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

/* Responsive - tablets and mobiles */
@media (max-width: 1024px) {
  .why-row {
    gap: 20px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 10px;
  }

  .why-item {
    flex: 0 0 auto;
    min-width: 140px;
  }
}

@media (max-width: 600px) {
  .why-aluminium {
    padding: 50px 20px;
  }

  .why-header h2 {
    font-size: 22px;
  }

  .why-item i {
    font-size: 32px;
  }

  .why-item p {
    font-size: 12px;
  }
}


/* ================================= */
/* AVAILABLE FINISHES (PRODUCT PAGE) */
/* ================================= */

.color-options {
  margin-top: 24px;
}

.color-options h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #0A2540;
}

/* Each row of finishes */
.color-options .finish-badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

/* Each finish item */
.color-options  .badge-item {
  display: flex;
  flex-direction: column;      /* image on top, text below */
  align-items: flex-start;
}

/* Finish image */
.color-options .finish-badges .badge-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Finish name below image */
.color-options .finish-badges .badge-item .finish-name {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: #6B7280;
}


@media (max-width: 768px) {
  .color-options .finish-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .color-options .finish-badges .badge-item img {
    height: 90px;
  }
}

/* =============================== */
/* AVAILABLE FINISHES – GRID FIX   */
/* =============================== */

/* Force grid even inside flex parents */
.color-options {
  width: 100%;
  display: block;
}

/* Each finishes row */
.color-options .finish-badges {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr); /* 👈 EXACT 3-column grid like image */
  gap: 28px;

  width: 100% !important;
  max-width: 100%;
  margin: 20px 0;
}

/* Each finish card */
.color-options  .badge-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Finish image */
.color-options .finish-badges .badge-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Finish name */
.color-options .finish-badges .badge-item .finish-name {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: #6B7280;
}

@media (max-width: 768px) {
  .color-options .finish-badges {
    grid-template-columns: repeat(4, 1fr);
  }

  .color-options .finish-badges .badge-item img {
    height: 90px;
  }
}

.color-options .finish-badges .badge-item img {
  width: 100%;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

/* =============================== */
/* FINISH HOVER ANIMATION          */
/* =============================== */

.color-options .finish-badges .badge-item {
  transition: transform 0.3s ease;
}

.color-options .finish-badges .badge-item img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover effect */
.color-options .finish-badges .badge-item:hover {
  transform: translateY(-6px);
}

.color-options .finish-badges .badge-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

/* Optional: text highlight on hover */
.color-options .finish-badges .badge-item:hover .finish-name {
  color: #0A58CA; /* brand blue */
}
