/* ============ ALTAVALL — luxury chalets, Andorra ============ */
:root {
  --navy-900: #061d30;
  --navy-800: #0a2a43;
  --navy-700: #103a5c;
  --navy-600: #1b4a73;
  --gold: #c9a15b;
  --gold-bright: #e3c68b;
  --gold-soft: rgba(201, 161, 91, 0.35);
  --ivory: #f7f3ec;
  --ivory-2: #efe9dd;
  --ink: #22282e;
  --ink-soft: #5a6168;
  --white: #ffffff;
  --line: rgba(6, 29, 48, 0.14);
  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "Jost", "Segoe UI", sans-serif;
  --shadow-lg: 0 30px 60px -25px rgba(6, 29, 48, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; line-height: 1.12; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}
.section-title { font-size: clamp(34px, 4.6vw, 56px); margin: 14px 0 18px; }
.section-sub { max-width: 620px; color: var(--ink-soft); font-size: 17px; }

/* ============ NAV ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0;
  transition: background 0.45s var(--ease), padding 0.45s var(--ease), box-shadow 0.45s;
  color: var(--white);
}
.nav.scrolled, .nav.solid {
  background: rgba(6, 29, 48, 0.94);
  backdrop-filter: blur(14px);
  padding: 10px 0;
  box-shadow: 0 10px 40px -18px rgba(6, 29, 48, 0.6);
}
.nav-inner {
  max-width: 1360px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px);
  display: flex; align-items: center; gap: 34px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--white); }
.brand-mark { width: 30px; height: auto; color: var(--gold); }
.brand-name { font-family: var(--serif); font-size: 25px; letter-spacing: 0.32em; font-weight: 600; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 400;
  color: rgba(255, 255, 255, 0.85); position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width 0.35s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav.solid .nav-links a { color: rgba(255,255,255,0.85); }

/* language switch */
.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white); padding: 7px 14px; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.18em; font-weight: 500;
  transition: border-color 0.3s, background 0.3s;
}
.lang-btn:hover { border-color: var(--gold); color: var(--gold-bright); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow-lg);
  list-style: none; min-width: 160px; overflow: hidden;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.lang-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-menu button {
  width: 100%; text-align: left; background: none; border: none;
  padding: 12px 20px; font-size: 14px; color: var(--ink); font-weight: 400;
  letter-spacing: 0.04em; transition: background 0.25s, color 0.25s;
}
.lang-menu button:hover { background: var(--navy-800); color: var(--gold-bright); }
.lang-menu button.active { color: var(--gold); font-weight: 500; }

.nav-toggle { display: none; background: none; border: none; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  margin: 5px 0; transition: transform 0.3s, opacity 0.3s;
}

/* ============ HERO ============ */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; display: flex; align-items: center; }
.hero-bg {
  position: absolute; inset: -60px 0;
  background-size: cover; background-position: center 62%;
  animation: heroZoom 22s var(--ease) infinite alternate;
  background-image: linear-gradient(rgba(6,29,48,0.25), rgba(6,29,48,0.25)), var(--hero-img);
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,29,48,0.5) 0%, rgba(6,29,48,0.28) 42%, rgba(6,29,48,0.82) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; color: var(--white);
  max-width: 900px; margin: 0 auto; padding: 0 24px;
}
.hero-eyebrow { font-size: 13px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold-bright); font-weight: 500; }
.hero-title {
  font-size: clamp(44px, 7vw, 86px); font-weight: 600; margin: 22px 0;
  text-shadow: 0 4px 40px rgba(0,0,0,0.35);
}
.hero-sub { font-size: clamp(16px, 2vw, 19px); font-weight: 300; max-width: 640px; margin: 0 auto 38px; color: rgba(255,255,255,0.92); }
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.8); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  animation: floaty 2.6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block; padding: 15px 38px; border-radius: 999px;
  font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500;
  border: 1px solid transparent; transition: all 0.35s var(--ease);
}
.btn-gold { background: linear-gradient(135deg, #d4ac66, #b98f47); color: var(--navy-900); box-shadow: 0 15px 35px -12px rgba(201,161,91,0.65); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 20px 45px -12px rgba(201,161,91,0.8); }
.btn-outline { border-color: rgba(255,255,255,0.65); color: var(--white); background: rgba(6,29,48,0.15); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ============ SECTIONS ============ */
.section { padding: clamp(70px, 9vw, 130px) clamp(20px, 4vw, 48px); }
.section-head { text-align: center; max-width: 780px; margin: 0 auto clamp(40px, 6vw, 70px); }
.collection { background: var(--ivory); }
.experience { background: var(--navy-900); color: var(--ivory); }
.experience .section-sub { color: rgba(247,243,236,0.72); }
.exp-wrap { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.exp-photo { height: clamp(360px, 44vw, 620px); border-radius: 4px; box-shadow: var(--shadow-lg); background-size: cover; background-position: center; position: relative; }
.exp-photo::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(227,198,139,0.35); border-radius: 2px; pointer-events: none; }
.exp-text p { color: rgba(247,243,236,0.82); margin-bottom: 16px; }
.exp-stats { display: flex; gap: clamp(24px, 4vw, 56px); margin-top: 34px; }
.exp-stats b { display: block; font-family: var(--serif); font-size: 46px; color: var(--gold-bright); font-weight: 600; line-height: 1; }
.exp-stats span { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(247,243,236,0.6); }

/* ============ CHALET GRID ============ */
.grid {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: clamp(24px, 3vw, 42px);
}
.card {
  background: var(--white); border-radius: 6px; overflow: hidden;
  box-shadow: 0 18px 50px -30px rgba(6,29,48,0.35);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 36px 70px -30px rgba(6,29,48,0.5); }
.card-media { position: relative; aspect-ratio: 16/11.5; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-media img { transform: scale(1.07); }
.card-price {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(6,29,48,0.82); backdrop-filter: blur(8px);
  color: var(--gold-bright); font-size: 13px; letter-spacing: 0.06em;
  padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(201,161,91,0.4);
  font-weight: 400;
}
.card-body { padding: 26px 26px 22px; display: flex; flex-direction: column; flex: 1; }
.card-loc { font-size: 11.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 8px; }
.card-name { font-size: 30px; font-weight: 600; color: var(--navy-900); line-height: 1.15; }
.card-meta { display: flex; gap: 18px; margin: 14px 0 16px; flex-wrap: wrap; }
.card-meta span { font-size: 13.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 7px; }
.card-meta svg { width: 15px; height: 15px; stroke: var(--gold); fill: none; stroke-width: 1.7; }
.card-link { margin-top: auto; font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--navy-800); font-weight: 500; display: inline-flex; align-items: center; gap: 10px; }
.card-link::after { content: "→"; color: var(--gold); transition: transform 0.3s var(--ease); }
.card:hover .card-link::after { transform: translateX(6px); }

/* ============ CHALET DETAIL ============ */
.ch-hero { position: relative; height: 72svh; min-height: 480px; overflow: hidden; display: flex; align-items: flex-end; }
.ch-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ch-hero .hero-overlay { background: linear-gradient(180deg, rgba(6,29,48,0.42) 0%, rgba(6,29,48,0.1) 40%, rgba(6,29,48,0.88) 100%); }
.ch-hero-content { position: relative; z-index: 2; max-width: 1360px; margin: 0 auto; width: 100%; padding: clamp(20px, 4vw, 48px); padding-bottom: clamp(34px, 5vw, 60px); color: var(--white); }
.ch-back { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.85); margin-bottom: 20px; }
.ch-back:hover { color: var(--gold-bright); }
.ch-hero h1 { font-size: clamp(40px, 6vw, 74px); }
.ch-hero .card-loc { color: var(--gold-bright); font-size: 12.5px; }
.ch-hero-facts { display: flex; gap: 28px; margin-top: 18px; flex-wrap: wrap; }
.ch-hero-facts span { font-size: 14px; color: rgba(255,255,255,0.9); display: flex; gap: 8px; align-items: center; }
.ch-hero-facts svg { width: 16px; height: 16px; stroke: var(--gold-bright); fill: none; stroke-width: 1.6; }

.ch-wrap { max-width: 1360px; margin: 0 auto; padding: clamp(50px, 7vw, 90px) clamp(20px, 4vw, 48px); }
.ch-cols { display: grid; grid-template-columns: 1fr 400px; gap: clamp(36px, 5vw, 80px); align-items: start; }
@media (max-width: 1020px) { .ch-cols { grid-template-columns: 1fr; } .exp-wrap { grid-template-columns: 1fr; } }

.ch-desc h2 { font-size: clamp(30px, 3.6vw, 44px); color: var(--navy-900); margin-bottom: 20px; }
.ch-desc p { color: var(--ink-soft); font-size: 17.5px; margin-bottom: 16px; }
.amenities { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.amenity {
  font-size: 13px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--navy-800); background: var(--white);
  display: inline-flex; align-items: center; gap: 8px;
}
.amenity::before { content: "◆"; font-size: 8px; color: var(--gold); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; cursor: zoom-in; transition: opacity 0.3s; aspect-ratio: 4/3; background: var(--ivory-2); }
.gallery img:hover { opacity: 0.88; }
.gallery a:first-child img { aspect-ratio: auto; grid-column: span 2; grid-row: span 2; }

/* booking panel */
.book-panel {
  background: var(--navy-900); color: var(--ivory); border-radius: 8px;
  padding: clamp(28px, 3vw, 40px); position: sticky; top: 100px;
  box-shadow: var(--shadow-lg);
}
.book-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.book-price .amount { font-family: var(--serif); font-size: 42px; font-weight: 600; color: var(--gold-bright); }
.book-price .per { font-size: 13px; color: rgba(247,243,236,0.65); letter-spacing: 0.08em; }
.book-note { font-size: 13px; color: rgba(247,243,236,0.6); margin-bottom: 22px; }
.book-rules {
  background: rgba(201,161,91,0.1); border: 1px solid rgba(201,161,91,0.4);
  border-radius: 6px; padding: 16px 18px; font-size: 13.5px; line-height: 1.6;
  color: rgba(247,243,236,0.9); margin-bottom: 24px;
}
.book-rules b { color: var(--gold-bright); font-weight: 500; }

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-field { margin-bottom: 16px; }
.f-field label { display: block; font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247,243,236,0.65); margin-bottom: 7px; }
.f-field input, .f-field select, .f-field textarea {
  width: 100%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px; color: var(--white); font-family: inherit; font-size: 15px;
  padding: 12px 14px; transition: border-color 0.3s, background 0.3s;
  color-scheme: dark;
}
.f-field input:focus, .f-field select:focus, .f-field textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(255,255,255,0.11);
}
.f-field input.has-datepicker { cursor: pointer; }
.f-check { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: rgba(247,243,236,0.75); margin: 18px 0 22px; }
.f-check input { margin-top: 4px; accent-color: var(--gold); width: 15px; height: 15px; flex-shrink: 0; }
.book-summary { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 4px; padding-top: 16px; font-size: 14px; }
.book-summary .row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: rgba(247,243,236,0.8); }
.book-summary .row b { color: var(--white); font-weight: 500; }
.book-summary .row.deposit b { color: var(--gold-bright); font-size: 16px; }
.book-summary .row.balance-hint { font-size: 12px; color: rgba(247,243,236,0.55); margin: 0 0 4px; }
.btn-book { width: 100%; margin-top: 20px; }
.form-msg { margin-top: 14px; font-size: 13.5px; border-radius: 6px; padding: 12px 16px; display: none; }
.form-msg.ok { display: block; background: rgba(66, 165, 106, 0.15); border: 1px solid rgba(66, 165, 106, 0.5); color: #9fe0b8; }
.form-msg.err { display: block; background: rgba(207, 90, 90, 0.15); border: 1px solid rgba(207, 90, 90, 0.55); color: #f0b1b1; }

/* ============ DATE PICKER ============ */
.dp { position: absolute; z-index: 300; background: var(--navy-800); border: 1px solid rgba(201,161,91,0.35); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 18px; width: 308px; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dp-title { font-family: var(--serif); font-size: 19px; color: var(--gold-bright); letter-spacing: 0.04em; }
.dp-nav { background: none; border: 1px solid rgba(255,255,255,0.2); color: var(--white); width: 32px; height: 32px; border-radius: 50%; font-size: 16px; line-height: 1; transition: border-color 0.25s; }
.dp-nav:hover { border-color: var(--gold); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dp-dow { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247,243,236,0.45); text-align: center; padding: 6px 0; }
.dp-day { aspect-ratio: 1; border: none; background: none; border-radius: 8px; color: var(--ivory); font-size: 13.5px; transition: background 0.2s, color 0.2s; }
.dp-day:not(.valid) { color: rgba(247,243,236,0.16); cursor: default; }
.dp-day.valid:hover { background: rgba(201,161,91,0.25); }
.dp-day.selected { background: var(--gold); color: var(--navy-900); font-weight: 500; }
.dp-day.today { box-shadow: inset 0 0 0 1px var(--gold); }
.dp-note { margin-top: 12px; font-size: 11px; color: rgba(247,243,236,0.5); text-align: center; letter-spacing: 0.04em; }

/* ============ BOOKED VIEW ============ */
.booked-wrap { max-width: 760px; margin: 0 auto; text-align: center; padding: clamp(90px, 14vh, 170px) 24px clamp(70px, 10vh, 120px); }
.booked-check { width: 84px; height: 84px; margin: 0 auto 30px; border-radius: 50%; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 36px; color: var(--gold); }
.booked-wrap h1 { font-size: clamp(36px, 5vw, 56px); color: var(--navy-900); }
.booked-wrap p { color: var(--ink-soft); margin: 14px auto 8px; max-width: 560px; }
.booked-ref { font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); font-weight: 500; }

/* ============ FOOTER ============ */
.footer { background: var(--navy-900); color: rgba(247,243,236,0.75); margin-top: auto; }
.footer-inner {
  max-width: 1360px; margin: 0 auto; padding: clamp(56px, 7vw, 90px) clamp(20px, 4vw, 48px) 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 60px);
}
.footer-col h4 {
  color: var(--gold-bright); font-family: var(--sans); font-size: 12px;
  letter-spacing: 0.3em; text-transform: uppercase; font-weight: 500; margin-bottom: 18px;
}
.footer-col p { font-size: 14.5px; margin-bottom: 10px; line-height: 1.7; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-brand { margin-bottom: 16px; }
.footer-tag { max-width: 300px; }
.footer-lang { font-size: 12px !important; letter-spacing: 0.12em; color: rgba(247,243,236,0.45) !important; }
.footer-links a { display: block; font-size: 14.5px; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.09); padding: 22px; text-align: center; font-size: 12.5px; letter-spacing: 0.14em; color: rgba(247,243,236,0.4); }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(4, 14, 24, 0.94);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 4px; box-shadow: var(--shadow-lg); }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22);
  color: var(--white); width: 52px; height: 52px; border-radius: 50%;
  font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, color 0.3s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--gold); color: var(--navy-900); }
.lb-close { top: 26px; right: 26px; }
.lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 26px; top: 50%; transform: translateY(-50%); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-links {
    display: none; position: fixed; inset: 0; background: rgba(6,29,48,0.97);
    flex-direction: column; align-items: center; justify-content: center; gap: 34px;
    z-index: 99; margin: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 17px; }
  .nav-toggle { display: block; z-index: 101; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .book-panel { position: static; }
  .lang-menu { right: auto; left: 50%; transform: translate(-50%, -6px); }
  .lang-menu.open { transform: translate(-50%, 0); }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .hero-title { font-size: 42px; }
}

/* ============ EMAIL-FRIENDLY NOTICE (for print) ============ */
@media print {
  .nav, .footer, .hero-scroll, .book-panel, .gallery { display: none !important; }
}
