/* ==========================================================================
   Scandinavian Travel Services ehf. — styles.css
   Réplica del diseño de Wix. Paleta tomada de las variables de color del
   tema Wix (--color_N) y tipografías originales:
     - Avenir LT (Light 35 / Heavy 85): texto, títulos, menú, cifras.
       Avenir es una fuente con licencia servida por Wix. Aquí se usa la
       Avenir del sistema (macOS/iOS la incluyen) y, si no existe,
       Nunito Sans (Google Fonts) como sustituta de aspecto similar.
     - Playfair Display: únicamente los nombres del equipo.
   ========================================================================== */

:root {
  /* "Avenir" (macOS/iOS) es la Avenir LT de Wix: Light 35 / Heavy 85. "Avenir Next" es más ancha, por eso va después. */
  --font-body: Avenir, "Avenir LT W01_35 Light1475496", "Avenir Next", "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;

  /* Paleta Wix */
  --c-white: #ffffff;
  --c-text: #282626;              /* texto párrafos */
  --c-text-body: #3b3a3a;         /* --color_15 */
  --c-grey-light: #f7f7f7;        /* --color_12: tarjetas, fondo About, inputs */
  --c-grey-title: #c6c6c6;        /* --color_13: títulos de sección */
  --c-grey-mid: #949494;          /* --color_14: cargos del equipo, footer */
  --c-blue-nav: #3d9be9;          /* navbar */
  --c-blue-light: #c0d2e5;        /* --color_21: barras bajo títulos, fondo cifras */
  --c-blue-dark: #3d5975;         /* --color_24: títulos de servicio */
  --c-green-dark: #1b3412;        /* --color_35: nombres del equipo */
  --c-blue-line: #7fccf7;         /* línea separadora antes de Contact */

  --container: 940px;
  --gutter: 20px;
}

/* ---------- 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-weight: 300;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-white);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.15; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--c-blue-dark); color: #fff; padding: 8px 16px;
}
.skip-link:focus { top: 8px; }

/* ---------- Header (barra azul, logo en caja blanca) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-blue-nav);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100px;
  padding-right: 60px;
}
.logo {
  display: flex; align-items: center;
  height: 100%;
  padding: 0 14px 0 18px;
  background: var(--c-white);
}
.logo img { width: 300px; height: auto; }

.site-nav ul { display: flex; gap: 44px; }
.site-nav a {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--c-white);
  padding: 8px 0;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--c-blue-light); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle__bar {
  display: block; width: 24px; height: 2px; background: var(--c-white);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (cielo de la foto, título blanco) ---------- */
.hero {
  position: relative;
  height: 900px;
  overflow: hidden;
  color: var(--c-white);
  text-align: center;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero__content {
  position: relative; z-index: 1;
  padding-top: 190px;
}
.hero__title {
  font-size: 60px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto;
}
.hero__arrow { display: inline-block; margin-top: 18px; }
.hero__arrow img { width: 63px; }

/* ---------- Títulos de sección ---------- */
.section { padding: 80px 0; }

.section__title {
  font-size: 55px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--c-grey-title);
  text-align: center;
  line-height: 1;
  margin-bottom: 70px;
}
.section__title::after {
  content: "";
  display: block;
  width: 115px; height: 8px;
  background: var(--c-blue-light);
  margin: 26px auto 0;
}
.section__title--left { text-align: left; }
.section__title--left::after { margin-left: 0; }

/* ---------- Services ---------- */
.services { padding-top: 90px; padding-bottom: 100px; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--c-grey-light);
  display: flex; flex-direction: column;
}
.card__img { width: 100%; aspect-ratio: 300 / 200; object-fit: cover; }
.card__body { padding: 30px 27px 40px; }
.card__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--c-blue-dark);
  line-height: 1.1;
  margin-bottom: 26px;
}
.card p { font-size: 14px; color: var(--c-text-body); line-height: 1.75; margin: 0; }

/* ---------- About (texto izq. gris / foto dcha.) ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
}
.about__text {
  background: var(--c-grey-light);
  display: flex; align-items: center;
}
.about__text-inner {
  width: 100%;
  max-width: calc(var(--container) / 2 + var(--gutter));
  margin-left: auto;
  padding: 60px var(--gutter) 60px 0;
  padding-left: var(--gutter);
}
.about__text .section__title { margin-bottom: 44px; }
.about__text p {
  font-size: 17px;
  color: var(--c-text-body);
  line-height: 1.7;
  margin-bottom: 1.5em;
  max-width: 410px;
}
.about__text p:last-child { margin-bottom: 0; }
.about__text a:hover { text-decoration: underline; }
/* Parallax: la imagen queda fija respecto a la ventana y se "descubre" al hacer scroll */
.about__image {
  background-image: url("images/about-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ---------- Stats (fondo azul claro) ---------- */
.stats {
  background: var(--c-blue-light);
  padding: 40px 0 60px;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  text-align: center;
}
.stat {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
}
.stat + .stat::before {
  content: "";
  position: absolute; left: 0; top: 22px;
  width: 1px; height: 70px;
  background: var(--c-white);
}
.stat__number {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--c-white);
  margin-bottom: 8px;
}
.stat__label {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--c-blue-dark);
}

/* ---------- Team ---------- */
.team { padding-top: 80px; padding-bottom: 60px; }
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 30px;
}
.member { text-align: center; }
.member img {
  width: 218px; max-width: 100%;
  aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
}
.member h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 27px;
  color: var(--c-green-dark);
  margin-bottom: 4px;
}
.member p { font-size: 13px; color: var(--c-text-body); margin: 0; }

/* ---------- Contact ---------- */
.contact {
  border-top: 2px solid var(--c-blue-line);
  padding-top: 70px; padding-bottom: 60px;
}
.contact__map { margin-bottom: 60px; }
.contact__map iframe { display: block; width: 100%; }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact__subtitle {
  font-size: 17px;
  font-weight: 800;
  color: var(--c-text-body);
  margin-bottom: 14px;
}
.contact p, .contact address { font-size: 14px; color: var(--c-text-body); line-height: 1.75; }
.contact__block + .contact__block { margin-top: 40px; }
.contact__quote {
  margin-top: 40px;
  font-size: 17px;
  font-weight: 800;
  color: var(--c-text-body);
}
.contact__info-col { padding-top: 0; }

.contact-form { margin-top: 26px; max-width: 430px; }
.form-row { margin-bottom: 8px; }
.form-row--hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 13px;
  color: var(--c-text);
  background: var(--c-grey-light);
  border: 1px solid var(--c-grey-light);
  border-radius: 0;
  padding: 8px 10px;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #a8a8a8; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--c-blue-light); }
.contact-form input.is-invalid,
.contact-form textarea.is-invalid { border-color: #ff4040; }
.field-error { display: block; font-size: 12px; color: #ff4040; margin-top: 2px; }

.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.btn {
  font: inherit;
  font-size: 13px;
  color: var(--c-text-body);
  background: var(--c-grey-light);
  border: 1px solid var(--c-grey-light);
  padding: 6px 20px;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: var(--c-blue-light); border-color: var(--c-blue-light); color: #fff; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.form-status { margin: 0; font-size: 13px; }
.form-status.is-success { color: #68b04d; }
.form-status.is-error { color: #ff4040; }

/* ---------- Footer ---------- */
.site-footer__text {
  padding: 30px var(--gutter) 40px;
  text-align: center;
  font-size: 11px;
  color: var(--c-grey-mid);
  line-height: 1.6;
}
.site-footer__text p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .header__inner { padding-right: 30px; }
  .site-nav ul { gap: 28px; }
  .hero { height: 620px; }
  .hero__content { padding-top: 130px; }
  .hero__title, .section__title { font-size: 48px; }
  .team__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
  .header__inner { height: 80px; padding-right: 16px; }
  .logo img { width: 220px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--c-blue-nav);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav.is-open { max-height: 320px; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .site-nav a { display: block; padding: 12px 20px; font-size: 13px; }

  .hero { height: 480px; }
  .hero__content { padding: 110px 20px 0; }
  .hero__title, .section__title { font-size: 36px; }
  .section__title::after { width: 90px; height: 6px; margin-top: 18px; }

  .services__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  .about { grid-template-columns: 1fr; min-height: 0; }
  .about__text-inner { max-width: none; margin: 0; padding: 50px var(--gutter); }
  .about__text p { max-width: none; }
  .about__image { height: 320px; background-attachment: scroll; } /* iOS no soporta fixed */

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
  .stat:nth-child(3)::before { display: none; }
  .stat__number { font-size: 48px; }
  .stat__label { font-size: 18px; }

  .team__grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .member h3 { font-size: 22px; }

  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact__map iframe { height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
