/* Flores del Mar – stylesheet */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/fraunces-latin-opsz-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/fraunces-latin-opsz-italic.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --sand: #f8f4ee;
  --sand-2: #f0e9df;
  --paper: #ffffff;
  --ink: #1d2b31;
  --ink-2: #4b5a60;
  --line: #e5ddd1;
  --sea: #0f4c5c;
  --sea-2: #16697a;
  --sea-3: #0b3a46;
  --sun: #e9a23b;
  --coral: #c8603a;
  --coral-2: #b0512e;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(18, 38, 45, .06), 0 8px 28px rgba(18, 38, 45, .08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea-2); text-underline-offset: 3px; }
a:hover { color: var(--sea); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; font-variation-settings: "SOFT" 50; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
h3 { font-size: 1.3rem; font-weight: 500; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.mt { margin-top: 1.6rem; }

.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--coral); margin-bottom: 1rem; }
.eyebrow-light { color: #ffd9a3; }
.hero .eyebrow { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.lead { font-size: 1.15rem; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--coral); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font: 600 1rem/1 var(--sans); padding: 1em 1.5em; border-radius: 999px;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 6px 18px rgba(200, 96, 58, .28);
}
.btn:hover { background: var(--coral-2); color: #fff; transform: translateY(-1px); }
.btn .ic { width: 1.15em; height: 1.15em; }
.btn-sm { padding: .7em 1.1em; font-size: .9rem; box-shadow: none; }
.btn-ghost { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .55); box-shadow: none; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .26); }
.btn-light { background: #fff; color: var(--sea); box-shadow: none; }
.btn-light:hover { background: var(--sand); color: var(--sea-3); }
.btn-block { width: 100%; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, color .3s; color: #fff; }
.site-header.is-solid { background: rgba(248, 244, 238, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none; font: 500 1.35rem/1 var(--serif); letter-spacing: -.01em; }
.brand:hover { color: inherit; }
.logo-mark { width: 34px; height: 34px; color: currentColor; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav ul { display: flex; gap: 1.6rem; }
.nav ul a { color: inherit; text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .92; }
.nav ul a:hover { opacity: 1; text-decoration: underline; }
.lang { color: inherit; text-decoration: none; font: 600 .8rem/1 var(--sans); letter-spacing: .08em; border: 1px solid currentColor; border-radius: 999px; padding: .45em .7em; opacity: .85; }
.lang:hover { color: inherit; opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; cursor: pointer; position: relative; }
.bars, .bars::before, .bars::after { position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; content: ""; }
.bars { top: 21px; }
.bars::before { top: -7px; left: 0; }
.bars::after { top: 7px; left: 0; }
.nav-open .bars { background: transparent; }
.nav-open .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; background: var(--sand); color: var(--ink);
    flex-direction: column; justify-content: center; gap: 2rem;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav ul { flex-direction: column; align-items: center; gap: 1.2rem; }
  .nav ul a { font: 400 1.8rem/1.2 var(--serif); }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .site-header { color: var(--ink); }
}

/* Hero */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--sea-3); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-img { animation: none; } }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(9, 30, 38, .55) 0%, rgba(9, 30, 38, .25) 45%, rgba(9, 30, 38, 0) 70%),
  linear-gradient(180deg, rgba(9, 30, 38, .5) 0%, rgba(9, 30, 38, 0) 28%, rgba(9, 30, 38, .1) 55%, rgba(9, 30, 38, .7) 100%); }
.hero-content { position: relative; padding-top: 140px; padding-bottom: clamp(96px, 12vh, 140px); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5.4rem); font-weight: 350; max-width: 12ch; margin-bottom: .35em; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero h1 em { font-style: italic; font-weight: 300; color: #ffe2b8; }
.hero-text { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); max-width: 34em; color: rgba(255, 255, 255, .92); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Facts */
.facts-wrap { position: relative; z-index: 2; margin-top: -54px; }
.facts { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.facts li { padding: 1.4rem 1rem; text-align: center; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts strong { display: block; font: 400 1.9rem/1.1 var(--serif); color: var(--sea); }
.facts span { font-size: .85rem; color: var(--ink-2); }
@media (max-width: 720px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts li { border-left: 0; border-top: 1px solid var(--line); padding: 1rem .5rem; }
  .facts li:nth-child(-n+3) { border-top: 0; }
  .facts strong { font-size: 1.5rem; }
}

/* Sections */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-tint { background: var(--sand-2); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p:last-child { color: var(--ink-2); margin-bottom: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-text p:not(.lead):not(.eyebrow) { color: var(--ink-2); }

.welcome { padding-top: clamp(80px, 9vw, 120px); }
.stack { position: relative; padding: 0 0 18% 0; }
.stack img { border-radius: var(--radius-lg); box-shadow: var(--shadow); object-fit: cover; }
.stack-a { width: 86%; aspect-ratio: 4 / 3; }
.stack-b { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border: 6px solid var(--sand); }

.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: clamp(56px, 7vw, 96px); }
.hl { background: var(--paper); border-radius: var(--radius); padding: 1.6rem 1.4rem; border: 1px solid var(--line); }
.hl .ic { width: 34px; height: 34px; color: var(--sea-2); margin-bottom: .9rem; }
.hl h3 { font-size: 1.15rem; margin-bottom: .35em; }
.hl p { font-size: .95rem; color: var(--ink-2); margin: 0; }
@media (max-width: 960px) { .highlights { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .highlights { grid-template-columns: 1fr; } }

/* Rooms */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.room { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.room-img { overflow: hidden; aspect-ratio: 3 / 2; }
.room-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.room:hover .room-img img { transform: scale(1.04); }
.room-body { padding: 1.3rem 1.4rem 1.5rem; }
.room-body h3 { margin-bottom: .3em; }
.room-body p { color: var(--ink-2); font-size: .95rem; margin: 0; }
@media (max-width: 1000px) { .rooms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rooms { grid-template-columns: 1fr; } }

.apt-details { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.4rem; margin-top: 1.4rem; }
@media (max-width: 900px) { .apt-details { grid-template-columns: 1fr; } }
.card { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.plan { display: flex; flex-direction: column; }
.plan-link { display: flex; flex: 1; align-items: center; cursor: zoom-in; }
.plan img { width: 100%; }
.kv li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.kv li span { color: var(--ink-2); }
.kv li strong { font-weight: 500; text-align: right; }
.amenities { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.2rem; }
.amenities li { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; }
.amenities .ic { flex: none; width: 18px; height: 18px; color: var(--sea-2); margin-top: .22em; }
@media (max-width: 460px) { .amenities { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 10px; }
.g-item a { display: block; height: 100%; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--sand-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s; }
.g-item a:hover img { transform: scale(1.05); }
.g-big { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 160px; } }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 8px; } .g-big { grid-column: span 2; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 20, 25, .94); display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100vh - 140px); width: auto; border-radius: 8px; }
.lightbox figcaption { color: rgba(255, 255, 255, .8); font-size: .9rem; margin-top: .8rem; text-align: center; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } }

/* Location */
.section-sea { background: var(--sea); color: rgba(255, 255, 255, .88); }
.section-sea h2, .section-sea h3 { color: #fff; }
.todo { display: flex; flex-wrap: wrap; gap: .5rem; }
.todo li { border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; padding: .4em .9em; font-size: .9rem; }
.card-dark { background: var(--sea-3); box-shadow: none; color: rgba(255, 255, 255, .9); }
.card-dark h3 { display: flex; align-items: center; gap: .5rem; }
.card-dark h3 .ic { width: 24px; height: 24px; color: var(--sun); }
.kv-dark li { border-color: rgba(255, 255, 255, .14); }
.kv-dark li span { color: rgba(255, 255, 255, .7); }
.kv-dark li strong { color: #fff; }
.card-dark .btn { margin-top: 1.4rem; }
.loc-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.loc-photos img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Reviews */
.score { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem; }
.stars { display: inline-flex; gap: 2px; color: var(--sun); }
.stars .star { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.review { margin: 0; background: var(--paper); border-radius: var(--radius-lg); padding: 2rem 1.8rem; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; }
.review blockquote { margin: 0 0 1.2rem; }
.review p { font: 400 1.12rem/1.55 var(--serif); font-style: italic; color: var(--ink); margin: 0; }
.review figcaption { font-weight: 600; font-size: .9rem; color: var(--sea); }
.review figcaption::before { content: "— "; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* Good to know + host */
.know { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.know li { border-top: 2px solid var(--sea); padding-top: 1rem; }
.know h3 { font-size: 1.15rem; margin-bottom: .3em; }
.know p { color: var(--ink-2); font-size: .95rem; margin: 0; }
@media (max-width: 960px) { .know { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .know { grid-template-columns: 1fr; } }
.host { display: flex; gap: 1.6rem; align-items: center; margin-top: clamp(48px, 6vw, 80px); background: var(--paper); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
.host-mark { flex: none; width: 92px; height: 92px; border-radius: 50%; background: var(--sea); color: #ffe2b8; display: grid; place-items: center; font: 400 1.7rem/1 var(--serif); font-style: italic; }
.host .eyebrow { margin-bottom: .6rem; }
.host p:last-child { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) { .host { flex-direction: column; align-items: flex-start; } .host-mark { width: 72px; height: 72px; font-size: 1.35rem; } }

/* Enquiry */
.enq-img img { border-radius: var(--radius-lg); aspect-ratio: 3 / 2; object-fit: cover; margin-top: 1.6rem; box-shadow: var(--shadow); }
@media (max-width: 900px) { .enq-img { display: none; } }
.enq-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1rem; }
.full { grid-column: 1 / -1; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--sand);
  border: 1px solid var(--line); border-radius: 10px; padding: .75rem .85rem; min-height: 48px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sea-2); background: #fff; box-shadow: 0 0 0 3px rgba(22, 105, 122, .15); }
.field input.invalid { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(200, 96, 58, .15); }
.check { display: flex; gap: .6rem; align-items: center; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--sea-2); }
.note { font-size: .82rem; color: var(--ink-2); margin: .8rem 0 0; }
.alt-mail { font-size: .92rem; margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.copy-btn { font: 600 .78rem/1 var(--sans); background: var(--sand-2); color: var(--sea); border: 0; border-radius: 999px; padding: .45em .8em; margin-left: .4rem; cursor: pointer; vertical-align: 1px; }
.copy-btn:hover { background: var(--line); }
@media (max-width: 460px) { .enq-form { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--sea-3); color: rgba(255, 255, 255, .72); padding: 56px 0 40px; font-size: .9rem; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.brand-foot { color: #fff; margin-bottom: .8rem; }
.foot-meta { text-align: right; }
.foot-meta p { margin: 0 0 .4rem; }
.copy { opacity: .7; }
@media (max-width: 700px) { .foot-meta { text-align: left; } }

/* Legal pages */
.legal { padding-top: 140px; }
.legal h1 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal p { color: var(--ink-2); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Video (click-to-load YouTube) */
.video-block { margin-top: clamp(56px, 7vw, 88px); }
.video-head { max-width: 640px; margin-bottom: 1.2rem; }
.video-head p { margin: 0; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--sea-3); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: none; color: #fff; }
.video-poster { width: 100%; height: 100%; object-fit: cover; filter: brightness(.72); transition: filter .3s, transform .6s; }
.video-play:hover .video-poster { filter: brightness(.6); transform: scale(1.02); }
.play-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .2s; }
.play-icon svg { width: 36px; height: 36px; margin-left: 4px; }
.video-play:hover .play-icon { transform: translate(-50%, -50%) scale(1.07); }
.play-label { position: absolute; left: 50%; top: calc(50% + 62px); transform: translateX(-50%); font-weight: 600; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); white-space: nowrap; }
.video noscript .btn { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); }
.video-note { font-size: .82rem; color: rgba(255, 255, 255, .65); margin: .8rem 0 0; }
@media (max-width: 600px) { .play-icon { width: 64px; height: 64px; } .play-icon svg { width: 28px; height: 28px; } .play-label { top: calc(50% + 50px); } }
.nra { overflow-wrap: anywhere; font-size: .8rem; opacity: .8; }
