/* ======================================================================
   STUDY IN USA FAIR — SPAIN 2026 · Modern Bold Editorial
   ====================================================================== */

:root {
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --paper: #ffffff;
  --paper-warm: #f5f2ec;
  --paper-dark: #0f0f0f;
  --muted: #6b6b6b;
  --muted-light: #c7c7c7;
  --rule: #e5e5e5;
  --rule-dark: #252525;

  --accent: #0021f5;       /* electric blue */
  --accent-hover: #0018c4;
  --highlight: #fff3a3;    /* marker yellow */

  --font-display: 'Inter', -apple-system, system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================= HEADER ============================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 14px;
}
.logo-text { white-space: nowrap; }
.logo-dot { color: var(--accent); padding: 0 2px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.site-nav a { color: var(--muted); transition: color .2s; }
.site-nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent); }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.lang-btn {
  padding: 4px 6px;
  color: var(--muted);
  transition: color .2s;
}
.lang-btn.active { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.lang-divider { color: var(--muted-light); }

@media (max-width: 900px) {
  .site-nav { display: none; }
}

/* ============================= HERO ============================= */
.hero {
  padding: clamp(48px, 8vw, 120px) 0 clamp(48px, 6vw, 80px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero-copy { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  margin-bottom: 32px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.eyebrow.dark { color: var(--paper); border-color: var(--rule-dark); }
.eyebrow-dot.dark { background: var(--highlight); }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(0.9); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 32px;
}
.hero-title .accent {
  color: var(--accent);
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 40px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  transition: all .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.btn-large {
  padding: 22px 40px;
  font-size: 17px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

.hero-media {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.hero-media-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(10,10,10,0.6);
  padding: 10px 14px;
  backdrop-filter: blur(8px);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 4/3; }
  .hero-stats { gap: 24px; }
}

/* ============================= MARQUEE ============================= */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: 20px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.marquee-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  font-weight: 400;
}
.marquee-track span:nth-child(even) { color: var(--accent); font-family: var(--font-display); font-style: normal; font-weight: 300; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================= SECTIONS ============================= */
.section {
  padding: clamp(64px, 8vw, 128px) 0;
}
.section-dark {
  background: var(--paper-dark);
  color: var(--paper);
}

.section-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: start;
  margin-bottom: 64px;
}
.section-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-weight: 500;
}
.section-dark .section-label { color: var(--muted-light); border-color: var(--rule-dark); }

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 16ch;
}
.section-heading .highlight {
  background: linear-gradient(to bottom, transparent 60%, var(--highlight) 60%);
  padding: 0 4px;
}
.section-dark .section-heading .highlight {
  color: var(--ink);
}

.section-body {
  max-width: 62ch;
}
.section-body p {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 20px;
}
.section-dark .section-body p { color: var(--muted-light); }

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

/* ============================= FEATURE IMAGE ============================= */
.feature-image {
  width: 100%;
  overflow: hidden;
}
.feature-image img {
  width: 100%;
  height: clamp(280px, 50vh, 560px);
  object-fit: cover;
  filter: contrast(1.05) saturate(0.95);
}

/* ============================= BENEFITS ============================= */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-dark);
  border: 1px solid var(--rule-dark);
}
.benefit-card {
  background: var(--paper-dark);
  padding: 40px 32px;
  transition: background .3s;
}
.benefit-card:hover { background: #1a1a1a; }
.benefit-num {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--highlight);
  font-weight: 600;
  margin-bottom: 20px;
}
.benefit-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--paper);
}
.benefit-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted-light);
  margin: 0;
}

@media (max-width: 900px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .benefits-grid { grid-template-columns: 1fr; } }

/* ============================= UNIVERSITIES ============================= */
.universities-banner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--paper-warm);
  padding: clamp(40px, 6vw, 80px);
  border-radius: 2px;
}
.universities-copy .eyebrow { margin-bottom: 24px; }
.universities-copy .section-heading {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 16px;
  max-width: 18ch;
}
.universities-copy p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 48ch;
  margin: 0;
}
.universities-visual {
  text-align: center;
  border-left: 1px solid var(--rule);
  padding-left: 48px;
}
.univ-number {
  font-family: var(--font-display);
  font-size: clamp(120px, 16vw, 220px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--ink);
}
.univ-number span { color: var(--accent); }
.univ-label {
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}

@media (max-width: 820px) {
  .universities-banner { grid-template-columns: 1fr; text-align: left; }
  .universities-visual { border-left: none; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 32px; text-align: left; }
}

/* ============================= TESTIMONIAL ============================= */
.testimonial-section {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.testimonial-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
}
.testimonial { margin: 0; }
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 24px;
  font-style: italic;
  letter-spacing: -0.01em;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
}
.testimonial-author strong {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}

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

/* ============================= FORM ============================= */
.section-form {
  background: var(--paper-dark);
  color: var(--paper);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.form-copy .eyebrow { margin-bottom: 32px; }
.form-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 24px;
  color: var(--paper);
}
.form-heading .accent {
  color: var(--highlight);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
}
.form-desc {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted-light);
  margin: 0 0 32px;
  max-width: 42ch;
}
.form-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.form-benefits li {
  font-size: 15px;
  color: var(--paper);
  line-height: 1.4;
}

.registration-form {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(28px, 3.5vw, 48px);
  border-radius: 4px;
  display: grid;
  gap: 18px;
}
.form-row { display: grid; gap: 18px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.form-field input,
.form-field select {
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 15px;
  background: var(--paper);
  transition: border-color .15s, box-shadow .15s;
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,33,245,0.12);
}
.form-field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5 L6 6.5 L11 1.5' stroke='%23333' stroke-width='1.5' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.form-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}
.form-checkbox input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.form-checkbox label {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.45;
  flex: 1;
}

.btn-submit {
  width: 100%;
  padding: 18px;
  font-size: 16px;
  margin-top: 8px;
  background: var(--accent);
  color: var(--paper);
}
.btn-submit:hover { background: var(--accent-hover); }
.btn-submit:disabled { opacity: 0.6; cursor: wait; }

.form-privacy {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  text-align: center;
  line-height: 1.4;
}

.form-success {
  background: var(--paper);
  color: var(--ink);
  padding: 48px 32px;
  border-radius: 4px;
  text-align: center;
  grid-column: 1 / -1;
  max-width: 560px;
  margin: 0 auto;
}
.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.form-success p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

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

/* ============================= FAQ ============================= */
.section-faq { background: var(--paper-warm); }
.faq-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 40px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--ink);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
}
.faq-item summary {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 28px;
  font-weight: 300;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 72ch;
}

/* ============================= FINAL CTA ============================= */
.final-cta {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 0;
}
.final-cta-heading {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}
.final-cta-desc {
  font-size: 18px;
  color: var(--muted-light);
  margin: 0 0 40px;
  max-width: 50ch;
  margin-inline: auto;
}

/* ============================= FOOTER ============================= */
.site-footer {
  background: var(--paper-dark);
  color: var(--paper);
  padding: 48px 0 32px;
  border-top: 1px solid var(--rule-dark);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-brand p {
  font-size: 13px;
  color: var(--muted-light);
  margin: 12px 0 0;
}
.footer-meta {
  text-align: right;
  font-size: 12px;
  color: var(--muted-light);
}
.footer-meta p { margin: 0 0 12px; }
.footer-links {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted-light);
  transition: color .15s;
}
.footer-links a:hover { color: var(--paper); }

@media (max-width: 600px) {
  .footer-meta, .footer-links { text-align: left; justify-content: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
