/* ==========================================================
   Villa Apaggio — Zakynthos
   Main stylesheet
   ========================================================== */

/* ---------- Tokens ---------- */
:root {
  --linen: #F4ECE3;
  --sand: #E6D3C1;
  --sand-deep: #D9C3AE;
  --rule: #C9AE96;
  --navy: #2B3A55;
  --navy-dark: #1E2A40;
  --copper: #A8734F;
  --copper-text: #8A5A3F;
  --copper-light: #E0B48F;
  --muted: #5A6478;
  --white: #FFFFFF;

  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1360px;
  --gutter: 40px;

  --shadow-float: 0 60px 100px -40px rgba(43, 58, 85, .55), 0 24px 40px -24px rgba(43, 58, 85, .35);
  --shadow-float-dark: 0 70px 110px -40px rgba(0, 0, 0, .6);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--navy);
  background: var(--linen);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: var(--navy); transition: color .2s ease; }
a:hover { color: var(--copper-text); }

h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.12; }

p { margin: 0; }

ul, dl { margin: 0; padding: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--linen); padding: 12px 18px; z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

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

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 130px 0; }
.section--tight-top { padding-top: 60px; }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: var(--linen); }

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  align-items: center;
}
.split--top { align-items: flex-start; }
.split--bottom { align-items: flex-end; }
.split--reverse { flex-wrap: wrap-reverse; }
.split__text { flex: 1 1 400px; min-width: 0; }
.split__media { flex: 1.4 1 520px; min-width: 0; position: relative; }

.center { text-align: center; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--copper-text);
}
.section--navy .eyebrow { color: var(--copper-light); }

.h1 { font-size: clamp(42px, 5.6vw, 72px); line-height: 1.05; margin-top: 20px; }
.h2 { font-size: clamp(30px, 3.6vw, 48px); margin-top: 18px; }
.h3 { font-size: 24px; margin-top: 24px; }

.lead { font-size: 19px; line-height: 1.75; margin-top: 26px; }
.text { font-size: 18px; line-height: 1.75; margin-top: 26px; }
.meta { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 30px;
  background: var(--navy); color: var(--linen);
  border: 1px solid var(--navy);
  font-family: var(--font); font-size: 13px; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.btn:hover { background: var(--navy-dark); color: var(--linen); }

.btn--line { background: transparent; color: var(--navy); }
.btn--line:hover { background: var(--navy); color: var(--linen); }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.center .btn-row { justify-content: center; }

.more {
  display: inline-block; margin-top: 36px; padding: 10px 0 6px;
  font-size: 13px; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid var(--copper);
}
.section--navy .more { color: var(--linen); }

/* ---------- Floating images ---------- */
.float { box-shadow: var(--shadow-float); }
.float--dark { box-shadow: var(--shadow-float-dark); }

.img-cover { width: 100%; object-fit: cover; position: relative; }

/* Placeholder for photos still to be supplied */
.ph {
  position: relative;
  display: flex; align-items: flex-end; padding: 18px;
  background-color: var(--sand-deep);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 1px, transparent 1px 16px);
}
.ph::after {
  content: attr(data-label);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--navy); background: rgba(244, 236, 227, .85); padding: 8px 12px;
}

/* Decorative offset frames behind images */
.frame-line { position: absolute; border: 1px solid var(--copper); pointer-events: none; }
.frame-block { position: absolute; background: var(--sand); pointer-events: none; }

/* Image heights */
.h-760 { height: 760px; }
.h-720 { height: 720px; }
.h-700 { height: 700px; }
.h-680 { height: 680px; }
.h-640 { height: 640px; }
.h-620 { height: 620px; }
.h-600 { height: 600px; }
.h-560 { height: 560px; }
.h-540 { height: 540px; }
.h-440 { height: 440px; }
.h-420 { height: 420px; }
.h-380 { height: 380px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; background: var(--linen); transition: box-shadow .3s ease; }
.site-header.is-stuck { position: sticky; top: 0; box-shadow: 0 10px 30px -20px rgba(43,58,85,.4); }

.site-header__inner {
  max-width: var(--container); margin: 0 auto; padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 18px 40px;
}

.brand { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; }
.brand__name { font-size: 26px; font-weight: 300; letter-spacing: .14em; }
.brand__sub { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .42em; }
.brand__sub::before, .brand__sub::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.brand__logo { display: block; width: auto; height: 64px; max-width: 100%; }
.site-footer .brand__logo { height: 80px; }

.brand__name, .lang, .btn { white-space: nowrap; }
.nav { display: flex; flex-wrap: nowrap; gap: 4px 30px; }
.nav a {
  white-space: nowrap;
  padding: 12px 0; font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid transparent;
}
.nav a.is-active { border-bottom-color: var(--copper); }

.header-actions { display: flex; align-items: center; gap: 22px; }
.lang { font-size: 13px; letter-spacing: .2em; }
.lang a { text-decoration: none; }
.lang a.is-active { font-weight: 500; }
.lang span { color: var(--copper); }

.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 0;
  background: transparent; border: 0; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { max-width: 1440px; margin: 0 auto; padding: 30px var(--gutter) 0; position: relative; }
.hero__media { position: relative; margin-left: 6%; }
.hero__media--right { margin-left: 0; margin-right: 8%; }
.hero__card {
  position: relative; width: min(560px, 100%); margin-top: -260px;
  background: var(--linen); padding: 56px 56px 48px;
}
.hero__card--right { margin: -170px 0 0 auto; width: min(620px, 100%); padding: 52px 56px; }
.hero__place { margin-top: 22px; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; }

.page-hero { max-width: 1440px; margin: 0 auto; padding: 60px var(--gutter) 0; }
.page-hero__media { position: relative; margin: 80px 4% 0 0; }

/* ---------- Booking bar ---------- */
.booking { margin-top: 64px; }
.booking__form {
  background: var(--white); padding: 30px 36px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 24px 32px; align-items: end;
}

/* ---------- Form fields ---------- */
.field label {
  display: block; margin-bottom: 8px;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 0;
  border: 0; border-bottom: 1px solid #B79A82; border-radius: 0;
  background: transparent; color: var(--navy);
  font-family: var(--font); font-size: 16px; font-weight: 300;
}
.field input, .field select { height: 46px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--navy); }
.field--full { grid-column: 1 / -1; }

/* ---------- Key facts ---------- */
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.facts__item { padding: 40px 24px; text-align: center; }
.facts__item + .facts__item { border-left: 1px solid var(--rule); }
.facts__value { font-size: 52px; font-weight: 300; }
.facts__label { margin-top: 10px; color: var(--muted); }

/* ---------- Highlights ---------- */
.highlights {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 40px 24px; text-align: center;
}
.highlights svg { width: 44px; height: 44px; stroke: var(--copper-text); }
.highlights .eyebrow { margin-top: 16px; color: var(--navy); }

/* ---------- Lists ---------- */
.list {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  column-gap: 40px; font-size: 16px;
}
.list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--rule);
}
.list li span { color: var(--muted); text-align: right; }
.list--narrow { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.list--single { grid-template-columns: minmax(0, 1fr); }
.list--light li { border-top-color: rgba(244, 236, 227, .25); }
.list--light li span { color: var(--sand); }
.list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: 17px; }

.dist { display: grid; grid-template-columns: minmax(0, 1fr) auto; font-size: 17px; }
.dist dt, .dist dd { padding: 15px 0; border-top: 1px solid var(--rule); }
.dist dd { margin: 0; text-align: right; }
.dist dt:nth-last-of-type(1), .dist dd:last-child { border-bottom: 1px solid var(--rule); }

.card { background: var(--linen); padding: 34px 30px; }

/* ---------- Staggered (floating) grids ---------- */
.stagger {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px 32px; align-items: start; margin-top: 70px;
}
.stagger--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 60px; }
.stagger--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 0; }
.offset-20 { margin-top: 20px; }
.offset-30 { margin-top: 30px; }
.offset-70 { margin-top: 70px; }
.offset-80 { margin-top: 80px; }
.offset-90 { margin-top: 90px; }
.offset-100 { margin-top: 100px; }
.offset-120 { margin-top: 120px; }

/* Overlapping pair (big image + small framed image) */
.overlap { position: relative; padding-bottom: 120px; }
.overlap__main { width: 82%; }
.overlap__small {
  position: absolute; right: 0; bottom: 0; width: 46%;
  border: 12px solid var(--linen);
}

/* Pool / navy media that rises out of the section */
.rise { margin-top: -90px; }
.rise--80 { margin-top: -80px; }

/* ---------- Policies ---------- */
.policies {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: rgba(244, 236, 227, .2); margin-top: 50px;
}
.policies__item { background: var(--navy); padding: 30px 24px; }
.policies__big { font-size: 34px; }
.policies__title { font-size: 22px; line-height: 1.3; }
.policies__label { margin-top: 8px; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; }
.policies__note { margin-top: 8px; font-size: 15px; }

/* ---------- Map ---------- */
.map {
  height: 720px; background: var(--sand);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; text-align: center; padding: 30px;
}
.map iframe { width: 100%; height: 100%; border: 0; }
.map svg { width: 48px; height: 48px; stroke: var(--copper-text); }
.sticky { position: sticky; top: 110px; }

/* ---------- Contact ---------- */
.contact-info { display: flex; flex-direction: column; gap: 38px; }
.contact-info a { text-decoration: none; }
.contact-info__big { display: inline-block; margin-top: 10px; font-size: 28px; }
.contact-info__mail { display: inline-block; margin-top: 10px; font-size: 19px; border-bottom: 1px solid var(--copper); }
.contact-info p { margin-top: 10px; font-size: 19px; }

.contact-form {
  background: var(--white); padding: 56px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px 34px;
}
.contact-form__title { font-size: 30px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { grid-column: 1 / -1; padding: 16px 20px; font-size: 16px; }
.notice--ok { background: #E3EDE3; color: #234A2B; }
.notice--error { background: #F6E1DC; color: #7A2A1C; }

/* ---------- CTA ---------- */
.cta { max-width: 1000px; margin: 0 auto; padding: 140px var(--gutter); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--sand); padding: 90px 0 36px; }
.site-footer a { color: var(--sand); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .eyebrow { color: var(--copper-light); }
.site-footer__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px;
}
.site-footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.site-footer .brand { align-items: flex-start; }
.site-footer .brand__name { color: var(--linen); }
.site-footer__address { margin-top: 24px; font-size: 15px; line-height: 1.7; }
.site-footer__bottom {
  margin-top: 70px; padding-top: 26px; border-top: 1px solid rgba(230, 211, 193, .25);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px; letter-spacing: .08em;
}

/* ---------- Frame positions ---------- */
.frame--tr-out { top: -26px; right: -26px; width: 70%; height: 82%; }
.frame--tl-out { top: -26px; left: -26px; width: 50%; height: 70%; }
.frame--bl-out { left: -26px; bottom: -26px; width: 60%; height: 80%; }
.frame--tl     { top: 0; left: 0; width: 70%; height: 70%; }
.frame--bl     { left: 0; bottom: 0; width: 86%; height: 86%; }
.frame--bl-wide{ left: 0; bottom: 0; width: 72%; height: 78%; }
.frame--br     { right: 0; bottom: 0; width: 80%; height: 80%; }
.frame--side   { top: 0; left: 0; bottom: 0; width: 64%; }

/* Media padding (room for the offset frame) */
.pad-bl { padding: 0 0 30px 30px; }
.pad-br { padding: 0 30px 30px 0; }
.pad-tl { padding: 40px 0 0 40px; }
.pad-y  { padding: 50px 0 50px 50px; }
.pad-bl-36 { padding: 0 0 36px 36px; }

.img-natural { position: relative; width: 100%; height: auto; }
.illustration { max-width: 1240px; margin: 80px auto 0; position: relative; }

/* ---------- Spacing utilities ---------- */
.pt-0   { padding-top: 0; }
.pt-40  { padding-top: 40px; }
.pt-120 { padding-top: 120px; }
.pt-130 { padding-top: 130px; }
.pt-140 { padding-top: 140px; }
.pt-150 { padding-top: 150px; }
.pt-160 { padding-top: 160px; }
.pb-40  { padding-bottom: 40px; }
.pb-80  { padding-bottom: 80px; }
.pb-100 { padding-bottom: 100px; }
.pb-120 { padding-bottom: 120px; }
.pb-130 { padding-bottom: 130px; }
.pb-140 { padding-bottom: 140px; }
.pb-150 { padding-bottom: 150px; }
.pb-160 { padding-bottom: 160px; }
.mt-0   { margin-top: 0; }
.mt-34  { margin-top: 34px; }
.mt-40  { margin-top: 40px; }
.mt-60  { margin-top: 60px; }
.mb-10  { margin-bottom: 10px; }
.mb-26  { margin-bottom: 26px; }
.mb-34  { margin-bottom: 34px; }
.mb-40  { margin-bottom: 40px; }

@media (max-width: 900px) {
  .section { padding: 90px 0; }
  .pt-0 { padding-top: 0; }
  .pt-120, .pt-130, .pt-140, .pt-150, .pt-160 { padding-top: 90px; }
  .pb-100, .pb-120, .pb-130, .pb-140, .pb-150, .pb-160 { padding-bottom: 90px; }
  .section--navy .pt-140, .section--navy .pt-130 { padding-top: 70px; }
  .pad-y { padding: 30px 0 30px 30px; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header__inner { flex-wrap: wrap; }
  .nav {
    display: none; order: 3; width: 100%;
    flex-direction: column; gap: 0; padding: 10px 0 20px; border-top: 1px solid var(--rule);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; }
  .header-actions .btn { display: none; }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .split { gap: 50px; }
  .hero__media, .hero__media--right { margin: 0; }
  .frame--tr-out { top: -12px; right: -12px; }
  .frame--tl-out { top: -12px; left: -12px; }
  .frame--bl-out { bottom: -12px; left: -12px; }
  .hero__card, .hero__card--right { margin: -80px 16px 0; width: auto; padding: 36px 28px; }
  .h-760, .h-720, .h-700, .h-680, .h-640, .h-620, .h-600 { height: 440px; }
  .h-560, .h-540 { height: 380px; }
  .facts__item + .facts__item { border-left: 0; border-top: 1px solid var(--rule); }
  .stagger [class*="offset-"] { margin-top: 0; }
  .rise, .rise--80 { margin-top: -60px; }
  .overlap { padding-bottom: 80px; }
  .overlap__main { width: 100%; }
  .overlap__small { width: 60%; height: 240px; }
  .list--two { grid-template-columns: minmax(0, 1fr); }
  .contact-form { padding: 32px 24px; }
  .map { height: 420px; }
  .sticky { position: static; }
  .cta { padding: 100px var(--gutter); }
  .site-header__inner { flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
  .brand__name { font-size: 20px; letter-spacing: .1em; }
  .brand__logo { height: 48px; }
  .header-actions { gap: 12px; }
}

@media (max-width: 480px) {
  .lang { display: none; }
}
