/* ─────────────────────────────────────────────────────────────────
   Armonia Resort Andros — shared site styles
   Typography pairing #22 "Art Gallery": Tinos + Source Sans 3
   Palette:
     forest     #215a30  → labels, italic accents, distance numbers, hover
     terracotta #B5341E  → CTA text-links only (Explore / Discover more)
     saffron    #E5B81F  → stats icons, hero italic, mobile call button
     cream      #F5EFE0  → main background
     warm beige #EAE2D0  → section breakers
     ink        #1A1A1A  → body text
   ───────────────────────────────────────────────────────────────── */

/* ─── Base typography ─── */
body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  color: #1A1A1A;
  background-color: #F5EFE0;
}
h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: 'Tinos', Georgia, serif;
  font-weight: 400;
}

/* ─── Cream sections get a soft paper texture (only on light backgrounds) ─── */
.bg-cream  {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='r'><feTurbulence type='fractalNoise' baseFrequency='0.04' result='noise' numOctaves='5' stitchTiles='stitch' seed='4'/><feDiffuseLighting in='noise' lighting-color='%23fff' surfaceScale='0.4'><feDistantLight azimuth='45' elevation='70'/></feDiffuseLighting></filter><rect width='100%25' height='100%25' filter='url(%23r)'/></svg>");
  background-blend-mode: multiply;
}

/* ─── Warm beige + deeper sections stay flat — provides visual contrast vs textured cream ─── */
.bg-warm   { background-color: #dfd3c494; }
.bg-deeper { background-color: #cfc1ad; }

/* ─── Photo shadow — like a print on a magazine page (neutral black, soft).
   Excludes full-bleed/absolute-positioned imgs (e.g. hero background) where a shadow makes no sense. ─── */
main picture img:not(.absolute),
footer picture img:not(.absolute) {
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.05),
    0 28px 60px -22px rgba(0, 0, 0, 0.22),
    0 10px 22px -8px rgba(0, 0, 0, 0.10);
}

/* Moodboard horizontal track — lighter shadow because photos sit tightly side-by-side */
.moodboard-track picture img {
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.12);
}

/* Recognition carousel — badges/screenshots, lighter shadow than full photos */
.recognition-img {
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.15);
}

/* ─── Recognition carousel — slides stacked in same grid cell, fade between ─── */
#recognition-carousel { min-height: 320px; }
#recognition-carousel > .recognition-slide {
  grid-column: 1 / -1;
  grid-row: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
}
#recognition-carousel > .recognition-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Carousel nav dots */
.recognition-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(26, 26, 26, 0.22);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background .25s ease, width .35s ease;
}
.recognition-dot.is-active {
  background: #215a30;
  width: 28px;
}
.recognition-dot:hover { background: rgba(26, 26, 26, 0.45); }
.recognition-dot.is-active:hover { background: #163E25; }

/* ─── Reveal on scroll (subtle fade-up) ─── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── Hero entrance animation (staggered fade-up on page load) ─── */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > div > * {
  opacity: 0;
  animation: hero-rise 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-content > div > h1            { animation-delay: 0.25s; }
.hero-content > div > p             { animation-delay: 0.55s; }
.hero-content > div > a             { animation-delay: 0.85s; }
.hero-scroll {
  opacity: 0;
  animation: hero-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}
@media (prefers-reduced-motion: reduce) {
  .hero-content > div > *,
  .hero-scroll { opacity: 1; transform: none; animation: none; }
}

/* ─── Photo hover zoom — for clickable photos (room cards, moodboard, gallery)
   The <a> wrapper must have `overflow-hidden` on the picture/img wrapper. ─── */
.photo-zoom {
  overflow: hidden;
  display: block;
}
.photo-zoom img {
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
a:hover .photo-zoom img,
.photo-zoom:hover img {
  transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .photo-zoom img { transition: none; }
  a:hover .photo-zoom img,
  .photo-zoom:hover img { transform: none; }
}

/* ─── Header nav links — animated underline on hover ─── */
header nav a {
  position: relative;
  padding-bottom: 2px;
}
header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
header nav a:hover::after { transform: scaleX(1); }
/* Suppress underline animation inside dropdown panels (would clutter the menu) */
.nav-dropdown-panel a::after { display: none; }

/* ─── Header dropdown menu (Διαμονή ▾) ───
   Reveals on hover or keyboard focus-within. The icon flips on open. */
.nav-dropdown-icon {
  transition: transform 0.3s ease;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel,
.nav-dropdown.is-open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
}
.nav-dropdown:hover .nav-dropdown-icon,
.nav-dropdown:focus-within .nav-dropdown-icon,
.nav-dropdown.is-open .nav-dropdown-icon {
  transform: rotate(180deg);
}
.nav-dropdown-trigger {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  padding: 0 0 2px 0;
}
/* Reuse the underline animation for the dropdown trigger */
.nav-dropdown-trigger {
  position: relative;
}
.nav-dropdown-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 18px; /* exclude the caret icon */
  bottom: -1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after { transform: scaleX(1); }

/* ─── Amenity icons — gentle lift + color shift on hover ─── */
#amenities ul li {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
#amenities ul li:hover { transform: translateY(-4px); }
#amenities ul li i {
  transition: color 0.35s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
#amenities ul li:hover i {
  transform: scale(1.08);
}
@media (prefers-reduced-motion: reduce) {
  #amenities ul li, #amenities ul li i { transition: none; transform: none !important; }
}

/* ─── Recognition carousel — slight image scale on hover ─── */
.recognition-img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.recognition-slide:hover .recognition-img { transform: scale(1.03); }

/* ─── Logo (header & footer) — subtle hover dim ─── */
header a[href*="index.html"] img,
footer img[alt*="Armonia"] {
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
header a[href*="index.html"]:hover img { opacity: 0.85; }

/* ─── CTA buttons — keep their existing hover state, add subtle press feedback ─── */
.cta-btn,
.outline-btn,
header a[href*="diathesimotita"] {
  transition-property: background, color, border-color, gap, transform, box-shadow;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}
.cta-btn:active,
.outline-btn:active,
header a[href*="diathesimotita"]:active { transform: translateY(1px); }

/* ─── Smooth scroll behavior (already on <html scroll-smooth>, reinforced for older fallback) ─── */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ─── Editorial section label — small caps with wide tracking, terracotta accent ─── */
.label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #B5341E;
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
}

/* Decorative side lines on the label — drawn via pseudo-elements */
.label::before,
.label::after {
  content: "";
  display: inline-block;
  width: 38px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  flex: 0 0 auto;
}

/* Default state (left-aligned): line on the right only — hide the left one */
.label::before { display: none; }

/* Centered context — show both lines (label.text-center, or any ancestor with text-center) */
.label.text-center::before,
.text-center .label::before {
  display: inline-block;
}

/* Right-aligned context — show left line, hide right line */
.label.text-right::before,
.text-right .label::before {
  display: inline-block;
}
.label.text-right::after,
.text-right .label::after {
  display: none;
}

/* ─── Display heading (sentence case, editorial) — used for section titles ─── */
.display-caps {
  font-family: 'Tinos', Georgia, serif;
  letter-spacing: -0.005em;
  line-height: 1.1;
  font-weight: 400;
}

/* ─── Hero — cinematic full-bleed photography section
   Standalone, self-contained CSS so the layout is predictable across browsers (no reliance on Tailwind utility chains for the bg layer). ─── */
.hero {
  position: relative;
  height: 100vh;                    /* viewport fallback */
  height: 100svh;                   /* iOS-aware */
  min-height: 620px;
  overflow: hidden;
  background-color: #1A1A1A;
  /* Use the desktop landscape crop on all viewports — it has a tighter cinematic
     framing of the courtyard. The portrait mobile image's wide sky and ground
     read as letterboxing on tall mobile sections. */
  background-image: url('../images/hero-exterior-hero-desktop.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.32) 0%,
    rgba(26, 26, 26, 0.18) 45%,
    rgba(26, 26, 26, 0.50) 100%
  );
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  text-align: center;
  color: #F5EFE0;
}
.hero-content > div { max-width: 48rem; }

.hero-scroll {
  position: absolute;
  z-index: 2;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: #F5EFE0;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: color .25s ease;
}
.hero-scroll:hover { color: #E5B81F; }
.hero-scroll-line {
  display: block;
  width: 1px;
  height: 32px;
  background: rgba(245, 239, 224, 0.7);
}

/* ─── Hero display heading (sentence case, big, editorial) ─── */
.hero-display {
  font-family: 'Tinos', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  line-height: 1.05;
}

/* ─── Italic accent on a key word in headings (forest editorial flair) ─── */
.accent-italic {
  font-style: italic;
  color: #215a30;
  font-weight: 400;
}
.hero-display .accent-italic {
  color: #B5341E; /* terracotta — matches the CTA brand color */
}

/* ─── Bold number / distance highlight (used in stats lists) ─── */
.lead-num {
  font-weight: 600;
  color: #215a30;
}

/* ─── Text-link CTA — terracotta brand color, expands on hover ─── */
.text-link {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #B5341E;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #B5341E;
  transition: color .25s ease, border-color .25s ease, gap .3s ease;
}
.text-link:hover {
  color: #7E2113;
  border-color: #7E2113;
  gap: 0.85rem;
}
.text-link--invert {
  color: #F5EFE0;
  border-color: #F5EFE0;
}
.text-link--invert:hover {
  color: #E5B81F;
  border-color: #E5B81F;
}

/* ─── Hero outline button (white-on-photo) ─── */
.outline-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 2.4rem;
  border: 1px solid #F5EFE0;
  color: #F5EFE0;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  transition: background .3s ease, color .3s ease;
}
.outline-btn:hover {
  background: #F5EFE0;
  color: #1A1A1A;
}

/* ─── Solid terracotta CTA button — used for prominent on-page CTAs (final invite band) ─── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.15rem 2.6rem;
  background: #B5341E;
  color: #F5EFE0;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  border: 1px solid #B5341E;
  transition: background .3s ease, border-color .3s ease, gap .3s ease, color .3s ease;
}
.cta-btn:hover {
  background: #7E2113;
  border-color: #7E2113;
  gap: 1.15rem;
}
.cta-btn .icon {
  font-size: 1.05rem;
  line-height: 1;
}

/* Outlined sibling — same size, less weight */
.cta-btn--outline {
  background: transparent;
  color: #1A1A1A;
  border: 1px solid #1A1A1A;
}
.cta-btn--outline:hover {
  background: #1A1A1A;
  color: #F5EFE0;
  border-color: #1A1A1A;
}
.cta-btn--outline .icon { color: #B5341E; }
.cta-btn--outline:hover .icon { color: #E5B81F; }

/* ─── Map iframe ─── */
.map-frame {
  aspect-ratio: 4/3;
  border: 0;
}

/* ─── Moodboard horizontal scroll ─── */
.moodboard-track {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.moodboard-track::-webkit-scrollbar { display: none; }
.moodboard-track > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

/* ─── Generous body line-height for prose paragraphs ─── */
.prose-poetic {
  font-size: 1rem;
  line-height: 1.85;
  color: #2a2a2a;
  max-width: 36rem;
}
@media (min-width: 768px) {
  .prose-poetic { font-size: 1.05rem; }
}

/* ─── Bill-coo style amenity list with thin dividers ─── */
.amenity-row {
  border-top: 1px solid rgba(26, 26, 26, 0.12);
  padding: 0.95rem 0;
  font-size: 0.95rem;
}
.amenity-row:last-child {
  border-bottom: 1px solid rgba(26, 26, 26, 0.12);
}

/* ─── Italic poetic quote band ─── */
.quote-poetic {
  font-family: 'Tinos', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.55;
  color: #1A1A1A;
  max-width: 56rem;
  margin: 0 auto;
}

/* ─── Decorative thin horizontal rule ─── */
.hr-thin {
  height: 1px;
  background: rgba(26, 26, 26, 0.15);
  border: 0;
}

/* ─── Lightbox — fullscreen photo viewer for galleries (room pages, moodboard, etc.)
   Triggered by clicking any <picture> inside a .moodboard-track. JS handles state,
   prev/next, keyboard shortcuts. Reusable across pages. ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  display: block;
  max-width: 100%;
  max-height: 100%;
}
.lightbox-img {
  display: block;
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox button {
  position: absolute;
  background: transparent;
  color: #F5EFE0;
  border: 1px solid rgba(245, 239, 224, 0.35);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  user-select: none;
}
.lightbox button:hover {
  background: rgba(245, 239, 224, 0.1);
  border-color: rgba(245, 239, 224, 0.7);
}
.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(245, 239, 224, 0.75);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox button { width: 42px; height: 42px; }
}
/* Photos inside galleries get zoom-in cursor — JS adds this too as fallback */
.moodboard-track picture { cursor: zoom-in; }
.moodboard-track picture img { transition: opacity 0.2s ease; }
.moodboard-track picture:hover img { opacity: 0.92; }
