/* ===== CSS Variables ===== */
:root {
  --primary: #0066cc;
  --primary-hover: #0052a3;
  --primary-light: rgba(0, 102, 204, 0.1);
  --accent: #00a86b;
  --accent-light: rgba(0, 168, 107, 0.1);

  --background: #ffffff;
  --foreground: #1a1a2e;
  --muted: #f5f7fa;
  --muted-foreground: #6b7280;
  --border: #e5e7eb;
  --card: #ffffff;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ===== Utilities ===== */
.container {
  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;
  }
}

.hidden {
  display: none !important;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .section-header h2 {
    font-size: 3rem;
  }
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: white;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-icon:hover {
  background: var(--muted);
}

.btn-language {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.btn-language:hover {
  background: var(--muted);
}

.btn-language .icon {
  width: 1rem;
  height: 1rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-desktop {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.header-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .header-actions {
    display: flex;
  }
}

.btn-header-cta {
  padding: 0.5rem 1rem;
}

.mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-actions {
    display: none;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0.5rem;
  background: var(--background);
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.mobile-menu a:hover {
  background: var(--muted);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1506973035872-a4ec16b8e8d9?w=1920&h=1080&fit=crop") center / cover
    no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.5);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-wrap: balance;
}

.hero-text h1 .highlight {
  color: #fbbf24;
}

.hero-text p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .hero-text h1 {
    font-size: 3rem;
  }
  .hero-text p {
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) {
  .hero-text h1 {
    font-size: 3.75rem;
  }
  .hero-text p {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-text h1 {
    font-size: 4.5rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-indicator .icon {
  width: 2rem;
  height: 2rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Services ===== */
.services {
  padding: 5rem 0;
  background: var(--muted);
}

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

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

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

.service-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-icon svg {
  width: 2rem;
  height: 2rem;
}

.icon-study {
  background: var(--primary-light);
  color: var(--primary);
}

.icon-study svg {
  stroke: var(--primary);
}

.icon-migration {
  background: var(--accent-light);
  color: var(--accent);
}

.icon-migration svg {
  stroke: var(--accent);
}

.icon-career {
  background: var(--primary-light);
  color: var(--primary);
}

.icon-career svg {
  stroke: var(--primary);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .service-card h3 {
    font-size: 1.5rem;
  }
}

.service-card p {
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ===== About ===== */
.about {
  padding: 5rem 0;
}

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

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

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

.about-image {
  position: relative;
}

.image-wrapper {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

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

.mara-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--primary);
}

.badge-title {
  font-weight: 600;
}

.badge-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .about-content h2 {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .about-content h2 {
    font-size: 3rem;
  }
}

.about-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-mara {
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--primary);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 1.875rem;
  }
}

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

/* ===== Process ===== */
.process {
  padding: 5rem 0;
  background: var(--muted);
}

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

.process-steps {
  position: relative;
}

.process-line {
  display: none;
  position: absolute;
  top: 3rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
}

@media (min-width: 768px) {
  .process-line {
    display: block;
  }
}

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

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

.step-item {
  position: relative;
  text-align: center;
}

.step-number {
  position: relative;
  z-index: 10;
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.5rem;
  background: var(--card);
  border: 4px solid var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.step-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step-item p {
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ===== Contact ===== */
.contact {
  padding: 5rem 0;
}

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

.contact-grid {
  display: grid;
  gap: 3rem;
}

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

.contact-form-wrapper {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--primary);
}

.info-link {
  color: var(--foreground);
  transition: color 0.2s;
}

.info-link:hover {
  color: var(--primary);
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 16rem;
}

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

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

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

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

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

.footer-brand .logo-text {
  color: white;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

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

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

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

.footer-links .contact-info-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links .contact-info-list svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.footer-links .contact-info-list span {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links .contact-info-list a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

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

.footer-bottom .disclaimer {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

/* ===== Floating Contact ===== */
.floating-contact {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: fadeInUp 0.3s ease;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-weight: 500;
  transition: all 0.2s;
}

.contact-option:hover {
  background: var(--primary-hover);
}

.contact-option svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-toggle {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.contact-toggle:hover {
  background: var(--primary-hover);
}

.contact-toggle.expanded {
  background: var(--muted-foreground);
}

.contact-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.contact-toggle .phone-icon {
  animation: pulse 2s infinite;
}

/* ===== Cookie Consent ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--card);
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .cookie-consent {
    flex-direction: row;
    justify-content: space-between;
  }
}

.cookie-consent p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cookie-learn {
  font-size: 0.875rem;
  color: var(--primary);
}

.cookie-learn:hover {
  text-decoration: underline;
}

/* ===== Legal Pages ===== */
.legal-header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.legal-header .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.legal-header .btn-secondary {
  background: var(--muted);
  color: var(--foreground);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

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

.legal-content {
  padding: 4rem 0;
  min-height: calc(100vh - 8rem);
}

.legal-content .container {
  max-width: 800px;
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .legal-content h1 {
    font-size: 2.5rem;
  }
}

.legal-updated {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .legal-section h2 {
    font-size: 1.5rem;
  }
}

.legal-section p {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

.legal-section li {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.legal-section a {
  color: var(--primary);
  transition: color 0.2s;
}

.legal-section a:hover {
  text-decoration: underline;
}

.cookie-table {
  overflow-x: auto;
  margin: 1rem 0;
}

.cookie-table 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 th {
  background: var(--muted);
  font-weight: 600;
  color: var(--foreground);
}

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