/* ==========================================================================
   HEX STYLESHEET - CORE COMPONENTS
   ========================================================================== */

/* === Hero Banner === */
.hex-hero--pending {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  background: rgba(255,0,0,0.05); /* Optional highlight */
}
.hex-hero {
  transition: all 0.4s ease;
}

.hex-hero {
   font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;

  position:relative;
  background-color: #3B9C9C; /* solid fallback if nothing else loads */
  linear-gradient(180deg, #81E4DA 0%, #5AC8C5 50%, #3B9C9C 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 6rem 2rem;
  color: white;
  text-align: center;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-transform: uppercase;
}
.hex-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.05) 100%);
  z-index: 0;
}
.hex-hero > * {
  position: relative;
  z-index: 1;
}
.hex-hero .tagline {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: italic;
  font-size: 6rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: #ffde59;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.25);

}


.hex-hero .promo {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  color: #fff;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease, transform 0.2s ease;
}

.hex-hero .promo:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  cursor: pointer;
}


.hex-hero .hero-offers {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  font-size: 1.25rem;
}

.hex-hero .promo-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* === Intro Section === */
.hex-intro {
  background: linear-gradient(180deg, #F3F7F9 0%, #E7ECF1 100%);
  padding: 6rem 2rem;
}
.hex-intro .intro-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 10em;
}

.hex-intro .intro-text {
  flex: 1 1 40%;
  max-width: 500px;
}

/* Hex Video Card Inside Hex Embed */
.hex-video-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.hex-video-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  border-radius: 6px;
}
.hex-meta {
  padding: 0.5rem 0;
  font-family: system-ui, sans-serif;
}

.hex-meta h3 {
  margin: 0;
  font-size: 1.1rem;
}

.hex-video-meta-counts {
  font-size: 0.9rem;
  color: #666;
}

.hex-video-meta-counts span {
  margin-right: 0.5rem;
}



.hex-intro .intro-text.in-view {
  opacity: 1;
  transform: translateY(0);
}
.hex-intro .headline {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.hex-intro .subline {
  font-size: 1.25rem;
  color: #eaeaea;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* === Location Buttons === */
.location-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  margin-top: 2rem;
}

/* === Generic Hex Buttons === */
.hex-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  background-color: #ffffff10;
  border: 2px solid #4442;
  color: #333;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(2px);
}

.hex-button:hover {
  background-color: #ffffff30;
  transform: translateY(-2px);
  color: #111;
}
.hex-intro .hex-button:hover {
  background-color: #ffffff30;
  transform: scale(1.05);
  color: #fff;
}


/* === Product Grid Components === */

.lazy-product-img {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lazy-product-img[src*="http"] {
  opacity: 1;
}

.hex-product-line {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  /* Reset any inherited damage */
  all: initial;
  display: flex;
  font-family: inherit;
}
.hex-product-line *,
.hex-product-tile * {
  all: revert-layer;
  display: revert;
  box-sizing: border-box;
}
.hex-product-tile {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  background: #fff;
  transition: box-shadow 0.3s ease;
}

.hex-product-tile:hover {
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.hex-product-img-wrap {
  position: relative;
}

.hex-product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hex-product-tile:hover .hex-product-overlay {
  opacity: 1;
  pointer-events: auto;
}
.hex-cart-btn,
.hex-view-btn {
  background: white;
  color: black;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.hex-cart-btn:hover,
.hex-view-btn:hover {
  background: #333;
  color: white;
  transform: translateY(-2px);
}
/* --- Review Stars --- */
.hex-review-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 0.5rem;
  color: #f5b301;
}

.hex-star {
  all: unset;
  display: inline-flex;
  width: 1.25em;
  height: 1.25em;
  color: inherit;
  fill: currentColor;
  vertical-align: middle;
}

.hex-star svg {
  all: unset;
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}

.hex-star.filled svg {
  color: #fdd835;
  fill: currentColor;
}

.hex-star.half svg {
  color: #fdd835;
  fill: currentColor;
  mask: linear-gradient(90deg, black 50%, transparent 50%);
  -webkit-mask: linear-gradient(90deg, black 50%, transparent 50%);
}

.hex-star.empty svg {
  color: #ccc;
  fill: currentColor;
}

/* --- Product Badges --- */
.hex-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 2px 6px;
  font-size: 0.75rem;
  border-radius: 3px;
  background: #444;
  color: #fff;
  text-transform: uppercase;
}

.hex-badge.on-sale { background: #d32f2f; }
.hex-badge.low-stock { background: #f9a825; }
.hex-badge.out-of-stock { background: #9e9e9e; }

/* === CTA: Service === */
.lazy-cta-img {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-cta-img[src*="uploads"] {
  opacity: 1;
}

.hex-cta--service {
  background: #f9fafb;
  padding: 3rem 2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.hex-cta--service .hex-cta-content {
  flex: 1 1 400px;
  text-align: center;
}

.hex-cta--service .hex-cta-image img {
  max-width: 100%;
  border-radius: 8px;
}




/* === CTA: Financing === */
.hex-cta--financing {
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  color: #ffffff;
  padding: 3.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 20px 50px -15px rgba(13, 42, 148, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  text-align: left;
}

.hex-cta--financing .hex-cta-content {
  flex: 1 1 400px;
}

.hex-cta--financing h2,
.hex-cta--financing h3,
.hex-cta--financing h4 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hex-cta--financing p {
  color: #e0f2fe;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.hex-cta--financing .hex-cta-btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.75rem 1.5rem;
  background: #ffffff;
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hex-cta--financing .hex-cta-btn:hover {
  background: #0ea5e9;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}



/* === CTA: YouTube === */

.hex-video-facade {
  position: relative;
  display: block;
  cursor: pointer;
  background: #000;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hex-video-thumb {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hex-video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  font-size: 3rem;
  padding: 0.5em 1em;
  border-radius: 0.5em;
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s ease;
}
.hex-video-play-button:hover {
  background: rgba(0,0,0,0.8);
}

.hex-cta--youtube {
  background: #f2f2f2;
  color: #111;
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hex-cta--youtube .hex-cta-content {
  flex: 1 1 500px;
  text-align: center;
}

.hex-cta--youtube img {
  max-width: 180px;
  margin: 0 auto;
  display: block;
}

.hex-cta--youtube .hex-cta-btn {
  background: #cc0000;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  font-weight: 600;
  transition: background 0.3s ease;
}

.hex-cta--youtube .hex-cta-btn:hover {
  background: #990000;
}


/* === Blog Components === */
.hex-blog-line {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 4rem 2rem;
  background-color: #fff;
}

.hex-blog-tile {
  flex: 1 1 300px;
  max-width: 350px;
  background: #f6f6f6;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.hex-blog-tile:hover {
  transform: translateY(-4px);
}

.hex-blog-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.hex-blog-thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
  background: #eee;
}

.lazy-blog-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-blog-thumb[src*="uploads"] {
  opacity: 1;
}
.hex-blog-content {
  padding: 1.5rem;
}

.hex-blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hex-blog-excerpt {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

/* Blog Badges */
.hex-blog-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: #ddd;
  color: #000;
  margin: 0.5rem 0 0 0.5rem;
}

.hex-blog-badge--new {
  background: #32b67a;
  color: #fff;
}

.hex-blog-badge--updated {
  background: #f29c2b;
  color: #fff;
}


/* === Layout: Grid and Flex Cells === */
.hex-cells-row--grid[data-fluid='false'] {
  display: table;
  table-layout: fixed;
  width: 100%;
}

.hex-cells-row--grid[data-fluid='true'],
.hex-cells-row--grid[data-fluid='1'] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.hex-cells-row--grid[data-fluid='0.25'] {
  grid-template-columns: repeat(auto-fit, minmax(25%, 1fr));
}

.hex-cells-row--grid[data-fluid='0.5'] {
  grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
}

.hex-cells-row--flex {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hex-gap, 1rem);
}


.hex-cells-row--flex[data-fluid='false'] {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--hex-gap, 1rem);
  overflow-x: auto;
}

.hex-cells-row--flex[data-fluid='true'],
.hex-cells-row--flex[data-fluid='1'] {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hex-gap, 1rem);
}

.hex-cells-row--flex[data-fluid='0.25'] .hex-cells-col {
  flex: 1 1 25%;
}

.hex-cells-row--flex[data-fluid='0.5'] .hex-cells-col {
  flex: 1 1 50%;
}

.hex-cells-row--flex[data-fluid='0.33'] .hex-cells-col {
  flex: 1 1 33.3333%;
}

.hex-cells-col {
  background: var(--hex-bg, #fff);
  padding: 1rem;
  border-radius: 6px;
  min-width: 200px;
  flex: 1 1 200px;
}


.hex-cells--grid .hex-link,
.hex-cells--flex .hex-link {
  display: inline-block;
  padding: 0.25em 0.5em;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
}

.hex-cells-row--list {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hex-cells-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.hex-cells-list li + li {
  margin-top: 0.5rem;
}

/* --- Star Rating Masks --- */
/* (Moved into review stars block above for clarity) */

/* === Map Styling === */
.hex-map {
  width: 100%;
  height: 500px;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

[data-id] { scroll-margin-top: 50px; }
