/* Vector product page styles.
   Colour rule: page backgrounds are shades of white (--white, --paper, --paper-2, --paper-3)
   with black type (--text), same as home.css; navy (--navy) is the brand accent (header,
   footer, .eyebrow, .text-link — both in base.css).
   .section, .section-head, .eyebrow, .text-link, .btn all come from base.css. */

/* ================= HERO ================= */
.product-hero{
  position:relative;
  background:var(--paper-3);
  overflow:hidden;
}
.product-hero-media img{
  width:100%;
  height:clamp(280px, 38.2vw, 728px); /* native asset is 1905x728 */
  object-fit:cover;
  object-position:62% 50%;
}
.product-hero-overlay{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  align-items:flex-end;
  padding-bottom:40px;
  pointer-events:none; /* only the panel itself should catch clicks */
}
.product-hero-panel{
  pointer-events:auto;
  width:min(460px, 100%);
  padding:34px 34px 30px;
  background:var(--white);
  box-shadow:0 1px 4px rgba(0,0,0,.14);
}
.product-hero-panel h1{
  margin-top:14px;
  font-family:var(--font-head);
  font-weight:800;
  font-size:clamp(38px, 5vw, 60px);
  line-height:1;
  letter-spacing:-0.02em;
  color:var(--black);
}
.product-hero-lead{
  margin-top:14px;
  max-width:42ch;
  font-size:14px;
  line-height:1.55;
  color:var(--text-2);
}
.product-hero-specs{
  display:flex;
  gap:28px;
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid var(--line);
}
.product-hero-specs dt{
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--text-3);
}
.product-hero-specs dd{
  margin-top:4px;
  font-size:14px;
  font-weight:700;
  line-height:1.35;
  max-width:22ch;
}
.usp-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:20px;
  list-style:none;
}
.usp-list li{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 12px;
  font-size:12px;
  font-weight:700;
  color:var(--text);
  border:1px solid var(--line);
}
.usp-list svg{width:13px;height:13px;flex-shrink:0;color:var(--text);}
.product-hero-ctas{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:26px;
}

/* ================= VIDEO ================= */
.video-frame{
  position:relative;
  aspect-ratio:16/9;
  background:var(--paper-3);
  border:1px solid var(--line);
  overflow:hidden;
}
.video-frame iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.video-caption{
  max-width:760px;
  margin:24px auto 0;
  text-align:center;
}
.video-caption p{
  font-size:14.5px;
  line-height:1.6;
  color:var(--text-2);
}
.video-caption p + p{margin-top:6px;}

/* ================= FEATURES ================= */
.features-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}
.feature-card{
  padding:30px 26px;
  background:var(--white);
  border:1px solid var(--line);
}
.feature-icon{
  width:30px;
  height:30px;
  margin-bottom:18px;
  color:var(--text);
}
.feature-title{
  font-family:var(--font-head);
  font-size:18px;
  font-weight:700;
  letter-spacing:-0.01em;
  line-height:1.25;
}
.feature-desc{
  margin-top:10px;
  font-size:13.5px;
  line-height:1.55;
  color:var(--text-2);
}

/* ================= TECHNICAL SPECIFICATION ================= */
.spec-block{margin-top:44px;}
.spec-block:first-of-type{margin-top:8px;}
.spec-block h3{
  font-family:var(--font-head);
  font-size:18px;
  font-weight:700;
  letter-spacing:-0.01em;
  margin-bottom:14px;
  color:var(--black);
}
.spec-table-wrap{
  overflow-x:auto;
  border:1px solid var(--line);
}
.spec-table{
  width:100%;
  min-width:760px;
  border-collapse:collapse;
}
.spec-table th,
.spec-table td{
  padding:12px 16px;
  font-size:13px;
  line-height:1.4;
  text-align:left;
  white-space:nowrap;
  border-bottom:1px solid var(--line);
}
.spec-table thead th{
  background:var(--text);
  color:var(--white);
  font-weight:700;
  font-size:12px;
}
.spec-table tbody th{
  font-weight:700;
  background:var(--paper-2);
  position:sticky;
  left:0;
}
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td{border-bottom:none;}
.spec-notes{
  list-style:none;
  margin-top:16px;
  font-size:12px;
  line-height:1.6;
  color:var(--text-3);
}
.spec-notes li{margin-top:4px;}
.accessory-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  list-style:none;
}
.accessory-tags li{
  padding:8px 14px;
  font-size:12.5px;
  font-weight:700;
  color:var(--text);
  border:1px solid var(--text);
}

/* ================= APPLICATIONS ================= */
.applications-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:20px;
}
.app-card{
  padding:30px 28px;
  background:var(--white);
  border:1px solid var(--line);
}
.app-title{
  margin-top:16px;
  font-family:var(--font-head);
  font-size:20px;
  font-weight:700;
  letter-spacing:-0.01em;
  line-height:1.25;
}
.app-desc{
  margin-top:10px;
  font-size:13.5px;
  line-height:1.55;
  color:var(--text-2);
}

/* ================= GALLERY (carousel; peeks off the right edge like the home page carousels) ================= */
.gallery-section{overflow:hidden;}
#galleryCarousel{--pv:4.3;--gap:14px;}
.gallery-item{
  aspect-ratio:4/3;
  overflow:hidden;
  background:var(--paper-3);
  border:1px solid var(--line);
}
.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .6s cubic-bezier(.22,1,.36,1);
}
.gallery-item:hover img{transform:scale(1.06);}
.gallery-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-top:22px;
}

/* ================= SUPPORT & SERVICES (dark focus section) ================= */
.link-inline{
  font-weight:700;
  color:var(--text);
  text-decoration:underline;
  text-underline-offset:3px;
}
.link-inline:hover{color:var(--text-2);}
.support-focus{
  background:var(--text);
  color:var(--white);
}
.support-focus .eyebrow{color:var(--white);border-color:var(--white);}
.support-focus .section-head h2{color:var(--white);}
.support-focus .section-head p{color:var(--ink-70);}
.btn-on-dark{
  background:var(--white);
  color:var(--text);
  border:1px solid var(--white);
  flex-shrink:0;
}
.btn-on-dark:hover{background:transparent;color:var(--white);}
.support-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.support-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  padding:34px 20px;
  text-align:center;
  background:var(--white);
}
.support-figure{
  font-family:var(--font-head);
  font-size:clamp(28px, 3vw, 36px);
  font-weight:800;
  letter-spacing:-0.02em;
  color:var(--black);
}
.support-label{
  max-width:20ch;
  font-size:12.5px;
  line-height:1.4;
  color:var(--text-2);
}

/* ================= OUR PORTFOLIO ================= */
/* 5 equal columns on desktop; the 5th (fixed, DOM-last) card always lands at the right. */
.portfolio-grid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:14px;
}
.portfolio-card{
  display:flex;
  flex-direction:column;
  background:var(--white);
  border:1px solid var(--line);
  transition:border-color .2s ease;
}
.portfolio-card:hover{border-color:var(--text);}
.portfolio-media{
  display:block;
  aspect-ratio:1/1;
  overflow:hidden;
  background-color:var(--paper-3);
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 64px);
}
.portfolio-media img{
  width:100%;
  height:100%;
  object-fit:contain;
  transition:transform .6s cubic-bezier(.22,1,.36,1);
}
.portfolio-card:hover .portfolio-media img{transform:scale(1.05);}
.portfolio-body{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:16px 16px 18px;
}
.portfolio-name{
  font-family:var(--font-head);
  font-size:15px;
  font-weight:700;
  letter-spacing:-0.005em;
  color:var(--black);
}
.portfolio-usp{
  font-size:12px;
  line-height:1.4;
  color:var(--text-3);
}
/* fixed "view all" card: same visual language as the home page's pinned event card */
.portfolio-card--all{
  padding:20px 22px;
  border-top:4px solid var(--text);
  justify-content:space-between;
}
.portfolio-all-eyebrow{
  align-self:flex-start;
  padding:5px 10px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  border:1px solid var(--text);
}
.portfolio-all-title{
  margin-top:16px;
  font-family:var(--font-head);
  font-size:19px;
  font-weight:800;
  line-height:1.2;
  letter-spacing:-0.01em;
  color:var(--black);
}
.portfolio-all-cta{
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  gap:10px;
  margin-top:20px;
  padding:10px 16px;
  font-size:13px;
  font-weight:700;
  color:var(--white);
  background:var(--text);
  transition:transform .2s ease;
}
.portfolio-all-cta svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.5;transition:transform .2s ease;}
.portfolio-card--all:hover .portfolio-all-cta svg{transform:translateX(4px);}

/* ================= RESPONSIVE ================= */
@media (max-width:1100px){
  .features-grid{grid-template-columns:repeat(2, 1fr);}
  #galleryCarousel{--pv:3.3;}
  .portfolio-grid{grid-template-columns:repeat(3, 1fr);}
}

@media (max-width:980px){
  .product-hero-media img{height:clamp(320px, 56vw, 480px);}
  .product-hero-panel{padding:28px 26px 24px;}
  #galleryCarousel{--pv:2.3;}
}

@media (max-width:760px){
  .product-hero{display:flex;flex-direction:column;}
  .product-hero-media img{height:260px;}
  .product-hero-overlay{
    position:static;
    padding-bottom:0;
    display:block;
  }
  .product-hero-panel{
    width:100%;
    box-shadow:none;
    border-top:1px solid var(--line);
  }
  .applications-grid{grid-template-columns:1fr;}
  .support-grid{grid-template-columns:repeat(2, 1fr);}
  /* more cards than fit: scroll sideways instead of wrapping, so the fixed card stays at the end */
  .portfolio-grid{
    grid-template-columns:none;
    grid-auto-flow:column;
    grid-auto-columns:minmax(220px, 70%);
    overflow-x:auto;
    padding-bottom:4px;
  }
}

@media (max-width:640px){
  .features-grid{grid-template-columns:1fr;}
  .product-hero-specs{flex-direction:column;gap:14px;}
  .product-hero-ctas .btn{justify-content:center;}
  #galleryCarousel{--pv:1.3;}
}
