/* ═══════════════════════════════════════════
   BASE STYLES — stubease.com
   Resets, layout, buttons, forms, shared nav/footer
═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2a2a2a;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── CONTAINER ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 640px) { .container { padding: 0 20px; } }

/* ── SECTION LABELS ── */
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FE5000;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-sub {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 0;
}
.text-orange { color: #FE5000; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: #FE5000;
  color: #fff;
  border: 2px solid #FE5000;
}
.btn-primary:hover {
  background: #cc3f00;
  border-color: #cc3f00;
  box-shadow: 0 4px 16px rgba(254,80,0,0.3);
}

.btn-outline {
  background: transparent;
  color: #FE5000;
  border: 2px solid #FE5000;
}
.btn-outline:hover {
  background: #FE5000;
  color: #fff;
}

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.8);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--color-text);
  border: 2px solid rgba(26,39,68,0.3);
}
.btn-ghost-dark:hover {
  background: rgba(26,39,68,0.06);
  border-color: var(--color-text);
}

.btn-navy {
  background: #1a2744;
  color: #fff;
  border: 2px solid #1a2744;
}
.btn-navy:hover {
  background: #0d1627;
  border-color: #0d1627;
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }

/* ── SITE HEADER / NAV ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  transition: background 0.3s, box-shadow 0.3s;
  background: transparent;
}
.site-header.scrolled {
  background: rgba(26, 39, 68, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
/* Non-hero pages: always solid */
.site-header.solid {
  background: #1a2744;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  overflow: visible;
}
.nav-logo {
  overflow: visible;
  flex-shrink: 0;
  padding-right: 8px; /* room for ™ floating outside SVG bounds */
}
.nav-logo svg,
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
  overflow: visible;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  padding: 8px 10px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: #fff; background: rgba(255,255,255,0.1); }
.nav-cta { margin-left: 12px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-bg);
  border-radius: 2px;
  transition: transform 0.2s;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #1a2744;
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    align-items: stretch;
  }
  .nav-links.nav-open { display: flex; }
  .nav-link { padding: 14px 16px; font-size: 1rem; }
  .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, #1a2744 0%, #0d1627 100%);
  padding: 128px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(254,80,0,0.3);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FE5000;
  margin-bottom: 12px;
}
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 16px;
}
.page-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  line-height: 1.65;
}

/* ── PROSE CONTENT (policy pages, etc.) ── */
.prose-section {
  padding: 72px 0;
}
.prose-section + .prose-section {
  padding-top: 0;
}
.prose-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}
.prose-sidebar {
  position: sticky;
  top: 96px;
}
.prose-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prose-sidebar-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  padding: 8px 12px;
  border-left: 2px solid rgba(26,39,68,0.1);
  transition: color 0.2s, border-color 0.2s;
  display: block;
}
.prose-sidebar-link:hover,
.prose-sidebar-link.active {
  color: var(--color-text);
  border-left-color: #FE5000;
}

.prose-body h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 48px 0 16px;
  padding-top: 16px;
  border-top: 2px solid rgba(26,39,68,0.08);
}
.prose-body h2:first-child { margin-top: 0; border-top: none; }
.prose-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 28px 0 10px;
}
.prose-body p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.prose-body ul, .prose-body ol {
  margin: 0 0 20px 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prose-body ul li, .prose-body ol li {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}
.prose-body ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #FE5000;
  font-size: 0.78rem;
  top: 2px;
}
.prose-body ol { counter-reset: item; }
.prose-body ol li { counter-increment: item; }
.prose-body ol li::before {
  content: counter(item) '.';
  position: absolute;
  left: 0;
  color: #FE5000;
  font-weight: 700;
  font-size: 0.82rem;
}
.prose-body strong { color: var(--color-text); font-weight: 600; }
.prose-body a { color: #FE5000; text-decoration: underline; }
.prose-body a:hover { color: #cc3f00; }

.prose-callout {
  background: rgba(26,39,68,0.04);
  border: 1px solid rgba(26,39,68,0.12);
  border-left: 4px solid #FE5000;
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.prose-callout p { margin: 0; font-size: 0.9rem; }

.prose-warning {
  background: rgba(161,44,44,0.05);
  border: 1px solid rgba(161,44,44,0.2);
  border-left: 4px solid #a12c2c;
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.prose-warning p { margin: 0; font-size: 0.9rem; color: #7a2020; }

.effective-date {
  display: inline-block;
  font-size: 0.78rem;
  color: #888;
  font-style: italic;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .prose-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .prose-sidebar { position: static; }
  .prose-sidebar-nav { flex-direction: row; flex-wrap: wrap; }
}

/* ── POLICY HUB CARDS ── */
.policy-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.policy-hub-card {
  background: var(--color-bg);
  border: 1px solid rgba(26,39,68,0.1);
  border-radius: 10px;
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.policy-hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26,39,68,0.1);
}
.policy-hub-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: #FE5000;
}
.policy-hub-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.policy-hub-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
@media (max-width: 640px) { .policy-hub-grid { grid-template-columns: 1fr; } }

/* ── CARD PAYMENT LOGOS ── */
.payment-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.payment-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: 1px solid rgba(26,39,68,0.15);
  border-radius: 4px;
  padding: 6px 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
  letter-spacing: 0.05em;
}
.payment-logo.visa { color: #1434CB; }
.payment-logo.mc { color: #EB001B; }

/* ── UTILITY ── */
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.text-muted { color: #888; }

/* ── THEME TOGGLE ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.90);
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
  margin-left: 8px;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.20);
  transform: rotate(20deg);
}
.theme-toggle svg { display: block; }

/* Icon visibility per theme */
/* Light mode: show moon icon (clicking switches TO dark) */
.theme-toggle .icon-sun  { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
/* Dark mode: show sun icon (clicking switches TO light) */
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* In light mode (explicit or inferred) */


/* System dark preference when no data-theme set */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun  { display: none; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: block; }
}

@media (max-width: 900px) {
  .theme-toggle { margin-left: 0; margin-right: 8px; }
}

/* ============================================================
   BRAND NOMENCLATURE — Progressive italic on EAS, upright E
   Rule: [Descriptor]-EASE™
   E = 30° skew, A = 20° skew, S = 10° skew, E = 0° (upright)
   Usage: wrap product names with <span class="brand-name">
   ============================================================ */
.brand-ease {
  display: inline;
  white-space: nowrap;
}
.brand-ease .ease-e1 {
  display: inline-block;
  font-style: italic;
  transform: skewX(-12deg);
  letter-spacing: 0.01em;
}
.brand-ease .ease-a {
  display: inline-block;
  font-style: italic;
  transform: skewX(-8deg);
  letter-spacing: 0.01em;
}
.brand-ease .ease-s {
  display: inline-block;
  font-style: italic;
  transform: skewX(-4deg);
  letter-spacing: 0.01em;
}
.brand-ease .ease-e2 {
  display: inline-block;
  font-style: normal;
  transform: skewX(0deg);
}

/* ── CALCULATE SAVINGS NAV CTA ── */
.nav-cta-calc {
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #fff;
  background: transparent;
  font-size: 0.78rem;
  padding: 0.45rem 1rem;
  white-space: nowrap;
}
[data-theme="dark"] .nav-cta-calc {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.nav-cta-calc:hover {
  background: var(--color-surface, #f9f8f5);
  border-color: var(--orange, #FE5000);
  color: var(--orange, #FE5000);
}
[data-theme="dark"] .nav-cta-calc:hover {
  background: rgba(254,80,0,0.12);
}
@media (max-width: 768px) {
  .nav-cta-calc { display: none; }
}

/* Testimonials teaser — responsive grid */
@media (max-width: 768px) {
  .testimonials-teaser [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── FIELD PHOTO STRIP (shared — how-it-works + safety) ── */
.hiw-photo-strip {
  background: #0d1627;
  padding: 0;
  overflow: hidden;
}
.hiw-photo-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.hiw-photo-strip-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.hiw-photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
  filter: brightness(0.85);
}
.hiw-photo-strip-item:hover img {
  transform: scale(1.03);
  filter: brightness(1);
}
.hiw-photo-strip-caption {
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 14px 24px;
  background: #0d1627;
}
@media (max-width: 640px) {
  .hiw-photo-strip-inner {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .hiw-photo-strip-item {
    aspect-ratio: 16/9;
  }
}
