/*style.css*/

/* === Reset and Base Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Space Grotesk", sans;
  background-color: #1b2b34;
  color: #1f1f1f;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    height: auto;
  }

  .header .logo span {
    font-size: 1.6rem;
    text-align: center;
  }

  /* Mobile hero: favor the hiker (top-right) and ease height a bit */
  .hero {
    background-position: 90% 20%;
    height: 80vh;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }

  .gallery-row {
    flex-direction: column;
  }
}


/* === Hero Section === */
.hero {
  background: url("../assets/photos/sky_hiker.webp") no-repeat center
    center / cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(50px);
}

.hero h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-top: 2rem;
}

.hero-subhead {
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  margin-top: 1rem;
  max-width: 600px;
  text-align: center;
  line-height: 1.5;
}

/* === Intro Section === */
.intro-section {
  background-color: #1b2b34;
  padding: 1rem 1rem;
  width: 100%;
  text-align: center;
  border-bottom: 2px solid #ffa500; /* ThirstLock orange line */
}

.intro-section .content {
  max-width: 1200px;
  margin: 0 auto;
}

.intro-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: 1rem;
}

.intro-section strong {
  color: #ffa500;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* === Features === */
.features {
  display: flex;
  justify-content: space-around;
  padding: 1rem 0.5rem;
  background-color: #fff;
}

.feature {
  text-align: center;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.feature h3 {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

.feature p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem; /* or adjust to 0.75rem or 1.25rem to taste */
}

.features img {
  width: 150px;
  height: auto;
  margin-bottom: 0.5rem;
}

.feature-paracord h3 {
  margin-top: -22px;
}

.feature-icon-paracord {
  margin-top: -35px;
  margin-bottom: 0px; /* adjust as needed */
}

.feature-icon-secure {
  width: 100px !important;
  height: auto !important;
  margin-top: 0px;
  margin-bottom: -8px; /* adjust as needed */
}

.feature-secure h3 {
  margin-top: 20px;
}

.feature-icon-custom {
  margin-bottom: 0.4rem; /* adjust as needed */
}








/* === Gallery === */

/* === Gallery === */

/* Adjustable vertical spacing for entire gallery block */
.gallery {
  padding: 2.5rem 1rem 2.5rem; /* top | sides | bottom — adjust these to move the whole gallery */
}

/* Tight, responsive paracord mosaic (12 tiles) */
.color-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4×3 on desktop */
  gap: 0;                      /* boxes touch */
  width: 100%;
  max-width: 288px;           /* match gallery width cap */
  margin: 1rem auto 0 auto;    /* small separation from photos above */
}

.color-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;         /* perfect squares regardless of source size */
  object-fit: cover;           /* no distortion */
  display: block;              /* kill inline gaps */
}

/* Tablet: 3×4 (still a rectangle) */
@media (max-width: 900px) {
  .color-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Small phones: 2×6 (still a rectangle) */
@media (max-width: 520px) {
  .color-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tight, fixed-rectangle carabiner mosaic (8 tiles = 4×2) */
.carabiner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2×4 layout */
  gap: 0;                      /* boxes touch */
  width: 100%;
  max-width: 288px;            /* matches paracord grid width */
  margin: 1rem auto 0 auto;    /* small separation from paracord grid */
}

.carabiner-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;         /* perfect squares */
  object-fit: cover;
  display: block;
}

/* Main gallery grid: 3 columns, 3 "rows" */
.gallery-row {  
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 0;                   /* space between photos */
  max-width: 1200px;
  margin: 0 auto;
  /* rows now size to their tallest item (e.g., mosaics), keeping each row even */
}


/* Ensure main gallery images fill their grid cells */
.gallery-row > img {
  width: 100%;
  height: auto;
  display: block;
  /* natural aspect ratio, no forced cropping */
}

/* Thin internal seam between row 2 and 3 in column 2 */
.gallery-row > img:nth-child(5) {
  margin-bottom: 4px;
}


/* Unified rounded corners for all main gallery tiles:
   - the 6 standard images
   - the paracord mosaic tile
   - the carabiner mosaic tile
   Adjust 12px to taste. */
.gallery .gallery-row > img,
.gallery .color-grid,
.gallery .carabiner-grid {  
  overflow: hidden;
}

/* When used inside the main gallery, mosaics behave as tiles in the grid */
.gallery .color-grid,
.gallery .carabiner-grid {
  width: 100%;
  max-width: none;
  margin: 0;
}

.gallery .color-grid {
  margin-bottom: 5.75px; /* thin seam between paracord and carabiner mosaics */
}


@media (min-width: 1025px) {
  /* Paracord mosaic: top-right tile (column 3, row 1) */
  .gallery .color-grid {
    grid-column: 3;
    grid-row: 1;
  }

  /* Carabiner mosaic: same width, double height (rows 2–3 in column 3) */
  .gallery .carabiner-grid {
    grid-column: 3;
    grid-row: 2 / span 2;
  }
}


/***** Tablet structured 2-column layout (769px–1024px) *****/
@media (min-width: 769px) and (max-width: 1366px) {
  .gallery-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
    row-gap: 0;          /* we’ll manage vertical rhythm inside columns */
    width: 100%;
  }

  /* Explicit placement of the three logical columns */
  .gallery-col-1 {
    grid-column: 1;
    grid-row: 1;
  }

  .gallery-col-2 {
    grid-column: 1;
    grid-row: 2;
    margin-top: 1.5rem;  /* space between top and bottom photo stacks */
  }

  .gallery-col-3 {
    grid-column: 2;
    grid-row: 1 / span 2; /* mosaics run down the full right side */
  }

  /* Vertical spacing for the photo stacks (left column) */
  .gallery-col-1 img,
  .gallery-col-2 img {
    margin-bottom: 1.5rem;
  }

  /* Paracord mosaic:
     - 4 tiles per row
     - 3 rows total
     - background shows between tiles
  */
  .gallery .gallery-col-3 .color-grid {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 across */
    gap: 0.75rem;                          /* spacing between tiles */
    margin-bottom: 1.75rem;                /* gap above carabiner block */
  }

  /* Carabiner mosaic:
     - 2 tiles per row
     - 4 rows total
     - same spaced, poster-board feel
  */
  .gallery .gallery-col-3 .carabiner-grid {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 across */
    gap: 0.75rem;
  }
}



/* Mobile: 1-up */
@media (max-width: 768px) {
  .gallery-row {
    grid-template-columns: 1fr;
  }
}






/* === CTA === */
.cta-text {
  background-color: #eee;
  padding: 2rem;
  text-align: center;
}

.cta-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.cta-text p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  color: #444;
}

/* === Carousel === */
.product-carousel {
  background-color: #1b2b34;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;

  /* Carousel spacing knobs */
  --dots-to-arrows-gap: 0.75rem;   /* vertical: dots → arrows */
  --arrows-to-title-gap: 0.75rem;  /* vertical: arrows → product name */
}


.carousel-heading {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #ffa500;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}

.carousel-container {
  display: flex; 
  gap: 2rem;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  opacity: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  display: flex;  
}

/* Image fills the slide-media width; no independent max-width math */
.carousel-slide .slide-media > img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  max-width: none; /* neutralize previous 220px cap */
  border-radius: 12px;
}


/* Positioned wrapper so spec banner anchors to the image, not the whole slide */
.slide-media {
  position: relative;
  display: inline-block; /* shrink-wrap */
  overflow: hidden;      /* clip any overhang at image edge */
  /* NEW: wrapper decides size; image fills this */
  width: min(350px, 80vw);
}

/* Image counter badge (e.g., "1 / 3") in the top-right of the image */
.slide-media .image-counter {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 500;
  pointer-events: none;       /* purely informational; clicks go to the image */
  z-index: 2;
}


/* Mini-gallery image fade */
.slide-media img {
  opacity: 1;  
}

/* When fading out before swap */
.slide-media img.is-fading {
  opacity: 1;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .slide-media img {
    transition: none;
  }
}


.carousel-slide h3 {
  font-size: 1.5rem;
  margin-top: var(--arrows-to-title-gap); /* controlled from .product-carousel */
  margin-bottom: 0.5rem;
}


.carousel-slide p {
  font-size: 1rem;
  margin-bottom: 1rem;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}


/* Mini-gallery dots placeholder (reserved space under image) */
.mini-dots {
  /* Easy tweak knobs for dot sizing + spacing */
  --dot-size: 28px;   /* change this to try bigger/smaller dots */
  --dot-gap:  28px;   /* change this to adjust spacing between dots */

  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--dot-size) + 10px); /* keeps layout stable */
  margin-top: 8px;           /* small breathing room below the image */
  gap: var(--dot-gap);       /* uses the adjustable spacing variable */
  margin-bottom: 0.75rem;    /* space above the product title */
  /* no background/border here; purely a layout reserve for now */
}

/* Mini-gallery dot visuals (classic minimalist) */
.mini-dot {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  color: #000;                          /* readable number */
  font-size: calc(var(--dot-size) * 0.55);
  font-weight: 600;
  
  display: flex;                         /* center number perfectly */
  align-items: center;
  justify-content: center;

  transition: transform 160ms ease, background-color 160ms ease, opacity 160ms ease;
  opacity: 0.9;
  user-select: none;                     /* no accidental text selection */
}




/* Active/hover/focus states */
.mini-dot.active {
  background: #ffa500;                    /* ThirstLock orange */
  opacity: 1;
  transform: scale(1.1);
}

.mini-dot:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* When we later make dots focusable, ensure visible focus ring */
.mini-dot:focus {
  outline: 2px solid #ffa500;
  outline-offset: 3px;
}


/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .mini-dot {
    transition: none;
  }
}

/* Ensure slide is a positioned ancestor for overlay elements */
.carousel-slide {
  position: relative;
}

/* Thin, semi-transparent banner over image bottom (above dots)
   NOTE: Specificity bump (.carousel-slide .slide-media > .spec-banner) to beat stray rules */
.carousel-slide .slide-media > .spec-banner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;                 /* sits just above the dot row */
  width: 100%;                  /* equals .slide-media (image) width */
  box-sizing: border-box;       /* padding stays inside width */
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1;
  z-index: 3;
  pointer-events: none;         /* visual-only for now */
  white-space: nowrap;          /* keep single line */
  overflow: hidden;             /* prevent right-edge spill */
  text-overflow: ellipsis;      /* … when too narrow */
  transform: none;
}

/* Small-screen comfort tweak */
@media (max-width: 480px) {
  .carousel-slide .slide-media > .spec-banner {
    font-size: 0.85rem;
    padding: 5px 10px;
  }
}


/* Label swapping: default to "Click..." */
.spec-banner .label-click { display: inline; }
.spec-banner .label-tap   { display: none; }

/* On touch devices (no hover), show "Tap..." instead */
@media (hover: none) and (pointer: coarse) {
  .spec-banner .label-click { display: none; }
  .spec-banner .label-tap   { display: inline; }
}


/* === Specs Dialog === */
.spec-dialog[hidden] { display: none !important; }
.spec-dialog {
  position: fixed;
  inset: 0;
  z-index: 999; /* above everything else */
}

.spec-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.spec-dialog__panel {
  position: relative;
  max-width: 900px;
  margin: 5vh auto;
  background: #ffffff;
  color: #1b2b34;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.spec-dialog__title {
  font-size: 1.25rem;
  margin: 0 0 12px 0;
  color: #1b2b34;
}

.spec-dialog__close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #1b2b34;
}
.spec-dialog__close:focus {
  outline: 2px solid #ffa500;
  outline-offset: 2px;
}

.spec-dialog__content {
  display: grid;
  gap: 12px;
}

.spec-dialog__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  background: #f2f2f2; /* placeholder bg while image loads */
}

.spec-dialog__text {
  font-size: 0.95rem;
  color: #333333;
}

/* Mobile: full-screen sheet for readability */
@media (max-width: 768px) {
  .spec-dialog__panel {
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
    max-width: 100%;
    padding: 16px;
  }
}

/* Scroll lock helper when dialog is open */
body.no-scroll { overflow: hidden; }

/* Dialog open/close animation (fade/scale) */
.spec-dialog__backdrop {
  opacity: 0;
  transition: opacity 180ms ease;
}

.spec-dialog__panel {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

/* When dialog is marked open, fade in backdrop and panel */
.spec-dialog.is-open .spec-dialog__backdrop {
  opacity: 1;
}

.spec-dialog.is-open .spec-dialog__panel {
  opacity: 1;
  transform: scale(1);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .spec-dialog__backdrop,
  .spec-dialog__panel {
    transition: none;
    transform: none;
    opacity: 1;
  }
}



/* === Buttons === */
.btn {
  display: inline-block;
  background-color: #ff8a3d;
  color: #1b2b34;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #ffa500;
}

/* Prevent wrapping so we measure true single-line width */
.product-carousel .btn {
  white-space: nowrap;
  display: inline-block; /* ensures width/min-width apply cleanly */
}

/* keep build buttons one line and center text */
.product-carousel .btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn {
  background: none;
  border: 2px solid #ff8a3d;
  color: #ff8a3d;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease;
}

.carousel-btn:hover {
  background-color: #ff8a3d;
  color: #1b2b34;
}

.carousel-heading {
  font-family: "Space Grotesk", sans-serif;
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.brand-highlight {
  font-family: "Sarpanch", sans-serif;
  color: #ffa500; /* ThirstLock orange */
  font-size: 1.2em;
}

.brand-highlight {
  font-family: "Sarpanch", sans-serif;
  color: #ffa500;
  font-size: 1.2em; /* NEW: increase size slightly */
}

.brand-highlight .tm {
  font-family: "Sarpanch", sans-serif;
  color: #ffa500;
  font-size: 0.35em; /* smaller */
  position: relative;
  top: 0.6em; /* lower it slightly */
}

@media (max-width: 768px) {
  /* Still let wrapper decide; image stays 100% of wrapper */
  .carousel-slide .slide-media > img {
    max-width: none;
    width: 100%;
  }

  /* MOBILE HERO OVERRIDE
     - Re-declare the full background so it beats the desktop rule
     - Bias crop toward the right/top where the hiker is
  */
  .hero {
    background: url("../assets/photos/sky_hiker.webp") no-repeat 55% 20% / cover;


    height: 90vh;
  }
}

/* === THIRSTLOCK Lightbox === */
.tl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-lightbox[hidden] {
  display: none !important;
}

.tl-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(3px);
}

.tl-lightbox-img {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  z-index: 2;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  cursor: zoom-out;
}


/* Product nav row inside each slide: arrows + product name */
.product-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: var(--dots-to-arrows-gap); /* controlled from .product-carousel */
}


/* mini-dots already have their own margins in the main .mini-dots rule */



@media (max-width: 768px) {
  
  /* Mobile: hide the big side arrows, use inline slide nav instead */
  #carousel-prev,
  #carousel-next {
    display: none;
  }
  /* Arrows inside product-nav-row on mobile */
  .product-nav-row .carousel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;          /* tweak if you want them a bit smaller/bigger */
    padding: 0.25rem 0.75rem;   /* tweak for touch comfort */
  }

  /* Product title spacing now tied to the nav row */
  .product-nav-row h3 {
    margin: 0; /* let the row handle spacing */
  }

  /* Keep the whole row centered; no big offsets needed now */
 
  .product-nav-row .slide-prev { margin-right: 8rem; }
.product-nav-row .slide-next { margin-left: 8rem; }



}


@media (min-width: 769px) {
  /* Centered product nav row on desktop */
.product-nav-row .slide-prev { margin-right: 20rem; }
.product-nav-row .slide-next { margin-left: 20rem; }

}

/* Nudge ANCHOR price left so it visually centers under the word, not the ™ */
.anchor-price, .hitch-price {
  display: inline-block;
  transform: translateX(-0.25em); /* tweak this value to taste */
}

.custom-guide-trigger {
  background: transparent;
  color: #ff8a3d;                /* THIRSTLOCK orange */
  border: 1px solid #ff8a3d;     /* thin orange border */
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-block;

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Hover: faint orange glow */
.custom-guide-trigger:hover {
  background-color: rgba(255, 138, 61, 0.12);
  box-shadow: 0 0 12px rgba(255, 138, 61, 0.45);
}

/* Remove default focus outline and replace with orange ring */
.custom-guide-trigger:focus-visible {
  outline: 2px solid #ffb733;
  outline-offset: 3px;
}













