/* ============================================
   Save Me Josh - Styles
   SEC-compliant superhero-themed landing page
   ============================================ */

/* CSS Variables */
:root {
  --bg: #0E0F12;
  --ink: #FFFFFF;
  --hero: #FFD400;
  --accent: #E43D30;
  --line: #2A2D33;
  --muted: #9AA3AF;
  
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Inter', 'Helvetica Now', system-ui, sans-serif;
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  --container-max: 1200px;
  --header-height: 80px;
  
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
}

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

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

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  overflow-x: hidden;
}

/* Skip Link */
.skip {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--hero);
  color: var(--bg);
  padding: var(--spacing-sm);
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
}

.skip:focus {
  top: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: var(--spacing-sm);
}

strong {
  font-weight: 700;
  color: var(--hero);
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(14, 15, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-md);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.logo span {
  color: var(--hero);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--hero);
  color: var(--bg);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #FFC700;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 212, 0, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn:focus-visible {
  outline: 3px solid var(--hero);
  outline-offset: 3px;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) var(--spacing-md);
  position: relative;
  overflow: hidden;
  text-align: center;
  background-image: url('/assets/hero-background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 15, 18, 0.3);
  pointer-events: none;
  z-index: 1;
}

.hero__copy {
  z-index: 2;
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
}

.hero__sub {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: var(--spacing-md);
}

.hero .btn-lg {
  margin-bottom: var(--spacing-md);
}

.legal.micro {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 600px;
  margin: var(--spacing-md) auto 0;
}



/* What This Is Section */
.what {
  padding: var(--spacing-xl) var(--spacing-md);
  background: linear-gradient(180deg, var(--bg) 0%, rgba(42, 45, 51, 0.2) 100%);
}

.panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  max-width: var(--container-max);
  margin: 0 auto var(--spacing-md);
}

.panel {
  background: rgba(42, 45, 51, 0.5);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--spacing-md);
  text-align: center;
  transition: all var(--transition-base);
}

.panel:hover {
  border-color: var(--hero);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 212, 0, 0.1);
}

.panel .icon {
  width: 48px;
  height: 48px;
  color: var(--hero);
  margin: 0 auto var(--spacing-sm);
}

.panel p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  color: var(--ink);
}

.note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  font-style: italic;
  max-width: 600px;
  margin: var(--spacing-md) auto 0;
}

/* Common Situations Section */
.pains {
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.pains .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  list-style: none;
}

.pain {
  width: 100%;
  background: rgba(42, 45, 51, 0.5);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: var(--spacing-md);
  font-family: var(--font-base);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.pain:hover,
.pain:focus {
  border-color: var(--accent);
  background: rgba(228, 61, 48, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(228, 61, 48, 0.2);
}

.pain:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.pain .icon-sm {
  width: 32px;
  height: 32px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Josh's Role Section */
.role {
  padding: var(--spacing-xl) var(--spacing-md);
  background: linear-gradient(180deg, var(--bg) 0%, rgba(42, 45, 51, 0.3) 100%);
  text-align: center;
}

.role h2 {
  margin-bottom: var(--spacing-lg);
}

.role__content {
  max-width: 800px;
  margin: 0 auto;
}

.shield-icon {
  width: 80px;
  height: 80px;
  color: var(--hero);
  margin: 0 auto var(--spacing-md);
}

.role p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: var(--spacing-md);
}

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

/* Booking Section */
.booking {
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.booking h2 {
  margin-bottom: var(--spacing-sm);
}

.booking .micro {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: var(--spacing-lg);
}

.calendly-container {
  background: rgba(42, 45, 51, 0.3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--spacing-md);
  overflow: hidden;
}

/* FAQ Section */
.faq {
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: 800px;
  margin: 0 auto;
}

.faq h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.accordion-item {
  background: rgba(42, 45, 51, 0.5);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.accordion-item:hover {
  border-color: var(--hero);
}

.accordion-button {
  width: 100%;
  background: none;
  border: none;
  padding: var(--spacing-md);
  font-family: var(--font-base);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-sm);
  transition: color var(--transition-base);
}

.accordion-button:hover,
.accordion-button:focus {
  color: var(--hero);
}

.accordion-button:focus-visible {
  outline: 3px solid var(--hero);
  outline-offset: -3px;
}

.accordion-button[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.chevron {
  width: 24px;
  height: 24px;
  color: var(--hero);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.accordion-content {
  padding: 0 var(--spacing-md) var(--spacing-md);
  color: var(--muted);
  line-height: 1.7;
}

.accordion-content[hidden] {
  display: none;
}

/* Final CTA Section */
.final-cta {
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  background: linear-gradient(180deg, rgba(42, 45, 51, 0.2) 0%, var(--bg) 100%);
}

.final-cta h2 {
  margin-bottom: var(--spacing-md);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  padding: var(--spacing-lg) var(--spacing-md);
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer .legal {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: var(--spacing-md);
  right: var(--spacing-md);
  width: 60px;
  height: 60px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(228, 61, 48, 0.4);
  transition: all var(--transition-base);
  z-index: 999;
}

.fab:hover,
.fab:focus {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(228, 61, 48, 0.6);
}

.fab:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.fab svg {
  width: 28px;
  height: 28px;
  color: var(--ink);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.modal[hidden] {
  display: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg);
  border: 2px solid var(--hero);
  border-radius: 16px;
  padding: var(--spacing-lg);
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(255, 212, 0, 0.3);
  animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  color: var(--muted);
  transition: color var(--transition-base);
}

.modal-close:hover,
.modal-close:focus {
  color: var(--ink);
}

.modal-close svg {
  width: 24px;
  height: 24px;
}

.modal-content h3 {
  color: var(--hero);
  margin-bottom: var(--spacing-sm);
}

.modal-content p {
  color: var(--muted);
  margin-bottom: var(--spacing-md);
}

/* Responsive Design */
@media (max-width: 1024px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }
  
  .hero {
    padding: var(--spacing-lg) var(--spacing-md);
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 3rem;
    --header-height: 70px;
  }
  
  .site-header {
    padding: 0 var(--spacing-sm);
  }
  
  .logo {
    font-size: 1.25rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  
  .panels {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .pains .grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .pain {
    font-size: 1rem;
    padding: var(--spacing-sm);
  }
  
  .fab {
    width: 56px;
    height: 56px;
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
  }
  
  .fab svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .hero__sub {
    font-size: 1.125rem;
  }
  
  .role p,
  .accordion-button {
    font-size: 1rem;
  }
  
  .calendly-container {
    padding: var(--spacing-sm);
  }
  
  .modal-content {
    padding: var(--spacing-md);
  }
}

/* Print Styles */
@media print {
  .site-header,
  .fab,
  .modal,
  .calendly-container {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --bg: #000000;
    --ink: #FFFFFF;
    --line: #FFFFFF;
  }
  
  .btn-primary {
    border: 2px solid var(--ink);
  }
  
  .panel,
  .pain,
  .accordion-item {
    border-width: 2px;
  }
}

