/* Blue Collar Tech custom styles. */

:root {
  --ink: #0B1B3B;
  --ink-2: #142B5A;
  --brand: #1E63F0;
  --brand-deep: #103E9E;
  --brand-glow: #4F8DFF;
  --soft: #F5F7FB;
  --rule: #E6EAF2;
  --muted: #5A6781;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* ─── Eyebrow (simple, plain text) ─────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow-on-dark {
  color: var(--brand-glow);
}

/* ─── Hero (dark, calm) ────────────────────────────────────── */
.hero-dark {
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, #16357A 0%, #0B1B3B 60%, #08142E 100%);
  color: #fff;
  overflow: hidden;
}
.hero-logo-wrap {
  position: relative;
  display: inline-block;
}
.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(closest-side, rgba(79,141,255,.45), rgba(79,141,255,0) 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}
.hero-logo-wrap > img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.4));
}

/* ─── Sticky nav (always dark blue, fully opaque) ──────────── */
#site-nav {
  background-color: #0B1B3B;
  color: #fff;
  transition: box-shadow .35s ease;
}
#site-nav .nav-link { color: rgba(255,255,255,.78); }
#site-nav .nav-link:hover { color: #fff; }
#site-nav .nav-brand { color: #fff; }
#site-nav .nav-toggle { color: #fff; }
#site-nav .nav-toggle:hover { background: rgba(255,255,255,.1); }

/* Subtle bottom shadow once the user scrolls past the top, for a lifted feel */
#site-nav.is-stuck {
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}

/* Anchor offset under sticky header */
section[id] { scroll-margin-top: 96px; }

/* ─── Reveal-on-scroll ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ─── Section backgrounds (tinted, never flat) ─────────────── */
.section-warm {
  position: relative;
  background:
    radial-gradient(ellipse 90% 55% at 15% 0%,  rgba(30,99,240,.07), transparent 55%),
    radial-gradient(ellipse 80% 50% at 95% 90%, rgba(79,141,255,.05), transparent 60%),
    #FAFBFE;
  isolation: isolate;
}
.section-warm::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(11,27,59,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
  opacity: .6;
  pointer-events: none;
  z-index: 0;
}
.section-warm > * { position: relative; z-index: 1; }

.section-soft {
  position: relative;
  background:
    linear-gradient(180deg, #F4F7FC 0%, #EDF1F8 100%);
  isolation: isolate;
  overflow: hidden;
}
.section-soft::before {
  content: "";
  position: absolute;
  top: -10%; left: -5%;
  width: 50%; height: 60%;
  background: radial-gradient(closest-side, rgba(30,99,240,.10), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.section-soft::after {
  content: "";
  position: absolute;
  bottom: -10%; right: -5%;
  width: 50%; height: 60%;
  background: radial-gradient(closest-side, rgba(79,141,255,.08), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.section-soft > * { position: relative; z-index: 1; }

.band-soft { background-color: var(--soft); }
.band-ink {
  background: linear-gradient(180deg, #0B1B3B 0%, #08142E 100%);
  color: #fff;
}

/* Aurora dark band for the CTA */
.section-aurora {
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 15% 50%, rgba(30,99,240,.45), transparent 55%),
    radial-gradient(ellipse 60% 80% at 85% 50%, rgba(79,141,255,.30), transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(16,62,158,.55), transparent 60%),
    linear-gradient(180deg, #0B1B3B, #08142E);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.section-aurora::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 40%, transparent 90%);
  pointer-events: none;
  z-index: 0;
}
.section-aurora > * { position: relative; z-index: 1; }

/* ─── Cards (richer surface treatment) ─────────────────────── */
.card {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFE 100%);
  border: 1px solid var(--rule);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 1px 2px rgba(11,27,59,.04),
    0 14px 36px rgba(11,27,59,.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-glow));
  opacity: 0;
  transition: opacity .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(30,99,240,.3);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 1px 2px rgba(11,27,59,.04),
    0 28px 56px rgba(30,99,240,.12);
}
.card:hover::before { opacity: 1; }

/* Premium card variant for the headline offer */
.card-feature {
  position: relative;
  background:
    linear-gradient(180deg, #FFFFFF 0%, #F4F8FF 100%);
  border: 1px solid rgba(30,99,240,.18);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 1px 2px rgba(11,27,59,.04),
    0 30px 60px rgba(30,99,240,.12);
  overflow: hidden;
}
.card-feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-glow), var(--brand));
}

/* ─── Icon tiles ───────────────────────────────────────────── */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 16px;
  background: linear-gradient(160deg, #E8F0FF 0%, #D2E0FF 100%);
  color: var(--brand-deep);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 -1px 0 rgba(30,99,240,.10),
    0 8px 18px rgba(30,99,240,.14);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover .icon-tile {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 -1px 0 rgba(30,99,240,.10),
    0 14px 28px rgba(30,99,240,.22);
}
.icon-tile-sm {
  width: 3rem; height: 3rem;
  border-radius: 13px;
}
.icon-tile-deep {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    0 10px 22px rgba(30,99,240,.4);
}

/* ─── Display price ────────────────────────────────────────── */
.price-display {
  font-family: 'Saira Condensed', 'Inter Tight', system-ui, sans-serif;
  font-weight: 900;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: .9;
  display: inline-block;
  padding-right: .15em;
}

/* ─── Sticker badge ────────────────────────────────────────── */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(11,27,59,.22), inset 0 1px 0 rgba(255,255,255,.08);
  transform: rotate(-2deg);
}
.sticker .pulse {
  width: .4rem; height: .4rem;
  background: var(--brand-glow);
  border-radius: 99px;
  box-shadow: 0 0 10px rgba(79,141,255,1);
  animation: stickerPulse 2.2s ease-in-out infinite;
}
@keyframes stickerPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

/* ─── Step number (display, gradient) ──────────────────────── */
.step-number {
  font-family: 'Saira Condensed', 'Inter Tight', system-ui, sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 3.5rem;
  line-height: .85;
  letter-spacing: -.02em;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding-right: .25em;
}

/* ─── Form card ────────────────────────────────────────────── */
.form-card {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFE 100%);
  border: 1px solid rgba(30,99,240,.12);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 30px 60px rgba(11,27,59,.08);
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-glow));
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  padding: 1rem 1.6rem;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(30,99,240,.28);
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(30,99,240,.32); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border-radius: 10px;
  border: 1.5px solid var(--rule);
  color: var(--ink);
  font-weight: 700;
  padding: 1rem 1.6rem;
  font-size: 1rem;
  background: #fff;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  font-weight: 700;
  padding: 1rem 1.6rem;
  font-size: 1rem;
  background: transparent;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,.06); transform: translateY(-1px); }

/* ─── Forms ────────────────────────────────────────────────── */
.field-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .4rem;
}
.field-input,
.field-select,
.field-textarea {
  width: 100%;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: .85rem 1rem;
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field-textarea { min-height: 140px; resize: vertical; }
.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30,99,240,.18);
}
.field-error {
  color: #B42318;
  font-size: .85rem;
  margin-top: .35rem;
  min-height: 1.1em;
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ─── Configurator ─────────────────────────────────────────── */
.config-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s ease, background-color .2s ease;
}
.config-row.is-active {
  border-color: rgba(30,99,240,.45);
  background: #FAFBFE;
}

.toggle-input {
  appearance: none;
  -webkit-appearance: none;
  width: 1.4rem; height: 1.4rem;
  border-radius: 6px;
  border: 1.5px solid var(--rule);
  background: #fff;
  display: inline-grid;
  place-content: center;
  transition: border-color .15s ease, background-color .15s ease;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle-input::before {
  content: "";
  width: .8rem; height: .8rem;
  background: #fff;
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 20%, 84% 6%, 38% 70%);
  transform: scale(0);
  transition: transform .15s ease;
}
.toggle-input:checked {
  background: var(--brand);
  border-color: var(--brand);
}
.toggle-input:checked::before { transform: scale(1); }
.toggle-input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30,99,240,.22);
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.stepper button {
  width: 2.5rem; height: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  font-weight: 700;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color .15s ease;
  font-size: 1.1rem;
}
.stepper button:hover:not(:disabled) { background: var(--soft); }
.stepper button:disabled { color: var(--rule); cursor: not-allowed; }
.stepper input {
  width: 2.5rem;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }

.summary-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(11,27,59,.04), 0 16px 40px rgba(11,27,59,.06);
}

/* ─── FAQ (native <details>) ──────────────────────────────── */
.faq-list {
  border-top: 1px solid var(--rule);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.125rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-q { color: var(--brand); }
.faq-q {
  font-family: 'Saira Condensed', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  transition: color .15s ease;
}
.faq-chevron {
  display: inline-flex;
  color: var(--muted);
  transition: transform .2s ease, color .15s ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--brand); }
.faq-a {
  padding: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
  max-width: 60ch;
}

/* ─── Trust strip ─────────────────────────────────────────── */
.trust-strip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(11,27,59,.04), 0 8px 20px rgba(30,99,240,.08);
}

/* ─── Search pills (customer searches) ────────────────────── */
.search-pill {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 500;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.search-pill:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-deep);
}

/* ─── Trade grid (industries page) ────────────────────────── */
.trade-grid .card {
  transition: transform .2s ease, box-shadow .2s ease;
}
.trade-grid .card:hover {
  transform: translateY(-3px);
}

/* ─── Configurator trade pill ─────────────────────────────── */
.trade-pill a {
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
  padding: 0 .25rem;
}

/* ─── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card:hover, .icon-tile, .card:hover .icon-tile { transition: none; transform: none; }
  .btn-primary, .btn-ghost, .btn-ghost-dark { transition: none; }
  .sticker .pulse { animation: none; }
  .faq-chevron, .faq-item summary, .search-pill { transition: none; }
}
