/* ==========================================================================
   Melina Olive Villa — stylesheet
   Palette: olive greens, terracotta, cream/stone, warm dark wood, wrought-iron ink
   ========================================================================== */

:root {
  --olive-dark: #37502f;
  --olive: #5c7a4a;
  --olive-soft: #93a97e;
  --terracotta: #b9633b;
  --terracotta-soft: #d98f61;
  --cream: #f8f4ea;
  --stone: #efe8d8;
  --ink: #2a2822;
  --ink-soft: #55534a;
  --white: #ffffff;
  --gold-line: #c9a962;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-script: "Alex Brush", "Brush Script MT", cursive;
  --font-body: "Jost", "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 4px;
  --shadow-soft: 0 18px 40px -20px rgba(42, 40, 34, 0.35);
  --transition: 280ms cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; color: var(--olive-dark); }
p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
  font-weight: 500;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 18px;
}

.gold-rule {
  width: 64px;
  height: 2px;
  background: var(--gold-line);
  margin: 18px 0 28px;
  border: none;
}
.center .gold-rule { margin-left: auto; margin-right: auto; }

.center { text-align: center; }

/* language visibility ------------------------------------------------- */
html[data-lang="en"] [data-lang="el"],
html[data-lang="en"] [data-lang="de"] { display: none !important; }
html[data-lang="el"] [data-lang="en"],
html[data-lang="el"] [data-lang="de"] { display: none !important; }
html[data-lang="de"] [data-lang="en"],
html[data-lang="de"] [data-lang="el"] { display: none !important; }

/* buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--terracotta); color: var(--white); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: #a4552f; }

.btn-outline {
  background: rgba(20,20,14,0.38); border-color: rgba(255,255,255,0.85); color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4); backdrop-filter: blur(2px);
}
.btn-outline:hover { background: rgba(20,20,14,0.55); }

.btn-ghost { background: var(--white); color: var(--olive-dark); border-color: var(--stone); }
.btn-ghost:hover { background: var(--stone); }

.btn-block { width: 100%; justify-content: center; }

/* header ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-header.solid {
  background: rgba(248, 244, 234, 0.96);
  box-shadow: 0 4px 24px -8px rgba(42,40,34,0.18);
  padding: 10px 0;
  backdrop-filter: blur(6px);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img {
  height: 64px; width: auto; transition: height var(--transition), filter var(--transition);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3)) drop-shadow(0 0 14px rgba(255,255,255,0.6)) drop-shadow(0 0 3px rgba(255,255,255,0.7));
}
.site-header.solid .brand img { height: 48px; filter: none; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.site-header.solid .main-nav a { color: var(--ink); }
.main-nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: currentColor;
  transition: right var(--transition);
}
.main-nav a:hover::after { right: 0; }

.lang-switch {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px; padding: 4px;
}
.site-header.solid .lang-switch { border-color: var(--stone); }
.lang-switch button {
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.05em; padding: 5px 12px; border-radius: 16px;
  color: var(--white);
  transition: background var(--transition), color var(--transition);
}
.site-header.solid .lang-switch button { color: var(--ink-soft); }
.lang-switch button.active { background: var(--terracotta); color: var(--white) !important; }

.main-nav .lang-switch { display: none; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 34px; height: 26px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; position: absolute; left: 0; right: 0;
  height: 2px; background: var(--white); transition: var(--transition);
}
.site-header.solid .nav-toggle span,
.site-header.solid .nav-toggle span::before,
.site-header.solid .nav-toggle span::after { background: var(--ink); }
.nav-toggle span { top: 12px; }
.nav-toggle span::before { content: ""; top: -8px; }
.nav-toggle span::after { content: ""; top: 8px; }

/* hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,13,8,0.58) 0%, rgba(10,13,8,0.5) 45%, rgba(10,13,8,0.82) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 24px; max-width: 780px; }
.hero-eyebrow {
  font-size: 0.82rem; letter-spacing: 0.35em; text-transform: uppercase;
  margin-bottom: 22px; color: var(--white); font-weight: 600;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.08;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.5);
}
.hero h1 em { font-style: italic; color: var(--terracotta-soft); text-shadow: 0 4px 20px rgba(0,0,0,0.7), 0 2px 6px rgba(0,0,0,0.65); }
.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  max-width: 560px;
  margin: 0 auto 38px;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--white); opacity: 0.85;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-cue .line { width: 1px; height: 34px; background: rgba(255,255,255,0.6); animation: scrollpulse 2s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100% { transform: scaleY(0.6); opacity: .5;} 50% { transform: scaleY(1); opacity: 1;} }

/* quick facts strip ----------------------------------------------------- */
.facts-strip {
  background: var(--olive-dark);
  color: var(--white);
  padding: 34px 0;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  text-align: center;
}
.fact { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fact svg { width: 30px; height: 30px; stroke: var(--terracotta-soft); }
.fact span { font-size: 0.84rem; letter-spacing: 0.02em; color: var(--stone); }
.fact strong { display: block; font-family: var(--font-body); font-size: 1.2rem; letter-spacing: 0.01em; color: var(--white); font-weight: 600; }

/* about / story ---------------------------------------------------------- */
.story {
  padding: 110px 0;
}
.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
}
.story-text p { color: var(--ink-soft); font-size: 1.02rem; }
.story-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.story-photo img { aspect-ratio: 4/5; object-fit: cover; }
.story-photo::after {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid rgba(255,255,255,0.55);
  pointer-events: none;
}

/* gallery ------------------------------------------------------------- */
.gallery {
  padding: 110px 0;
  background: var(--stone);
}
.gallery-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  margin-bottom: 42px;
}
.filter-pill {
  border: 1px solid var(--olive-soft);
  background: transparent;
  color: var(--olive-dark);
  padding: 8px 18px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: var(--transition);
}
.filter-pill:hover { background: rgba(92,122,74,0.12); }
.filter-pill.active { background: var(--olive-dark); border-color: var(--olive-dark); color: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #ddd3ba;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px 8px;
  background: linear-gradient(0deg, rgba(20,20,14,0.65), transparent);
  color: var(--white);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition);
}
.gallery-item:hover .cap { opacity: 1; transform: translateY(0); }

/* lightbox --------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15,15,11,0.94);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 2px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox-cap { color: var(--stone); text-align: center; margin-top: 16px; font-size: 0.85rem; letter-spacing: 0.03em; }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25);
  color: var(--white); border-radius: 50%; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: var(--transition);
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav svg, .lightbox-close svg { width: 20px; height: 20px; }

/* contact ------------------------------------------------------------------ */
.contact {
  padding: 110px 0 130px;
  background: var(--olive-dark);
  color: var(--white);
  text-align: center;
}
.contact .section-title { color: var(--white); }
.contact .gold-rule { margin-left: auto; margin-right: auto; }
.contact p.lead { max-width: 560px; margin: 0 auto 46px; color: rgba(255,255,255,0.82); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 30px 22px;
  transition: var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.contact-card:hover { background: rgba(255,255,255,0.11); transform: translateY(-4px); }
.contact-card svg { width: 30px; height: 30px; stroke: var(--terracotta-soft); }
.contact-card strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.contact-card span { font-size: 0.82rem; color: rgba(255,255,255,0.72); }

/* footer -------------------------------------------------------------------- */
.site-footer {
  background: #24331f;
  color: rgba(255,255,255,0.7);
  padding: 46px 0 30px;
  text-align: center;
  font-size: 0.82rem;
}
.site-footer img { height: 44px; margin: 0 auto 16px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-links { display: flex; gap: 22px; justify-content: center; margin: 18px 0; flex-wrap: wrap; }
.footer-links a { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.74rem; }
.footer-links a:hover { color: var(--terracotta-soft); }

/* reveal-on-scroll --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* responsive ---------------------------------------------------------------- */
@media (max-width: 980px) {
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-photo { order: -1; max-width: 460px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 340px;
    background: var(--cream); flex-direction: column; justify-content: center; gap: 30px;
    transition: right var(--transition); box-shadow: -20px 0 50px rgba(0,0,0,0.2); }
  .main-nav.open { right: 0; }
  .main-nav a { color: var(--ink) !important; font-size: 1rem; }
  .nav-toggle { display: block; }
  /* The header-lang switch (outside the sidebar nav) stays visible here too —
     same spot as desktop, so it's reachable without opening the menu.
     .main-nav .lang-switch stays display:none (see base rule above) so it
     doesn't show twice. */
  .header-actions { display: flex; align-items: center; gap: 14px; }
  /* Shorter hero on phones — object-fit:cover on a tall, narrow screen was
     stretching the photo far past its natural width to fill 100vh, making
     it look heavily zoomed-in/cropped. A shorter box needs less of that
     stretch, so more of the actual photo shows. */
  .hero { min-height: 62vh; padding-top: 90px; }
  /* The shorter hero leaves less room below the buttons — the scroll hint
     isn't needed here anyway, since the next section is already peeking
     into view. */
  .scroll-cue { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox { padding: 16px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .story, .gallery, .contact { padding: 72px 0; }
}
