/* 
 * 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 - Black & White Only */
  --accent: #111111;
  --accent-light: rgba(0, 0, 0, 0.05);
  
  /* Border Radius */
  --radius-md: 8px;
  --radius-lg: 14px;
}

/* Dark Mode - Manual Toggle Support */
[data-theme="dark"] {
  --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);
  --accent: #ffffff;
  --accent-light: rgba(255, 255, 255, 0.05);
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1000;
  padding: 0;
}

.theme-toggle:hover {
  border-color: var(--text);
  background: var(--accent-light);
}

.theme-toggle:active {
  transform: scale(0.92);
}

/* Icon styles */
.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: var(--text);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.2s ease;
}

/* Hide sun icon in light mode, moon icon in dark mode */
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

/* ===== 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: 1200px;
  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: 1200px; 
  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; 
}

.footer-links { 
  display: flex; 
  gap: 14px; 
  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; 
  padding: 10px 20px;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
text-decoration: none; 
letter-spacing: 0.08em; 
padding: 10px 20px;
border-bottom: 3px solid transparent;
transition: color 0.2s, border-color 0.2s, transform 0.2s;
white-space: nowrap;
}

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

.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);
text-transform: uppercase;
letter-spacing: 0.08em;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-legal-link {
  color: var(--text-tertiary);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.2s;
}

.footer-legal-link:hover {
  color: var(--text);
}

/* ===== 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;
  }
}
