/* LogMeIn.top - Static Website Styles */
/* WCAG 2.2 AA Compliant - Modern, Performance-First Design */

:root {
  /* Color System - High Contrast for Accessibility */
  --primary-blue: #1e40af;
  --primary-hover: #1d4ed8;
  --secondary-gray: #374151;
  --light-gray: #f3f4f6;
  --medium-gray: #6b7280;
  --dark-gray: #111827;
  --white: #ffffff;
  --success-green: #059669;
  --warning-orange: #d97706;
  --error-red: #dc2626;
  
  /* Typography Scale */
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  
  /* Spacing System */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Layout */
  --max-width: 1200px;
  --content-width: 800px;
  --border-radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-system);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--dark-gray);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-blue);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 6px;
}

/* Focus States */
*:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-md);
  color: var(--dark-gray);
}

h1 { font-size: 2.5rem; margin-bottom: var(--space-lg); }
h2 { font-size: 2rem; margin-top: var(--space-xl); }
h3 { font-size: 1.5rem; margin-top: var(--space-lg); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }

p {
  margin-bottom: var(--space-lg);
}

a {
  color: var(--primary-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

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

/* Layout Components */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.content-width {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  padding: var(--space-lg) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-gray);
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius);
  transition: background-color 0.2s ease;
}

.main-nav a:hover {
  background: var(--light-gray);
}

/* Disclaimer Banner */
.disclaimer-banner {
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  border: 1px solid #f59e0b;
  padding: var(--space-md);
  margin: var(--space-lg) 0;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
}

/* Hero Section */
.hero {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  color: var(--dark-gray);
}

.hero p {
  font-size: 1.25rem;
  color: var(--secondary-gray);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  justify-content: center;
  min-height: 48px; /* Accessibility - minimum touch target */
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-group {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin: var(--space-xl) 0;
}

/* Content Sections */
.section {
  padding: var(--space-3xl) 0;
}

.section-alt {
  background: var(--light-gray);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
}

.card {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin-top: 0;
  color: var(--dark-gray);
}

/* FAQ Accordion */
.faq-list {
  max-width: var(--content-width);
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.faq-question {
  background: var(--white);
  border: none;
  padding: var(--space-lg);
  width: 100%;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
  min-height: 48px;
}

.faq-question:hover {
  background: var(--light-gray);
}

.faq-question[aria-expanded="true"] {
  background: var(--light-gray);
}

.faq-icon {
  transition: transform 0.2s ease;
  font-size: 1.2rem;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  display: none;
  border-top: 1px solid var(--light-gray);
  background: #fafafa;
}

.faq-answer.show {
  display: block;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: var(--space-lg) 0;
  font-size: 0.9rem;
}

.breadcrumbs nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--medium-gray);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--primary-blue);
}

.breadcrumb-separator {
  color: var(--medium-gray);
}

/* Footer */
.site-footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-3xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--space-sm);
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  text-align: center;
  color: #9ca3af;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-gray);
  color: var(--white);
  padding: var(--space-lg);
  z-index: 1000;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cookie-btn {
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  min-height: 44px;
}

.cookie-btn.accept {
  background: var(--success-green);
  color: var(--white);
}

.cookie-btn.reject {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.cookie-btn.preferences {
  background: transparent;
  color: var(--white);
  text-decoration: underline;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--dark-gray);
}

.form-input, .form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary-blue);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --space-3xl: 2rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .btn-group {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    min-width: 200px;
  }
  
  .header-content {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .main-nav ul {
    justify-content: center;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .section {
    padding: var(--space-xl) 0;
  }
  
  .card {
    padding: var(--space-lg);
  }
  
  .cookie-buttons {
    width: 100%;
  }
  
  .cookie-btn {
    flex: 1;
  }
}

/* Print Styles */
@media print {
  .cookie-banner,
  .site-header,
  .site-footer,
  .btn-group {
    display: none;
  }
  
  .hero {
    background: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary-blue: #0000ff;
    --dark-gray: #000000;
    --medium-gray: #666666;
  }
}

/* Reduced Motion Support */
@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;
  }
}
