/* ============ HERO ============ */
.products-hero{
  position:relative;
  background:linear-gradient(160deg,var(--navy-900) 0%,var(--navy-800) 46%,var(--navy-700) 100%);
  overflow:hidden;
  padding-top:clamp(64px,10vw,110px);
  padding-bottom:clamp(70px,9vw,104px);
}
.products-hero .container{position:relative;z-index:3;}

/* --- full-bleed photo background across the ENTIRE hero section --- */
.hero-photo-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  overflow:hidden;
}
.hero-photo-bg img{
  width:100%;height:100%;
  object-fit:cover;
  object-position:64% 50%;
  position:absolute;inset:0;
  transform-origin:64% 45%;
  animation:heroKenBurns 20s ease-in-out infinite alternate;
  will-change:transform;
}
.hero-photo-bg::after{
  /* dark scrim, strongest over the copy on the left, easing off so the ship stays visible on the right.
     A soft light patch is layered on top across the very top strip only, so the navbar
     (transparent, same as every other page) still has enough contrast for its dark-navy
     logo and links, instead of sitting on a solid block of "blackness". */
  content:"";
  position:absolute;inset:0;
  z-index:1;
  background:
    linear-gradient(180deg, rgba(255,255,255,.5) 0, rgba(255,255,255,.22) 60px, rgba(255,255,255,0) 130px),
    linear-gradient(100deg,
      rgba(6,19,34,.94) 0%,
      rgba(8,23,40,.88) 18%,
      rgba(9,26,44,.66) 34%,
      rgba(10,27,46,.38) 48%,
      rgba(10,27,46,.14) 64%,
      rgba(10,27,46,.05) 80%,
      rgba(10,27,46,0) 100%);
}
.hero-photo-bg::before{
  /* soft top/bottom vignette so the photo grounds into the section rather than cutting hard */
  content:"";
  position:absolute; inset:0;
  z-index:1;
  background:linear-gradient(180deg, rgba(6,19,34,.35) 0%, transparent 20%, transparent 78%, rgba(6,19,46,.4) 100%);
}
@keyframes heroKenBurns{
  0%{transform:scale(1) translate(0,0);}
  100%{transform:scale(1.09) translate(-1.5%,-1%);}
}

/* entrance: photo bg fades/eases in first, text and search panel follow */
.hero-photo-reveal.reveal{
  opacity:0;
  transform:scale(1.04);
  transition:opacity 1.1s var(--ease),transform 1.4s var(--ease);
}
.hero-photo-reveal.reveal.is-visible{opacity:1;transform:scale(1);}

/* search panel eases in just after the headline copy */
.search-panel-reveal.reveal{transition-delay:.16s;}

/* ============ STATS STRIP (overlaps the hero's bottom edge) ============ */
.stats-strip{
  position:relative;
  z-index:5;
  margin-top:-56px;
}
.stats-grid{
  background:#fff;
  border-radius:var(--radius-lg);
  box-shadow:0 24px 60px -20px rgba(10,27,46,.28);
  display:grid;
  grid-template-columns:repeat(4,1fr);
}
.stat-item{
  padding:34px 24px;
  text-align:center;
  border-right:1px solid var(--border);
  position:relative;
}
.stat-item:last-child{border-right:none;}
.stat-icon{
  width:44px;height:44px;
  margin:0 auto 12px;
  color:var(--blue-500);
}
.stat-icon svg{width:100%;height:100%;}
.stat-number{
  font-family:var(--font-display);
  font-size:clamp(28px,3.4vw,38px);
  font-weight:600;
  color:var(--navy-900);
}
.stat-suffix{
  font-family:var(--font-display);
  font-size:clamp(20px,2.4vw,26px);
  color:var(--blue-500);
}
.stat-label{
  margin-top:6px;
  font-size:13.5px;
  color:var(--slate);
  font-weight:500;
}

.hero-breadcrumb{margin-bottom:26px;}
.hero-copy{max-width:600px;}
.hero-copy .eyebrow{color:var(--blue-400);}
.hero-copy .eyebrow::before{background:var(--blue-400);}
.hero-title{
  font-size:45px;
  font-weight:650;
  line-height:1.08;
  text-transform:uppercase;
  color:#fff;
  margin-top:14px;
}
.hero-title em{
  display:block;
  font-style:normal;
  color:var(--blue-400);
  -webkit-text-stroke:0;
}
.hero-sub{
  margin-top:18px;
  color:rgba(255,255,255,.85);
  font-size:14.5px;
  font-weight:400;
  line-height:1.7;
  max-width:52ch;
}

/* --- search panel: rounded top only, sits flush with the hero's bottom edge --- */
.search-panel{
  margin-top:clamp(28px,4vw,44px);
  background:#fff;
  border-radius:var(--radius-md);
  padding:22px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  box-shadow:0 24px 50px -16px rgba(3,12,24,.4);
  position:relative;
  z-index:4;
  max-width:560px;
}
.field{
  position:relative;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  padding:10px 16px 9px;
  transition:border-color .25s ease,box-shadow .25s ease;
}
.field:focus-within{border-color:var(--blue-500);box-shadow:0 0 0 3px rgba(44,108,166,.14);}
.field label{
  display:block;
  font-family:var(--font-display);
  font-size:11px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--slate-light);margin-bottom:2px;
}
.field select,.field input{
  width:100%;border:none;outline:none;background:transparent;
  font-size:16px;font-weight:500;color:var(--navy-900);
  font-family:var(--font-body);padding:2px 22px 2px 0;
  appearance:none;
}
.field::after{
  content:"";
  position:absolute;right:14px;top:50%;
  width:9px;height:9px;
  border-right:2px solid var(--slate-light);
  border-bottom:2px solid var(--slate-light);
  transform:translateY(-65%) rotate(45deg);
  pointer-events:none;
}
.field-search::after{display:none;}
.search-panel .btn{height:100%;padding-left:30px;padding-right:30px;}

.hero-glow{
  position:absolute; inset:0; z-index:0;
  background:radial-gradient(50% 60% at 82% 18%, rgba(44,108,166,.4), transparent 65%);
}

/* ============ INTRO ============ */
.intro-block{
  max-width:820px;
  margin:0 auto;
  text-align:center;
}
.intro-block h2{font-size:clamp(24px,3vw,34px);text-transform:uppercase;margin-top:12px;}
.intro-block p{margin-top:16px;color:var(--slate);font-size:15.5px;line-height:1.75;}

/* ============ CATEGORY / GRID SECTION ============ */
.catalog-section{background:var(--sky-100);padding-bottom:clamp(40px,5vw,64px);}
.catalog-head{
  display:flex;align-items:center;justify-content:space-between;
  gap:24px;flex-wrap:wrap;
  margin-bottom:34px;
}
.catalog-head h2{font-size:clamp(26px,3.4vw,38px);font-weight:700;text-transform:uppercase;margin-top:10px;max-width:560px;color:var(--navy-800);}
.catalog-head p{color:#000000;font-weight:400;margin-top:10px;max-width:44ch;font-size:14.5px;}

.product-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}
.product-card{
  background:#fff;
  border-radius:var(--radius-md);
  overflow:hidden;
  border:1px solid var(--border);
  display:flex;flex-direction:column;
  padding:16px 16px 24px;
  cursor:pointer;
  transition:transform .4s var(--ease),box-shadow .4s var(--ease),border-color .4s ease;
}
.product-card:hover{transform:translateY(-8px);box-shadow:var(--shadow-card-hover);border-color:transparent;}
.card-media{
  position:relative;
  aspect-ratio:4/3;
  overflow:hidden;
  background:var(--sky-100);
  border-radius:var(--radius-sm);
}
.card-media img{
  width:100%;height:100%;
  object-fit:cover;
  position:absolute;inset:0;
  transition:transform .6s var(--ease);
}
.product-card:hover .card-media img{transform:scale(1.08);}
.card-media::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(190deg, transparent 60%, rgba(8,26,46,.4) 100%);
}
.card-body{padding:30px 8px 0;text-align:center;display:flex;flex-direction:column;gap:8px;flex:1;}
.card-title{font-size:17px;font-weight:700;line-height:1.28;text-transform:uppercase;color:var(--navy-800);}
.card-desc{font-size:14px;font-weight:400;color:#000000;line-height:1.6;min-height:42px;}
.card-know-more{
  margin-top:10px;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:var(--font-display);font-size:12.5px;letter-spacing:.08em;text-transform:uppercase;
  color:var(--blue-500);
  cursor:pointer;
}
.card-know-more svg{width:14px;height:14px;transition:transform .3s var(--ease);}
.product-card:hover .card-know-more svg{transform:translateX(5px);}

.no-results{
  grid-column:1/-1;
  text-align:center;
  padding:60px 20px;
  color:var(--slate);
}
.no-results button{margin-top:14px;}

/* --- pagination (sits top-right, inline with the section heading) --- */
.pagination{
  display:flex;align-items:center;
  gap:8px;
  flex:none;
}
.page-btn{
  width:38px;height:38px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#fff;border:1px solid var(--border);
  font-family:var(--font-display);font-size:13.5px;color:var(--navy-800);
  transition:background .3s ease,color .3s ease,transform .3s ease,border-color .3s ease;
}
.page-btn svg{width:15px;height:15px;}
.page-btn:hover:not(:disabled){transform:translateY(-2px);border-color:var(--blue-400);}
.page-btn.is-active{background:var(--navy-900);color:#fff;border-color:var(--navy-900);}
.page-btn:disabled{opacity:.4;cursor:not-allowed;}

/* ============ WHY CHOOSE US / FEATURES ============ */
.features-section{background:#fff;}
.features-head{max-width:620px;margin:0 auto;text-align:center;}
.features-head h2{font-size:clamp(24px,3vw,34px);text-transform:uppercase;margin-top:10px;}
.features-head p{margin-top:12px;color:var(--slate);font-size:15px;line-height:1.7;}
.features-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
  margin-top:44px;
}
.feature-card{
  background:var(--sky-50);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:30px 24px;
  text-align:center;
  transition:transform .4s var(--ease),box-shadow .4s var(--ease),background .4s ease;
}
.feature-card:hover{
  transform:translateY(-8px);
  box-shadow:var(--shadow-card-hover);
  background:#fff;
}
.feature-icon{
  width:56px;height:56px;
  margin:0 auto 18px;
  border-radius:50%;
  background:var(--navy-900);
  color:#fff;
  display:flex;align-items:center;justify-content:center;
  transition:transform .5s var(--ease),background .4s ease;
}
.feature-icon svg{width:26px;height:26px;}
.feature-card:hover .feature-icon{transform:rotate(-8deg) scale(1.08);background:var(--blue-500);}
.feature-card h3{font-size:16.5px;font-weight:700;text-transform:uppercase;margin-bottom:8px;color:var(--navy-800);}
.feature-card p{font-size:14px;font-weight:400;color:#000000;line-height:1.65;}

@media (max-width:960px){
  .features-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:560px){
  .features-grid{grid-template-columns:1fr;}
}
@media (max-width:1180px){
  .product-grid{grid-template-columns:repeat(3,1fr);}
}
@media (max-width:1024px){
  .search-panel{grid-template-columns:1fr;}
  .stats-grid{grid-template-columns:repeat(2,1fr);}
  .stat-item:nth-child(2){border-right:none;}
  .stat-item:nth-child(1),.stat-item:nth-child(2){border-bottom:1px solid var(--border);}
}
@media (max-width:860px){
  .product-grid{grid-template-columns:repeat(2,1fr);}
  .catalog-head{flex-direction:column;align-items:flex-start;}
}
@media (max-width:560px){
  .product-grid{grid-template-columns:1fr;}
  .page-btn{width:42px;height:42px;}
  .hero-title{font-size:34px;}
  /* full-bleed image stays; just deepen the scrim so text keeps reading over a narrower column */
  .hero-photo-bg::after{
    background:linear-gradient(180deg, rgba(6,19,34,.92) 0%, rgba(6,19,34,.86) 55%, rgba(6,19,34,.7) 100%);
  }
  .stats-strip{margin-top:-24px;}
  .stats-grid{grid-template-columns:1fr;}
  .stat-item{border-right:none !important;border-bottom:1px solid var(--border);}
  .stat-item:last-child{border-bottom:none;}
}

/* ============ CTA — video background (products page only) ============
   Same full-bleed-image-with-overlay treatment as the hero, using the
   looping night-ocean clip instead of a static photo. The shared
   .cta-banner rules in base.css still apply (navy base, padding, text
   styles); these rules only add the video layer and drop the anchor icon. */
.cta-video{
  min-height:clamp(320px,42vw,460px);
  display:flex;
  align-items:center;
}
.cta-video .cta-bg{
  opacity:1;
}
.cta-video-el{
  width:100%;height:100%;
  object-fit:cover;
  position:absolute;inset:0;
  opacity:.85;
}
.cta-video .cta-bg::after{
  /* deeper, more even scrim than the default CTA image so the video still reads as "night water" while the copy stays crisp */
  background:linear-gradient(100deg, rgba(6,15,26,.92) 0%, rgba(7,19,32,.8) 32%, rgba(7,19,32,.55) 58%, rgba(7,19,32,.32) 100%);
}
.cta-video .container{
  justify-content:flex-start;
}
.cta-video .cta-text{
  max-width:560px;
}

/* text/CTA fade in on load, matching the hero's entrance timing */
.cta-video .cta-text.reveal{
  transition:opacity 1s var(--ease),transform 1s var(--ease);
}

@media (prefers-reduced-motion: reduce){
  .cta-video-el{display:none;}
  .cta-video .cta-bg{
    background:center/cover no-repeat url('../images/video/cta-waves-poster.jpg');
  }
}
