/* ============================================================
   Blue Suites Penthouse — Manilva
   ============================================================ */
:root {
  --sand: #f7f2eb;
  --sand-2: #efe6da;
  --white: #ffffff;
  --sea: #0e3a4a;
  --sea-2: #1c5a6e;
  --sky: #d9ebef;
  --accent: #c66f45;
  --accent-2: #a95a35;
  --ink: #1f2a30;
  --muted: #5d6b72;
  --line: #e2d8ca;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 58, 74, .10);
  --max: 1180px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sea-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--sea); margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 90px 0; }
.section-alt { background: var(--white); }
.eyebrow {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: .8em; display: block;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .9em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-outline { border-color: var(--sea); color: var(--sea); background: transparent; }
.btn-outline:hover { background: var(--sea); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5a; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(247, 242, 235, .96); box-shadow: 0 2px 16px rgba(0,0,0,.08); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--accent); }
.scrolled .brand { color: var(--sea); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: #fff; text-decoration: none; font-size: .9rem; font-weight: 500; }
.scrolled .nav a { color: var(--ink); }
.nav a:hover { color: var(--accent); }
.nav .btn { padding: .55em 1.1em; color: #fff; }
.lang-switch { display: flex; gap: 2px; background: rgba(255,255,255,.18); border-radius: 999px; padding: 3px; }
.scrolled .lang-switch { background: var(--sand-2); }
.lang-switch button {
  border: 0; background: transparent; color: #fff; font: 600 .75rem var(--sans);
  padding: .4em .7em; border-radius: 999px; cursor: pointer;
}
.scrolled .lang-switch button { color: var(--ink); }
.lang-switch button.active { background: #fff; color: var(--sea); }
.scrolled .lang-switch button.active { background: var(--sea); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }
.scrolled .menu-toggle { color: var(--sea); }
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; color: #fff; padding: 0;
  background: var(--sea) center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,30,40,.45) 0%, rgba(8,30,40,.05) 35%, rgba(8,30,40,.75) 100%);
}
.hero-content { position: relative; padding-bottom: 80px; padding-top: 140px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.5vw, 5rem); max-width: 900px; }
.hero .sub { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 640px; opacity: .95; margin-bottom: 1.6em; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.8em; }
.badge {
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px); padding: .35em .9em; border-radius: 999px; font-size: .85rem; font-weight: 500;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.price-tag { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; margin-right: 12px; }
.price-tag small { display: block; font-family: var(--sans); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.private-sale { display: inline-block; margin-top: 1.4em; font-size: .85rem; opacity: .9; }

/* ---------- Facts ---------- */
.facts {
  background: var(--white); margin-top: -1px; padding: 0;
  border-bottom: 1px solid var(--line);
}
.facts-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.fact { padding: 28px 12px; text-align: center; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact svg { width: 30px; height: 30px; color: var(--accent); margin: 0 auto 8px; }
.fact strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--sea); line-height: 1.1; }
.fact span { font-size: .82rem; color: var(--muted); }

/* ---------- Intro / highlights ---------- */
.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.intro-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; }
.intro-img img { width: 100%; height: 100%; object-fit: cover; }
.highlights { list-style: none; padding: 0; margin: 1.5em 0 0; display: grid; gap: 14px; }
.highlights li { display: flex; gap: 14px; align-items: flex-start; }
.highlights .ic { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--sky); color: var(--sea); display: grid; place-items: center; }
.highlights .ic svg { width: 18px; height: 18px; }
.highlights b { display: block; color: var(--sea); }
.highlights small { color: var(--muted); font-size: .92rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; margin-top: 40px; }
.gallery button {
  border: 0; padding: 0; cursor: zoom-in; border-radius: 10px; overflow: hidden; background: var(--sand-2);
  position: relative;
}
.gallery button:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery button:nth-child(6) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery-more { text-align: center; margin-top: 28px; }
.img-missing {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(45deg, var(--sand-2), var(--sand-2) 12px, var(--sand) 12px, var(--sand) 24px);
  color: var(--muted); font-size: .8rem; padding: 10px;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(5, 18, 24, .94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 20px; top: 20px; }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; font-size: .9rem; opacity: .8; }

/* ---------- Video / tour ---------- */
.media-wrap { margin-top: 36px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/9; background: var(--sea); }
.media-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Layout (floors) ---------- */
.floors { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.floor-card { background: var(--sand); border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.floor-card h3 { display: flex; align-items: center; gap: 10px; }
.floor-card h3 em { font-style: normal; font-family: var(--sans); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; background: var(--sea); color: #fff; padding: .25em .7em; border-radius: 999px; }
.floor-card ul { margin: 0; padding-left: 1.2em; }
.floor-card li { margin-bottom: .4em; }
.floorplan { margin-top: 28px; text-align: center; }
.floorplan img { margin: 0 auto; border-radius: var(--radius); background: #fff; }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 40px; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.spec-table td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td:first-child { color: var(--muted); width: 45%; }
.spec-table td:last-child { font-weight: 500; }

/* ---------- Cards grid ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.card { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.section-alt .card { background: var(--sand); box-shadow: none; border: 1px solid var(--line); }
.card .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--sky); color: var(--sea); display: grid; place-items: center; margin-bottom: 16px; }
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.35rem; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Location ---------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; margin-top: 40px; }
.distances { list-style: none; padding: 0; margin: 0; }
.distances li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.distances li span:last-child { font-weight: 600; color: var(--sea); white-space: nowrap; }
.map {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--sky);
  position: relative; box-shadow: var(--shadow);
}
.map iframe { width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; color: var(--sea); }
.map-placeholder p { font-size: .85rem; color: var(--muted); max-width: 340px; margin: 0; }
.note { font-size: .8rem; color: var(--muted); margin-top: 12px; }

/* ---------- Investment ---------- */
.invest { background: var(--sea); color: #e9f2f4; }
.invest h2, .invest h3 { color: #fff; }
.invest .lead { color: #c9dde2; }
.invest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.invest-item { border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 28px; }
.invest-item strong { display: block; font-family: var(--serif); font-size: 2rem; color: #fff; line-height: 1.1; margin-bottom: 6px; }
.invest-item span { font-size: .92rem; color: #c9dde2; }

/* ---------- Process ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 44px; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 1.2rem; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { background: var(--sand); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--sea); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; margin-top: 40px; align-items: start; }
.contact-info .btn { margin: 0 10px 12px 0; }
.contact-points { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-points li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--muted); }
.contact-points svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 4px; }
form.contact-form { background: var(--white); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--sea); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8em 1em; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .95rem; background: var(--sand); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sea-2); outline-offset: 1px; background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.checkbox input { margin-top: 4px; }
.hidden { display: none !important; }
.form-msg { margin-top: 14px; padding: 14px 16px; border-radius: 10px; font-size: .95rem; }
.form-msg.ok { background: #e3f3e8; color: #1d5b33; }
.form-msg.err { background: #fbe6e1; color: #8a2c17; }

/* ---------- Footer ---------- */
.site-footer { background: #0a2a36; color: #a9c1c8; padding: 50px 0 30px; font-size: .9rem; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: #fff; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px;
  background: #fff; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.25);
  padding: 20px 22px; font-size: .9rem; display: none;
}
.cookie.show { display: block; }
.cookie p { margin: 0 0 14px; color: var(--muted); }
.cookie .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { padding: .6em 1.2em; font-size: .85rem; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.wa-float svg { width: 30px; height: 30px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .facts-grid { grid-template-columns: repeat(3, 1fr); }
  .fact:nth-child(3) { border-right: 0; }
  .fact:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards, .invest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; background: var(--sand); flex-direction: column; align-items: stretch;
    gap: 0; padding: 10px 20px 20px; box-shadow: 0 10px 20px rgba(0,0,0,.1); display: none;
  }
  .nav.open { display: flex; }
  .nav a { color: var(--ink) !important; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; border-bottom: 0; color: #fff !important; }
  .lang-switch { background: var(--sand-2); align-self: flex-start; margin-top: 12px; }
  .lang-switch button { color: var(--ink); }
  .lang-switch button.active { background: var(--sea); color: #fff; }
  .intro-grid, .loc-grid, .contact-grid, .floors { grid-template-columns: 1fr; gap: 32px; }
  .intro-img { aspect-ratio: 4/3; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery button:nth-child(6) { grid-column: span 1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
  .fact:nth-child(2n) { border-right: 0 !important; }
  .cards, .invest-grid, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  form.contact-form { padding: 24px 20px; }
  .price-tag { width: 100%; margin-bottom: 6px; }
  .hero-content { padding-bottom: 60px; }
  .spec-table td { padding: 12px 14px; display: block; width: 100% !important; }
  .spec-table td:first-child { padding-bottom: 0; border-bottom: 0; font-size: .85rem; }
}
