/* ==========================================
   Stratly – Shared Styles
   ========================================== */

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

:root {
  --bg: #0a0a0a;
  --bg-surface: #111111;
  --bg-elevated: #161616;
  --text: #f0f0f0;
  --text-muted: #888888;
  --text-subtle: #444444;
  --accent: #ffffff;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --radius: 10px;
  --radius-lg: 16px;
  --font: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --max-width: 1040px;
  --nav-h: 68px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.wordmark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  text-decoration: none;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--text); }

.nav-cta {
  background: var(--accent) !important;
  color: #000 !important;
  font-weight: 600 !important;
  margin-left: 6px;
}
.nav-cta:hover { opacity: 0.88; background: var(--accent) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left { display: flex; flex-direction: column; gap: 6px; }
.footer-wordmark { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }
.footer-copy { font-size: 13px; color: var(--text-subtle); }

.footer-links { display: flex; gap: 20px; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { opacity: 0.92; }

.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.03); }

/* ─── LAYOUT ─── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }

main { display: block; }

section { padding: 96px 0; }
section + section { border-top: 1px solid var(--border); }

/* ─── PERFORMANCE ─── */
img { max-width: 100%; height: auto; }
svg { display: inline-block; flex-shrink: 0; }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.65;
  margin-bottom: 56px;
}

/* ─── CARDS ─── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.25s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
}
.card:hover { border-color: var(--border-hover); }

.card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.card-badge.muted {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ─── ANIMATIONS ─── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.delay-1 { transition-delay: 0.08s; }
.fade-in.delay-2 { transition-delay: 0.16s; }
.fade-in.delay-3 { transition-delay: 0.24s; }
.fade-in.delay-4 { transition-delay: 0.32s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── FORM BASE ─── */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }

label { font-size: 13px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.02em; }

input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 16px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.18); }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
select option { background: #1a1a1a; }
textarea { min-height: 100px; resize: vertical; line-height: 1.6; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 16px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  user-select: none;
}
.chip:hover { border-color: var(--border-hover); color: var(--text); }
.chip.selected { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 140px 0 80px;
  border-bottom: 1px solid var(--border);
}
.page-hero .section-label { margin-bottom: 20px; }
.page-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1.05;
  margin-bottom: 20px;
}
.page-hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.6;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 0 20px; height: 60px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    padding: 16px;
    gap: 2px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
  }
  .nav-links.open a { font-size: 16px; padding: 10px 12px; width: 100%; }
  footer { padding: 32px 20px; flex-direction: column; gap: 20px; align-items: flex-start; }
  section { padding: 72px 0; }
  .container { padding: 0 20px; }
  .section-sub { margin-bottom: 40px; }
  .page-hero { padding: 100px 0 60px; }
}

/* Shared nav JS */
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── LOGO I NAV ─── */
.nav-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  filter: invert(0);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ─── COOKIE BANNER ─── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0 24px 24px;
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}

#cookie-banner.cb-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.cb-inner {
  max-width: 900px;
  margin: 0 auto;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  flex-wrap: wrap;
}

.cb-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.cb-text a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.cb-text a:hover { opacity: 0.7; }

.cb-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cb-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.cb-btn:hover { transform: translateY(-1px); opacity: 0.88; }

.cb-btn--primary { background: var(--accent); color: #000; }
.cb-btn--outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.15);
}
.cb-btn--outline:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }

@media (max-width: 600px) {
  #cookie-banner { padding: 0 12px 12px; }
  .cb-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cb-actions { width: 100%; }
  .cb-btn { flex: 1; text-align: center; }
}
