/*
 * SetupTeam — Global base styles
 * Loaded on every page, after fonts.css
 */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #f5f3ee;
  background: #0b1c33;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ── Page shell — reserve space for fixed header ── */
.page-body {
  padding-top: var(--st6-hdr-h, 68px);
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px)  { .container { padding-inline: 32px; } }
@media (min-width: 1100px) { .container { padding-inline: 48px; } }

/* ── Gold / navy design tokens (shared reference) ── */
:root {
  --st-gold:   #B08D57;
  --st-navy:   #0b1c33;
  --st-navy-2: #111829;
  --st-white:  #ffffff;
  --st-text:   rgba(255,255,255,.90);
  --st-muted:  rgba(255,255,255,.55);
  --st-ease:   cubic-bezier(.4,0,.2,1);
}

/* ── Focus ring ── */
:focus-visible {
  outline: 2px solid rgba(176,141,87,.80);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Screen-reader only ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Prose block (blog/resources content) ── */
.prose {
  max-width: 72ch;
  color: rgba(255,255,255,.85);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.75;
}
.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #fff;
  line-height: 1.22;
  margin-top: 2em;
  margin-bottom: .5em;
}
.prose h1 { font-size: clamp(28px, 5vw, 40px); }
.prose h2 { font-size: clamp(22px, 3.5vw, 30px); }
.prose h3 { font-size: clamp(18px, 2.8vw, 24px); }
.prose p  { margin: 0 0 1.2em; }
.prose a  { color: var(--st-gold); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { opacity: .82; }
.prose ul, .prose ol { padding-left: 1.5em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: 8px; margin: 1.5em 0; }
.prose blockquote { border-left: 3px solid var(--st-gold); margin: 1.5em 0; padding: .5em 1.2em; color: rgba(255,255,255,.65); font-style: italic; }
.prose hr { border: none; border-top: 1px solid rgba(255,255,255,.10); margin: 2em 0; }

/* ── TrustIndex review carousel — standardized band ──
   Inserted directly after the hero on every page that should show reviews.
   Uniform width (~1320px inner) so the widget renders ~4 cards on desktop.
   `!important` on layout props guards against per-page CSS resets like
   `.lp-XX *, .s1 * { margin:0; padding:0 }` that would otherwise yank the
   band's centering and padding. */
.st-tib {
  background: #06101e !important;
  border-top: 1px solid rgba(176,141,87,.10) !important;
  border-bottom: 1px solid rgba(176,141,87,.10) !important;
  padding: clamp(28px,4vw,44px) 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.st-tib__inner {
  max-width: 1320px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
.st-tib [data-widget-id] {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Legacy / non-standard wrappers — kept tight so old markup doesn't bloom */
[data-widget-id="8298d1d67fcd7775a976d7ec11f"] {
  display: block;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.hpt-carousel {
  max-width: 1360px !important;
  padding-top: 24px !important;
  padding-bottom: 32px !important;
}

/* ── SetupTeam Contact Modal CSS (snippet 3335) ── */
:root {
  --st-navy:       #0B1C33;
  --st-navy-deep:  #060f1e;
  --st-navy-mid:   #112240;
  --st-gold:       #B08D57;
  --st-gold-light: #cda96e;
  --st-gold-dim:   rgba(176, 141, 87, 0.18);
  --st-white:      #f5f0e8;
  --st-muted:      rgba(245, 240, 232, 0.55);
  --st-border:     rgba(176, 141, 87, 0.22);
  --st-error:      #e07070;
  --st-radius:     14px;
  --st-radius-sm:  9px;
  --st-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

#st-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99980;
  background: rgba(4, 10, 20, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--st-transition);
}

#st-modal-overlay.st-visible {
  display: flex;
  opacity: 1;
}

#st-modal {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 80px);
  background: linear-gradient(160deg, #0d2040 0%, #0B1C33 55%, #091728 100%);
  border: 1px solid var(--st-border);
  border-bottom: none;
  border-radius: var(--st-radius) var(--st-radius) 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -12px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(176,141,87,0.08) inset;
  transform: translateY(32px);
  transition: transform 0.32s cubic-bezier(0.34, 1.26, 0.64, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

#st-modal-overlay.st-visible #st-modal {
  transform: translateY(0);
}

#st-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--st-gold), transparent);
  opacity: 0.7;
}

#st-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--st-border);
}

#st-modal-header-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#st-modal-eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--st-gold);
  opacity: 0.85;
}

#st-modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--st-white);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

#st-modal-close {
  width: 36px; height: 36px;
  border: none; background: transparent;
  color: #e05555; font-size: 28px; font-weight: 300; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--st-transition), transform var(--st-transition);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}

#st-modal-close:hover,
#st-modal-close:focus-visible {
  color: #ff4444;
  transform: scale(1.15);
  outline: none;
}

#st-modal-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 24px 8px;
  overscroll-behavior: contain;
}

#st-modal-body::-webkit-scrollbar { display: none; }

#st-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.st-row { display: flex; gap: 12px; }
.st-row .st-field { flex: 1; min-width: 0; }
.st-field { display: flex; flex-direction: column; gap: 6px; }

.st-field label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--st-gold); opacity: 0.8;
}

.st-field input,
.st-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-sm);
  padding: 14px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px; font-weight: 400; color: var(--st-white);
  transition: border-color var(--st-transition), background var(--st-transition), box-shadow var(--st-transition);
  -webkit-appearance: none; appearance: none; outline: none;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.st-field input::placeholder,
.st-field textarea::placeholder {
  color: rgba(245, 240, 232, 0.28); font-weight: 400;
}

.st-field input:focus,
.st-field textarea:focus {
  border-color: rgba(176, 141, 87, 0.6);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.08);
}

.st-field input.st-invalid,
.st-field textarea.st-invalid {
  border-color: var(--st-error);
  box-shadow: 0 0 0 3px rgba(224, 112, 112, 0.1);
}

.st-field textarea { min-height: 100px; resize: none; line-height: 1.55; }

.st-field-error {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px; color: var(--st-error);
  display: none; margin-top: -2px;
}

.st-field.st-has-error .st-field-error { display: block; }

#st-legal {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px; font-weight: 400;
  color: var(--st-muted); line-height: 1.6;
  padding: 6px 0 4px; text-align: center;
}

#st-legal a {
  color: var(--st-gold); text-decoration: none;
  border-bottom: 1px solid rgba(176, 141, 87, 0.3);
}
#st-legal a:hover { border-bottom-color: var(--st-gold); }

.st-honeypot {
  position: absolute; left: -9999px;
  opacity: 0; pointer-events: none; height: 0; overflow: hidden;
}

#st-modal-footer {
  flex-shrink: 0;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--st-border);
  background: linear-gradient(0deg, rgba(6,15,30,0.6) 0%, transparent 100%);
}

#st-btn-primary {
  width: 100%; height: 52px;
  border-radius: var(--st-radius-sm);
  border: none;
  background: linear-gradient(135deg, #c9a468 0%, var(--st-gold) 50%, #9a7840 100%);
  color: var(--st-navy-deep);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity var(--st-transition), transform var(--st-transition), box-shadow var(--st-transition);
  box-shadow: 0 4px 20px rgba(176, 141, 87, 0.3);
  -webkit-tap-highlight-color: transparent;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; position: relative; overflow: hidden;
}

#st-btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

#st-btn-primary:hover:not(:disabled) {
  opacity: 0.92;
  box-shadow: 0 6px 28px rgba(176, 141, 87, 0.45);
  transform: translateY(-1px);
}

#st-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

.st-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(11,28,51,0.3); border-top-color: var(--st-navy-deep);
  border-radius: 50%;
  animation: stSpin 0.7s linear infinite;
  display: none;
}

@keyframes stSpin { to { transform: rotate(360deg); } }

#st-modal-success {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px 20px; gap: 16px; min-height: 280px;
}

#st-modal-success.st-show { display: flex; }

.st-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  border: 1.5px solid var(--st-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--st-gold);
  background: var(--st-gold-dim);
  animation: stPop 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

@keyframes stPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.st-success-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px; font-weight: 600; color: var(--st-white);
}

.st-success-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 400; color: var(--st-muted);
  line-height: 1.65; max-width: 320px;
}

.st-success-close {
  margin-top: 8px; padding: 12px 32px;
  border-radius: var(--st-radius-sm);
  border: 1px solid var(--st-border);
  background: transparent; color: var(--st-gold);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  #st-modal-overlay {
    align-items: center;
    padding: 24px;
  }
  #st-modal {
    border-radius: var(--st-radius);
    border: 1px solid var(--st-border);
    max-height: calc(100dvh - 120px);
  }
}
