/* =========================================================
   PRODUCT CATEGORY PAGES (defense / industrial / commercial) + Our Products landing
   ========================================================= */

/* ---- Category hero: photo on the right half, words on solid navy on the left ---- */
.cat-hero {
  position: relative;
  overflow: hidden;
  background: var(--clr-navy);
  color: #fff;
}
.cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cat-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,31,75,0.97) 0%, rgba(11,31,75,0.93) 45%, rgba(11,31,75,0.35) 100%);
}
.cat-hero-inner {
  position: relative;
  z-index: 1;
  padding-block: var(--space-3xl) var(--space-2xl);
}
.cat-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: var(--fw-black);
  line-height: 1.1;
  margin: var(--space-md) 0;
}
.cat-hero p { max-width: 560px; color: rgba(255,255,255,0.88); font-size: 1.05rem; }
.cat-hero .cat-count { margin-top: var(--space-md); font-weight: var(--fw-semi); color: var(--clr-sky); }
.cat-hero-tag { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: var(--space-lg); }
.crumbs a { color: var(--clr-sky-light); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---- Category switcher ---- */
.cat-switch { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-xl); }
.cat-pill {
  padding: 0.55em 1.2em;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--clr-text);
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cat-pill:hover { border-color: var(--clr-bright); color: var(--accent-text); }
.cat-pill.active { background: var(--clr-royal); border-color: var(--clr-royal); color: #fff; }

/* ---- Cards (square photos, no cropping of the product) ---- */
.cat-section .product-grid { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.cat-section .product-card-img-wrap { height: auto; aspect-ratio: 1 / 1; }
.cat-section .product-card-img-wrap img { object-fit: cover; }
.cat-section .product-card-body { flex: 1; display: flex; flex-direction: column; }
.cat-section .product-card-btn { margin-top: auto; }
.product-card-model { font-size: 0.8rem; color: var(--clr-text-mute); margin: -0.2rem 0 0.4rem; }
.product-card-key { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 1rem; padding: 0; }
.product-card-key li {
  font-size: 0.75rem; font-weight: var(--fw-medium);
  padding: 0.25em 0.7em; border-radius: var(--radius-full);
  background: var(--surface-alt); color: var(--accent-text); border: 1px solid var(--border);
}

/* ---- Other categories strip ---- */
.cat-others { padding: var(--space-3xl) 0; background: var(--surface-alt); }
.cat-others-title { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: var(--fw-bold); color: var(--heading); margin-bottom: var(--space-xl); }
.cat-others-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); }
.cat-other { position: relative; display: block; height: 170px; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: #fff; box-shadow: var(--shadow-md); }
.cat-other img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.cat-other:hover img { transform: scale(1.06); }
.cat-other-text { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-lg); background: linear-gradient(to top, rgba(11,31,75,0.95), rgba(11,31,75,0)); }
.cat-other-text strong { display: block; font-size: 1.15rem; }
.cat-other-text span span, .cat-other-text > span { font-size: 0.85rem; opacity: 0.85; }

/* ---- Our Products landing: three category tiles ---- */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-xl); }
.cat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s, transform 0.3s var(--ease-out); }
.cat-tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cat-tile-img { display: block; height: 200px; overflow: hidden; }
.cat-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile-body { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); flex: 1; }
.cat-tile-body h2 { font-size: 1.35rem; color: var(--heading); }
.cat-tile-lead { color: var(--clr-text-mute); font-size: 0.95rem; }
.cat-tile-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.cat-tile-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--border); }
.cat-tile-list { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; color: var(--clr-text); display: grid; gap: 0.3rem; }
.cat-tile-list li { padding-left: 1.1rem; position: relative; }
.cat-tile-list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--clr-bright); }
.cat-tile-list .more { color: var(--clr-text-mute); }
.cat-tile .btn { margin-top: auto; align-self: flex-start; }

@media (max-width: 700px) {
  .cat-hero::after { background: linear-gradient(180deg, rgba(11,31,75,0.95) 0%, rgba(11,31,75,0.85) 100%); }
  .cat-section .product-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   PHOTO SECTIONS used on Home, Company and Capabilities
   ========================================================= */
.photo-section { padding: var(--space-3xl) 0; }
.photo-section.alt { background: var(--surface-alt); }
.photo-head { max-width: 720px; margin-bottom: var(--space-2xl); }
.photo-head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: var(--fw-bold); color: var(--heading); margin: var(--space-sm) 0; }
.photo-head p { color: var(--clr-text-mute); }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-lg); }
.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow 0.3s, transform 0.3s var(--ease-out); }
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.project-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.project-card div { padding: var(--space-md) var(--space-lg) var(--space-lg); }
.project-card strong { display: block; color: var(--heading); font-size: 1rem; line-height: 1.35; }
.project-card span { font-size: 0.85rem; color: var(--clr-text-mute); }

.trial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-md); }
.trial-grid figure { margin: 0; }
.trial-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.trial-cap { margin-top: var(--space-md); font-size: 0.9rem; color: var(--clr-text-mute); }

.scope-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-lg); }
.scope-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.scope-card img { width: 100%; height: 190px; object-fit: cover; background: #EAF1FA; }
.scope-card div { padding: var(--space-lg); }
.scope-card h3 { font-size: 1.05rem; color: var(--heading); margin-bottom: 0.4rem; }
.scope-card p { font-size: 0.92rem; color: var(--clr-text-mute); }
.scope-card a { display: inline-block; margin-top: 0.7rem; font-weight: var(--fw-semi); font-size: 0.9rem; color: var(--clr-bright); text-decoration: none; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--space-md); margin-top: var(--space-xl); }
.facts div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-md) var(--space-lg); }
.facts dt { font-size: 0.8rem; color: var(--clr-text-mute); }
.facts dd { margin: 0.2rem 0 0; font-weight: var(--fw-semi); color: var(--heading); }

/* =========================================================
   QUOTE BAND (replaces the plain "get in touch" strip on product pages)
   ========================================================= */
.quote-band { padding: var(--space-3xl) 0; background: var(--surface); }
.quote-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
  padding: var(--space-2xl) var(--space-2xl);
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, #0B1F4B 0%, #1E4FA3 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.quote-card::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127,184,232,0.35), rgba(127,184,232,0) 70%);
}
.quote-text { position: relative; flex: 1 1 320px; max-width: 520px; }
.quote-text h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: var(--fw-bold); line-height: 1.2; margin-bottom: var(--space-sm); color: #fff; }
.quote-text p { color: rgba(255,255,255,0.85); font-size: 1rem; }
.quote-photos { position: relative; display: flex; }
.quote-photos img {
  width: 76px; height: 76px;
  border-radius: 50%;
  object-fit: cover;
  background: #EAF1FA;
  border: 3px solid #1E4FA3;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  margin-left: -18px;
}
.quote-photos img:first-child { margin-left: 0; }
.quote-btn { position: relative; padding: 0.9em 2.2em; font-size: 1.05rem; background: #fff; color: #0B1F4B; background-image: none; }
.quote-btn:hover { background: var(--clr-sky-light); color: #0B1F4B; }
@media (max-width: 700px) {
  .quote-card { padding: var(--space-xl) var(--space-lg); text-align: left; }
  .quote-btn { width: 100%; text-align: center; justify-content: center; }
}

/* =========================================================
   CAPABILITIES: summary cards that open a full pop-up
   ========================================================= */
.cap-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--space-xl); }
.cap-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s, transform 0.3s var(--ease-out); }
.cap-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cap-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); }
.cap-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #EAF1FA; }
.cap-body { padding: var(--space-lg) var(--space-xl) var(--space-xl); display: flex; flex-direction: column; gap: var(--space-md); flex: 1; }
.cap-head { display: flex; align-items: center; gap: var(--space-md); }
.cap-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; background: var(--grad-btn); }
.cap-head h3 { font-size: 1.25rem; color: var(--heading); line-height: 1.2; }
.cap-head p { font-size: 0.88rem; color: var(--clr-text-mute); }
.cap-gist { color: var(--clr-text); }
.cap-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.cap-points li { position: relative; padding-left: 1.4rem; font-size: 0.95rem; }
.cap-points li::before { content: '✓'; position: absolute; left: 0; color: var(--clr-bright); font-weight: var(--fw-bold); }
.cap-card .btn { margin-top: auto; align-self: flex-start; }

/* =========================================================
   SEARCH, QUOTE BUTTONS, DATASHEET PANEL
   ========================================================= */
.cat-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); margin: 0 0 var(--space-xl); }
.cat-search { flex: 1 1 320px; max-width: 520px; position: relative; display: block; }
.cat-search.big { max-width: 640px; }
.cat-search input {
  width: 100%; padding: 0.8em 1.2em 0.8em 2.8em; border-radius: 9999px;
  border: 1.5px solid var(--border); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237a8aa8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 1em center;
  color: var(--clr-text); font: inherit; font-size: 0.95rem;
}
.cat-search input:focus { outline: none; border-color: var(--clr-bright); box-shadow: 0 0 0 3px rgba(47,128,208,0.2); }
.cat-count-live { font-size: 0.85rem; color: var(--clr-text-mute); }
.cat-empty { padding: var(--space-xl); border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--clr-text-mute); margin-bottom: var(--space-xl); }
.cat-empty a { color: var(--clr-bright); font-weight: 600; }
.cat-switch { margin-bottom: var(--space-lg); }

.product-card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.product-card-actions .btn { flex: 1 1 auto; justify-content: center; text-align: center; padding-inline: 1em; }
.cat-section .product-card-btn { margin-top: 0; }
[data-add-quote].added { background: #1c7c4d !important; border-color: #1c7c4d !important; color: #fff !important; background-image: none !important; }

.global-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-md); margin-bottom: var(--space-xl); }
.gres { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); text-decoration: none; color: inherit; transition: box-shadow 0.2s, transform 0.2s; }
.gres:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gres img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #EAF1FA; flex-shrink: 0; }
.gres strong { display: block; color: var(--heading); font-size: 0.95rem; line-height: 1.3; }
.gres span { font-size: 0.8rem; color: var(--clr-text-mute); }

.ds-box { display: flex; flex-wrap: wrap; gap: var(--space-lg); align-items: center; padding: var(--space-lg); border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; background: rgba(255,255,255,0.05); }
.ds-icon { width: 64px; height: 78px; border-radius: 8px; display: grid; place-items: center; background: #fff; color: #C62828; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.04em; border-top: 6px solid #C62828; flex-shrink: 0; }
.ds-box h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.ds-box p { font-size: 0.92rem; opacity: 0.85; margin-bottom: 0.9rem; }
.ds-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.profile-dl { margin-top: var(--space-xl); }


/* =========================================================
   SEO CONTENT: intro text, FAQ, product pages, product index
   ========================================================= */
.cat-h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--heading); margin-bottom: var(--space-md); }
.cat-intro { max-width: 820px; margin-bottom: var(--space-xl); }
.cat-intro p { color: var(--clr-text); margin-bottom: var(--space-md); }
.product-card-title a { color: inherit; text-decoration: none; }
.product-card-title a:hover { color: var(--clr-bright); text-decoration: underline; }
.product-card-use { font-size: 0.85rem; color: var(--clr-text-mute); margin: 0 0 0.6rem; }
.product-card-use strong { color: var(--heading); font-weight: 600; }
.product-card-specs { list-style: none; margin: 0 0 1rem; padding: 0; font-size: 0.8rem; color: var(--clr-text-mute); display: grid; gap: 0.2rem; }
.product-card-specs span { color: var(--heading); font-weight: 600; }

.cat-faq { padding: var(--space-3xl) 0; background: var(--surface); }
.cat-faq h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--heading); margin-bottom: var(--space-lg); }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-alt); margin-bottom: 0.7rem; max-width: 900px; }
.faq-item summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; color: var(--heading); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--clr-bright); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 1.2rem 1.1rem; color: var(--clr-text); margin: 0; }

.prod-hero .cat-hero-inner { padding-block: var(--space-2xl) var(--space-xl); }
.prod-model { font-size: 0.95rem; color: var(--clr-sky); margin: -0.4rem 0 0.8rem; }
.prod-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: var(--space-lg); }
.prod-outline { color: #fff; border-color: rgba(255,255,255,0.55); }
.prod-detail, .prod-specs-sec, .prod-ds-sec { padding: var(--space-2xl) 0; background: var(--surface); }
.prod-specs-sec { background: var(--surface-alt); }
.prod-layout { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: var(--space-2xl); align-items: start; }
.prod-media { position: sticky; top: 100px; }
.prod-media > img { width: 100%; height: auto; border-radius: var(--radius-lg); background: #EAF1FA; border: 1px solid var(--border); }
.prod-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.6rem; margin-top: 0.8rem; }
.prod-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); background: #EAF1FA; }
.prod-info h2, .prod-specs-sec h2, .prod-ds-sec h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--heading); margin: var(--space-xl) 0 var(--space-md); }
.prod-info h2:first-child { margin-top: 0; }
.prod-info p { color: var(--clr-text); }
.prod-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0 0; }
.prod-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.prod-list li { position: relative; padding-left: 1.5rem; color: var(--clr-text); }
.prod-list li::before { content: '✓'; position: absolute; left: 0; color: var(--clr-bright); font-weight: 700; }
.prod-apps li::before { content: '→'; }
.prod-specs-sec h2 { margin-top: 0; }
.prod-table-wrap { overflow-x: auto; }
.prod-specs-sec table.spec-table { width: 100%; max-width: 900px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.prod-specs-sec table.spec-table th, .prod-specs-sec table.spec-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); color: var(--clr-text); background: transparent; font-size: 0.95rem; }
.prod-specs-sec table.spec-table th { width: 34%; color: var(--heading); font-weight: 600; }
.ds-box-page { background: var(--surface-alt); border-color: var(--border); }
.ds-box-page h2 { margin: 0 0 0.3rem; }
.ds-box-page p { color: var(--clr-text); opacity: 1; }
.prod-ds-sec .ds-icon { border: 1px solid var(--border); border-top: 6px solid #C62828; }
@media (max-width: 860px) { .prod-layout { grid-template-columns: 1fr; } .prod-media { position: static; } }

.product-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-xl); }
.product-index h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.product-index h3 a { color: var(--heading); text-decoration: none; }
.product-index ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.product-index li a { color: var(--clr-text); text-decoration: none; font-size: 0.92rem; }
.product-index li a:hover { color: var(--clr-bright); text-decoration: underline; }
