/* =====================================================================
   Costa Phos Villa — Region subpage stylesheet
   New editorial-luxury identity (matches index.html). Self-contained;
   the old styles.css + subpage.css are deprecated.
   ===================================================================== */

:root {
  --gold-1: #998011;
  --gold-2: #efda99;
  --gold-3: #877209;
  --gold:   #b89441;
  --gold-edge: rgba(184,148,65,0.45);

  --cream:   #faf4e6;
  --cream-2: #fdf9ee;

  --ink:   #1f1d1a;
  --text:  #4a4742;
  --muted: #8a857a;
  --rule:  rgba(31,29,26,0.12);

  --footer-bg:   #58595b;
  --footer-text: #d4d2cd;
  --footer-soft: #a4a39f;

  --font-body:    "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, sans-serif;
  --font-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;

  --gutter:    clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(4rem, 9vw, 8rem);
  --col-max:   1320px;
  --read-max:  56ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
::selection { background: rgba(153,128,17,0.25); }

/* ===== Header (matches root index.html scroll-state header, simplified for subpages) ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1.4rem 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
  background: var(--cream-2);
  box-shadow: 0 1px 0 rgba(31,29,26,0.06);
}
.site-header__row {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}
.site-header__brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.site-header__brand img { width: 92px; height: auto; transition: width 0.35s ease; }
.nav {
  display: flex; justify-content: center; gap: 2.4rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.nav a {
  position: relative;
  padding: 0.4rem 0;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2), var(--gold-3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.nav a:hover::after,
.nav a.is-current::after { transform: scaleX(1); }
.site-header__right {
  display: flex; align-items: center; gap: 1.4rem;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}
.lang { display: inline-flex; align-items: center; gap: 0.4rem; }
.lang button {
  padding: 0.3rem 0.2rem;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
.lang button.is-active { opacity: 1; }
/* EL stays disabled until the /el/ Greek mirror is built (see index.html <head>) */
.lang button:disabled,
.footer__lang button:disabled { opacity: 0.32; cursor: default; }
/* BILINGUAL: switcher hidden while the site is English-only — delete this one rule to reveal the EN|EL control */
.lang, .footer__lang { display: none; }
.lang__sep { opacity: 0.4; }
.btn-inquire {
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--gold-edge);
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-inquire:hover {
  background: linear-gradient(106deg, var(--gold-1), var(--gold-2) 26%, var(--gold-3));
  color: #fff;
  border-color: transparent;
}
@media (max-width: 860px) {
  .nav, .lang { display: none; }
  .site-header__row { grid-template-columns: 1fr auto; }
}

/* ===== Page typography utilities ===== */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow--light { color: rgba(255,255,255,0.85); }
.eyebrow__greek {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--gold);
}
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 1.6rem;
}
.display--light { color: #fff; }
.body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text);
  font-weight: 300;
}
.body--light { color: rgba(255,255,255,0.86); }

/* chapter rule — magazine-style row with label + thin gold rules + numeral */
.chap-rule {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}
.chap-rule__lead {
  width: 40px; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-edge));
}
.chap-rule__label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
}
.chap-rule__line {
  height: 1px;
  background: linear-gradient(to right, var(--gold-edge), var(--gold-edge) 70%, transparent);
}
.chap-rule__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  line-height: 0.9;
  color: transparent;
  background: linear-gradient(106deg, var(--gold-1) 0%, var(--gold-2) 26%, var(--gold-3) 100%);
  -webkit-background-clip: text;
          background-clip: text;
}

/* ===== Hero ===== */
.region-hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(4.5rem, 8vw, 7rem);
  background: center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.region-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.10) 22%, rgba(0,0,0,0) 38%, rgba(0,0,0,0.55) 65%, rgba(0,0,0,0.92) 100%);
  pointer-events: none;
}
.region-hero__inner {
  position: relative;
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.region-hero .chap-rule__line { background: linear-gradient(to right, var(--gold-edge), rgba(239,218,153,0.55) 70%, transparent); }
.region-hero .chap-rule__label { color: var(--gold-2); }
.region-hero .chap-rule__num   { color: var(--gold-2); -webkit-text-fill-color: var(--gold-2); background: none; }
.region-hero__h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.04;
  margin: 0;
  color: #fff;
  letter-spacing: -0.01em;
  max-width: 18ch;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}
/* H1 on top, place-name title beneath it (bottom-left, in the dark gradient) */
.region-hero__text { flex: 1 1 auto; min-width: 0; }
.region-hero__title {
  margin: clamp(0.7rem, 1.6vw, 1.1rem) 0 0;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55);
}
/* chapter tucked into the bottom-right corner, baseline-aligned with the title */
.region-hero__chapter {
  flex: 0 0 auto;
  text-align: right;
  line-height: 1;
  padding-bottom: 0.2rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55);
}
.region-hero__chapter-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 500;
  white-space: nowrap;
  margin: 0;
}
@media (max-width: 560px) {
  .region-hero__chapter-label { letter-spacing: 0.22em; font-size: 0.62rem; }
}

/* ===== Body (editorial column) ===== */
.region-body {
  background: linear-gradient(106deg, rgba(153,128,17,0.05), rgba(239,218,153,0.12) 26%, rgba(135,114,9,0.05)), #fff;
  padding: var(--section-y) 0;
}
.region-body__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.region-body__lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 2.4rem;
  letter-spacing: -0.005em;
}
.region-body__lede + p,
.region-body__intro {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--ink);
  margin: 0 0 1.6rem;
  font-weight: 300;
}
.region-body p {
  font-size: 1.04rem;
  line-height: 1.9;
  color: var(--text);
  margin: 0 0 1.4rem;
  font-weight: 300;
}
.region-body p .greek {
  color: var(--gold);
  font-family: var(--font-display);
  font-style: italic;
}

/* ===== Gallery (3-up) ===== */
.region-gallery {
  background: var(--cream);
  background-image: linear-gradient(106deg, rgba(153,128,17,0.06), rgba(239,218,153,0.16) 26%, rgba(135,114,9,0.06));
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.region-gallery__grid {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.region-gallery__grid figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  background: center / cover no-repeat;
  box-shadow: 0 18px 50px -30px rgba(31,29,26,0.5);
}
@media (max-width: 720px) {
  .region-gallery__grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .region-gallery__grid figure { aspect-ratio: 16 / 11; }
}

/* ===== Region peer-nav (mini list of the other 5) ===== */
.region-peers {
  background: #fff;
  padding: var(--section-y) 0;
  border-top: 1px solid var(--rule);
}
.region-peers__head {
  max-width: var(--col-max);
  margin: 0 auto clamp(1.6rem, 3vw, 2.6rem);
  padding: 0 var(--gutter);
}
.region-peers__list {
  list-style: none;
  margin: 0; padding: 0 var(--gutter);
  max-width: var(--col-max);
  margin-left: auto; margin-right: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 7 destinations → 6 peers per page → clean 3×2 */
  column-gap: clamp(1.2rem, 2.5vw, 2rem);
  row-gap: clamp(2rem, 4vw, 3.2rem);
  counter-reset: peer;
}
.region-peers__item { counter-increment: peer; }
.region-peers__link {
  display: block;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--rule);
  transition: padding 0.25s ease;
}
.region-peers__link:hover { padding-top: 1.8rem; }
.region-peers__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}
.region-peers__num::before { content: "0" counter(peer); }
.region-peers__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}
.region-peers__name .greek { color: var(--gold); margin-right: 0.4rem; }
@media (max-width: 860px) {
  .region-peers__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .region-peers__list { grid-template-columns: 1fr; }
}

/* back-link sits inside body but stays anchored visually */
.region-back {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  margin-top: 3rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--gold-edge);
  transition: gap 0.25s ease, color 0.25s ease;
}
.region-back:hover { gap: 1.1rem; color: var(--gold); }
.region-back__arrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0;
}

/* ===== Footer (matches root index.html footer) ===== */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: clamp(4rem, 7vw, 6rem) 0 2.4rem;
}
.footer__inner {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: clamp(2.6rem, 5vw, 4rem);
}
.footer__brand img {
  width: 188px; height: auto;
  margin-bottom: 1.4rem;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.2));
}
.footer__contact {
  font-size: 0.92rem;
  line-height: 1.95;
  font-weight: 300;
  color: var(--footer-soft);
}
.footer__contact strong {
  color: #fff;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}
.footer__contact a:hover { color: var(--gold-2); }
.footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.6rem;
}
.footer__lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--footer-soft);
}
.footer__lang button {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
.footer__lang button.is-active { opacity: 1; color: #fff; }
.footer__social {
  display: flex; gap: 0.7rem;
}
.footer__social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold-2);
  border: 1px solid var(--gold-edge);
  transition: background .25s, color .25s, transform .25s;
}
.footer__social a:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}
.footer__social svg { width: 18px; height: 18px; }
.footer__credits {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 1.4rem var(--gutter) 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--footer-soft);
}
.footer__credits em { font-style: italic; color: var(--gold-2); }
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; text-align: center; gap: 2.4rem; }
  .footer__brand, .footer__right { justify-self: center; align-items: center; }
}
