/* ============================================
   RESET & TOKENS
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --spacing-xxxl: 64px;
  --spacing-mega: 96px;

  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --primary-50: #f5f3ff;
  --primary-100: #ede9fe;
  --primary-200: #ddd6fe;
  --primary-500: #8b5cf6;
  --primary-600: #7c3aed;
  --primary-700: #6d28d9;
  --primary-900: #4c1d95;

  --neutral-50: #fafafa;
  --neutral-100: #f4f4f5;
  --neutral-200: #e4e4e7;
  --neutral-400: #a1a1aa;
  --neutral-700: #3f3f46;
  --neutral-900: #18181b;
  --white: #ffffff;

  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  --shadow-sm: 0 2px 8px rgba(139, 92, 246, 0.08);
  --shadow-md: 0 4px 16px rgba(139, 92, 246, 0.12);
  --shadow-lg: 0 8px 24px rgba(139, 92, 246, 0.15);
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--neutral-700);
  background: var(--neutral-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY & LAYOUT
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--neutral-900);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 40px;
}

h2 {
  font-size: 28px;
  font-weight: 600;
}

h3 {
  font-size: 22px;
  font-weight: 600;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

section {
  padding: var(--spacing-mega) 0;
}

.page-header {
  text-align: center;
  margin-bottom: 50px;
}

.page-header h1 {
  font-size: 40px;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 18px;
  color: var(--neutral-700);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  margin-bottom: 30px;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--primary-500);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ============================================
   LEGACY NAVIGATION
   Scoped away from shared .op-nav header.
   ============================================ */
nav:not(.op-nav) {
  background: var(--white);
  border-bottom: 1px solid var(--neutral-200);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

nav:not(.op-nav) .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

nav:not(.op-nav) .logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-500);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

nav:not(.op-nav) .nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

nav:not(.op-nav) .nav-links a {
  color: var(--neutral-700);
  text-decoration: none;
  font-weight: 500;
  transition: color 250ms ease;
}

nav:not(.op-nav) .nav-links a:hover {
  color: var(--primary-500);
}

.user-welcome {
  color: var(--white) !important;
  margin-right: 1rem !important;
  font-weight: 500;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 250ms ease-out;
  min-height: 40px;
}

nav:not(.op-nav) .btn,
nav:not(.op-nav) .btn-secondary,
nav:not(.op-nav) .btn-primary {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 15px;
  border-radius: 8px;
  box-shadow: none;
}

.btn-primary {
  background: var(--primary-500);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-900);
  border: 2px solid var(--primary-500);
  box-shadow: none;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.btn-secondary:hover {
  background: var(--primary-50);
  color: var(--primary-700);
  border-color: var(--primary-700);
}

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

.btn-outline:hover {
  background: var(--primary-500);
  color: var(--white);
}

/* ============================================
   CONTENT BLOCKS
   ============================================ */
.content-section {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.content-section p {
  margin-bottom: 16px;
  font-size: 16px;
}

.content-section ul,
.content-section ol {
  margin-left: 20px;
  margin-bottom: 16px;
}

.content-section li {
  margin-bottom: 8px;
}

.highlight-box {
  background: var(--neutral-50);
  border-left: 4px solid var(--primary-500);
  padding: 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}

.warning-box {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}

.last-updated {
  font-style: italic;
  color: var(--neutral-700);
  margin-bottom: 30px;
}

.important {
  font-weight: 600;
  color: var(--primary-600);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.feature-card {
  background: var(--neutral-50);
  padding: 30px;
  border-radius: 12px;
  border: 2px solid var(--neutral-200);
}

.feature-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 12px;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

/* ============================================
   CONTACT & FORM BLOCKS
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-card h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 20px;
}

.contact-info {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}

.contact-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  background: var(--neutral-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--neutral-700);
  margin: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-700);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--neutral-200);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.success-message,
.error-message {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: none;
}

.success-message {
  background: #d1fae5;
  color: var(--success);
}

.error-message {
  background: #fee2e2;
  color: var(--error);
}

.success-message.show,
.error-message.show {
  display: block;
}

/* ============================================
   FAQ BLOCKS
   ============================================ */
.faq-section {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-top: 30px;
}

.faq-section h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 30px;
}

.faq-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--neutral-200);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 12px;
}

.faq-item p {
  color: var(--neutral-700);
  margin: 0;
}

/* ============================================
   COOKIE CONSENT
   ============================================ */
#cookie-consent-banner button {
  transition: background 0.2s;
}

#cookie-consent-banner button:hover {
  background: #ffe066;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--neutral-900);
  color: var(--neutral-400);
  padding: 48px 0 0;
  margin-top: 40px;
  width: 100%;
}

.footer-grid {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 24px;
  align-items: flex-start;
}

.footer-brand {
  max-width: 320px;
  flex: 2 1 240px;
  min-width: 200px;
}

.footer-brand h3 {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.footer-column {
  min-width: 160px;
  flex: 1 1 160px;
  margin-bottom: 24px;
}

.footer-column h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--neutral-400);
  text-decoration: none;
  transition: color 250ms ease;
}

.footer-links a:hover {
  color: var(--primary-500);
}

.footer-bottom {
  border-top: 1px solid var(--neutral-700);
  text-align: center;
  padding: 18px 0 8px;
  color: var(--neutral-400);
  font-size: 0.98rem;
  margin-top: 12px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1023px) {
  .footer-grid {
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
  }

  .footer-brand,
  .footer-column {
    min-width: 0;
    max-width: 100%;
  }

  .footer-column {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  nav:not(.op-nav) .nav-links {
    display: none;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .content-section,
  .faq-section,
  .contact-card {
    padding: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-grid {
    gap: 20px;
  }

  .footer-brand,
  .footer-column {
    min-width: 0;
    max-width: 100%;
  }

  .footer-bottom {
    font-size: 0.92rem;
    padding: 14px 0 6px;
  }
}
