/* ============================================
   Transfersbook - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
  --primary: #1e3a5f;
  --primary-light: #2d5a8a;
  --primary-dark: #152a45;
  --accent: #0891b2;
  --accent-light: #22d3ee;
  --background: #f8fafc;
  --card: #ffffff;
  --foreground: #0f172a;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --radius: 0.625rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.75rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 3.5rem; }
}

p {
  margin-bottom: 1rem;
}

.text-muted {
  color: var(--muted);
}

.text-balance {
  text-wrap: balance;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ============================================
   Header
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

@media (min-width: 768px) {
  .header-inner { height: 5rem; }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.logo svg {
  width: 2rem;
  height: 2rem;
}

.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--foreground);
  background: var(--border-light);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(30, 58, 95, 0.1);
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--foreground);
}

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 1rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.mobile-nav-link:hover {
  color: var(--foreground);
  background: var(--border-light);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--primary-light);
}

.btn-secondary {
  background: var(--border-light);
  color: var(--foreground);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
}

.btn-outline:hover {
  background: var(--border-light);
}

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

.btn-accent:hover {
  background: var(--accent-light);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-hover {
  transition: all 0.2s;
}

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

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  background: var(--border-light);
  border-top: 1px solid var(--border);
}

/* ============================================
   Badge
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

.badge-primary {
  background: rgba(30, 58, 95, 0.1);
  color: var(--primary);
}

.badge-secondary {
  background: var(--border-light);
  color: var(--muted);
}

.badge-accent {
  background: rgba(8, 145, 178, 0.1);
  color: var(--accent);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.05) 0%, var(--background) 50%, rgba(8, 145, 178, 0.05) 100%);
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .hero { padding: 4rem 0; }
}

@media (min-width: 1024px) {
  .hero { padding: 5rem 0; }
}

.hero-content {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero-text h1 {
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section { padding: 5rem 0; }
}

@media (min-width: 1024px) {
  .section { padding: 6rem 0; }
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.125rem;
}

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

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

.section-primary h2,
.section-primary h3 {
  color: white;
}

.section-primary p {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Grid Layouts
   ============================================ */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   Feature Cards
   ============================================ */
.feature-card {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: rgba(30, 58, 95, 0.1);
  color: var(--primary);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ============================================
   Guide Cards
   ============================================ */
.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
}

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

.guide-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.guide-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.guide-card:hover .guide-card-image img {
  transform: scale(1.05);
}

.guide-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guide-card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.guide-card-content p {
  color: var(--muted);
  font-size: 0.875rem;
  flex: 1;
}

.guide-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.guide-card-link svg {
  transition: transform 0.2s;
}

.guide-card:hover .guide-card-link svg {
  transform: translateX(4px);
}

/* ============================================
   Tables
   ============================================ */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead {
  background: var(--border-light);
}

th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--border-light);
}

/* ============================================
   Accordion / FAQ
   ============================================ */
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  background: var(--card);
  transition: background 0.2s;
}

.accordion-trigger:hover {
  background: var(--border-light);
}

.accordion-trigger svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.accordion-item.open .accordion-trigger svg {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 0 1.25rem 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.accordion-item.open .accordion-content {
  display: block;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

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

.form-hint {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ============================================
   Ad Container
   ============================================ */
.ad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(100, 116, 139, 0.05);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.ad-container-horizontal {
  height: 6rem;
}

@media (min-width: 768px) {
  .ad-container-horizontal { height: 7rem; }
}

.ad-container-vertical {
  height: 16rem;
  max-width: 300px;
  width: 100%;
}

@media (min-width: 768px) {
  .ad-container-vertical { height: 20rem; }
}

.ad-container-banner {
  height: 5rem;
}

@media (min-width: 768px) {
  .ad-container-banner { height: 6rem; }
}

.ad-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ad-sublabel {
  font-size: 0.625rem;
  color: var(--muted-light);
  margin-top: 0.25rem;
}

/* ============================================
   Stats
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--primary);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 20rem;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: background 0.2s;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-col h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-contact p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.footer-contact strong {
  color: white;
  font-weight: 500;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: white;
}

/* ============================================
   Page Content
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.05) 0%, var(--background) 50%, rgba(8, 145, 178, 0.05) 100%);
  padding: 3rem 0 4rem;
}

@media (min-width: 768px) {
  .page-hero { padding: 4rem 0 5rem; }
}

.page-content {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .page-content { padding: 4rem 0; }
}

.content-wrapper {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr 300px;
    gap: 3rem;
  }
}

.content-main {
  min-width: 0;
}

.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.sidebar-card h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.sidebar-links a:hover {
  color: var(--primary);
  background: var(--border-light);
}

/* ============================================
   Utilities
   ============================================ */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
}

/* ============================================
   Icon Styles
   ============================================ */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-xl {
  width: 2rem;
  height: 2rem;
}

/* ============================================
   Nav (sub-pages structure)
   ============================================ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .nav { height: 5rem; }
}

.nav-menu {
  display: none;
  list-style: none;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.nav-item {
  position: relative;
}

.nav-item.has-dropdown:hover .dropdown {
  display: block;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 100;
  list-style: none;
  padding: 0.5rem 0;
}

.dropdown li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  transition: all 0.2s;
}

.dropdown li a:hover {
  color: var(--primary);
  background: var(--border-light);
}

/* ============================================
   Hero - sub-page variants
   ============================================ */
.hero-small {
  padding: 2.5rem 0;
}

@media (min-width: 768px) {
  .hero-small { padding: 3rem 0; }
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero-content h1 {
  margin-bottom: 1rem;
}

.hero-content.center {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.hero-content.center h1 {
  margin-top: 0.75rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.hero-image {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-only {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-only { display: block; }
}

/* ============================================
   Background utilities
   ============================================ */
.bg-muted {
  background: var(--border-light);
}

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

.bg-primary h2,
.bg-primary h3 {
  color: white;
}

.bg-primary p {
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   Section header center modifier
   ============================================ */
.section-header.center {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3rem;
}

/* ============================================
   Features grid
   ============================================ */
.features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   Stats - stat-number alias
   ============================================ */
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  display: block;
}

/* ============================================
   Values section
   ============================================ */
.values-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}

.value-card {
  padding: 2rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.2s;
}

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

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
}

.value-icon.accuracy {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.value-icon.transparency {
  background: rgba(8, 145, 178, 0.1);
  color: var(--accent);
}

.value-icon.accessibility {
  background: rgba(30, 58, 95, 0.1);
  color: var(--primary);
}

.value-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ============================================
   CTA block (bg-primary sections)
   ============================================ */
.cta-content {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 1rem;
  color: white;
}

.cta-content p {
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: white;
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
}

.btn-full {
  width: 100%;
}

/* ============================================
   Ad container class aliases
   ============================================ */
.ad-horizontal {
  height: 6rem;
}

@media (min-width: 768px) {
  .ad-horizontal { height: 7rem; }
}

/* ============================================
   Contact cards
   ============================================ */
.contact-cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .contact-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.contact-card {
  padding: 2rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.2s;
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(30, 58, 95, 0.1);
  color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-detail {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.contact-description {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ============================================
   Contact form section
   ============================================ */
.contact-form-wrapper {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-form-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form-info h2 {
  margin-bottom: 0.75rem;
}

.contact-form-info > p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.contact-topics h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.contact-topics ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.contact-topics li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.contact-topics li svg {
  flex-shrink: 0;
  color: var(--primary);
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

/* ============================================
   Legal pages
   ============================================ */
.container-narrow {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container-narrow { padding: 0 1.5rem; }
}

.legal-content {
  line-height: 1.75;
}

.legal-content h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--primary);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  color: var(--muted);
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
}

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

.contact-box {
  background: var(--border-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
}

.contact-box p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

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

/* ============================================
   Cookie table
   ============================================ */
.table-responsive {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.cookie-table th,
.cookie-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--border);
}

.cookie-table thead {
  background: var(--border-light);
}

.cookie-table th {
  font-weight: 600;
  color: var(--foreground);
}

.cookie-table td {
  color: var(--muted);
}

.cookie-table tbody tr:hover {
  background: var(--border-light);
}

/* ============================================
   Disclaimer alert
   ============================================ */
.disclaimer-alert {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  color: var(--foreground);
}

.disclaimer-alert svg {
  flex-shrink: 0;
  color: var(--warning);
  margin-top: 0.125rem;
}

.disclaimer-alert p {
  font-size: 0.9375rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ============================================
   Footer links heading fix (sub-pages use h4 directly)
   ============================================ */
.footer-links h4,
.footer-contact h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links ul li a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-links ul li a:hover {
  color: white;
}

.footer-contact p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.375rem;
  line-height: 1.6;
}

.footer-contact strong {
  color: white;
  font-weight: 500;
}
