/* Look and feel from the mockups (MOCK-001, MOCK-010, MOCK-018, MOCK-035, MOCK-036). */

@font-face {
  font-family: "Lexend Exa";
  src: url("fonts/lexend-exa.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Gilda Display";
  src: url("fonts/gilda-display.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --navy: #2e324a;
  --night: #1f2031;
  --orange: #f18319;
  --cream: #fdfdfa;
  --rule: #d4d4d9;
  --text: #2e324a;
  --radius: 12px;
  --shadow-offset: 8px;
  --max: 72rem;

  /* Type scale: use only these sizes */
  --text-xs: 0.8rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.15rem, 3.5vw, 1.5rem);
  --text-2xl: clamp(2rem, 5vw, 2.5rem);
  --text-display: clamp(2.4rem, 7vw, 3.9rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Lexend Exa", system-ui, sans-serif;
  font-weight: 300;
  font-size: var(--text-base);
  color: var(--text);
  background: #fff;
  line-height: 1.55;
  /* Footer stays at the bottom on short pages */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

main,
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* Same width as the content, so the rule lines up with it (MOCK-001) */
  width: min(100% - 2.5rem, var(--max) - 2.5rem);
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--rule);
}

.logo img {
  display: block;
  width: auto;
  height: 2.6rem;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
  font-size: var(--text-sm);
  white-space: nowrap;
}

@media (max-width: 40rem) {
  .logo img {
    height: 1.9rem;
  }

  .site-header nav {
    gap: 0.75rem;
    font-size: var(--text-xs);
  }
}

/* Hero: dusk sky behind the SVG placeholder (MOCK-001 shows a sunset photo) */
.hero {
  position: relative;
  display: grid;
  place-items: start center;
  overflow: hidden;
  min-height: clamp(14rem, 30vw, 24rem);
  margin-top: 1rem;
  border-radius: 8px;
  padding: 2.5rem 1rem 5rem;
  text-align: center;
  background: linear-gradient(180deg, #3b2f55 0%, #a8466e 55%, #ee8a5a 100%);
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* On narrow screens the crop would leave only stray leaves */
@media (max-width: 40rem) {
  .palms {
    display: none;
  }
}

.hero h1 {
  position: relative;
  margin: 0;
  font-family: "Gilda Display", Georgia, serif;
  font-weight: 400;
  font-size: var(--text-display);
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 1px 4px rgb(0 0 0 / 0.25);
}

/* Cards: one format for every card (MOCK-001, MOCK-018): cream, navy border, solid offset shadow.
   Variants change colours only. */
.cards {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 3rem;
  /* Room for the shadow, so cards and shadow stay inside the content width */
  padding: 0 var(--shadow-offset) var(--shadow-offset) 0;
}

@media (min-width: 44rem) {
  .cards {
    grid-template-columns: 1fr 1fr 1.15fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--navy);
}

.card--dark {
  background: var(--navy);
  color: #fff;
}

.card-title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.4;
}

/* Statement cards ("¡Personaliza tu viaje…") use a light, larger title */
.card-title--light {
  font-weight: 300;
}

/* The action sits at the bottom, so buttons line up across a row */
.card .button {
  display: block;
  margin-top: auto;
  padding-inline: 0.5rem;
  white-space: nowrap;
}

.card-details {
  display: grid;
  gap: 0.5rem;
  font-size: var(--text-sm);
}

.card-details address {
  font-style: normal;
}

.card-details p {
  margin: 0;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  font-weight: 300;
}

.button--dark {
  background: var(--navy);
  color: #fff;
}

.button--light {
  background: #fff;
  color: var(--navy);
}

.button:hover {
  filter: brightness(1.15);
}

/* Sections: side by side on wide screens to keep lines short */
.section {
  padding: 1rem 0 2.5rem;
}

@media (min-width: 60rem) {
  .info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.section-title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--navy);
}

.lead {
  margin: 0 0 1.5rem;
}

/* Justified like MOCK-035/036; on narrow screens it would leave wide gaps */
@media (min-width: 40rem) {
  .lead {
    text-align: justify;
    hyphens: auto;
  }
}

.contact {
  margin: 0 0 1.5rem;
}

.contact div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.contact dt {
  font-size: var(--text-lg);
  font-weight: 600;
}

.contact dd {
  margin: 0;
}

/* Legal notice (FRQ-041) */
.legal {
  max-width: 46rem;
  margin: 2rem auto 0;
}

.legal-data {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.legal-data div {
  display: grid;
  gap: 0.15rem;
}

.legal-data dt {
  font-weight: 600;
}

.legal-data dd {
  margin: 0;
}

@media (min-width: 40rem) {
  .legal-data div {
    grid-template-columns: 16rem 1fr;
    gap: 1rem;
  }
}

/* Call to action */
.cta {
  padding: 1rem 0 3rem;
  text-align: center;
  font-size: var(--text-xl);
}

.cta p {
  margin: 0;
}

.cta a {
  color: var(--orange);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--night);
  color: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.footer-globe {
  width: clamp(7rem, 22vw, 11rem);
  height: auto;
}

.footer-text {
  display: grid;
  justify-items: end;
  gap: 0.75rem;
  text-align: right;
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  margin-bottom: 0.5rem;
}

.site-footer nav {
  display: grid;
  gap: 0.25rem;
  font-size: var(--text-sm);
}

.footer-copy {
  margin-top: 0.5rem;
  font-size: var(--text-xs);
}
