/* 
 * MASTER STYLESHEET - SINGLE SOURCE OF TRUTH
 * John Chervanev LLC Website
 * All common styles for all pages
 */

/* ===== RESET & BASE ===== */
*, *::before, *::after { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors - Light Mode */
  --bg: #ffffff;
  --bg-secondary: #f5f5f3;
  --text: #111111;
  --text-secondary: #555550;
  --text-tertiary: #999990;
  --border: rgba(0,0,0,0.12);
  --border-hover: rgba(0,0,0,0.25);
  
  /* Accent Color */
  --accent: #2563EB;
  --accent-light: rgba(37, 99, 235, 0.1);
  
  /* Border Radius */
  --radius-md: 8px;
  --radius-lg: 14px;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --bg-secondary: #111111;
    --text: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #606060;
    --border: rgba(255,255,255,0.1);
    --border-hover: rgba(255,255,255,0.2);
  }
}

/* ===== GLOBAL STYLES ===== */
html { 
  scroll-behavior: smooth; 
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== LAYOUT ===== */
.wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ===== TYPOGRAPHY ===== */
.logo-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 80px;
  letter-spacing: 0.18em;
  color: var(--text);
  line-height: 1;
}

.logo-subtitle {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
}

.logo-tagline {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1rem;
}

/* ===== LOGO ===== */
.logo-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-triangle {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 30px solid var(--accent);
  margin: 0.8rem auto;
}

/* ===== NAVIGATION ===== */
.back-link {
  display: inline-block;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* ===== DIVIDER ===== */
.divider {
  height: 0.5px;
  background: var(--border);
  margin: 2rem 0;
}

/* ===== FOOTER ===== */
.footer { 
  max-width: 900px; 
  margin: 4rem auto 0; 
  padding: 3rem 0; 
  border-top: 0.5px solid var(--border);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  text-align: center;
}

.footer-name { 
  font-family: 'Bebas Neue', sans-serif; 
  font-size: 28px; 
  letter-spacing: 0.06em; 
  color: var(--text); 
  margin-bottom: 0.5rem;
  line-height: 1;
}

.footer-sub { 
  font-size: 12px; 
  color: var(--text-tertiary); 
  letter-spacing: 0.08em; 
  line-height: 1.6;
}

.footer-links { 
  display: flex; 
  gap: 48px; 
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link { 
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; 
  color: var(--text-secondary); 
  text-decoration: none; 
  letter-spacing: 0.08em; 
  transition: color 0.2s;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

.footer-link:hover { 
  color: var(--accent); 
  border-bottom-color: var(--accent);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .wrapper {
    padding: 1.5rem 1rem;
  }
  
  .logo-name {
    font-size: 60px;
  }
  
  .logo-subtitle {
    font-size: 28px;
  }
  
  .footer-content { 
    flex-direction: column; 
    gap: 2rem; 
  }
  
  .footer-bottom { 
    flex-direction: column; 
    gap: 1rem; 
    text-align: center; 
  }
  
  .footer-links {
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .logo-name {
    font-size: 48px;
  }
  
  .logo-subtitle {
    font-size: 24px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}
