/* ===== Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #1d4ed8;
}

/* ===== Layout ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-logo:hover {
  text-decoration: none;
  color: #0f172a;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #0f172a;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #0f172a;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

.lang-switch {
  display: inline-flex;
  gap: 0.125rem;
  margin-left: 1.5rem;
  background: #f1f5f9;
  border-radius: 0.375rem;
  padding: 0.125rem;
}

.lang-switch a {
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.375rem 0.625rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.lang-switch a:hover {
  color: #475569;
  text-decoration: none;
}

.lang-switch a.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

/* ===== Hero ===== */
.hero {
  background: #0f172a;
  color: #fff;
  text-align: center;
  padding: 8rem 0 7rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

.hero .btn {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  padding: 0.875rem 2.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 0 rgba(37, 99, 235, 0);
}

.hero .btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  text-decoration: none;
}

/* ===== Section headings ===== */
.section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 3.5rem;
  color: #64748b;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ===== Why Romania highlights ===== */
.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.highlight-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #f1f5f9;
  transition: all 0.2s;
}

.highlight-item:hover {
  border-color: #e2e8f0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.highlight-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-left: auto;
  margin-right: auto;
  background: #f1f5f9;
  border-radius: 0.75rem;
}

.highlight-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.highlight-item p {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ===== Cards grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.2s;
}

.card:hover {
  border-color: #e2e8f0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.card p,
.card ul {
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.card ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.card ul li {
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
}

.card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.375rem;
  height: 0.375rem;
  background: #cbd5e1;
  border-radius: 50%;
}

/* ===== Programs table ===== */
.programs-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #f1f5f9;
}

.programs-table thead {
  background: #f8fafc;
}

.programs-table th,
.programs-table td {
  padding: 1rem 1.5rem;
  text-align: left;
}

.programs-table th {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
}

.programs-table tbody tr {
  border-bottom: 1px solid #f8fafc;
  transition: background 0.15s;
}

.programs-table tbody tr:last-child {
  border-bottom: none;
}

.programs-table tbody tr:hover {
  background: #f8fafc;
}

.programs-table td {
  font-size: 0.9375rem;
  color: #334155;
}

.programs-note {
  margin-top: 1.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
  text-align: center;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.contact-info p {
  color: #64748b;
  margin-bottom: 0.625rem;
  font-size: 0.9375rem;
}

.contact-info strong {
  color: #475569;
  font-weight: 600;
}

.contact-info a {
  color: #2563eb;
}

.contact-form {
  background: #f8fafc;
  padding: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid #f1f5f9;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 0.375rem;
  color: #475569;
  letter-spacing: -0.01em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  background: #fff;
  transition: all 0.2s;
  color: #0f172a;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

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

.contact-form button {
  background: #0f172a;
  color: #fff;
  border: none;
  padding: 0.875rem 2.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.01em;
  width: 100%;
}

.contact-form button:hover {
  background: #1e293b;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* ===== Footer ===== */
.site-footer {
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  color: #94a3b8;
  text-align: center;
  padding: 3rem 0;
  font-size: 0.875rem;
}

.site-footer a {
  color: #64748b;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #0f172a;
  text-decoration: none;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.25rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== Language picker (fallback — kept minimal) ===== */
.lang-picker {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #0f172a;
  color: #fff;
}

.lang-picker h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.lang-picker p {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2.5rem;
}

.lang-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.lang-options a {
  display: block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.2s;
}

.lang-options a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ===== Alternating section backgrounds ===== */
section:nth-child(even) {
  background: #f8fafc;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 4.5rem;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.625rem 0;
    display: block;
  }

  .lang-switch {
    margin-left: 0;
    margin-top: 0.75rem;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .highlights {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

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

  .programs-table {
    font-size: 0.875rem;
  }

  .programs-table th,
  .programs-table td {
    padding: 0.75rem;
  }

  .contact-form {
    padding: 1.75rem;
  }
}

@media (max-width: 480px) {
  .highlights {
    grid-template-columns: 1fr;
  }
}
