/* ═══════════════════════════════════════════════
   Γη & Ύδωρ — style.css
   Palette: #EDE9E6 · #C9996B · #5C4F4A
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Sofia+Sans:wght@300;400&display=swap');

:root {
  --bg:      #E5E0DC;
  --bg-alt:  #DAD4CF;
  --accent:  #C9996B;
  --dark:    #5C4F4A;
  --white:   #FFFFFF;
  --serif:   'EB Garamond', Georgia, serif;
  --sans:    'Sofia Sans', 'Helvetica Neue', sans-serif;
  --max-w:   1200px;
  --pad-x:   clamp(24px, 5vw, 80px);
  --section: clamp(28px, 3.5vw, 44px);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--dark);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.85;
  overflow-x: hidden;
}

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

/* ─── CONTAINER ─────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 50px auto;
  padding: 0 var(--pad-x);
}

/* ─── TYPOGRAPHY ─────────────────────────────── */
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--dark);
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.section-divider {
  width: 50px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 64px;
  opacity: 0.8;
}

/* ─── LANGUAGE SWITCHER ──────────────────────── */
#lang-switcher {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 9999;
  font-family: var(--sans);
}

#lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 18, 16, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 153, 107, 0.35);
  border-radius: 24px;
  padding: 6px 12px 6px 8px;
  color: #EDE9E6;
  font-size: 0.82rem;
  font-family: var(--sans);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

#lang-btn:hover {
  background: rgba(20, 18, 16, 0.9);
  border-color: rgba(201, 153, 107, 0.65);
}

#lang-flag {
  font-size: 1.15rem;
  line-height: 1;
}

#lang-short {
  font-weight: 600;
  letter-spacing: 0.06em;
}

#lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(20, 18, 16, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 153, 107, 0.25);
  border-radius: 12px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  min-width: 160px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}

#lang-dropdown.open {
  display: block;
  animation: langDrop 0.18s ease;
}

@keyframes langDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

#lang-dropdown li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: rgba(237, 233, 230, 0.8);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

#lang-dropdown li:hover,
#lang-dropdown li.active {
  background: rgba(201, 153, 107, 0.15);
  color: #C9996B;
}

#lang-dropdown li .li-flag {
  font-size: 1.2rem;
  line-height: 1;
}

/* Translation label in tagline */
.transl {
  color: var(--accent);
  font-style: normal;
  font-size: 0.95em;
}

/* ─── SCROLL REVEAL ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════ */
#hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 500px;
  overflow: hidden;
}

#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.20) 0%,
    rgba(0,0,0,0.42) 60%,
    rgba(0,0,0,0.55) 100%
  );
}

.hero-logo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-logo {
  width: min(520px, 55vw);
  filter: drop-shadow(0 4px 32px rgba(0,0,0,0.5));
}

.scroll-arrow {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  animation: bounce 2.2s ease-in-out infinite;
  opacity: 0.75;
  transition: opacity 0.2s;
  background: none;
  border: none;
  padding: 0;
  outline: none;
}

.scroll-arrow:hover { opacity: 1; }

.scroll-arrow svg {
  width: 40px;
  height: 40px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

/* ════════════════════════════════════════════════
   INTRO
   ════════════════════════════════════════════════ */
#intro {
  background: var(--bg);
  text-align: center;
}

.logo-band {
  background: linear-gradient(45deg, #141210, 40%, #433f3d);
  position: relative;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  overflow: hidden;
}

.logo-band__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px clamp(20px, 4vw, 48px) 32px;
}

.logo-band__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 40px;
}

/* media grid: 3 photos left (2 cols) + video portrait right (1 col, 2 rows) */
.logo-band__media {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.logo-band__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-self: center;
}

.logo-band__photo {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
}

/* photo 1: col1 row1 */
.logo-band__media .logo-band__photo:nth-child(1) { grid-column: 1; grid-row: 1; }
/* photo 2: col2 row1 */
.logo-band__media .logo-band__photo:nth-child(2) { grid-column: 2; grid-row: 1; }
/* photo 3 wide: col1-2 row2 */
.logo-band__media .logo-band__photo:nth-child(3) { grid-column: 1 / 3; grid-row: 2; aspect-ratio: 2 / 1; }

.logo-band__photo--wide {
  grid-column: 1 / -1;
  aspect-ratio: 2 / 1;
}

.logo-band__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.logo-band__photo:hover img {
  transform: scale(1.04);
}

/* Desktop: video column 3, spans both rows */
.logo-band__video {
  overflow: hidden;
  border-radius: 4px;
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: stretch;
  justify-self: stretch;
}

.logo-band__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile: video below the 3 photos */
@media (max-width: 700px) {
  .logo-band__inner {
    grid-template-columns: 1fr;
  }
  .logo-band__logo { order: 0; padding: 10px; }
  .logo-band__media {
    order: 1;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .logo-band__media .logo-band__photo:nth-child(1) { grid-column: 1; grid-row: 1; }
  .logo-band__media .logo-band__photo:nth-child(2) { grid-column: 2; grid-row: 1; }
  .logo-band__media .logo-band__photo:nth-child(3) { grid-column: 1 / 3; grid-row: 2; aspect-ratio: 2 / 1; }
  .logo-band__video {
    grid-column: 1 / 3;
    grid-row: 3;
    aspect-ratio: 9 / 16;
    align-self: auto;
    width: 75%;
    margin: 0 auto;
  }
  .logo-band__video video {
    object-fit: contain;
    background: #000;
  }
}

.logo-band__tagline {
  margin-top: 28px;
  text-align: center;
  color: rgba(237, 233, 230, 0.75);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
}

.logo-band__tagline h4 {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 400;
  color: rgba(237, 233, 230, 0.5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.logo-band__tagline p {
  margin-bottom: 12px;
}

.logo-band__tagline p:last-child {
  margin-bottom: 0;
}

.logo-band__tagline em {
  font-style: normal;
  color: #C9996B;
  font-family: var(--serif);
  font-size: 1.05em;
}

.golden-logo {
  width: min(360px, 60vw);
  display: block;
  /* crop to 70% of height — logo is square so clip bottom 30% */
  clip-path: inset(0 0 15% 0);
  margin-bottom: calc(min(260px, 40vw) * -0.2)
}

/* ── Alternating text+photo rows ── */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
  align-items: center;
  margin-bottom: 48px;
  text-align: left;
}

.story-block.reverse {
  direction: rtl;
}

.story-block.reverse > * {
  direction: ltr;
}

.story-block__text h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.story-block__text p {
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  color: var(--dark);
  opacity: 0.9;
  line-height: 1.9;
  font-weight: 400;
}

.story-block__photo {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(44, 34, 28, 0.18);
}

.story-block__photo--grid4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(44, 34, 28, 0.18);
}

.story-block__photo--grid4 .photo-wrap {
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.story-block__photo--grid4 .photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.story-block__photo--grid4 .photo-wrap:hover img {
  transform: scale(1.06);
}

.story-block__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  display: block;
}

.story-block__photo:hover img {
  transform: scale(1.04);
}

/* ── Bottom 3-photo strip ── */
.intro-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.photo-wrap {
  overflow: hidden;
  border-radius: 6px;
}

.intro-photos .photo-wrap {
  aspect-ratio: 4/3;
}

.intro-photos .photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.intro-photos .photo-wrap:hover img {
  transform: scale(1.05);
}

/* ════════════════════════════════════════════════
   SPACE PHOTOS (wide 2-col strip)
   ════════════════════════════════════════════════ */
.space-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.space-photos .photo-wrap {
  aspect-ratio: 16/9;
}

.space-photos .photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.space-photos .photo-wrap:hover img {
  transform: scale(1.05);
}

/* ════════════════════════════════════════════════
   GALLERIES
   ════════════════════════════════════════════════ */
#sala-gallery {
  padding: var(--section) 0;
  background: var(--bg);
}

#plates-gallery {
  padding: var(--section) 0;
  background: var(--bg-alt);
}

#plates-gallery h2,
#sala-gallery h2 {
  color: var(--dark);
}

.gallery-grid {
  columns: 4 220px;
  column-gap: 10px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 6px;
  cursor: zoom-in;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.55s ease, opacity 0.3s ease;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(92, 79, 74, 0);
  transition: background 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover img {
  transform: scale(1.04);
  opacity: 0.93;
}

.gallery-item:hover::after {
  background: rgba(92, 79, 74, 0.08);
}

/* ════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════ */
#contact {
  padding: var(--section) 0;
  background: var(--dark);
  text-align: center;
}

#contact h2 {
  color: var(--bg);
}

#contact .section-divider {
  background: var(--accent);
}

.contact-info {
  margin-bottom: 52px;
}

.contact-info p {
  font-size: 1rem;
  color: var(--bg);
  opacity: 0.75;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.contact-info a {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.contact-info a:hover {
  opacity: 0.75;
}

.map-wrapper {
  width: 100%;
  aspect-ratio: 16/5;
  min-height: 280px;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.08);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
footer {
  background: #3D3330;
  padding: 64px var(--pad-x) 48px;
  text-align: center;
}

.footer-logo {
  width: min(130px, 28vw);
  margin: 0 auto 36px;
  opacity: 0.85;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 36px;
}

.social-links a {
  display: flex;
  color: var(--bg);
  opacity: 0.55;
  transition: opacity 0.25s, color 0.25s;
}

.social-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.social-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

footer .copyright {
  font-size: 0.72rem;
  color: var(--bg);
  opacity: 0.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════
   LIGHTBOX
   ════════════════════════════════════════════════ */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 13, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

#lightbox.open {
  display: flex;
}

#lb-img {
  max-width: min(88vw, 1100px);
  max-height: 88svh;
  object-fit: contain;
  border-radius: 2px;
  user-select: none;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}

#lb-video {
  display: none;
  max-width: min(88vw, 600px);
  max-height: 88svh;
  border-radius: 2px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}

#lightbox.lb-video-mode #lb-img  { display: none; }
#lightbox.lb-video-mode #lb-video { display: block; }
#lightbox.lb-video-mode #lb-prev,
#lightbox.lb-video-mode #lb-next  { display: none; }

.lb-band-item,
.lb-band-video { cursor: zoom-in; }

.lb-btn {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  line-height: 1;
  padding: 12px 18px;
  font-weight: 200;
}

.lb-btn:hover { opacity: 1; }

#lb-close {
  top: 16px;
  right: 20px;
  font-size: 2.2rem;
}

#lb-prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
}

#lb-next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
}

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .gallery-grid {
    columns: 3 180px;
  }

  .story-block {
    gap: 0 48px;
  }
}

@media (max-width: 700px) {
  .story-block {
    grid-template-columns: 1fr;
    gap: 32px 0;
    margin-bottom: 56px;
  }

  .story-block.reverse {
    direction: ltr;
  }

  /* photo always on top on mobile */
  .story-block__photo {
    order: -1;
    aspect-ratio: 1 / 1;
  }

  .story-block__text {
    text-align: center;
  }

  .intro-photos {
    grid-template-columns: 1fr 1fr;
  }

  .intro-photos .photo-wrap {
    aspect-ratio: 16/9;
  }

  .space-photos {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    columns: 2 150px;
  }

  .map-wrapper {
    aspect-ratio: 4/3;
  }

  #lb-prev { left: 4px; }
  #lb-next { right: 4px; }
}

@media (max-width: 420px) {
  .hero-logo {
    width: 72vw;
  }

  .intro-photos {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    columns: 2 120px;
    column-gap: 6px;
  }

  .gallery-item {
    margin-bottom: 6px;
  }
}
