/* ==========================================================================
   Sur Traslados Calafate - language welcome page (/)
   ========================================================================== */

:root {
  --navy: #0B192C;
  --blue: #1E3E62;
  --teal: #00ADB5;
  --teal-hover: #008f96;
  --font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  line-height: 1.5;
  color: #fff;
  background: var(--navy);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }

.welcome {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 32px 20px 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  text-align: center;
}
.welcome-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
}
.welcome-overlay {
  position: absolute; inset: 0; z-index: -1;
  /* Lighter than the main hero: on this page the photo is the main visual. */
  background: linear-gradient(180deg, rgba(11, 25, 44, .55) 0%, rgba(11, 25, 44, .62) 45%, rgba(11, 25, 44, .82) 100%);
}

.welcome-inner {
  flex: 1; width: 100%; max-width: 640px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-block: 16px;
}
.welcome-logo { width: 96px; height: auto; margin-bottom: 20px; }
.welcome-name {
  font-family: var(--font-head); font-weight: 800; color: #fff;
  font-size: clamp(1.5rem, 1.05rem + 2.4vw, 2.6rem); line-height: 1.15; letter-spacing: .5px;
  text-wrap: balance; text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.welcome-name span { color: var(--teal); }
.welcome-place {
  margin-top: 8px; font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, .8);
}
.welcome-choose {
  margin-top: clamp(28px, 6vh, 48px); margin-bottom: 18px; max-width: 34em;
  font-size: clamp(.95rem, .9rem + .35vw, 1.2rem); font-weight: 600; color: #fff;
}
/* Each phrase stays whole when the line wraps; the "·" separators are generated, not part of the text. */
.welcome-choose span { display: inline-block; white-space: nowrap; }
.welcome-choose span:not(:last-child)::after { content: ' ·'; margin-inline: 0 .35em; }

/* Phones: 2x2 grid. From 760px: one row of four. */
.welcome-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 380px; }
.welcome-btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 12px; border-radius: 10px; border: 2px solid #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; line-height: 1.2;
  color: #fff; background: transparent; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.welcome-btn:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }
.welcome-btn.is-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.welcome-btn.is-primary:hover { background: var(--teal-hover); border-color: var(--teal-hover); color: #fff; }
.welcome-btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.welcome-btn.is-primary:focus-visible { outline-color: var(--teal); box-shadow: 0 0 0 3px var(--navy); }

.welcome-foot { font-size: .8rem; color: rgba(255, 255, 255, .8); }
/* Keep the small text readable over the photo. */
.welcome-place, .welcome-choose, .welcome-foot { text-shadow: 0 1px 8px rgba(0, 0, 0, .65); }

@media (min-width: 560px) {
  .welcome-btn { padding-inline: 20px; }
  .welcome-logo { width: 120px; }
}
@media (min-width: 760px) {
  .welcome-inner { max-width: 860px; }
  .welcome-choose { max-width: none; }
  .welcome-btns { display: flex; flex-direction: row; justify-content: center; gap: 14px; max-width: none; width: auto; }
  .welcome-btn { min-width: 176px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .welcome-logo { width: 64px; margin-bottom: 10px; }
  .welcome-choose { margin-top: 18px; margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .welcome-btn:hover { transform: none; }
}
