/* =========================================================
   SILVER BISON LLC — Global Stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* --- Custom Properties --- */
:root {
  --bg-primary:   #0B0F14;
  --bg-secondary: #0F1318;
  --bg-card:      #111827;
  --border-subtle:#1F2937;
  --border:       #374151;
  --text-primary: #E5E7EB;
  --text-secondary:#9CA3AF;
  --text-muted:   #6B7280;
  --accent:       #C9A96E;
  --accent-dim:   #A68B52;
  --font-serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width:    1080px;
  --nav-height:   72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--accent);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 {
  font-size: 2.75rem;
  letter-spacing: 0.04em;
}

h2 {
  font-size: 2rem;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: rgba(11, 15, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav-brand:hover {
  color: var(--accent);
}

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

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s ease;
}

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

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

main {
  flex: 1;
}

.section {
  padding: 5rem 0;
}

.section + .section {
  border-top: 1px solid var(--border-subtle);
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding: 6rem 0 5rem;
}

.hero-mark {
  width: 140px;
  height: auto;
  margin: 0 auto 2.5rem;
  opacity: 0.95;
}

.hero h1 {
  font-size: 3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.25s ease;
}

.card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.card h3 {
  font-family: var(--font-serif);
  color: var(--text-primary);
}

.card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.card-link {
  display: block;
  color: inherit;
}

.card-link:hover {
  color: inherit;
}

/* --- App Card --- */
.app-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2.5rem;
  transition: border-color 0.3s ease;
}

.app-card:hover {
  border-color: var(--border);
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  flex-shrink: 0;
}

.app-card-body h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.app-links {
  margin-top: 1.25rem;
  display: flex;
  gap: 1.5rem;
}

.app-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.app-links a:hover {
  color: var(--accent-dim);
}

/* --- Content Page --- */
.page-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.page-header h1 {
  font-size: 2.5rem;
  letter-spacing: 0.04em;
}

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

.content-section {
  padding: 3rem 0;
}

.content-section + .content-section {
  border-top: 1px solid var(--border-subtle);
}

.content-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.content-section h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.content-section h3:first-child {
  margin-top: 0;
}

.content-section p {
  font-size: 0.94rem;
  line-height: 1.75;
}

.content-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0.75rem 0 1rem;
}

.content-section ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.content-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 1px;
  background-color: var(--accent);
}

/* --- Support Page Specifics --- */
.contact-block {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2rem;
  margin-top: 1.5rem;
}

.contact-block p {
  margin-bottom: 0.5rem;
}

.email-link {
  color: var(--accent);
  font-weight: 500;
}

.email-link:hover {
  color: var(--accent-dim);
}

/* --- Legal Pages --- */
.legal-content {
  padding: 3rem 0 5rem;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  text-align: center;
}

.site-footer p {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: rgba(11, 15, 20, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }

  .hero-mark {
    width: 100px;
    margin-bottom: 2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .app-links {
    justify-content: center;
  }

  .section {
    padding: 3.5rem 0;
  }

  .page-header {
    padding: 3rem 0 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero h1 {
    font-size: 1.6rem;
    letter-spacing: 0.05em;
  }

  .card {
    padding: 1.5rem;
  }

  .app-card {
    padding: 1.75rem;
  }
}
