/* site-extra.css (v15)
   Loaded after style.css. Enhances CTAs/buttons and ensures images "scale to fit".
*/


/* Hero imagery alignment
   - Keep existing sizing rules from style.css/templates
   - Ensure background-based hero imagery sits to the right, matching the requested layout
*/
.hero{
  background-position: right center !important;
  background-repeat: no-repeat;
}

:root{
  --muted: rgba(71,85,105,0.95);
  --ink: #052f6d;
  --brand: #0C5ADB;
  --brand2:#1E80FB;
}

/* NAV CTA buttons */
nav ul{
  align-items:center;
}
nav ul li a.nav-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  font-weight:800;
  letter-spacing:0.01em;
  line-height:1;
  background: linear-gradient(135deg, rgba(255,255,255,0.20), rgba(255,255,255,0.10));
  border:1px solid rgba(255,255,255,0.30);
  color:#fff;
  box-shadow:0 10px 24px rgba(2,18,46,0.18);
  transition: transform 160ms ease, box-shadow 200ms ease, background 200ms ease, filter 200ms ease;
}
nav ul li a.nav-cta:hover,
nav ul li a.nav-cta:focus{
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.12));
  box-shadow: 0 14px 34px rgba(2,18,46,0.22);
  color:#fff;
}
nav ul li a.nav-cta.secondary{
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  border-color: rgba(255,255,255,0.92);
}
nav ul li a.nav-cta.secondary:hover,
nav ul li a.nav-cta.secondary:focus{
  background:#fff;
  color: var(--ink);
}

/* Ghost / outline CTA (e.g., Logout) */
nav ul li a.nav-cta.ghost{
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.42);
  box-shadow: none;
  font-weight: 750;
}
nav ul li a.nav-cta.ghost:hover,
nav ul li a.nav-cta.ghost:focus{
  background: rgba(255,255,255,0.14);
  color:#fff;
  box-shadow:none;
}

/* Make all .btn look premium site-wide (not just hero) */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
  cursor:pointer;
  user-select:none;
  padding:12px 22px;
  border-radius:999px;
  font-weight:800;
  letter-spacing:0.01em;
  color:#fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
  border:1px solid rgba(255,255,255,0.16);
  box-shadow:0 14px 36px rgba(12,90,219,0.22);
  transition: transform 160ms ease, box-shadow 220ms ease, filter 220ms ease;
}
.btn:hover{ transform: translateY(-2px); filter:saturate(1.04); box-shadow:0 18px 48px rgba(12,90,219,0.28); }
.btn:active{ transform: translateY(0); box-shadow:0 12px 30px rgba(12,90,219,0.20); }
.btn.secondary{
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  border: 1px solid rgba(5,47,109,0.16);
  box-shadow: 0 14px 34px rgba(2,18,46,0.10);
}
.btn.secondary:hover{ box-shadow:0 18px 48px rgba(2,18,46,0.14); }

/* Form buttons */
button,
input[type="submit"]{
  border-radius:999px !important;
  font-weight:800;
}

.series-card img,
.product-card img{
  object-fit: contain !important;
  background: #ffffff;
}
.feature-image{
  object-fit: contain;
}

/* Table reuse for machine specs & portal tables */
.table{
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  overflow:hidden;
  border-radius: 12px;
}
.table th, .table td{
  border-bottom: 1px solid #e4eaf2;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.table th{ color:#052f6d; font-weight:800; background:#f2f6ff; }
.table tr:last-child td{ border-bottom:none; }

/* Accessibility focus */
nav ul li a:focus,
.btn:focus,
button:focus,
.floating-quote:focus{
  outline:none;
  box-shadow: 0 0 0 4px rgba(203,220,255,0.35);
}

/* Hero kicker */
.kicker{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  font-weight:800;
  letter-spacing:0.02em;
  text-transform:none;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.26);
  color:#fff;
  margin: 0 0 12px 0;
}


/* Simple progress bar (admin puller) */
.progress{
  width:100%;
  height:12px;
  border-radius:999px;
  background: rgba(12,90,219,0.14);
  overflow:hidden;
  border: 1px solid rgba(12,90,219,0.18);
}
.progress > div{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(12,90,219,0.75), rgba(12,90,219,1));
  border-radius:999px;
  transition: width 240ms ease;
}
.progress > div.indeterminate{
  position: relative;
  animation: pullIndeterminate 1.1s infinite linear;
}
@keyframes pullIndeterminate{
  0% { transform: translateX(-60%); }
  100% { transform: translateX(220%); }
}



/* Small statistic pill (admin + utility) */
.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border:1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  background:#ffffff;
  color: #0b1f3a;
  font-size: 0.85rem;
}


/* Range picker dropdown (Products pages) */
.range-picker{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin: 12px 0 18px;
}
.range-picker-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,0.16);
  border:1px solid rgba(255,255,255,0.26);
  color:#fff;
  font-weight:800;
  font-size:0.92rem;
}
.range-picker-control{
  position:relative;
  display:inline-flex;
  align-items:center;
}
.range-picker-select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding: 10px 44px 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.36);
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-weight:800;
  min-width: 220px;
  box-shadow: 0 12px 28px rgba(2,18,46,0.12);
  cursor:pointer;
}
.range-picker-select:focus{
  outline:none;
  box-shadow: 0 0 0 4px rgba(203,220,255,0.35), 0 12px 28px rgba(2,18,46,0.12);
}
.range-picker-chevron{
  position:absolute;
  right: 14px;
  pointer-events:none;
  color: rgba(5,47,109,0.80);
  font-size: 14px;
  font-weight:900;
}
.range-picker-hint{
  color: rgba(255,255,255,0.90);
  font-size: 0.86rem;
  font-weight:600;
}
@media (max-width: 520px){
  .range-picker-select{ min-width: 100%; width: 100%; }
  .range-picker-control{ width: 100%; }
  .range-picker{ align-items:stretch; }
}

/* ============================================================
   Products hero: de-cluttered controls
   ============================================================ */
.hero-products .hero-lead{
  margin: 10px 0 0;
  max-width: 70ch;
  opacity: .92;
  line-height: 1.6;
}
.hero-products .hero-tools{
  margin-top: 14px;
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.hero-products .hero-tool{
  display:grid;
  gap: 6px;
}
.hero-products .hero-tool-label{
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .85;
}
.hero-products .hero-pillgroup{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hero .range-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 9px 12px;
  border-radius: 999px;
  text-decoration:none;
  font-weight: 950;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: #fff;
  line-height: 1;
}
.hero .range-pill:hover{
  background: rgba(255,255,255,0.18);
}
.hero .range-pill.active{
  background: #fff;
  color: #0b2f75;
  border-color: rgba(255,255,255,0.65);
}

/* If your hero background is light (e.g. white), invert the pills */
.hero.hero-basic .range-pill{
  border-color: rgba(0,0,0,0.14);
  background: rgba(0,0,0,0.04);
  color: #0b2f75;
}
.hero.hero-basic .range-pill:hover{ background: rgba(0,0,0,0.06); }
.hero.hero-basic .range-pill.active{
  background: rgba(11,47,117,0.92);
  color: #fff;
  border-color: rgba(11,47,117,0.25);
}

.hero-products .range-picker-control--hero{
  height: 44px;
  min-width: 220px;
}
.hero-products .range-picker-select{
  padding: 0 38px 0 12px;
  height: 44px;
}
.hero-products .hero-search-row{
  display:flex;
  gap: 10px;
  align-items:center;
}
.hero-products .hero-search-row input{
  min-width: 240px;
}
@media (max-width: 640px){
  .hero-products .hero-search-row input{ min-width: 0; width: 100%; }
}
