:root {
  --sf-bg: #f5f6f8;
  --sf-bg-alt: #eceff3;
  --sf-panel: #ffffff;
  --sf-line: rgba(34, 47, 62, 0.12);
  --sf-ink: #1f2937;
  --sf-muted: #5f6b7b;
  --sf-accent: #2f5b8a;
  --sf-accent-2: #79a3c8;
  --sf-accent-soft: rgba(47, 91, 138, 0.12);
  --sf-shadow: 0 22px 60px rgba(16, 24, 40, 0.1);
  --sf-radius-xl: 28px;
  --sf-radius-lg: 20px;
  --sf-radius-md: 16px;
  --sf-max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--sf-ink);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.9), transparent 28%),
    linear-gradient(180deg, var(--sf-bg) 0%, var(--sf-bg-alt) 100%);
}

#preloader { position: fixed; inset: 0; z-index: 9999; background: var(--sf-bg); transition: all .6s ease-out; }
#preloader::after { animation-delay: -.5s; }
#preloader::before, #preloader::after {
  content: "";
  position: absolute;
  border: 4px solid #59bec5;
  border-radius: 50%;
  animation: animate-preloader 2s cubic-bezier(0,.2,.8,1) infinite;
}
@keyframes animate-preloader {
  0% { width: 10px; height: 10px; top: calc(50% - 5px); left: calc(50% - 5px); opacity: 1; }
  100% { width: 72px; height: 72px; top: calc(50% - 36px); left: calc(50% - 36px); opacity: 0; }
}

.skiptranslate { opacity: 0; display: none; position: absolute !important; top: -5000px; }
a { color: inherit; text-decoration: none; }

.sf-shell { width: min(var(--sf-max-width), calc(100% - 40px)); margin: 0 auto; }
.sf-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.8);
  border-bottom: 1px solid var(--sf-line);
}
.sf-topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.sf-brand { display: flex; align-items: center; gap: 12px; }
.sf-brand img { width: 44px; height: 44px; }
.sf-brand-copy strong,
.sf-brand-copy span { display: block; }
.sf-brand-copy strong {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 700;
}
.sf-brand-copy span { color: var(--sf-muted); font-size: .92rem; }
.sf-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--sf-line);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  color: var(--sf-ink);
}
.sf-nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.sf-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sf-nav a { padding: 10px 14px; border-radius: 999px; color: var(--sf-muted); font-size: .95rem; }
.sf-nav a.active, .sf-nav a:hover { color: var(--sf-accent); background: var(--sf-accent-soft); }

.sf-main { padding: 24px 0 48px; }
.sf-section { padding: 28px 0; }

.sf-hero {
  min-height: 320px;
  padding: 40px;
  border-radius: var(--sf-radius-xl);
  color: white;
  box-shadow: var(--sf-shadow);
  background:
    linear-gradient(135deg, rgba(18,29,43,.78), rgba(47,91,138,.28)),
    url("../img/get-there/barcelona-airport.jpeg") center/cover;
}
.sf-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.16);
  font-size: .9rem;
}
.sf-hero h1 {
  margin: 18px 0 14px;
  max-width: 12ch;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  line-height: .95;
}
.sf-hero p {
  max-width: 64ch;
  margin: 0;
  color: rgba(255,255,255,.88);
  line-height: 1.72;
  font-size: 1.05rem;
}

.sf-card {
  padding: 28px;
  border-radius: var(--sf-radius-lg);
  background: var(--sf-panel);
  border: 1px solid var(--sf-line);
  box-shadow: 0 18px 50px rgba(15,23,42,.06);
}
.sf-intro { margin-bottom: 24px; }
.sf-kicker {
  color: var(--sf-accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .82rem;
  font-weight: 700;
}
.sf-intro h2 {
  margin: 10px 0 12px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.04;
}
.sf-intro p {
  margin: 0;
  color: var(--sf-muted);
  line-height: 1.72;
  max-width: 64ch;
}

.sf-form-stage {
  max-width: 620px;
  margin: 0 auto;
}
.sf-tabs .nav-tabs {
  border-bottom: 0;
  gap: 8px;
}
.sf-tabs .nav-tabs .nav-link {
  border: 0;
  border-radius: 999px;
  background: #eef1f5;
  color: var(--sf-muted);
  padding: 10px 16px;
  font-weight: 700;
}
.sf-tabs .nav-tabs .nav-link.active {
  background: var(--sf-accent-soft);
  color: var(--sf-accent);
}
.sf-tabs .tab-content {
  margin-top: 18px;
}

.sf-tabs form {
  padding: 24px;
  border-radius: var(--sf-radius-md);
  background: #fbfcfe;
  border: 1px solid var(--sf-line);
}

.sf-tabs .form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 600;
}

.sf-tabs .form-control,
.sf-tabs .form-select {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--sf-line);
  box-shadow: none;
}
.sf-tabs .form-control:focus,
.sf-tabs .form-select:focus {
  border-color: rgba(47, 91, 138, 0.45);
  box-shadow: 0 0 0 4px rgba(47, 91, 138, 0.12);
}

.sf-tabs .btn {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 700;
}
.sf-tabs .btn-primary {
  background: linear-gradient(135deg, var(--sf-accent), var(--sf-accent-2));
}
.sf-tabs .btn-secondary {
  background: #dde5ee;
  color: var(--sf-ink);
}

.sf-footer { padding: 24px 0 42px; }
.sf-footer-box {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  border-radius: var(--sf-radius-lg);
  background: var(--sf-panel);
  border: 1px solid var(--sf-line);
}
.sf-footer-box p { margin: 0; color: var(--sf-muted); }
.sf-footer-links { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 980px) {
  .sf-topbar-inner {
    position: relative;
    flex-wrap: nowrap;
    padding: 14px 0;
  }
  .sf-brand {
    flex: 1;
    min-width: 0;
  }
  .sf-nav-toggle {
    display: inline-flex;
  }
  .sf-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(320px, calc(100vw - 24px));
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--sf-line);
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 40px rgba(16,24,40,.08);
  }
  .sf-topbar-inner.nav-open .sf-nav { display: flex; }
  .sf-topbar-inner.nav-open .sf-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .sf-topbar-inner.nav-open .sf-nav-toggle span:nth-child(2) { opacity: 0; }
  .sf-topbar-inner.nav-open .sf-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .sf-nav a { width: 100%; padding: 12px 14px; }
  .sf-footer-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .sf-shell { width: min(var(--sf-max-width), calc(100% - 24px)); }
  .sf-brand-copy span { display: none; }
  .sf-hero,
  .sf-card,
  .sf-tabs form { padding: 24px; }
  .sf-hero h1 { max-width: none; }
}
