/* =================================================================
   ObviouslyNot Main CSS
   Common styles shared across all public-facing pages
   ================================================================= */

/* =================================================================
   Reset & Base Styles
   ================================================================= */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth; 
}

body { 
  font-family: 'Inter', system-ui, -apple-system, sans-serif; 
  background: #ffffff; 
  color: #111111;
  line-height: 1.6;
  min-height: 100vh;
}

/* =================================================================
   Brand Colors
   ================================================================= */
:root {
  --primary-black: #111111;
  --pure-white: #ffffff;
  --accent-cyan: #2DC5E8;
  --accent-purple: #4A3F78;
  --accent-purple-light: #BFA8FF;
  --gray-light: #e5e5e5;
  --gray-bg: #F7F8FA;
  --text-muted: rgba(17, 17, 17, 0.6);
}

/* =================================================================
   Typography
   ================================================================= */
h1 {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h2 {
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--primary-black);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--primary-black);
}

p {
  margin-bottom: 1rem;
  color: var(--primary-black);
  line-height: 1.7;
}

strong {
  font-weight: 600;
  color: var(--primary-black);
}

/* =================================================================
   Layout Components
   ================================================================= */
.container { 
  max-width: 800px; 
  margin: 0 auto; 
  padding: 0 20px; 
}

.container-wide {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 3rem;
}

.content {
  padding: 4rem 0 6rem;
}

/* =================================================================
   Header & Logo
   ================================================================= */
header {
  padding: 2rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: var(--primary-black);
}

.logo .eq {
  color: var(--accent-purple);
}

.back-link {
  font-size: 0.95rem;
  color: var(--primary-black);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* =================================================================
   Navigation (Public Pages)
   ================================================================= */
.nav-main {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--primary-black);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  opacity: 0.7;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-cyan);
  opacity: 1;
}

.nav-cta {
  background: var(--primary-black);
  color: white;
  padding: 0.625rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(45, 197, 232, 0.3);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  width: 30px;
  height: 30px;
  z-index: 1001;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.overlay-visible {
  display: block;
  opacity: 1;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary-black);
  margin: 5px 0;
  transition: all 0.3s ease;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.hamburger-line:nth-child(1) {
  top: 5px;
}

.hamburger-line:nth-child(2) {
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.hamburger-line:nth-child(3) {
  bottom: 5px;
}

/* Animate hamburger to X when open */
.mobile-menu-toggle.menu-open .hamburger-line:nth-child(1) {
  transform: translateX(-50%) translateY(8px) rotate(45deg);
  top: 50%;
}

.mobile-menu-toggle.menu-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.menu-open .hamburger-line:nth-child(3) {
  transform: translateX(-50%) translateY(-8px) rotate(-45deg);
  bottom: 50%;
}

/* =================================================================
   Buttons
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-black);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 197, 232, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--primary-black);
  border: 2px solid var(--gray-light);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(45, 197, 232, 0.05);
}

/* =================================================================
   Footer
   ================================================================= */
footer {
  border-top: 1px solid var(--gray-light);
  padding: 3rem 0;
  text-align: center;
}

.footer-text {
  font-size: 0.875rem;
  color: var(--primary-black);
  opacity: 0.6;
  line-height: 1.8;
}

.footer-text a,
.footer-link {
  color: var(--primary-black);
  opacity: 0.6;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-text a:hover,
.footer-link:hover {
  color: var(--accent-cyan);
  opacity: 1;
}

/* =================================================================
   Common Components
   ================================================================= */

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary-black);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(45, 197, 232, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-black);
  border: 2px solid var(--primary-black);
}

.btn-secondary:hover {
  background: var(--accent-purple);
  color: white;
  border-color: var(--accent-purple);
}

/* Cards */
.card {
  background: white;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: var(--accent-purple-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Content Boxes */
.content-box {
  background: var(--gray-bg);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.content-box:hover {
  border-color: var(--accent-purple-light);
}

/* Lists */
ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--primary-black);
}

/* Links in Content */
.content a {
  color: var(--accent-cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-cyan);
  transition: all 0.2s ease;
}

.content a:hover {
  color: var(--primary-black);
  border-bottom-color: var(--primary-black);
}

/* =================================================================
   Utility Classes
   ================================================================= */
.text-center { text-align: center; }
.text-muted { opacity: 0.6; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* =================================================================
   Responsive Design
   ================================================================= */

/* Tablet */
@media (max-width: 768px) {
  .content {
    padding: 3rem 0 4rem;
  }
  
  .section {
    margin-bottom: 2.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .content-box {
    padding: 1.5rem;
  }

  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: block;
  }

  /* Style mobile navigation */
  .nav-main {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-main.nav-open {
    right: 0;
  }

  .nav-link {
    font-size: 1.125rem;
    width: 100%;
    padding: 0.5rem 0;
    opacity: 1;
  }

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

  .nav-link.active {
    color: var(--accent-cyan);
    font-weight: 600;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .container,
  .container-wide {
    padding: 0 1.25rem;
  }

  h1 {
    font-size: 2rem;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .nav-main {
    width: 100%;
    justify-content: space-between;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container,
  .container-wide {
    padding: 0 1rem;
  }

  header {
    padding: 1.5rem 0;
  }

  .back-link {
    font-size: 0.875rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.125rem;
  }

  p, li {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .content {
    padding: 2rem 0 3rem;
  }

  .footer-text {
    font-size: 0.75rem;
  }

  .footer-text a,
  .footer-link {
    display: inline-block;
    padding: 0.25rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    width: 100%;
    max-width: 300px;
  }

  .nav-cta {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
  a, button {
    -webkit-tap-highlight-color: rgba(45, 197, 232, 0.2);
    min-height: 44px;
    min-width: 44px;
  }
}

/* =================================================================
   Page-Specific Overrides
   Add specific page styles using data attributes or classes
   ================================================================= */

/* Print styles for legal documents */
@media print {
  header, footer {
    display: none;
  }
  
  body {
    font-size: 11pt;
  }
  
  .container {
    max-width: 100%;
  }
}