:root {
  /* Colors - High-end modern theme based on Usable.es branding (WCAG 2.2 Compliant) */
  --bg-color: #ffffff; /* White background for content */
  --bg-light: #f8fafc; /* Very light grey for section distinction */
  
  --surface-1: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  
  --border-color: #e2e8f0;
  --border-highlight: #cbd5e1;
  
  --text-primary: #000000; /* Black text for main content */
  --text-secondary: #334155; /* Dark grey for secondary text to ensure high contrast */
  --text-muted: #475569;
  
  /* Accents */
  --primary: #2D3A8C; /* Deep Blue - Usable Brand */
  --primary-hover: #1e2865;
  --accent-1: #F2C94C; /* Yellow - Call to Action Accent */
  --accent-1-hover: #e0b63b;
  
  --success: #10b981;
  --error: #ef4444;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);
  
  /* Utilities */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --glass-bg: rgba(255, 255, 255, 0.95); 
  --glass-border: 1px solid rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

/* Accessibility: Focus visible ring */
*:focus-visible {
  outline: 3px solid var(--accent-1);
  outline-offset: 3px;
  border-radius: 2px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}
.clean-list {
  padding: 0;
  margin: 0;
}

.font-medium { font-weight: 500; }
.font-italic { font-style: italic; }
.mt-1 { margin-top: 0.5rem; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary); /* Deep Blue headers */
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover, a:focus {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.btn:hover, .btn:focus {
  text-decoration: none;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 0;
  background-color: var(--accent-1);
  color: #000;
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  font-weight: 700;
  transition: top 0.2s ease;
  border-bottom-right-radius: var(--radius-md);
}
.skip-link:focus {
  top: 0;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}
@media (min-width: 768px) {
  .section { padding: 8rem 0; }
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-1);
  background: var(--primary);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.text-error { color: var(--error); }
.text-success { color: var(--success); }

.section-heading {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.section-heading-sm {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.section-text-lg {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-text-lg { margin-left: auto; margin-right: auto; }

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .grid-2-col {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  background-color: var(--accent-1);
  color: #000;
}
.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--accent-1-hover);
  color: #000;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover, .btn-outline:focus {
  background: rgba(45, 58, 140, 0.05); /* deep blue tint */
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: all var(--transition);
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--primary);
}
.brand-logo {
  height: 32px;
  width: auto;
  border-radius: var(--radius-sm);
}
.logo:hover, .logo:focus { text-decoration: none; }
.logo .dot { color: var(--accent-1); }

.nav-links {
  display: none;
  gap: 2rem;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.nav-links a:hover, .nav-links a:focus {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  gap: 1rem;
}
@media (max-width: 768px) {
  .nav-actions .btn-outline { display: none; }
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8rem;
  padding-bottom: 6rem;
  text-align: center;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 1rem 0.25rem 0.25rem;
  background: var(--surface-1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 2rem;
  font-weight: 600;
}

.badge-new {
  background: var(--accent-1);
  color: #000;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  margin-right: 0.75rem;
}

.hero-title {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: black;
}
@media (min-width: 768px) {
  .hero-title { font-size: 4rem; }
}

.highlight-text {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* About Section */
.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bullet-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.125rem;
  color: var(--primary);
  font-weight: 500;
  background: var(--bg-light);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.list-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent-1);
  color: #000;
  border-radius: 50%;
  font-weight: bold;
}

/* Services */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  padding: 2.5rem;
  background: var(--surface-1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition);
}

.feature-card:hover, .feature-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: var(--primary);
  color: var(--accent-1);
}

.feature-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Reasons */
.reason-box {
  padding: 2rem;
  background: var(--bg-light);
  border-left: 4px solid var(--accent-1);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 1.5rem;
}

.reason-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.reason-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Call to Action */
.cta-section {
  background-color: var(--primary);
  color: #fff;
}

.cta-section .section-label {
  background: var(--accent-1);
  color: #000;
}

.cta-section .section-heading {
  color: #fff;
}

.cta-section .section-text-lg {
  color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.cta-btn {
  background-color: var(--accent-1);
  color: #000;
  font-size: 1.25rem;
  padding: 1.25rem 2.5rem;
}
.cta-btn:hover, .cta-btn:focus {
  background-color: var(--accent-1-hover);
  color: #000;
}

.cta-footer-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin-top: 1.5rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  background: var(--bg-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 1.5rem;
  max-width: 350px;
  line-height: 1.5;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.footer-links a {
  display: inline-block;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  font-size: 1rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  color: var(--text-secondary);
  transition: color var(--transition);
  display: block;
}

.footer-socials a:hover,
.footer-socials a:focus {
  color: var(--primary);
}

/* Modals */
.modal {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background: var(--bg-color);
  color: var(--text-primary);
  width: 90%;
  max-width: 600px;
  padding: 0;
  margin: auto;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.close-modal {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  padding: 0 0.5rem;
  transition: color var(--transition);
}

.close-modal:hover {
  color: var(--error);
}

.modal-body {
  padding: 2rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-height: 70vh;
  overflow-y: auto;
}
.modal-body p {
  margin-bottom: 1rem;
}
.modal-body p:last-child {
  margin-bottom: 0;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}

.lang-switcher a {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.lang-switcher a:hover,
.lang-switcher a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
