/* Royal Links · Vale do Lobo — cores e fontes do Brand Guidelines (2026) */
@font-face { font-family: "Moling"; src: url("../fonts/moling.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Calming"; src: url("../fonts/calming.woff2") format("woff2"); font-display: swap; }

:root {
  --deep: #142010;     /* Pantone 5535 C */
  --green: #373F27;    /* Pantone 5743 C */
  --cream: #EFE7DC;    /* Pantone 9224 C */
  --olive: #868364;    /* Pantone 451 C  — apontamentos */
  --rust: #9A4316;     /* Pantone 1675 C — apontamentos */
  --serif: "Moling", "Cormorant Garamond", Georgia, serif;
  --sans: "Calming", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 6vw, 96px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--deep); color: var(--cream); font-family: var(--sans); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; }
h2 { font-size: clamp(30px, 4.2vw, 56px); margin: 14px 0 28px; }
h2.small { font-size: clamp(22px, 2.6vw, 34px); text-transform: none; max-width: 900px; margin-inline: auto; line-height: 1.3; }
h3 { font-size: clamp(22px, 2.2vw, 30px); }
.label { display: inline-block; font-size: 12px; letter-spacing: .38em; text-transform: uppercase; color: var(--olive); }

.btn { display: inline-block; padding: 14px 34px; border: 1px solid currentColor; font-size: 12px; letter-spacing: .38em; text-transform: uppercase; transition: background .3s, color .3s; cursor: pointer; background: none; color: inherit; font-family: var(--sans); }
.btn:hover { background: var(--cream); color: var(--deep); border-color: var(--cream); }
.btn.dark { color: var(--deep); }
.btn.dark:hover { background: var(--deep); color: var(--cream); border-color: var(--deep); }
.is-pending { opacity: .45; pointer-events: none; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 26px var(--pad); transition: background .4s, padding .4s; }
.site-header.solid { background: rgba(20, 32, 16, .94); padding-block: 16px; backdrop-filter: blur(6px); }
.brand img { width: 200px; height: auto; }
.nav { display: flex; gap: 38px; align-items: center; }
.nav a { font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase; opacity: .9; transition: opacity .2s, color .2s; }
.nav a:hover { color: var(--olive); }
.nav .lang { border-left: 1px solid rgba(239, 231, 220, .35); padding-left: 24px; }
.burger { display: none; width: 34px; height: 22px; background: none; border: 0; position: relative; cursor: pointer; }
.burger span { position: absolute; left: 0; right: 0; height: 1px; background: var(--cream); transition: transform .3s, top .3s; }
.burger span:first-child { top: 6px; } .burger span:last-child { top: 15px; }
.burger[aria-expanded="true"] span:first-child { top: 11px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 11px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; height: 100vh; min-height: 620px; display: flex; align-items: flex-end; padding: 0 var(--pad) 14vh; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s ease-out forwards; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,32,16,.55) 0%, rgba(20,32,16,.15) 35%, rgba(20,32,16,.75) 100%); }
.hero-in { position: relative; z-index: 1; max-width: 900px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 78px); }
.hero p { margin: 18px 0 36px; font-size: clamp(15px, 1.3vw, 18px); opacity: .9; }
@keyframes heroZoom { to { transform: scale(1); } }

/* Collection */
.collection { display: grid; grid-template-columns: 1fr 1fr; min-height: 90vh; }
.col-text { padding: 14vh var(--pad); display: flex; flex-direction: column; justify-content: center; }
.big-num { display: flex; align-items: center; gap: 28px; margin: 30px 0 10px; }
.num { font-family: var(--sans); font-weight: 100; font-size: clamp(110px, 13vw, 190px); line-height: .9; }
.num-txt b { display: block; font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: .25em; font-size: 15px; color: var(--olive); }
.num-txt small { display: block; font-size: 14px; opacity: .65; margin-top: 6px; }
.col-text hr { border: 0; border-top: 1px solid rgba(134, 131, 100, .5); margin: 34px 0; }
.col-text p { max-width: 560px; opacity: .9; }
.col-text p.em { margin-top: 18px; font-family: var(--serif); font-size: 22px; line-height: 1.4; opacity: 1; }
.col-img img { width: 100%; height: 100%; object-fit: cover; }

/* Values */
.values { background: var(--cream); color: var(--deep); text-align: center; padding: 16vh var(--pad); }
.values-icon { width: 64px; margin: 0 auto 26px; }
.val-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 60px; text-align: left; }
.val-grid li { padding: 34px 30px; border-left: 1px solid rgba(20, 32, 16, .18); }
.val-grid li:first-child { border-left: 0; }
.val-n { font-size: 12px; letter-spacing: .3em; color: var(--rust); }
.val-grid h3 { font-size: 22px; margin: 14px 0 12px; }
.val-grid p { font-size: 15.5px; opacity: .8; }

/* Quote band */
.quote-band { position: relative; height: 80vh; min-height: 480px; display: grid; place-items: center; overflow: hidden; padding: 0 var(--pad); }
.quote-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote-band::after { content: ""; position: absolute; inset: 0; background: rgba(20, 32, 16, .5); }
.quote-band blockquote { position: relative; z-index: 1; max-width: 1000px; text-align: center; font-family: var(--serif); font-size: clamp(26px, 3.4vw, 48px); line-height: 1.25; }

/* Villa */
.villa { padding: 16vh var(--pad); text-align: center; background: var(--green); }
.villa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px); margin-top: 50px; text-align: left; }
.v-img { overflow: hidden; aspect-ratio: 4 / 3; }
.v-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.v-card:hover .v-img img { transform: scale(1.04); }
.v-card h3 { margin: 28px 0 10px; }
.v-card p { opacity: .85; max-width: 460px; }

/* Gallery */
.gallery { background: var(--cream); color: var(--deep); padding: 16vh var(--pad); text-align: center; }
.g-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 22vw; gap: 10px; margin-top: 60px; }
.g-item { overflow: hidden; display: block; }
.g-item.wide { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.g-item:hover img { transform: scale(1.04); }

/* Vale do Lobo */
.vdl { padding-top: 16vh; }
.vdl-head { text-align: center; padding: 0 var(--pad) 60px; }
.vdl-head p { max-width: 640px; margin: 0 auto; opacity: .85; }
.vdl-img { width: 100%; height: 62vh; object-fit: cover; }
.map { height: 420px; filter: grayscale(.85) sepia(.15) contrast(.95); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Cards */
.cards { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 14vh var(--pad); }
.cards-bg { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.cards-bg img { width: 100%; height: 100%; object-fit: cover; }
.card { position: relative; background: rgba(239, 231, 220, .93); color: var(--deep); padding: clamp(28px, 4vw, 60px); max-width: 520px; justify-self: center; width: 100%; }
.card h3 { margin: 14px 0 14px; }
.card p { opacity: .8; margin-bottom: 30px; font-size: 15.5px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 6vw; padding: 16vh var(--pad); }
.ct-person { opacity: .75; }
.ct-phone { display: inline-block; margin-top: 12px; font-family: var(--serif); font-size: 28px; border-bottom: 1px solid var(--olive); }
.ct-form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; align-content: start; }
.ct-form label { display: flex; flex-direction: column; gap: 6px; }
.ct-form label.full { grid-column: 1 / -1; }
.ct-form label > span { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--olive); }
.ct-form input, .ct-form textarea { background: transparent; border: 0; border-bottom: 1px solid rgba(239, 231, 220, .35); color: var(--cream); font: inherit; padding: 8px 0; outline: none; resize: vertical; }
.ct-form input:focus, .ct-form textarea:focus { border-color: var(--cream); }
.ct-form .check { flex-direction: row; align-items: flex-start; gap: 12px; font-size: 14px; opacity: .85; }
.ct-form .check span { text-transform: none; letter-spacing: 0; color: inherit; font-size: 14px; }
.ct-form .check input { margin-top: 5px; accent-color: var(--olive); }
.ct-form .btn { justify-self: start; }
.form-msg { grid-column: 1 / -1; font-size: 14px; min-height: 1.4em; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.disclaimer { background: var(--green); text-align: center; font-size: 13px; padding: 18px var(--pad); opacity: .95; }
.footer { padding: 70px var(--pad) 30px; border-top: 1px solid rgba(134, 131, 100, .3); }
.f-row { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.f-logo { width: 220px; }
.f-col .label { display: block; margin-bottom: 8px; }
.f-col.right { text-align: right; }
.f-cg { letter-spacing: .3em; font-size: 18px; }
.f-bottom { display: flex; justify-content: space-between; margin-top: 60px; padding-top: 22px; border-top: 1px solid rgba(239, 231, 220, .12); font-size: 13px; opacity: .7; }

/* Side buttons */
.side { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 6px; }
.side a { width: 44px; height: 44px; display: grid; place-items: center; background: var(--green); color: var(--cream); }
.side a:last-child { background: var(--olive); }
.side svg, .to-top svg { width: 22px; height: 22px; }
.to-top { position: fixed; right: 0; bottom: 24px; z-index: 40; width: 44px; height: 44px; display: grid; place-items: center; background: var(--rust); color: var(--cream); opacity: 0; transition: opacity .3s; pointer-events: none; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 32, 16, .96); display: grid; place-items: center; padding: 4vw; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; width: auto; }
.lightbox button { position: absolute; top: 18px; right: 26px; background: none; border: 0; color: var(--cream); font-size: 40px; cursor: pointer; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero-bg { animation: none; transform: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1000px) {
  .val-grid { grid-template-columns: 1fr 1fr; }
  .val-grid li:nth-child(3) { border-left: 0; }
  .g-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 40vw; }
}
@media (max-width: 820px) {
  .burger { display: block; z-index: 2; }
  .nav { position: fixed; inset: 0; background: var(--deep); flex-direction: column; justify-content: center; gap: 30px; opacity: 0; pointer-events: none; transition: opacity .35s; }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav a { font-size: 14px; }
  .nav .lang { border: 0; padding: 0; }
  .brand img { width: 160px; }
  .collection, .contact, .villa-grid, .cards, .cards-bg { grid-template-columns: 1fr; }
  .col-img { height: 60vh; }
  .cards-bg img:last-child { display: none; }
  .ct-form { grid-template-columns: 1fr; }
  .f-row { flex-direction: column; align-items: flex-start; }
  .f-col.right { text-align: left; }
  .f-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .val-grid { grid-template-columns: 1fr; }
  .val-grid li { border-left: 0; border-top: 1px solid rgba(20, 32, 16, .18); padding: 26px 0; }
  .g-grid { grid-template-columns: 1fr; grid-auto-rows: 62vw; }
  .g-item.wide { grid-column: auto; }
  .big-num { gap: 18px; }
  .side { top: auto; bottom: 76px; transform: none; }
  .side a { width: 40px; height: 40px; }
  .to-top { width: 40px; height: 40px; }
}

/* ---------- Espaços reservados (v2) ---------- */
.tbc { font-style: normal; font-size: .82em; letter-spacing: .22em; text-transform: uppercase; opacity: .55; }
.btn.ghost { border-color: transparent; padding-inline: 0; }
.btn.ghost:hover { background: none; color: var(--olive); border-color: transparent; }
.btn svg { width: 22px; height: 22px; vertical-align: middle; margin-right: 12px; }
.btn.play { display: inline-flex; align-items: center; }

/* Ficha das villas */
.spec { width: 100%; border-collapse: collapse; margin: 26px 0 28px; font-size: 15px; }
.spec th, .spec td { padding: 11px 0; border-bottom: 1px solid rgba(239, 231, 220, .16); text-align: left; font-weight: 400; }
.spec th { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--olive); width: 45%; }
.v-actions { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }

/* Vídeo e visita virtual */
.media { position: relative; min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 14vh var(--pad); overflow: hidden; }
.media-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media::after { content: ""; position: absolute; inset: 0; background: rgba(20, 32, 16, .62); }
.media-in { position: relative; z-index: 1; }
.media-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

/* Distâncias + mapa */
.vdl-info { display: grid; grid-template-columns: 1fr 1.6fr; }
.dist { padding: 60px var(--pad); background: var(--green); }
.dist ul { list-style: none; margin-top: 20px; }
.dist li { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid rgba(239, 231, 220, .16); }
.dist b { font-weight: 400; font-family: var(--serif); font-size: 19px; }
.vdl-info .map { height: auto; min-height: 420px; }

/* Formulário */
.ct-form select { background: transparent; border: 0; border-bottom: 1px solid rgba(239, 231, 220, .35); color: var(--cream); font: inherit; padding: 8px 0; outline: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cream) 50%), linear-gradient(135deg, var(--cream) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.ct-form select option { color: var(--deep); }
.ct-form .check a { text-decoration: underline; }
.ct-mail { display: block; margin-top: 10px; opacity: .85; }

/* Rodapé */
.f-partner { max-height: 40px; width: auto; }
.f-col.right a, .f-col.right .f-mail { display: block; }
.f-social { display: flex; align-items: center; gap: 16px; }
.f-social svg { width: 18px; height: 18px; }
.f-social .label { margin-right: 6px; }
.f-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* Página legal */
.legal { max-width: 860px; margin: 0 auto; padding: 22vh var(--pad) 14vh; }
.legal h1 { font-size: clamp(30px, 4vw, 52px); margin: 14px 0 50px; }
.legal h2 { font-size: 20px; margin: 40px 0 12px; }
.legal p { opacity: .85; }
.legal .btn { margin-top: 50px; }
.tbc-block { font-style: italic; opacity: .5 !important; }

.lightbox video { max-height: 88vh; max-width: 92vw; }
.lightbox [hidden] { display: none; }

/* Modo revisão (?revisao) */
.review .tbc, .review .tbc-block, .review .is-pending { outline: 2px dashed var(--rust); outline-offset: 3px; opacity: 1 !important; color: var(--rust); background: rgba(239, 231, 220, .9); }
.review-badge { position: fixed; left: 16px; bottom: 16px; z-index: 200; background: var(--rust); color: var(--cream); padding: 10px 16px; font-size: 13px; letter-spacing: .08em; }

@media (max-width: 820px) {
  .vdl-info { grid-template-columns: 1fr; }
  .f-social { flex-wrap: wrap; }
}
