/* City Living Cyprus · Park View Residences
   Palette: black and white. Gold only as a small accent (matches the logo). */

:root {
  --dark: #111111;
  --dark-deep: #0A0A0A;
  --gold: #938052;
  --gold-light: #C9B88C;     /* gold for small text on black (readable contrast) */
  --paper: #FFFFFF;
  --paper-2: #F4F4F4;        /* neutral light grey for alternate sections */
  --ink: #111111;
  --ink-soft: #5E5E5E;
  --line: rgba(17, 17, 17, 0.14);
  --wa: #1F9D55;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 11vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
em { font-style: italic; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 18px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-light { color: var(--gold-light); }

.section-title {
  margin: 0 0 24px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.01em;
  color: var(--ink);
}
.section-title em, .delivery-title em { color: var(--gold); font-weight: 400; }
.section-intro { margin: 0; max-width: 56ch; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 34px;
  border: 1px solid transparent; border-radius: 0;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #7F6E45; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--gold); }
.btn-whatsapp { margin-top: 32px; background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-whatsapp:hover { background: var(--dark); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: #fff; }
.btn-small { padding: 11px 20px; font-size: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; padding: 26px 0; color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Logo: the City Living Homes PNG used as a mask, so it takes the brand gold */
.logo { display: inline-block; line-height: 0; }
.logo-mark {
  display: block; width: 190px; aspect-ratio: 900 / 211;
  background-color: var(--gold-light);
  -webkit-mask: url("/assets/img/logo.png") center / contain no-repeat;
          mask: url("/assets/img/logo.png") center / contain no-repeat;
}
.logo-footer .logo-mark { width: 170px; }

.header-nav { display: flex; align-items: center; gap: 34px; }
.header-nav a { font-size: 12px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; opacity: .9; }
.header-nav a:hover { opacity: 1; }
.header-cta { padding: 10px 18px; border: 1px solid rgba(255,255,255,.45); }
.header-cta:hover { border-color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff; background: var(--dark); overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,0) 28%),
    linear-gradient(0deg, rgba(10,10,10,.88) 0%, rgba(10,10,10,.35) 48%, rgba(10,10,10,0) 75%);
}
.hero-content { position: relative; padding-bottom: clamp(56px, 10vh, 120px); padding-top: 140px; }
.hero-title {
  margin: 0 0 24px; max-width: 15ch;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 8.4vw, 112px); line-height: .98; letter-spacing: -0.015em;
}
.hero-title em { color: var(--gold-light); }
.hero-lede { margin: 0 0 38px; max-width: 46ch; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.86); }

/* ---------- Facts ---------- */
.facts { background: var(--dark); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { display: flex; flex-direction: column; gap: 6px; padding: 34px 24px; border-left: 1px solid rgba(255,255,255,.12); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-num { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); line-height: 1; color: #fff; }
.fact-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 80px); }

/* Residences */
.units { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.unit:nth-child(2) { margin-top: clamp(0px, 8vw, 110px); }
.unit-media { margin: 0; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; }
.unit-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.unit:hover .unit-media img { transform: scale(1.035); }
.unit-body { padding-top: 26px; }
.unit-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.unit-price { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(34px, 3.8vw, 46px); line-height: 1.05; color: var(--ink); }
.unit-price span { font-size: .5em; font-style: italic; color: var(--ink-soft); margin-right: 4px; }
.unit-text { margin: 0; max-width: 44ch; color: var(--ink-soft); }

.unit-specs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 13px; letter-spacing: .04em; color: var(--ink); }
.unit-specs li + li::before { content: "·"; margin-right: 18px; color: var(--gold); }
.unit-specs li { display: inline-flex; }

.features { margin-top: clamp(56px, 8vw, 96px); padding-top: 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 3fr; gap: 32px; }
.features-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.2; }
.features-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px 32px; }
.features-list li { position: relative; padding-left: 18px; font-size: 15px; color: var(--ink-soft); }
.features-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: var(--gold); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 40px 22px 0;
  font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--sans); font-weight: 300; font-size: 26px; color: var(--gold); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0 0 24px; max-width: 62ch; color: var(--ink-soft); }

/* Gallery strip */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--paper); }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* City */
.city { background: var(--paper-2); }
.city-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.city-media { position: sticky; top: 40px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.city-media img { width: 100%; height: 100%; object-fit: cover; }

.reasons { margin: 40px 0 0; }
.reason { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 28px 0; border-top: 1px solid var(--line); }
.reason:last-child { border-bottom: 1px solid var(--line); }
.reason-num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold); line-height: 1.4; }
.reason h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.2; color: var(--ink); }
.reason p { margin: 0; color: var(--ink-soft); }

.distances { margin: 48px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.distances div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px dotted rgba(17,17,17,.25); }
.distances dt { font-size: 14px; color: var(--ink-soft); }
.distances dd { margin: 0; font-family: var(--serif); font-size: 20px; color: var(--ink); white-space: nowrap; }

/* Delivery */
.delivery { background: var(--dark); color: #fff; padding: clamp(80px, 12vw, 150px) 0; text-align: center; }
.delivery-inner { max-width: 860px; }
.delivery-title { margin: 0 0 24px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; }
.delivery-title em { color: var(--gold-light); }
.delivery-text { margin: 0 auto; max-width: 52ch; color: rgba(255,255,255,.8); }

/* Enquire */
.enquire-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.lead-form {
  background: #fff;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--dark);
  box-shadow: 0 30px 60px -40px rgba(10,10,10,.3);
}
.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  display: block; margin: 0 0 8px; padding: 0;
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select {
  width: 100%; padding: 14px 0;
  border: 0; border-bottom: 1px solid rgba(17,17,17,.3); border-radius: 0;
  background: transparent;
  font: inherit; font-size: 17px; font-weight: 400; color: var(--ink);
  appearance: none; -webkit-appearance: none;
}
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field select {
  padding-right: 22px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23111111'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.phone-row { display: grid; grid-template-columns: 112px 1fr; gap: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 10px 16px; border: 1px solid rgba(17,17,17,.25); font-size: 14px; font-weight: 400; color: var(--ink); transition: all .2s ease; }
.chip input:checked + span { background: var(--dark); border-color: var(--dark); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; margin: 6px 0 28px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--dark); }

.field.invalid input, .field.invalid select { border-bottom-color: #B03A2E; }
.field.invalid .chip span { border-color: #B03A2E; }
.consent.invalid { color: #B03A2E; }
.form-status { margin: 14px 0 0; min-height: 1.4em; font-size: 14px; color: #B03A2E; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-deep); color: rgba(255,255,255,.7); padding: 56px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer-address { margin: 16px 0 0; }
.footer-right { text-align: right; }
.footer-credit { margin: 0 0 8px; font-family: var(--serif); font-size: 20px; color: #fff; }
.footer-credit a { color: var(--gold-light); text-decoration: none; border-bottom: 1px solid rgba(201,184,140,.4); }
.footer-credit a:hover { border-bottom-color: var(--gold-light); }
.footer-small { margin: 0; font-size: 12px; }
.footer-small a { color: rgba(255,255,255,.85); }

/* ---------- Floating WhatsApp (mobile) ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  display: none; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.45);
}

/* ---------- Consent banner ---------- */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
  max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; background: var(--dark); color: #fff; font-size: 14px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
}
.consent-banner p { margin: 0; }
.consent-actions { display: flex; gap: 8px; }

/* ---------- Simple pages (thank-you, privacy) ---------- */
.page-simple { min-height: 100vh; display: flex; flex-direction: column; }
.page-simple .site-header { position: static; background: var(--dark); }
.page-body { flex: 1; padding: clamp(64px, 10vw, 120px) 0; }
.page-body .wrap { max-width: 760px; }
.page-body h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; color: var(--ink); margin: 40px 0 8px; }
.page-body p, .page-body li { color: var(--ink-soft); }
.page-body .btn-wa { margin-top: 32px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .unit-media img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .units, .city-grid, .enquire-grid { grid-template-columns: 1fr; }
  .unit:nth-child(2) { margin-top: 0; }
  .city-media { position: static; aspect-ratio: 16 / 11; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .features, .faq-grid { grid-template-columns: 1fr; }
  .features-list { grid-template-columns: 1fr 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 26px 0 26px 20px; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { padding: 18px 0; }
  .header-nav a:not(.header-cta) { display: none; }
  .logo-mark { width: 150px; }
  .hero-content { padding-top: 120px; }
  .hero .btn { width: 100%; }
  .distances { grid-template-columns: 1fr; }
  .features-list { grid-template-columns: 1fr; }
  .faq-list summary { font-size: 20px; }
  .reason { grid-template-columns: 40px 1fr; }
  .phone-row { grid-template-columns: 100px 1fr; gap: 12px; }
  .footer-right { text-align: left; }
  .wa-float { display: flex; }
  .btn-whatsapp { width: 100%; }
  .consent-banner { bottom: 88px; }
}
