/* ============================================
   Secuble — Page-specific styles
   ============================================ */

/* ---------- About: products-include band ---------- */
.products-include-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: none;
}
/* Blurred server-room backdrop (same image as the Products page hero) */
.products-include-band::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: url("../assets/img/banners/hero-products.jpg") center / cover no-repeat;
  filter: blur(12px) brightness(.8);
  z-index: -2;
}
/* Deep blue veil keeps the focus on the copy */
.products-include-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 32, 68, .60) 0%, rgba(3, 32, 68, .76) 100%);
  z-index: -1;
}
.products-include-band .section-head h2 { color: var(--white); }
.products-include-band .chip {
  background: rgba(255, 255, 255, .92);
  color: var(--blue-700);
}
.products-include-band .btn--primary { background: var(--white); color: var(--blue-700); }
.products-include-band .btn--primary:hover { background: var(--blue-100); color: var(--blue-700); }

/* ---------- Home: key facts ---------- */
.facts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-3);
  text-align: center;
}
.fact-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 50%;
}
.fact-icon svg { width: 32px; height: 32px; }
.fact-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue-700);
}
.fact-label { font-size: var(--fs-small); }
.fact-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-700);
  margin-top: var(--sp-2);
}

/* ---------- Clients: stats highlights ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-3);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.stat-number {
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--blue-700);
  letter-spacing: -0.02em;
}
.stat-title {
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-900);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--ink-600);
  margin-top: var(--sp-1);
}

/* ---------- Products: quote CTA banner ---------- */
.quote-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-4);
  background: linear-gradient(120deg, var(--blue-700) 0%, var(--blue-900) 100%);
  color: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.quote-cta-body { flex: 1 1 320px; }
.quote-cta-body h2 {
  color: var(--white);
  margin: 0 0 var(--sp-2);
}
.quote-cta-body p {
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 1.05rem;
}
.quote-cta .btn {
  flex: 0 0 auto;
  background: var(--white);
  color: var(--blue-700);
  font-weight: 700;
}
.quote-cta .btn:hover { background: var(--blue-100); color: var(--blue-700); }

/* Applications block: subtle gray backdrop to separate it from the preceding content */
#applications { background: var(--gray-100); }

/* ---------- App icon tiles ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
}
.app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-3);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-card);
  text-align: center;
  transition: background .2s ease, color .2s ease;
}
.app-tile svg { width: 48px; height: 48px; color: var(--blue-700); transition: color .2s ease; }
.app-tile:hover { background: var(--blue-700); color: var(--white); }
.app-tile:hover svg { color: var(--white); }
.app-tile-label { font-size: var(--fs-small); font-weight: 600; color: inherit; }

/* ---------- Home: reach / map ---------- */
.reach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}
.reach-map {
  background: var(--blue-100);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.reach-map img { width: 100%; height: auto; }
.reach-cities { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-top: var(--sp-2); }
.map-note { font-size: 0.75rem; color: var(--ink-600); margin-top: var(--sp-1); }

/* ---------- About ---------- */
.breadcrumb {
  padding-block: var(--sp-2);
  font-size: var(--fs-small);
  color: var(--ink-600);
}
.breadcrumb a { color: var(--ink-600); text-decoration: underline; }
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}
.two-col-media {
  background: var(--blue-100);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.two-col-media img { width: 100%; height: auto; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.value-card {
  padding: var(--sp-4);
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.value-card svg { width: 44px; height: 44px; color: var(--accent); margin-inline: auto; margin-bottom: var(--sp-2); }
.value-card h3 { color: var(--blue-700); }

/* ---------- Products ---------- */
.products-section .card-grid { transition: opacity .25s ease; }
.products-section.is-filtering .card-grid { opacity: 0; transform: scale(.98); }
.product-card.is-hidden { display: none; }

/* ---------- Clients ---------- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
}
.client-tile {
  display: grid;
  place-items: center;
  gap: var(--sp-2);
  align-content: center;
  min-height: 96px;
  padding: var(--sp-2);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-card);
  text-align: center;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-600);
}
.client-tile img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Carousel */
.carousel { position: relative; max-width: 820px; margin-inline: auto; overflow: hidden; }
.carousel-track { display: flex; transition: transform .45s ease; }
.carousel-slide {
  flex: 0 0 100%;
  padding: var(--sp-4);
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.carousel-slide blockquote { margin: 0 0 var(--sp-2); font-size: 1.05rem; color: var(--ink-900); }
.carousel-slide cite { font-style: normal; font-size: var(--fs-small); color: var(--ink-600); }
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.carousel-arrow {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--white);
  color: var(--blue-700);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
}
.carousel-arrow:hover { background: var(--blue-100); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 10px; height: 10px;
  padding: 0;
  background: var(--gray-200);
  border: none;
  border-radius: 50%;
}
.carousel-dot.is-active { background: var(--blue-700); }

/* ---------- Join us ---------- */
.position-list .accordion-panel-inner ul { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  max-width: 760px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field input,
.form-field select,
.form-field textarea { max-width: 100%; }
.form-field input[type="file"] { width: 100%; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: var(--fs-small); font-weight: 600; color: var(--ink-900); }
.form-field label.is-required::after { content: " *"; color: var(--accent); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink-900);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-card);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--blue-700);
  outline-offset: 1px;
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: #c0392b; }
.field-error {
  font-size: 0.8rem;
  color: #c0392b;
  min-height: 1em;
}
.form-consent { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-small); }
.form-consent input { width: 18px; height: 18px; margin-top: 2px; }
.form-success {
  display: none;
  padding: var(--sp-3);
  background: #e8f6ec;
  border: 1px solid #b7dfc2;
  border-radius: var(--radius-card);
  color: #1e6b3a;
}
.form-success.is-visible { display: block; }
.form-success a { color: inherit; font-weight: 600; text-decoration: underline; }
button[type="submit"]:disabled { opacity: .6; cursor: not-allowed; }

/* Privacy / Legal pages */
.legal-content { max-width: 860px; margin-inline: auto; }
.legal-content h2 { color: var(--blue-700); margin-top: var(--sp-5); font-size: 1.2rem; }
.legal-content p, .legal-content li { line-height: 1.8; }
.legal-content ul { padding-left: 1.2em; }
.legal-content .legal-updated { color: var(--ink-600); font-size: var(--fs-small); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-6);
  align-items: start;
}
.contact-info h3 { color: var(--blue-700); }
.contact-info dt { font-weight: 600; color: var(--ink-900); font-size: var(--fs-small); }
.contact-info dd { margin: 0 0 var(--sp-2); }
.contact-block { margin-bottom: var(--sp-3); }

/* Demo toast */
.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 300;
  padding: 10px 20px;
  background: var(--ink-900);
  color: var(--white);
  font-size: var(--fs-small);
  border-radius: var(--radius-card);
  transform: translate(-50%, 16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.demo-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .client-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .facts-row, .value-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .reach-grid, .two-col, .contact-layout { grid-template-columns: 1fr; }
  .two-col-media, .reach-map { order: -1; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}


/* ============================================
   Search page
   ============================================ */
.hero-content .search-box--large {
  width: 100%;
  max-width: 640px;
  margin: var(--sp-4) auto 0;
}
.search-box--large input {
  flex: 1;
  width: auto;
  padding: 13px 16px;
  font-size: 1rem;
  border-radius: 4px 0 0 4px;
}
.search-box--large button {
  width: 52px;
  border-radius: 0 4px 4px 0;
}
.search-box--large button svg { width: 20px; height: 20px; }

.search-summary { margin-bottom: var(--sp-2); }
.search-summary h2 {
  margin: 0 0 4px;
  font-size: var(--fs-h3);
  color: var(--blue-900);
}
.search-summary p { margin: 0; color: var(--ink-600); font-size: var(--fs-small); }

.search-suggest-label {
  margin: 0 0 var(--sp-1);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--ink-600);
}
.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-bottom: var(--sp-4);
}
.search-suggestions[hidden],
.search-suggest-label[hidden] { display: none; }
.search-suggestion {
  padding: 6px 14px;
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--blue-700);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.search-suggestion:hover,
.search-suggestion:focus-visible {
  color: var(--white);
  background: var(--blue-700);
  border-color: var(--blue-700);
}

.search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-2);
}
.search-result {
  position: relative;
  display: block;
  padding: var(--sp-3);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  color: var(--ink-900);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.search-result:hover,
.search-result:focus-visible {
  transform: translateY(-3px);
  border-color: var(--blue-600);
  box-shadow: var(--shadow-card-hover);
  color: var(--ink-900);
  text-decoration: none;
}
.search-result-badge {
  display: inline-block;
  margin-bottom: var(--sp-1);
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: var(--radius-pill);
}
.search-result h3 {
  margin: 0 0 6px;
  font-size: var(--fs-h3);
  color: var(--blue-900);
}
.search-result p {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--ink-600);
}
.search-result-more {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--blue-700);
}
.search-result mark {
  padding: 0 2px;
  color: var(--blue-900);
  background: #ffe8a3;
  border-radius: 2px;
}
.search-empty {
  grid-column: 1 / -1;
  padding: var(--sp-8) var(--sp-2);
  text-align: center;
  background: var(--gray-100);
  border-radius: var(--radius-card);
}
.search-empty h3 { margin: 0 0 var(--sp-1); color: var(--blue-900); }
.search-empty p { margin: 0 0 var(--sp-3); color: var(--ink-600); }
