/* Last Frontiers — static rebuild of the former WordPress/Uncode homepage */

@font-face { font-family: "Kelson"; src: url("../fonts/KelsonSans-Normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kelson"; src: url("../fonts/KelsonSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --dark: #1d2121;
  --ink: #303133;
  --text: #777;
  --text-on-dark: rgba(255, 255, 255, .55);
  --accent: #e53791;
  --line: #eaeaea;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Kelson", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(24px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 15px/1.75 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 400; line-height: 1.2; }
p { margin: 0; }
p + p { margin-top: 1.4em; }
.justify { text-align: justify; text-align-last: center; hyphens: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Section shells */
.section { padding: clamp(56px, 8vw, 110px) var(--pad); text-align: center; }
.section--dark { background: var(--dark); color: var(--text-on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.wrap { max-width: 900px; margin: 0 auto; }
.wrap--narrow { max-width: 600px; }
.section-title { font-size: clamp(34px, 4.5vw, 50px); margin-bottom: 28px; }
.lead { font-size: 17px; line-height: 1.85; }

/* Header */
.lang { display: flex; justify-content: flex-end; gap: 0; padding: 10px var(--pad) 0; margin: 0; list-style: none; font-size: 12px; }
.lang a { display: block; padding: 3px 8px; background: #f2f2f2; color: var(--ink); text-decoration: none; }
.lang a[aria-current="page"] { background: #e3e3e3; }
.lang a:hover { background: #ddd; }
.brand { text-align: center; padding: 18px var(--pad) 28px; }
.brand h1 { font: 700 35px/1 "Cinzel", serif; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.brand .by { display: block; margin-top: 8px; font: 700 15px/1 "Cinzel", serif; letter-spacing: .1em; text-transform: uppercase; color: #000; }
.brand a img { width: 240px; margin: -6px auto 0; }

/* Carousel */
.carousel { position: relative; padding-bottom: 70px; }
.carousel__track {
  display: flex; gap: 48px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 7.5%; scroll-padding: 0 7.5%; overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { position: relative; flex: 0 0 85vw; margin: 0; scroll-snap-align: center; }
.carousel__slide img { width: 100%; aspect-ratio: 1920 / 820; object-fit: cover; }
.carousel__slide figcaption { position: absolute; left: 0; right: 0; bottom: 6%; color: #fff; font-weight: 700; font-size: 15px; text-shadow: 0 1px 6px rgba(0,0,0,.6); text-align: center; }
.carousel__dots { position: absolute; left: 0; right: 0; bottom: 24px; display: flex; justify-content: center; gap: 8px; }
.carousel__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #d4d4d4; cursor: pointer; }
.carousel__dots button[aria-current="true"] { background: var(--ink); }

/* Region rows: text + image with video button */
.region { display: grid; grid-template-columns: 1fr 1fr; min-height: 650px; }
.region__text { display: flex; flex-direction: column; justify-content: center; padding: 60px clamp(24px, 5vw, 72px); }
.region__text > * { max-width: 500px; width: 100%; }
.region h2 { font-size: 26px; font-weight: 600; margin-bottom: 18px; }
.region p { font-size: 14px; line-height: 1.85; text-align: justify; }
.region--text-left .region__text { align-items: flex-end; text-align: right; }
.region--text-left .region__text p { text-align-last: right; }
.region--text-right .region__text { align-items: flex-start; text-align: left; order: 2; }
.region__media { position: relative; background: #222 center / cover no-repeat; min-height: 300px; }
.region__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 74px; height: 74px; border: 0; border-radius: 50%;
  background: var(--accent); color: #fff; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.25); transition: transform .2s;
}
.play:hover, .play:focus-visible { transform: scale(1.08); }
.play svg { width: 22px; height: 22px; margin-left: 4px; fill: currentColor; }

/* Explorations */
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; max-width: 1300px; margin: 48px auto 0; padding: 0; list-style: none; }
.card a.card__img { display: block; overflow: hidden; }
.card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s; }
.card a.card__img:hover img { transform: scale(1.05); }
.card h3 { margin: 26px 0 14px; font: 700 15px/1.3 var(--sans); }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--accent); }
.card p { font-size: 14px; line-height: 1.75; }

/* Founders */
.founders { display: flex; justify-content: center; gap: 18px; margin: 56px auto 0; padding: 0; list-style: none; }
.founders li { flex: 0 1 445px; }
.founders img { width: 100%; aspect-ratio: 408 / 377; object-fit: cover; }
.founders h3 { margin-top: 18px; font: 400 15px/1.4 var(--sans); color: var(--text-on-dark); }

/* Sustainable tourism */
.sustainable { position: relative; overflow: hidden; }
.logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px 84px; margin: 36px 0; padding: 0; list-style: none; }
.logos img { width: 108px; }
.by-line { font-size: 15px; }
.by-line img { width: 150px; margin: 4px auto 0; }
.deco { position: absolute; bottom: 0; pointer-events: none; }
.deco--house { left: 2%; width: 300px; }
.deco--warrior { right: 2%; width: 180px; }

/* Newsletter */
.newsletter { background: var(--accent); color: #fff; padding-top: 110px; padding-bottom: 110px; }
.newsletter h2 { color: #fff; font-size: 30px; font-weight: 600; margin-bottom: 36px; }
.inline-form { display: flex; max-width: 600px; margin: 0 auto; }
.inline-form input { flex: 1; min-width: 0; }
.inline-form button { flex: 0 0 auto; }
.newsletter__link { margin-top: 36px; font-size: 14px; }
.newsletter__link a { color: #fff; font-weight: 700; }
.newsletter__link a:hover { opacity: .8; }

/* Forms */
input, textarea, button { font: inherit; }
input[type="email"], input[type="text"], input[type="tel"], textarea {
  width: 100%; padding: 8px 14px; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); font-size: 14px;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
textarea { resize: vertical; min-height: 160px; }
.btn { padding: 9px 22px; border: 0; color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.btn--dark { background: var(--ink); }
.btn--accent { background: var(--accent); }
.btn:hover { filter: brightness(1.12); }
.btn[disabled] { opacity: .6; cursor: wait; }
.contact-form { max-width: 600px; margin: 36px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form .btn { justify-self: center; margin-top: 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; min-height: 1.5em; margin-top: 14px; font-size: 14px; }
.form-status.is-error { color: #b00020; }
.newsletter .form-status { color: #fff; font-weight: 700; }
.newsletter .form-status.is-error { color: #fff; }
.notice { display: none; }
.notice:target { display: block; }

/* Contact & footer */
.contact { position: relative; overflow: hidden; }
.footer { background: var(--dark); color: #fff; padding: 64px var(--pad) 56px; font-size: 14px; }
.footer .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer h2 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.footer address { font-style: normal; line-height: 1.5; }
.footer .partners { display: flex; align-items: flex-end; justify-content: flex-end; gap: 16px; }
.footer .partners img { height: 64px; width: auto; }

/* Video dialog */
.video-dialog { width: min(1100px, 92vw); padding: 0; border: 0; background: #000; overflow: visible; }
.video-dialog::backdrop { background: rgba(0, 0, 0, .85); }
.video-dialog iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video-dialog__close { position: absolute; top: -44px; right: -6px; width: 40px; height: 40px; border: 0; background: none; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .deco { display: none; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 959px) {
  .region { grid-template-columns: 1fr; min-height: 0; }
  .region__media { order: -1; min-height: 300px; }
  .region--text-right .region__text { order: 2; }
  .region__text, .region--text-left .region__text, .region--text-right .region__text { align-items: center; text-align: center; padding: 48px var(--pad); }
  .region__text p, .region--text-left .region__text p { text-align: justify; text-align-last: center; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .footer .partners { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 640px) {
  .brand h1 { font-size: 28px; }
  .justify, .region p, .region__text p, .region--text-left .region__text p { text-align: left; text-align-last: auto; }
  .carousel__track { gap: 12px; padding: 0 16px; scroll-padding: 0 16px; }
  .carousel__slide { flex-basis: calc(100vw - 32px); }
  .carousel__slide img { aspect-ratio: 4 / 3; }
  .carousel__slide figcaption { font-size: 13px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .founders { flex-direction: column; align-items: center; }
  .founders li { flex-basis: auto; width: 100%; max-width: 360px; }
  .logos { gap: 20px 28px; }
  .logos img { width: 84px; }
  .contact-form { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; gap: 10px; }
  .inline-form .btn { padding: 12px; }
  .footer .wrap { grid-template-columns: 1fr; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card img, .play { transition: none; }
}
