/* ============================================================
   ELOUNDA ELEON — Shared Styles
   Mediterranean warmth + Luxury refined
   ============================================================ */

/* --- Google Font import ------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&display=swap');

/* --- Tokens ----------------------------------------------- */
:root {
  --bg:           oklch(97% 0.008 75);
  --surface:      oklch(100% 0 0);
  --fg:           oklch(16% 0.018 65);
  --muted:        oklch(52% 0.014 70);
  --border:       oklch(88% 0.010 75);
  --accent:       oklch(50% 0.14 48);
  --accent-dim:   oklch(94% 0.04 55);
  --accent-hover: oklch(44% 0.14 48);
  --navy:         oklch(22% 0.07 245);
  --navy-light:   oklch(30% 0.09 245);
  --gold:         oklch(70% 0.13 78);

  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --section-y:    clamp(80px, 10vw, 140px);
  --container:    1200px;
  --nav-h:        80px;
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    20px;
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.68;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* --- Scroll Animations ------------------------------------ */
/* Elements start hidden and animate in when scrolling */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from left */
[data-animate="slide-left"] {
  transform: translateX(-60px);
}
[data-animate="slide-left"].is-visible {
  transform: translateX(0);
}

/* Slide from right */
[data-animate="slide-right"] {
  transform: translateX(60px);
}
[data-animate="slide-right"].is-visible {
  transform: translateX(0);
}

/* Scale up */
[data-animate="scale"] {
  opacity: 0;
  transform: scale(0.92);
}
[data-animate="scale"].is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Fade only (no movement) */
[data-animate="fade"] {
  transform: none;
}
[data-animate="fade"].is-visible {
  opacity: 1;
}

/* Stagger delays for grid items */
[data-animate][data-delay="1"] { transition-delay: 0.1s; }
[data-animate][data-delay="2"] { transition-delay: 0.2s; }
[data-animate][data-delay="3"] { transition-delay: 0.3s; }
[data-animate][data-delay="4"] { transition-delay: 0.4s; }
[data-animate][data-delay="5"] { transition-delay: 0.5s; }
[data-animate][data-delay="6"] { transition-delay: 0.6s; }

/* Parallax effect on hero */
.hero.has-parallax {
  position: relative;
  overflow: hidden;
}
.hero.has-parallax::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  transform: translateZ(0);
  will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* --- Layout containers ------------------------------------ */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container--narrow {
  width: min(100% - 2.5rem, 780px);
  margin-inline: auto;
}
.section {
  padding-block: var(--section-y);
}
.section-alt {
  background: oklch(95.5% 0.006 75);
}

/* --- Typography ------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  text-wrap: pretty;
}
h1 { font-size: clamp(46px, 6.5vw, 92px); }
h2 { font-size: clamp(34px, 4.5vw, 60px); }
h3 { font-size: clamp(22px, 2.8vw, 32px); }
h4 { font-size: clamp(16px, 2vw, 22px); font-weight: 500; }

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.section-header .eyebrow { margin-bottom: 14px; }
.section-header h2 { margin-bottom: 18px; }
.section-header p {
  color: var(--muted);
  max-width: 520px;
  margin-inline: auto;
  font-size: 15px;
}

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.75);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-light); }

/* --- Navigation ------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s, box-shadow 0.35s;
}
.site-nav.is-transparent { background: transparent; }
.site-nav.is-solid,
.site-nav.is-scrolled {
  background: var(--surface);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.nav-logo .logo-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #fff;
  transition: color 0.3s;
}
.nav-logo .logo-sub {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color 0.3s;
}
.site-nav.is-solid .nav-logo .logo-name,
.site-nav.is-scrolled .nav-logo .logo-name { color: var(--navy); }
.site-nav.is-solid .nav-logo .logo-sub,
.site-nav.is-scrolled .nav-logo .logo-sub { color: var(--muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
  padding-block: 4px;
}
.nav-links a:hover { color: #fff; }
.site-nav.is-solid .nav-links a,
.site-nav.is-scrolled .nav-links a { color: var(--muted); }
.site-nav.is-solid .nav-links a:hover,
.site-nav.is-scrolled .nav-links a:hover { color: var(--fg); }

.nav-cta {
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.4) !important;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, border-color 0.2s;
}
.nav-cta:hover { background: rgba(255,255,255,0.12) !important; border-color: rgba(255,255,255,0.8) !important; }
.site-nav.is-solid .nav-cta,
.site-nav.is-scrolled .nav-cta {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}
.site-nav.is-solid .nav-cta:hover,
.site-nav.is-scrolled .nav-cta:hover { background: var(--accent) !important; color: #fff !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: all 0.28s;
}
.site-nav.is-solid .menu-toggle span,
.site-nav.is-scrolled .menu-toggle span { background: var(--fg); }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- Page hero (inner pages) ------------------------------ */
.page-hero {
  padding-top: var(--nav-h);
  min-height: clamp(260px, 38vh, 440px);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(40px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-top: 12px; }
.page-hero .eyebrow { color: oklch(82% 0.07 78); }

/* --- Accommodation card ----------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px oklch(0% 0 0 / 0.07);
}

.card-img {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.card-img-label {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
  pointer-events: none;
}

.card-body {
  padding: 24px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 2px;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
}
.tag-accent {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: oklch(86% 0.07 55);
}

.card-title {
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 8px;
  color: var(--fg);
}
.card-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.card-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}
.card-meta span { display: flex; align-items: center; gap: 5px; }
.card .btn { align-self: flex-start; }

/* --- Amenity item ----------------------------------------- */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.amenity-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.amenity-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  color: var(--accent);
}
.amenity-text h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--fg);
}
.amenity-text p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* --- Divider line ----------------------------------------- */
.rule {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: 0;
}

/* --- CTA Banner ------------------------------------------- */
.cta-banner {
  background: var(--navy);
  padding-block: clamp(56px, 7vw, 88px);
  text-align: center;
}
.cta-banner .eyebrow { color: oklch(72% 0.10 78); margin-bottom: 12px; }
.cta-banner h2 { color: #fff; margin-bottom: 20px; }
.cta-banner p { color: rgba(255,255,255,0.6); max-width: 480px; margin-inline: auto; margin-bottom: 36px; font-size: 15px; }

/* --- Footer ----------------------------------------------- */
/* --- Footer ------------------------------------------- */
.site-footer {
  background: var(--navy);
  padding: clamp(72px, 9vw, 112px) 0 clamp(36px, 4.5vw, 56px);
  text-align: center;
}

.site-footer .container {
  max-width: 800px;
}

.footer-header {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.footer-contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(40px, 5vw, 56px);
}

.footer-address {
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.01em;
  margin: 0;
}

.footer-phones {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-phones a {
  font-size: clamp(13px, 1.5vw, 15px);
  color: rgba(255,255,255,0.7);
  transition: color 0.25s;
  letter-spacing: 0.01em;
}

.footer-phones a:hover {
  color: var(--gold);
}

.footer-divider {
  color: rgba(255,255,255,0.25);
  font-size: 12px;
}

.footer-email {
  font-size: clamp(13px, 1.5vw, 15px);
  color: rgba(255,255,255,0.7);
  transition: color 0.25s;
  letter-spacing: 0.01em;
}

.footer-email:hover {
  color: var(--gold);
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: clamp(36px, 4.5vw, 48px);
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--gold);
  color: var(--gold);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: clamp(28px, 3.5vw, 36px);
  flex-wrap: wrap;
}

.footer-links span {
  font-size: clamp(11px, 1.2vw, 12px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.footer-bottom {
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-copy {
  font-size: clamp(10px, 1.1vw, 11px);
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.02em;
  margin: 0;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.25s, border-color 0.25s, color 0.25s;
  z-index: 100;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--gold);
  color: var(--gold);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 1024px) {
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 68px; }

  .nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0;
    background: var(--surface);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 36px 24px;
    gap: 28px;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    font-size: 18px !important;
    letter-spacing: 0.06em !important;
    color: var(--fg) !important;
  }
  .nav-cta {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    font-size: 14px !important;
    padding: 11px 24px !important;
    border-radius: var(--radius-sm);
  }
  .nav-cta:hover { background: var(--accent) !important; color: #fff !important; }
  .menu-toggle { display: flex; }

  .amenity-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .btn { padding: 13px 24px; font-size: 11px; }
}
