/* ============================================================
   CORE & BASE STYLES
   ============================================================ */

/* Resets */
img {
  display: block;
  max-width: 100%;
}

button {
  font-family: var(--f-body);
  cursor: pointer;
  border: none;
  background: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Layout Containers */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ============================================================
   GLOBAL COMPONENTS & SECTIONS
   ============================================================ */

/* Announce Bar */
.announce-bar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .85);
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 16px;
  position: relative;
  overflow: hidden;
  z-index: 900;
}

.announce-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent 100px, rgba(26, 123, 255, .05) 100px, rgba(26, 123, 255, .05) 200px);
}

.announce-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.announce-pill {
  background: var(--orange);
  color: #fff;
  font-family: var(--f-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  padding: 2px 9px;
  border-radius: var(--r2);
  flex-shrink: 0;
}

.announce-items {
  display: flex;
  gap: 32px;
  align-items: center;
}

.announce-items span {
  color: rgba(255, 255, 255, .45);
}

.announce-items strong {
  color: var(--white);
  font-weight: 600;
}

.announce-x {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, .30);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}

.announce-x:hover {
  color: #fff;
}

/* Generic Section Headers */
.section {
  padding: 72px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-head {
  margin-bottom: 40px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.section-eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--orange);
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: .02em;
  line-height: .95;
}

.section-subtitle {
  font-size: 15px;
  color: var(--slate);
  margin-top: 10px;
  max-width: 540px;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.section-see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--electric);
  white-space: nowrap;
  transition: gap .2s;
}

.section-see-all:hover {
  gap: 10px;
}

.section-see-all svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* Global Trust Bar */
.trust-bar {
  background: var(--navy);
  padding: 0;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  display: flex;
  align-items: center;
  padding: 22px 32px;
  border-right: 1px solid rgba(255, 255, 255, .07);
  gap: 16px;
}

.trust-item:last-child {
  border-right: none;
}

.trust-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  color: var(--orange);
}

.trust-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

.trust-title {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .01em;
  line-height: 1.05;
  margin-bottom: 4px;
}

.trust-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .58);
  line-height: 1.4;
}

/* ============================================================
   GLOBAL UTILITIES & FIXES
   ============================================================ */

.fade-up {
  transition: opacity .65s, transform .65s;
}

.js-ready .fade-up {
  opacity: 0;
  transform: translateY(28px);
}

.fade-up.in,
.js-ready .fade-up.in {
  opacity: 1;
  transform: none;
}

.desktop-only {
  display: block !important;
}

.mobile-only {
  display: none !important;
}

body.body-locked {
  overscroll-behavior: none;
}

/* CMS & 404 Pages */
.cms-preview-badge {
  display: inline-flex;
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff3cd;
  color: #856404;
  font-size: 12px;
  font-weight: 700;
}

.cms-article {
  max-width: 980px;
  margin: 0 auto;
}

.cms-page .blog-article-content h1:first-child {
  display: none;
}

.error-404-shell {
  padding: 72px 0 96px;
}

.error-404-card {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #dce5f2;
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 18px 50px rgba(8, 23, 43, .08);
}

.error-404-card h1 {
  font-family: var(--f-display);
  font-size: 78px;
  line-height: .92;
  text-transform: uppercase;
  color: var(--navy);
  margin: 12px 0 14px;
}

.error-404-card p {
  font-size: 18px;
  color: #5a718f;
  line-height: 1.75;
  max-width: 720px;
}

.error-404-body {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e6edf7;
  color: #334155;
  line-height: 1.8;
}

/* ============================================================
   RESPONSIVE BASE
   ============================================================ */

@media (max-width: 900px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .trust-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item {
    padding: 20px 22px;
  }
}

@media (max-width: 720px) {
  .error-404-card {
    padding: 24px;
  }

  .error-404-card h1 {
    font-size: 52px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .section {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .section-head-row {
    gap: 14px;
    margin-bottom: 16px;
  }

  .section-title {
    font-size: clamp(34px, 9vw, 48px);
    line-height: .94;
    word-break: break-word;
  }

  .section-subtitle {
    max-width: none;
    font-size: 15px;
    line-height: 1.6;
  }

  .section-see-all {
    display: none;
  }

  .trust-items {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }

  .trust-item:last-child {
    border-bottom: none;
  }
}
