/* ══════════════════════════════════════════════
   Man on Fire — Shared Styles
   ══════════════════════════════════════════════ */

:root {
  --bg-primary: #0c0c0e;
  --bg-secondary: #131316;
  --bg-card: #18181c;
  --bg-card-hover: #1e1e23;
  --text-primary: #ededea;
  --text-secondary: #c2bfb8;
  --text-dim: #8a8780;
  --accent: #d4603a;
  --accent-glow: #e87a52;
  --accent-subtle: rgba(212, 96, 58, 0.08);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --font-display: 'Outfit', -apple-system, sans-serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --max-width: 1200px;
  --side-pad: clamp(1.5rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── Skip Link (Accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  z-index: 200;
  border-radius: 0 0 4px 4px;
}

.skip-link:focus {
  top: 0;
}

/* ── Navigation ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 var(--side-pad); height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(12, 12, 14, 0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 46px; width: auto; }

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

.nav-links a {
  text-decoration: none; color: var(--text-secondary);
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.25s; position: relative;
}

.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }

.nav-contact {
  padding: 8px 20px !important; background: transparent;
  border: 1px solid var(--accent); color: var(--accent) !important;
  border-radius: 2px; transition: all 0.25s !important;
}
.nav-contact:hover { background: var(--accent) !important; color: var(--bg-primary) !important; }
.nav-contact::after { display: none !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text-primary); margin: 5px 0; transition: all 0.3s; }

/* ── Page Header (used on all inner pages) ── */
.page-header {
  padding: calc(72px + 4rem) var(--side-pad) 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.page-header p {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ── Section ── */
.section {
  padding: 0 var(--side-pad) 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center;
  padding: 14px 28px; background: var(--accent);
  color: var(--bg-primary); text-decoration: none;
  font-family: var(--font-display); font-size: 0.82rem;
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 2px; transition: all 0.25s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-glow); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex; align-items: center;
  padding: 14px 28px; background: transparent;
  color: var(--text-secondary); text-decoration: none;
  font-family: var(--font-display); font-size: 0.82rem;
  font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--border); border-radius: 2px;
  transition: all 0.25s; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--text-dim); color: var(--text-primary); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem var(--side-pad);
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: flex-end; gap: 2rem; flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display); font-size: 0.75rem;
  color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase;
}

.footer-subscribe { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-subscribe label {
  font-family: var(--font-display); font-size: 0.85rem;
  font-weight: 400; color: var(--text-secondary);
}

.footer-subscribe-form { display: flex; }

.footer-subscribe input[type="email"] {
  padding: 10px 16px; background: var(--bg-secondary);
  border: 1px solid var(--border); border-right: none;
  border-radius: 2px 0 0 2px; color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.88rem;
  width: 240px; outline: none; transition: border-color 0.25s;
}
.footer-subscribe input::placeholder { color: var(--text-dim); }
.footer-subscribe input:focus { border-color: var(--accent); }

.footer-subscribe button {
  padding: 10px 20px; background: var(--accent);
  border: 1px solid var(--accent); border-radius: 0 2px 2px 0;
  color: var(--bg-primary); font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer; transition: background 0.25s;
}
.footer-subscribe button:hover { background: var(--accent-glow); }

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

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(12, 12, 14, 0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); padding: 1.5rem; gap: 1.25rem;
  }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 500px) {
  .footer-subscribe input[type="email"] { width: 180px; }
}
