/* ============================================
   Πολιτιστικός Σύλλογος Λιθιάς — Custom CSS
   Palette: "Γη & Πέτρα" — γήινα, ζεστά, φωτεινά
   ============================================ */

/* CSS Custom Properties */
:root {
  --color-primary: #8B6F47;
  --color-primary-light: #A68B5B;
  --color-secondary: #B8860B;
  --color-accent: #5B7B3A;
  --color-warm: #C4956A;
  --color-bg: #F8F5F0;
  --color-bg-alt: #F0EBE3;
  --color-text: #3D3225;
  --color-text-light: #6B5D4F;
}

/* Base font size bump — κοινό 40+ */
html {
  scroll-behavior: smooth;
  font-size: 19px;
}

@media (max-width: 640px) {
  html { font-size: 18px; }

  /* Mobile touch targets — min 44px */
  a, button { min-height: 44px; }

  /* Parallax text padding on mobile */
  .full-bleed-image { min-height: 30vh; padding: 2rem 1rem; }

  /* Prevent horizontal overflow */
  body { overflow-x: hidden; }
}

@media (max-width: 375px) {
  html { font-size: 17px; }
}

/* Header scroll state */
#site-header {
  background: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#site-header.scrolled {
  background-color: rgba(248, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(61, 50, 37, 0.08);
}

#site-header.scrolled a {
  color: var(--color-text) !important;
}

#site-header.scrolled .nav-active {
  color: var(--color-primary) !important;
}

/* Parallax section backgrounds */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 768px) {
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* Section divider — organic wave shape */
.section-wave {
  position: relative;
}

.section-wave::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* Prose overrides */
.prose h2 {
  font-family: 'Playfair Display', serif;
  color: var(--color-primary);
}

.prose h3 {
  font-family: 'Playfair Display', serif;
  color: var(--color-text);
}

.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-warm);
}

.prose a:hover {
  color: var(--color-secondary);
  text-decoration-color: var(--color-secondary);
}

.prose img {
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(61, 50, 37, 0.1);
}

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
  animation: fadeInUp 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children animation */
.stagger-children .fade-in-on-scroll:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-in-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.stagger-children .fade-in-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .fade-in-on-scroll:nth-child(4) { transition-delay: 0.45s; }

/* Image hover zoom */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.6s ease;
}

.img-zoom:hover img {
  transform: scale(1.08);
}

/* Card hover lift */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(61, 50, 37, 0.12);
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Decorative line */
.decorative-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-warm));
  border-radius: 2px;
}

/* Full-bleed image sections */
.full-bleed-image {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.full-bleed-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(61, 50, 37, 0.2) 0%,
    rgba(61, 50, 37, 0.5) 100%
  );
  z-index: 1;
}

/* Alternating section layout */
.section-alt:nth-child(even) {
  background-color: var(--color-bg-alt);
}

/* PhotoSwipe overrides */
.pswp__bg {
  background-color: rgba(61, 50, 37, 0.95) !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Print stylesheet */
@media print {
  header, footer, #mobile-menu, .no-print, form, iframe, #cookie-banner {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  main { padding: 0; }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }
}

/* Cookie banner */
#cookie-banner {
  font-family: 'Source Sans 3', sans-serif;
}
