/* Villas Campestre Mediterráneo — public site + resident-portal shell.
 * Mediterranean / Mykonos identity: whitewashed white + Aegean blue, self-hosted
 * serif+sans, Greek-key trim, blue-white photo duotone. Zero build step.
 */

/* ---------- self-hosted type (no external font CDN — files ship with the site) ----------
 * Cormorant Garamond/Jost (v1 of this palette) read too thin/delicate for Ricardo —
 * swapped for a heavier, higher-presence pairing: Fraunces (a characterful,
 * heavy-weight display serif — used at 650-700 for headings, never below 500)
 * + Inter (the industry-standard legible workhorse sans, used at 400-600).
 * Both self-hosted variable fonts covering the weights actually used. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../assets/fonts/fraunces-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/inter-variable.woff2") format("woff2");
}

:root {
  /* whitewashed base */
  --vcm-cream: #FBFCFD;
  --vcm-cream-2: #EEF5F9;
  --vcm-white: #FFFFFF;
  /* ink (blue-black, not brown-black) */
  --vcm-ink: #142430;
  --vcm-ink-soft: #45596A;
  --vcm-ink-faint: #7C90A0;
  /* Aegean blue family (primary) */
  --vcm-blue: #1C6EA4;
  --vcm-blue-dark: #0E3A56;
  --vcm-blue-tint: #E3F1F8;
  --vcm-azure: #4FA8D8;
  /* tiny warm sand/gold micro-accent — used sparingly */
  --vcm-sand: #C9A66B;
  --vcm-sand-dark: #8A6B3E;
  --vcm-border: #DCE7EE;
  --vcm-shadow: 0 14px 36px -14px rgba(14, 58, 86, 0.22);
  --font-display: "Fraunces", Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  --radius-photo: 8px;
  /* Shared brand photo treatment — Mykonos blue/white duotone so every
     placeholder (and future real) photo reads as ONE cohesive set instead of
     raw listing shots with yellow/ochre walls. Pure CSS: grayscale the photo,
     then recolor with a blue→white gradient overlay. Reversible, never
     touches the source files. */
  --photo-filter: grayscale(0.9) contrast(1.1) brightness(1.14) saturate(1.05);
  --photo-tint: linear-gradient(160deg, rgba(14,58,86,0.55) 0%, rgba(28,110,164,0.30) 45%, rgba(255,255,255,0.30) 100%);
  --photo-tint-blend: color;
  /* one Greek-key (meander) trim unit, tiled via background-repeat: repeat-x */
  --greek-key: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="M0 20V0h20v8H8v4h12v8z" fill="%231C6EA4"/></svg>');
}

@media (prefers-color-scheme: dark) {
  :root {
    --vcm-cream: #0A1620;
    --vcm-cream-2: #0F1F2B;
    --vcm-white: #122430;
    --vcm-ink: #EAF2F8;
    --vcm-ink-soft: #B6C7D4;
    --vcm-ink-faint: #7E93A3;
    --vcm-blue: #4FA8D8;
    --vcm-blue-tint: #16303F;
    --vcm-border: #21374A;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--vcm-cream);
  color: var(--vcm-ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 650;
  margin: 0 0 14px;
  color: var(--vcm-ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(38px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.4vw, 38px); }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 15px; color: var(--vcm-ink-soft); font-size: 16px; line-height: 1.65; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12.5px;
  color: var(--vcm-sand-dark);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

/* Greek-key decorative trim — a thin tiled strip, used sparingly */
.greek-trim {
  height: 10px;
  background-image: var(--greek-key);
  background-repeat: repeat-x;
  background-size: 20px 20px;
  opacity: 0.9;
}
.greek-trim.on-dark { opacity: 0.65; filter: brightness(2.6) saturate(0.6); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 252, 253, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--vcm-border);
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(10, 22, 32, 0.92); }
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { width: 40px; height: 40px; }
.brand .name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.15;
  color: var(--vcm-ink);
}
.brand .name small {
  display: block;
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vcm-ink-faint);
  margin-top: 3px;
  font-weight: 400;
}
.site-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  white-space: nowrap;
}
.site-nav a { color: var(--vcm-ink-soft); }
.site-nav a:hover { color: var(--vcm-blue); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary { background: var(--vcm-blue); color: #fff; }
.btn-primary:hover { background: var(--vcm-blue-dark); }
.btn-ghost { border-color: var(--vcm-border); color: var(--vcm-ink); background: transparent; }
.btn-ghost:hover { border-color: var(--vcm-blue); }
.btn-outline-light { border-color: rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.12); }
.btn-disabled { background: transparent; border-color: var(--vcm-border); color: var(--vcm-ink-faint); cursor: default; }
.header-cta { flex-shrink: 0; }
.creytix-badge {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--vcm-ink-faint);
  border: 1px solid var(--vcm-border);
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.creytix-badge strong { color: var(--vcm-blue); font-weight: 600; }
@media (max-width: 900px) { .creytix-badge { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--vcm-blue-dark);
}
.hero img.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  filter: var(--photo-filter);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,25,36,0.10) 0%, rgba(10,25,36,0.30) 55%, rgba(8,20,29,0.88) 100%),
    var(--photo-tint);
  background-blend-mode: normal, var(--photo-tint-blend);
}
.hero .container { position: relative; z-index: 2; padding-bottom: 56px; padding-top: 120px; }
.hero .eyebrow { color: var(--vcm-sand); }
.hero h1 {
  color: #FFFFFF;
  font-size: clamp(42px, 6.2vw, 74px);
  max-width: 820px;
  margin-bottom: 16px;
}
.hero .lede {
  color: #E4EEF4;
  max-width: 560px;
  font-size: 17px;
}
.hero .hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero .placeholder-tag {
  position: absolute;
  top: 96px;
  right: 24px;
  z-index: 3;
  background: rgba(10, 22, 32, 0.55);
  color: #EAF2F8;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 3px;
}
.hero .greek-trim { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--vcm-cream-2); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* location strip */
.location-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 40px 0;
  border-top: 1px solid var(--vcm-border);
  border-bottom: 1px solid var(--vcm-border);
}
.location-strip .item .k { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--vcm-blue); }
.location-strip .item .l { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--vcm-ink-faint); margin-top: 4px; }
.location-caption { text-align: center; font-size: 13.5px; color: var(--vcm-ink-faint); margin: 22px 0 0; }

/* amenities grid */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.amenity-card {
  background: var(--vcm-white);
  border: 1px solid var(--vcm-border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.amenity-card .ico {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--vcm-blue-tint);
  color: var(--vcm-blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
}
.amenity-card h3 { font-size: 18px; margin-bottom: 8px; }
.amenity-card p { font-size: 15px; margin: 0; }

/* gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 10px;
}
.gallery a {
  grid-column: span 1;
  overflow: hidden;
  border-radius: var(--radius-photo);
  position: relative;
  box-shadow: var(--vcm-shadow);
}
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; filter: var(--photo-filter); }
.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--photo-tint);
  background-blend-mode: var(--photo-tint-blend);
  pointer-events: none;
}
.gallery a:hover img { transform: scale(1.06); }
.gallery a.wide { grid-column: span 2; }

/* unit types */
.unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}
.unit-card {
  background: var(--vcm-white);
  border: 1px solid var(--vcm-border);
  border-radius: var(--radius-photo);
  overflow: hidden;
  box-shadow: var(--vcm-shadow);
}
.unit-card .photo { height: 210px; overflow: hidden; position: relative; }
.unit-card .photo img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.unit-card .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--photo-tint);
  background-blend-mode: var(--photo-tint-blend);
  pointer-events: none;
}
/* Specs-only unit cards — interior listing photos were removed (see footer image notice).
   A slim Aegean-blue accent bar stands in for the photo so the card still reads as intentional. */
.unit-card--specs::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--vcm-blue), var(--vcm-azure));
}
.unit-card--specs .body { padding-top: 30px; }
.unit-card .body { padding: 26px 26px 28px; }
.unit-card .m2 { font-family: var(--font-display); font-weight: 600; font-size: 32px; color: var(--vcm-blue); }
.unit-card .m2 small { font-family: var(--font-body); font-size: 13px; color: var(--vcm-ink-faint); }
.unit-card ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; font-size: 14.5px; color: var(--vcm-ink-soft); }
.unit-card ul li::before { content: "— "; color: var(--vcm-sand); }
.unit-card .estimate-flag {
  margin-top: 16px;
  font-size: 12px;
  color: var(--vcm-sand-dark);
  background: #FBF5E9;
  border: 1px solid #EDDFC0;
  padding: 8px 10px;
  border-radius: 3px;
}
@media (prefers-color-scheme: dark) {
  .unit-card .estimate-flag { background: #2A2417; border-color: #3B3320; color: #D9BE86; }
}

/* CTA band (in-page, single) */
.cta-band {
  background: var(--vcm-blue-dark);
  color: var(--vcm-cream);
  border-radius: var(--radius);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #FFFFFF; max-width: 480px; }
.cta-band p { color: #CBDCE6; max-width: 460px; }
.cta-band .btn-primary { background: #FFFFFF; color: var(--vcm-blue-dark); }
.cta-band .btn-primary:hover { background: var(--vcm-blue-tint); }

/* ---------- banners (dedicated CTA showcase) ---------- */
.banner-stack { display: grid; gap: 26px; }

.banner {
  position: relative;
  border-radius: var(--radius-photo);
  overflow: hidden;
  box-shadow: var(--vcm-shadow);
}

/* Banner 1 — primary registration banner: deep Aegean blue, wave graphic */
.banner-register {
  background: linear-gradient(120deg, var(--vcm-blue-dark) 0%, var(--vcm-blue) 100%);
  padding: 52px 48px 44px;
  color: #fff;
}
.banner-register .wave {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46px;
  opacity: 0.35;
}
.banner-register .inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.banner-register .eyebrow { color: #BFE0F2; }
.banner-register h2 { color: #fff; max-width: 480px; margin-bottom: 10px; }
.banner-register p { color: #D6E9F2; max-width: 440px; margin-bottom: 0; }
.banner-register .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Banner 2 — community banner: white card, blue border + greek-key top trim */
.banner-community {
  background: var(--vcm-white);
  border: 1px solid var(--vcm-border);
  padding: 0;
}
.banner-community .inner {
  padding: 44px 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.banner-community h2 { max-width: 460px; margin-bottom: 8px; }
.banner-community p { max-width: 420px; margin-bottom: 0; }

/* Banner 3 — app download */
.banner-app {
  background: var(--vcm-blue-tint);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.banner-app h2 { margin-bottom: 8px; font-size: 26px; }
.banner-app p { margin-bottom: 0; max-width: 420px; }
.banner-app .app-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--vcm-ink);
  background: var(--vcm-ink);
  color: #fff;
  font-size: 13px;
}
.app-btn .glyph { font-size: 18px; line-height: 1; }
.app-btn .txt small { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }
.app-btn .txt strong { display: block; font-size: 13.5px; font-weight: 600; }
.app-btn.soon { background: transparent; color: var(--vcm-ink-faint); border-color: var(--vcm-border); cursor: default; }
.app-btn.soon .txt strong { color: var(--vcm-ink-faint); }

/* footer */
.site-footer {
  border-top: 1px solid var(--vcm-border);
  padding: 48px 0 32px;
  font-size: 13px;
  color: var(--vcm-ink-faint);
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.site-footer h4 { font-family: var(--font-body); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--vcm-ink-soft); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--vcm-blue); }
.legal-note {
  border-top: 1px solid var(--vcm-border);
  padding-top: 18px;
  font-size: 11.5px;
  line-height: 1.6;
}
.powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--vcm-border);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--vcm-ink-faint);
}
.powered-by .mark {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--vcm-blue);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; letter-spacing: 0;
}
.powered-by strong { color: var(--vcm-ink-soft); font-weight: 600; }

/* ---------- platform value / modes ---------- */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.mode-card {
  background: var(--vcm-white);
  border: 1px solid var(--vcm-border);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: var(--vcm-shadow);
}
.mode-card .ico-lg {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--vcm-blue-tint);
  color: var(--vcm-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}
.mode-card .tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vcm-sand-dark);
  font-weight: 600;
  margin-bottom: 10px;
}
.mode-card h3 { font-size: 20px; margin-bottom: 10px; }
.mode-card p { font-size: 15.5px; }
.mode-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.mode-flow span.step {
  font-size: 12px;
  background: var(--vcm-cream-2);
  border: 1px solid var(--vcm-border);
  padding: 6px 12px;
  border-radius: 20px;
  color: var(--vcm-ink-soft);
}
.mode-flow span.arrow { color: var(--vcm-azure); font-size: 13px; }

/* ---------- portal page ---------- */
.portal-hero {
  background: var(--vcm-blue-dark);
  color: var(--vcm-cream);
  padding: 100px 0 56px;
}
.portal-hero .eyebrow { color: var(--vcm-sand); }
.portal-hero h1 { color: #fff; max-width: 640px; }
.portal-hero p { color: #D6E9F2; max-width: 560px; }
.demo-banner {
  background: #FBF5E9;
  border: 1px solid #EDDFC0;
  color: #6E5527;
  padding: 14px 20px;
  border-radius: 3px;
  font-size: 13.5px;
  margin-top: 24px;
  max-width: 700px;
}
@media (prefers-color-scheme: dark) {
  .demo-banner { background: #2A2417; border-color: #3B3320; color: #D9BE86; }
}
.portal-groups { display: grid; gap: 44px; }
.portal-group h3 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12.5px;
  color: var(--vcm-ink-faint);
  border-bottom: 1px solid var(--vcm-border);
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.tool-card {
  display: block;
  background: var(--vcm-white);
  border: 1px solid var(--vcm-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color .15s ease, transform .15s ease;
}
.tool-card:hover { border-color: var(--vcm-blue); transform: translateY(-2px); }
.tool-card .t { font-weight: 600; font-size: 14.5px; color: var(--vcm-ink); margin-bottom: 6px; }
.tool-card .d { font-size: 13.5px; color: var(--vcm-ink-faint); line-height: 1.5; }
.tool-card .arrow { float: right; color: var(--vcm-azure); }

/* misc */
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) {
  .two-col, .location-strip, .site-footer .cols { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; }
  .cta-band, .banner-register .inner, .banner-community .inner, .banner-app { flex-direction: column; align-items: flex-start; }
}
