/* ================================================================
   Last Days — Shared Stylesheet
   ================================================================ */

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

:root {
  --bg:           #080706;
  --surface:      #0f0d0c;
  --surface-2:    #181512;
  --accent:       #c97a3a;
  --accent-glow:  rgba(201,122,58,0.15);
  --accent-hover: #dc8f4f;
  --text:         #f0ebe4;
  --text-muted:   #7a7370;
  --text-dim:     #3a3633;
  --border:       #1e1b19;
  --border-mid:   #2e2a27;
  --font:         'DM Sans', sans-serif;
  --mono:         'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

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

/* ─── NAV ──────────────────────────────────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(8,7,6,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 48px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 30px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.is-active { color: var(--text); }

.nav-special { color: var(--accent) !important; }
.nav-special:hover { color: var(--accent-hover) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  align-items: center;
  justify-content: center;
}

/* ─── LAYOUT ────────────────────────────────────────────────────────────────── */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding: 96px 0;
}

/* ─── SECTION TYPOGRAPHY ────────────────────────────────────────────────────── */

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-body {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 600px;
}

hr.rule {
  border: none;
  border-top: 1px solid var(--border);
}

/* ─── PAGE HERO (non-fullscreen) ────────────────────────────────────────────── */

.page-hero {
  padding: 140px 0 72px;
  border-bottom: 1px solid var(--border);
}

.page-hero .section-label { margin-bottom: 16px; }

.page-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 11vw, 140px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 20px;
}

.page-hero-body {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
}

/* ─── BUTTONS ───────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 28px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-mid);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* Loading spinner */
.btn.is-loading { color: transparent !important; pointer-events: none; position: relative; }
.btn.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── FOOTER ────────────────────────────────────────────────────────────────── */

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

.footer-left p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-left a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-left a:hover { color: var(--text); }

.footer-right {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── SCROLL REVEAL ─────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .section { padding: 64px 0; }
  .page-hero { padding: 100px 0 48px; }
  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }
}

@media (max-width: 640px) {
  .nav-inner { padding: 0 24px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 60px; right: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(14,12,10,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    z-index: 99;
    min-width: 180px;
    overflow: hidden;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    font-size: 11px;
    width: 100%;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links a:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .btn { padding: 13px 22px; }
}
