/* ═══════════════════════════════════════════════
   CMH Frontier — Site Stylesheet v2
   Clean modern dark — works across all products
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Sora:wght@300;400;600;700&display=swap');

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

:root {
  --bg:          #080810;
  --bg2:         #0d0d18;
  --bg3:         #11111e;
  --surface:     #16162a;
  --surface2:    #1c1c32;
  --border:      #252540;
  --border-lite: #2e2e50;
  --gold:        #c9a84c;
  --gold-light:  #e2c46a;
  --gold-dim:    #6a5520;
  --blue:        #4a7fbd;
  --blue-light:  #6a9fd8;
  --blue-dim:    #1e3a5a;
  --green:       #3a9a6a;
  --green-light: #4aba82;
  --red:         #9a4a4a;
  --text:        #eeeef5;
  --text-dim:    #9898b8;
  --text-muted:  #55556a;
  --radius:      6px;
  --radius-lg:   12px;
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.7);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

a { color: var(--blue-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text); }
p { color: var(--text-dim); }

/* ── Layout ── */
.container    { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.container-sm { max-width: 720px;  margin: 0 auto; padding: 0 32px; }
section       { padding: 96px 0; }
section.sm    { padding: 64px 0; }

.divider {
  border: none;
  height: 1px;
  background: var(--border);
}

/* ── Nav ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,8,16,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dim));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  font-family: 'Sora', sans-serif;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: white !important;
  background: var(--blue);
  padding: 7px 18px;
  border-radius: var(--radius);
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--blue-light) !important; color: white !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 34px; height: 34px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  align-items: center;
  justify-content: center;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border-lite);
}
.btn-outline:hover {
  border-color: var(--text-dim);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.btn-gold {
  background: var(--gold);
  color: #080810;
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #080810;
}

.btn-lg { padding: 14px 32px; font-size: 0.95rem; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }

/* ── Section labels ── */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 540px;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* ── Product card ── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.product-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--card-accent, var(--blue));
  opacity: 0;
  transition: opacity 0.25s;
}

.product-card:hover {
  border-color: var(--border-lite);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.product-card:hover::after { opacity: 1; }

.product-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.product-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.product-price {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.product-price span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}

.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.badge-live  { background: rgba(58,154,106,0.15); color: var(--green-light); border: 1px solid rgba(58,154,106,0.3); }
.badge-soon  { background: rgba(74,127,189,0.12); color: var(--blue-light);  border: 1px solid var(--blue-dim); }

/* ── Page hero ── */
.page-hero {
  padding: 130px 0 72px;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(74,127,189,0.08), transparent 65%);
  pointer-events: none;
}

.page-hero h1 { font-size: 2.8rem; margin-bottom: 16px; letter-spacing: -0.03em; }
.page-hero p  { font-size: 1.1rem; color: var(--text-dim); max-width: 520px; }

/* ── Footer ── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a  { font-size: 0.88rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-blue   { color: var(--blue-light); }
.text-gold   { color: var(--gold); }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4  { margin-bottom: 16px; }
.mb-8  { margin-bottom: 32px; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { opacity: 0; animation: fadeUp 0.55s ease forwards; }
.fade-up.d1 { animation-delay: 0.08s; }
.fade-up.d2 { animation-delay: 0.16s; }
.fade-up.d3 { animation-delay: 0.24s; }
.fade-up.d4 { animation-delay: 0.32s; }
.fade-up.d5 { animation-delay: 0.40s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 20px 32px;
    gap: 16px;
  }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section-title { font-size: 1.8rem; }
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .page-hero h1 { font-size: 2rem; }
}

/* ═══════════════════════════════════════════════
   ADA / WCAG 2.1 Compliance Additions
   ═══════════════════════════════════════════════ */

/* ── Skip navigation link ── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--blue);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 24px;
  z-index: 99999;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
  transition: top 0.2s;
}
.skip-nav:focus {
  top: 0;
  outline: 3px solid white;
  outline-offset: 2px;
}

/* ── Focus styles — all interactive elements ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Remove default outline only when focus-visible is supported */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* Nav links need visible focus */
.nav-links a:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Buttons */
.btn:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
}

/* Nav toggle */
.nav-toggle:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
}

/* ── Minimum touch target size (48x48px) for mobile ── */
@media (max-width: 768px) {
  .btn { min-height: 48px; }
  .nav-toggle { min-width: 48px; min-height: 48px; }
  .nav-links a { padding: 8px 0; display: inline-block; }
}

/* ── Reduced motion support ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── High contrast mode support ── */
@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .site-nav { border-bottom: 2px solid ButtonText; }
  .card, .product-card, .pricing-card { border: 2px solid ButtonText; }
}
