/* ==========
   STOX50 Styles
   - Modern, responsive, accessible
   - Organized with CSS variables and BEM-like classes
========== */

:root {
  --color-bg: #0b0f19;
  --color-surface: #121827;
  --color-elev: #1b2336;
  --color-text: #e7ecf3;
  --color-muted: #a8b2c2;
  --color-accent: #0e4bf1;
  --color-accent-2: #22c55e;
  --shadow-1: 0 6px 24px rgba(0, 0, 0, 0.22);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1200px;
  --space-1: 6px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% -10%, #17203b 0%, var(--color-bg) 60%), var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; border-radius: var(--radius-sm); }
a { color: var(--color-text); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(11,15,25,0.7); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid #1f2a44; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 800; letter-spacing: 0.3px; }
.brand__logo { width: 28px; height: 28px; }
.brand__name { font-size: 1.05rem; }

.site-nav { display: flex; gap: var(--space-4); align-items: center; }
.nav__link { padding: 8px 10px; border-radius: 8px; color: var(--color-muted); }
.nav__link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav__link.active { color: #fff; background: rgba(255,255,255,0.1); }

.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; }
.nav-toggle__bar { display: block; width: 22px; height: 2px; background: var(--color-text); margin: 5px 0; border-radius: 2px; transition: all .2s ease; }

/* Hero */
.hero { padding: var(--space-8) 0 var(--space-7); }
.hero__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-6); align-items: center; }
.hero__title { font-size: clamp(2rem, 2.6vw + 1rem, 3rem); line-height: 1.15; margin: 0 0 var(--space-3); }
.hero__subtitle { margin: 0 0 var(--space-5); color: var(--color-muted); font-size: 1.05rem; }
.hero__ctas { display: flex; gap: var(--space-3); }
.hero__media img { width: 100%; height: auto; box-shadow: var(--shadow-1); }

/* Sections */
.section { padding: var(--space-7) 0; }
.section--alt { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0) 60%); }
.page-hero { padding: var(--space-7) 0 var(--space-5); border-bottom: 1px solid #1f2a44; background: rgba(255,255,255,0.02); }

/* Trust */
.trust { padding: var(--space-5) 0; border-top: 1px solid #1f2a44; border-bottom: 1px solid #1f2a44; background: rgba(255,255,255,0.02); }
.trust__inner { display: grid; gap: var(--space-3); }
.trust__title { color: var(--color-muted); font-weight: 600; letter-spacing: .2px; }
.trust__bullets { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); padding: 0; margin: 0; list-style: none; }
.trust__bullets li { background: var(--color-elev); border: 1px solid #223156; border-radius: var(--radius); padding: var(--space-4); text-align: center; }

/* Grid & Cards */
.grid { display: grid; gap: var(--space-5); }
.cards { grid-template-columns: repeat(4, 1fr); }
.cards .card { background: var(--color-elev); border: 1px solid #223156; border-radius: var(--radius); padding: var(--space-4); box-shadow: var(--shadow-1); transition: transform .2s ease, border-color .2s ease; }
.cards .card:hover { transform: translateY(-2px); border-color: #2b4fa7; }
.cards .card h3, .cards .card h2 { margin: var(--space-3) 0 var(--space-2); }
.cards--services { grid-template-columns: repeat(3, 1fr); }

/* Services preview */
.services-preview .list { margin-bottom: var(--space-4); }

/* CTA */
.cta { padding: var(--space-7) 0; background: radial-gradient(600px 300px at 80% -20%, rgba(34,197,94,0.16), rgba(34,197,94,0) 70%), linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00)); border-top: 1px solid #1f2a44; border-bottom: 1px solid #1f2a44; text-align: center; }
.cta__inner { display: grid; gap: var(--space-3); justify-items: center; }

/* About preview two-column */
.about-preview { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-6); align-items: center; }

/* Lists */
.list { padding-left: 1.2rem; }
.list--checks { list-style: none; padding: 0; }
.list--checks li { position: relative; padding-left: 28px; margin: 8px 0; }
.list--checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--color-accent-2); font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid #2b4fa7; color: #fff; background: #19316b; box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), var(--shadow-1); transition: all .2s ease; cursor: pointer; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn--primary { background: linear-gradient(180deg, #2a5ef0, #0e4bf1); border-color: #2b4fa7; }
.btn--ghost { background: transparent; border-color: #2b4fa7; color: var(--color-text); }

.link { color: #b9cdfc; font-weight: 600; }

/* Forms */
.contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-6); align-items: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-4); }
.form__field { display: grid; gap: 6px; }
.form__field label { font-weight: 600; }
.form__field input, .form__field textarea { width: 100%; padding: 12px 12px; background: var(--color-surface); color: var(--color-text); border: 1px solid #223156; border-radius: 10px; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.form__field input:focus, .form__field textarea:focus { border-color: #3d6bff; box-shadow: 0 0 0 3px rgba(61,107,255,0.2); }
.form__consent { border: 1px dashed #2b3a60; border-radius: 12px; padding: var(--space-4); margin-bottom: var(--space-4); }
.checkbox { display: flex; gap: 10px; align-items: center; margin: 8px 0; }
.error { color: #ffadad; min-height: 1.1em; font-size: .92rem; }
.form__note { color: var(--color-muted); font-size: .95rem; }
.form__actions { display: flex; gap: var(--space-3); align-items: center; }

/* Footer */
.site-footer { border-top: 1px solid #1f2a44; background: rgba(255,255,255,0.02); }
.footer__inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-6); padding: var(--space-6) 0; }
.footer__brand img { width: 40px; height: 40px; margin-bottom: 8px; }
.footer__links { display: grid; gap: 8px; }
.footer__copy { grid-column: 1 / -1; text-align: center; color: var(--color-muted); }

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Toast */
.toast { position: fixed; bottom: 16px; right: 16px; background: #17315e; color: #fff; border: 1px solid #2a4e9e; border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow-1); opacity: 0; transform: translateY(10px); pointer-events: none; transition: all .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards--services { grid-template-columns: repeat(2, 1fr); }
  .about-preview { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .site-nav { position: fixed; top: 64px; right: 0; left: 0; background: rgba(11,15,25,0.95); padding: 12px 16px; display: none; border-bottom: 1px solid #1f2a44; }
  .site-nav.open { display: grid; gap: 8px; }
  .nav-toggle { display: inline-block; }
  .hero__inner { grid-template-columns: 1fr; }
  .trust__bullets { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

