/* Afroditi Junior Suites — colours taken from the logo (indigo) and the rooms (sand, rattan, Aegean-blue doors) */
:root {
  --bg: #f7f2ea;
  --surface: #fffcf7;
  --ink: #1f1d3b;
  --muted: #5d5970;
  --indigo: #3b3789;
  --indigo-deep: #26235f;
  --aegean: #9cc0d8;
  --aegean-soft: #e6eff5;
  --rattan: #a87745;
  --line: #e7dccd;
  --white: #ffffff;

  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -22px rgba(31, 29, 59, 0.35);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tint { background: var(--aegean-soft); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p:last-child { color: var(--muted); }

.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rattan);
  margin-bottom: 14px;
}
.kicker-light { color: var(--aegean); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--indigo);
  background: var(--indigo);
  color: var(--white);
  font: 600 0.95rem/1 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--indigo-deep); border-color: var(--indigo-deep); transform: translateY(-1px); }
.btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--aegean); outline-offset: 2px;
}
.btn-small { padding: 10px 18px; font-size: 0.88rem; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.8); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--indigo); }
.btn-outline:hover { color: var(--white); }
.btn-light { background: var(--white); color: var(--indigo-deep); border-color: var(--white); }
.btn-light:hover { background: var(--aegean-soft); border-color: var(--aegean-soft); color: var(--indigo-deep); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.text-link { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled, .site-header.menu-open {
  background: rgba(247, 242, 234, 0.96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(8px);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; margin-right: auto; }
.brand img { width: 46px; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25)); }
.site-header.scrolled .brand img, .site-header.menu-open .brand img { filter: none; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; line-height: 1; white-space: nowrap; }
.brand-name em { font-style: italic; opacity: 0.85; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: inherit; text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:not(.btn):hover { color: var(--aegean); }
.site-header.scrolled .nav a:not(.btn):hover { color: var(--indigo); }
.nav .btn { color: var(--white); }

.header-tools { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; border: 1.5px solid currentColor; border-radius: 999px; overflow: hidden; opacity: 0.9; }
.lang-switch button {
  background: transparent; color: inherit; border: 0; cursor: pointer;
  font: 700 0.75rem/1 var(--sans); letter-spacing: 0.08em; padding: 8px 11px;
}
.lang-switch button[aria-pressed="true"] { background: var(--white); color: var(--indigo-deep); }
.site-header.scrolled .lang-switch button[aria-pressed="true"],
.site-header.menu-open .lang-switch button[aria-pressed="true"] { background: var(--indigo); color: var(--white); }

.menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: currentColor; margin: 5px 0; transition: transform 0.25s, opacity 0.25s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden; background: var(--indigo-deep);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 50, 0.45) 0%, rgba(20, 18, 50, 0.05) 32%, rgba(20, 18, 50, 0.15) 55%, rgba(20, 18, 50, 0.72) 100%);
}
.hero-content { position: relative; padding-bottom: clamp(90px, 14vh, 150px); padding-top: 120px; }
.hero h1 { font-size: clamp(3rem, 8.5vw, 6.4rem); font-weight: 500; margin-bottom: 0.25em; text-shadow: 0 2px 30px rgba(0,0,0,0.25); }
.hero h1 span { display: block; font-style: italic; font-weight: 400; font-size: 0.62em; opacity: 0.95; }
.hero-sub { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 34ch; margin-bottom: 30px; text-shadow: 0 1px 14px rgba(0,0,0,0.3); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 46px; fill: var(--bg); }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.intro-text p:not(.kicker) { color: var(--muted); max-width: 52ch; }
.intro-figure { position: relative; margin: 0 0 40px; }
.intro-figure img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.intro-figure-small {
  position: absolute; left: -36px; bottom: -40px; width: 42% !important;
  border: 6px solid var(--bg); aspect-ratio: 1 / 1 !important;
}

/* ---------- Features ---------- */
.features { padding: 10px 0 30px; }
.features-title { font-size: 1.6rem; text-align: center; margin-bottom: 28px; }
.feature-list {
  list-style: none; margin: 0; padding: 26px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.feature-list li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; font-weight: 600; font-size: 0.92rem; line-height: 1.35; }
.feature-list svg { width: 34px; height: 34px; fill: none; stroke: var(--indigo); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Apartment cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px 24px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery { columns: 3 280px; column-gap: 16px; }
.g-item {
  display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius-sm); overflow: hidden; break-inside: avoid;
}
.g-item img { width: 100%; transition: transform 0.5s ease; }
.g-item:hover img { transform: scale(1.04); }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(16, 14, 40, 0.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; width: auto; border-radius: var(--radius-sm); }
.lb-btn {
  position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: var(--white); font-size: 2rem; line-height: 1; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.25); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Location ---------- */
.location-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.location-grid > div:first-child p:not(.kicker) { color: var(--muted); }
.facts { margin: 26px 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); text-align: right; }
.map {
  min-height: 420px; border-radius: var(--radius); overflow: hidden; background: var(--aegean-soft);
  border: 1px solid var(--line); display: grid;
}
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.map-placeholder { display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; padding: 30px; color: var(--muted); }
.map-placeholder svg { width: 44px; height: 44px; fill: none; stroke: var(--indigo); stroke-width: 1.5; }
.map-placeholder p { margin: 0; font-size: 0.85rem; }

/* ---------- Booking ---------- */
.booking { background: var(--indigo-deep); color: var(--white); position: relative; overflow: hidden; }
.booking-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.booking-intro p:not(.kicker) { color: rgba(255, 255, 255, 0.78); max-width: 42ch; }
.booking-logo { width: 150px; margin-top: 30px; opacity: 0.95; filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
.booking-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius); padding: clamp(22px, 3.5vw, 36px);
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; font: 500 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--surface); border: 1.5px solid transparent; border-radius: var(--radius-sm);
  padding: 12px 14px; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233b3789' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input[aria-invalid="true"] { border-color: #f28b82; }
.nights { margin: -4px 0 0; font-size: 0.9rem; color: var(--aegean); min-height: 1.4em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.form-privacy { margin: 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); }
.form-status { margin: 0; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #b7f0c8; }
.form-status.err { color: #ffc2bc; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); padding: 44px 0 34px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 22px 40px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 62px; }
.footer-brand strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.footer-brand span { color: var(--muted); font-size: 0.92rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-weight: 600; }
.footer-copy { grid-column: 1 / -1; margin: 0; font-size: 0.82rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .feature-list { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 22px;
    background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; padding: 14px; }
  .intro-grid, .location-grid, .booking-grid { grid-template-columns: 1fr; }
  .intro-figure { margin: 10px 0 40px 24px; }
  .intro-figure-small { left: -24px; }
  .booking-logo { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand-name { font-size: 1.2rem; }
  .brand-name em { display: none; }
  .feature-list { grid-template-columns: repeat(2, 1fr); padding: 22px 14px; }
  .cards { grid-template-columns: 1fr; }
  .booking-form { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
