/* Apple 3 Condovilla LP — design system
   Palette: midnight navy (brand dark), gold (brand accent), ivory (paper)
   Type: Cormorant Garamond (display, European classic) / Plus Jakarta Sans (body) */

:root {
  --night: #0b1220;
  --navy-900: #101a2e;
  --navy-800: #16233c;
  --navy-700: #1e3252;
  --ivory: #f4efe2;
  --paper: #fbf8f0;
  --line: #e2d9c4;
  --gold: #c8a35a;
  --gold-deep: #a5843f;
  --ink: #172032;
  --muted: #5d6675;
  --ok: #2e7d4f;
  --red-600: #a51c22;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.10);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
section { scroll-margin-top: 84px; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: 0.005em; }
h2 { font-size: clamp(2rem, 4.8vw, 3rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 14px;
}
.dark .eyebrow { color: var(--gold); }
.lead { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--muted); max-width: 46rem; }
.dark .lead { color: rgba(244, 239, 226, 0.78); }
sup.fn { font-size: 0.6em; }
sup.fn a { color: inherit; text-decoration: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 4px; border: 0;
  font-weight: 700; font-size: 14.5px; letter-spacing: 0.03em; text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--night); box-shadow: 0 8px 22px rgba(200, 163, 90, 0.35); }
.btn-primary:hover { background: #d7b46c; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--gold-deep); }
.dark .btn-ghost, .hero .btn-ghost { color: var(--ivory); border-color: rgba(200, 163, 90, 0.7); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(200, 163, 90, 0.1); }
.btn-block { width: 100%; }

/* topbar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 163, 90, 0.25);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.topbar img.logo { height: 52px; width: auto; }
.topbar .btn { padding: 10px 18px; font-size: 13px; }
.topbar .topbar-loc { display: none; color: rgba(244,239,226,.6); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; }
@media (min-width: 720px) { .topbar .topbar-loc { display: block; } }

/* hero */
.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: min(94vh, 880px); padding: 130px 0 60px;
  color: var(--ivory); isolation: isolate; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,18,32,0.5) 0%, rgba(11,18,32,0.1) 36%, rgba(11,18,32,0.55) 64%, rgba(11,18,32,0.95) 100%);
}
.hero .eyebrow { color: #e6c887; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75); }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); max-width: 14em; text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55); }
.hero h1 .gold { color: var(--gold); font-style: italic; }
.hero .lead { margin-top: 18px; color: rgba(244, 239, 226, 0.9); text-shadow: 0 1px 16px rgba(0, 0, 0, 0.6); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 26px; }
.chip {
  font-size: 12.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(200, 163, 90, 0.55);
  color: var(--ivory); background: rgba(11, 18, 32, 0.35);
}

/* gold rule ornament */
.rule { width: 64px; height: 2px; background: var(--gold); margin: 18px 0 0; }

/* stat band */
.stats { background: var(--night); color: var(--ivory); padding: 40px 0; border-top: 1px solid rgba(200,163,90,.3); }
.stats .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
@media (min-width: 860px) { .stats .wrap { grid-template-columns: repeat(4, 1fr); } }
.stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--gold); }
.stat span { font-size: 13.5px; color: rgba(244, 239, 226, 0.72); }

/* sections */
.sec { padding: 88px 0; }
.sec-alt { background: var(--paper); }
.sec-dark { background: linear-gradient(180deg, var(--night), var(--navy-900)); color: var(--ivory); }
.sec-head { max-width: 54rem; margin-bottom: 44px; }
.sec-head p { margin-top: 12px; }

.grid-3 { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 48px; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card .k { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--muted); }

/* unit types */
.unit-card { overflow: hidden; padding: 0; }
.unit-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.unit-card .body { padding: 26px; }
.unit-facts { display: grid; gap: 10px; margin-top: 16px; }
.unit-fact { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.unit-fact b { color: var(--ink); }
.unit-card .btn { margin: 0 26px 26px; }

/* gallery */
.gal { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .gal { grid-template-columns: repeat(3, 1fr); } }
.gal figure { position: relative; border-radius: 10px; overflow: hidden; background: var(--night); aspect-ratio: 4 / 3; }
.gal figure.wide { grid-column: span 2; aspect-ratio: 8 / 3.2; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gal figure:hover img { transform: scale(1.04); }
.gal figcaption {
  position: absolute; inset: auto 0 0 0; padding: 22px 14px 10px;
  background: linear-gradient(transparent, rgba(11, 18, 32, 0.85));
  color: var(--ivory); font-size: 12.5px; font-weight: 600;
}
.real-tag {
  display: inline-block; margin-bottom: 16px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ok);
}

/* facilities */
.fac { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .fac { grid-template-columns: repeat(3, 1fr); } }
.fac-item { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.fac-item b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.fac-item span { font-size: 13px; color: var(--muted); }
.fac-item .ico { width: 34px; height: 34px; margin-bottom: 12px; color: var(--gold-deep); }
.fac-item .ico svg { width: 100%; height: 100%; }

/* distances */
.dist { display: grid; gap: 10px; }
.dist-item {
  display: flex; align-items: baseline; gap: 14px;
  padding: 13px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-size: 15px;
}
.dist-item b { font-family: var(--font-display); font-size: 1.25rem; color: var(--gold-deep); min-width: 84px; }
.loc-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* trust */
.dev-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
.dev-stats b { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); }
.dev-stats span { font-size: 13px; color: rgba(244, 239, 226, 0.7); }
.trust-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* faq */
.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 34px 20px 0; font-weight: 700; font-size: 15.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 24px; color: var(--gold-deep);
}
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 20px; font-size: 14.5px; color: var(--muted); max-width: 42rem; }

/* final */
.final { text-align: center; padding: 100px 0; }
.final h2 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); max-width: 20em; margin: 0 auto; }
.final .lead { margin: 16px auto 30px; }
.final .btn { min-width: 260px; }
.final .sub { margin-top: 14px; font-size: 13px; color: rgba(244, 239, 226, 0.55); }

/* footer */
footer { background: var(--night); color: rgba(244, 239, 226, 0.65); padding: 44px 0 120px; font-size: 13px; }
footer .frow { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
footer img.logo { height: 64px; }
footer .disc { font-size: 11.5px; line-height: 1.7; color: rgba(244, 239, 226, 0.4); border-top: 1px solid rgba(200, 163, 90, 0.15); padding-top: 20px; }
footer a { color: rgba(244, 239, 226, 0.8); text-decoration: none; }

/* sticky bar */
.stickybar {
  position: fixed; inset: auto 0 0 0; z-index: 70;
  display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(200, 163, 90, 0.35);
  transform: translateY(110%); transition: transform 0.3s ease;
}
.stickybar.show { transform: translateY(0); }
.stickybar .btn { flex: 1; padding: 13px 10px; font-size: 14px; }
.stickybar .btn-ghost { color: var(--ivory); border-color: rgba(200, 163, 90, 0.75); }
@media (min-width: 900px) {
  .stickybar { left: auto; right: 28px; bottom: 24px; border: 1px solid rgba(200,163,90,.4); border-radius: 10px; padding: 12px; width: 400px; }
}

/* modal */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: flex-end; justify-content: center;
  background: rgba(6, 10, 18, 0.7);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal.open { display: flex; }
@media (min-width: 640px) { .modal { align-items: center; padding: 24px; } }
.modal-card {
  background: var(--paper); color: var(--ink);
  width: 100%; max-width: 460px; max-height: 92vh; overflow: auto;
  border-radius: 18px 18px 0 0; padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
  animation: rise 0.28s ease;
}
@media (min-width: 640px) { .modal-card { border-radius: 12px; padding: 32px; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0.4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .modal-card { animation: none; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.modal-head h3 { font-size: 1.6rem; }
.modal-close { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); padding: 4px; }
.modal .msub { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 15px;
  border: 1.5px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold-deep); }
.form-err { display: none; background: rgba(165, 28, 34, 0.08); border: 1px solid rgba(165, 28, 34, 0.35); color: var(--red-600); font-size: 13.5px; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.form-err.show { display: block; }
.form-fine { font-size: 11.5px; color: var(--muted); margin-top: 12px; text-align: center; }
.hp { position: absolute; left: -5000px; opacity: 0; }
.modal-success { text-align: center; padding: 22px 0 8px; display: none; }
.modal-success.show { display: block; }
.modal-success .ok-ic { width: 54px; height: 54px; margin: 0 auto 16px; color: var(--ok); }
.modal-success h3 { margin-bottom: 8px; }
.modal-success p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

/* reveal */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
