/* =============================================================
   4 Bedroom Apartment – Engomi, Nicosia  |  landing page styles
   Plain CSS, mobile-first, no framework, no web fonts.
   Palette: warm neutrals + a deep olive-charcoal accent.
   ============================================================= */

:root {
  --bg:            #ffffff;
  --bg-soft:       #f6f4f0;   /* warm off-white */
  --bg-alt:        #efece6;   /* greige panel   */
  --ink:           #24261f;   /* near-black warm */
  --ink-soft:      #55584e;
  --line:          #ddd9d0;
  --accent:        #2f3a34;   /* deep olive-charcoal */
  --accent-dark:   #212a25;
  --whatsapp:      #0f7d3b;   /* darkened green — white text passes WCAG AA */
  --whatsapp-dark: #0b6b31;
  --focus:         #1b6ef3;
  --radius:        14px;
  --radius-sm:     10px;
  --shadow:        0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --wrap:          1120px;
  --sticky-h:      64px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Helvetica Neue", sans-serif;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, iframe { display: block; max-width: 100%; }
picture { display: contents; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- accessibility helpers ---------- */
.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 1000;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 760px; }
.center { text-align: center; }

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--tight { padding: clamp(1.75rem, 4vw, 2.75rem) 0; }
.section--alt { background: var(--bg-soft); }
.section--contact { background: var(--accent); color: #fff; }
.section--contact .section__lead { color: #dfe4df; }

.section__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-bottom: .75rem;
}
.section__lead { color: var(--ink-soft); margin-bottom: 1.75rem; max-width: 60ch; }
.section--contact .section__title { margin-bottom: .5rem; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 52px;
  padding: .85rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 58px; padding: 1rem 1.7rem; font-size: 1.05rem; width: 100%; max-width: 420px; }
.btn--sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; }

.btn--whatsapp { --btn-bg: var(--whatsapp); }
.btn--whatsapp:hover { background: var(--whatsapp-dark); }
.btn--call { --btn-bg: var(--accent); }
.btn--call:hover { background: var(--accent-dark); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  border-color: currentColor;
}
.section--contact .btn--ghost { --btn-fg: #fff; }
.hero .btn--ghost { --btn-fg: #fff; }

.icon { width: 20px; height: 20px; flex: none; fill: currentColor; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,22,18,.35) 0%, rgba(20,22,18,.35) 30%, rgba(20,22,18,.72) 100%);
}
.hero__content {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(5rem, 18vw, 9rem) 20px clamp(2.5rem, 6vw, 3.5rem);
  min-height: min(72vh, 620px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}
.hero__cta { width: 100%; }
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: .75rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.hero__title {
  font-size: clamp(1.9rem, 6vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 18ch;
  text-shadow: 0 1px 12px rgba(0,0,0,.25);
}
.hero__facts {
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 600;
  margin-top: .9rem;
}
.hero__badge {
  display: inline-block;
  margin-top: 1rem;
  padding: .35rem .85rem;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(2px);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
}
.hero__cta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ---------- key facts ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.fact {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem .9rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
}
.fact__icon {
  width: 26px; height: 26px; margin-bottom: .35rem;
  fill: none; stroke: var(--accent); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.fact__value { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.fact__label { font-size: .85rem; color: var(--ink-soft); line-height: 1.35; }

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.gallery__item--wide { grid-column: 1 / -1; }
.gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery__item:hover img { transform: scale(1.03); }
.gallery__note { margin-top: 1.5rem; }
.gallery__note a { font-weight: 600; }

/* ---------- description ---------- */
#description p { margin-bottom: 1.1rem; max-width: 68ch; }
#description p:last-of-type { margin-bottom: 0; }
.speclist {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.speclist li {
  display: grid;
  grid-template-columns: 1fr;
  gap: .1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}
.speclist li span:first-child {
  font-weight: 650;
  color: var(--ink);
}
.speclist li span:last-child { color: var(--ink-soft); }

/* ---------- location ---------- */
.location { display: grid; gap: 1.5rem; }
.location__list { margin: 1rem 0; }
.location__list li {
  padding: .5rem 0 .5rem 1.6rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.location__list li::before {
  content: "";
  position: absolute; left: 0; top: .95rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.location__privacy { color: var(--ink-soft); font-size: .95rem; margin-top: 1rem; }
.location__map {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.location__map-link { margin-top: 1rem; }

/* map: click-to-load placeholder + loaded iframe */
.mapembed {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(0,0,0,.05) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(0,0,0,.05) 27px 28px),
    var(--bg-alt);
}
.mapembed iframe { border: 0; width: 100%; height: 100%; display: block; }
.mapembed__load {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: .9rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--accent);
  font: inherit;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background-color .12s ease, transform .12s ease;
}
.mapembed__load:hover { background: var(--bg-soft); transform: translateY(-1px); }
.mapembed__load .icon {
  width: 24px; height: 24px;
  fill: none; stroke: var(--accent); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.mapembed__hint { font-weight: 400; font-size: .8rem; color: var(--ink-soft); }

/* ---------- contact ---------- */
.contact__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  margin: 1.75rem 0 1.25rem;
}
.contact__number { white-space: nowrap; }
.contact__fineprint { color: #cfd6cf; font-size: .9rem; }

/* number shown after the visitor taps "Call" */
.contact__phone {
  margin: 0 auto 1.25rem;
  padding: .85rem 1.4rem;
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius);
  font-size: clamp(1.15rem, 3.5vw, 1.5rem);
  font-weight: 600;
  color: #fff;
}
.contact__phone a {
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}
.contact__phone a:hover, .contact__phone a:focus-visible { text-decoration: underline; }

/* ---------- links ---------- */
.link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 550;
}
.section--contact .link, .footer .link { color: inherit; }

/* ---------- footer ---------- */
.footer {
  background: var(--bg-alt);
  padding: 2.5rem 0 calc(2.5rem + var(--sticky-h));
  font-size: .92rem;
  color: var(--ink-soft);
}
.footer__line { margin-bottom: .35rem; color: var(--ink); }
.footer__links { margin: .75rem 0; }
.footer__links .link { text-decoration: none; }
.footer__links .link:hover { text-decoration: underline; }
.footer__note { margin-top: 1rem; font-size: .85rem; max-width: 70ch; }

/* ---------- sticky mobile contact bar ---------- */
.stickybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  display: flex;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.stickybar__btn {
  flex: 1;
  min-height: var(--sticky-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
}
.stickybar__btn .icon { width: 22px; height: 22px; }
.stickybar__btn + .stickybar__btn { border-left: 1px solid var(--line); }
.stickybar__btn--wa { color: var(--whatsapp-dark); }
.stickybar__btn:active { background: var(--bg-soft); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15,16,13,.94);
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox__figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 6px;
  background: #222;
}
.lightbox__caption {
  color: #e7e4dc;
  font-size: .95rem;
  text-align: center;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .12s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__close {
  top: 16px; right: 16px;
  width: 48px; height: 48px;
  font-size: 2rem; line-height: 1;
}
.lightbox__nav {
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 2.2rem; line-height: 1;
}
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* ---------- cookie consent ---------- */
.consent {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(var(--sticky-h) + 12px);
  z-index: 1000;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,.18);
}
.consent__inner { padding: 1rem 1.1rem; }
.consent__text { font-size: .9rem; color: var(--ink-soft); }
.consent__title { display: block; font-weight: 700; color: var(--ink); font-size: 1rem; margin-bottom: .2rem; }
.consent__actions {
  display: flex;
  gap: .6rem;
  margin-top: .85rem;
  justify-content: flex-end;
}

/* =============================================================
   RESPONSIVE — tablet and up
   ============================================================= */
@media (min-width: 600px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .speclist li { grid-template-columns: 220px 1fr; gap: 1rem; align-items: baseline; }
}

@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .btn--lg { width: auto; }
  .contact__cta { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .contact__cta .btn--lg { min-width: 15rem; }
}

@media (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .gallery__item--wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .gallery__item--wide img { position: absolute; inset: 0; }
  .location { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 2.5rem; }
  .location__map { aspect-ratio: auto; height: 100%; min-height: 360px; }
}

/* The sticky bar + its footer spacer are only needed on smaller screens,
   but they are unobtrusive on desktop too. Hide on wide screens where the
   in-page CTAs are always close. */
@media (min-width: 1000px) {
  .stickybar { display: none; }
  .footer { padding-bottom: 2.5rem; }
  .consent { bottom: 16px; left: auto; right: 16px; max-width: 420px; }
}
