/* ============================================
   Elleniya Art - Stylesheet
   Palette drawn from the artwork:
   deep charcoal, warm pinks, teal, silver
   ============================================ */

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

:root {
  --charcoal: #1a1a1e;
  --deep-gray: #2a2a2e;
  --silver: #c8c0b8;
  --warm-pink: #c4587a;
  --dusty-rose: #a8566e;
  --teal: #4a8b8d;
  --off-white: #eae6e1;
  --font-display: 'Poiret One', cursive;
  --font-body: 'Raleway', 'Helvetica Neue', sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: #fff;
  color: #1a1a1e;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- HEADER / NAV ---- */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.85) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.header-inner {
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 400;
  color: #1a1a1e;
  text-decoration: none;
  letter-spacing: normal;
  transition: color 0.3s;
  line-height: 1;
  -webkit-text-stroke: 0.5px #1a1a1e;
}

.logo:hover {
  color: var(--warm-pink);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #333;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s;
  line-height: 1;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #000;
  transition: width 0.3s;
}

nav a:hover,
nav a.active {
  color: #000;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* ---- DROPDOWN ---- */

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 0.75rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  background: rgba(196,88,122,0.15);
  color: var(--warm-pink);
}

.dropdown:hover .dropdown-menu,
.dropdown.touch-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ---- HAMBURGER ---- */

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a1e;
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- HOME / SLIDESHOW ---- */

.home-page {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #fff;
}

.slideshow-container {
  position: absolute;
  top: 150px;
  left: 0;
  right: 0;
  bottom: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 3s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.home-overlay {
  position: absolute;
  top: 150px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 50%, transparent 75%);
}

.home-overlay h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4rem, 12vw, 9rem);
  letter-spacing: 0.1em;
  color: #fff;
  text-shadow:
    0 0 10px rgba(0,0,0,1),
    0 0 30px rgba(0,0,0,0.9),
    0 4px 8px rgba(0,0,0,0.9),
    0 8px 40px rgba(0,0,0,0.7);
  -webkit-text-stroke: 1px rgba(255,255,255,0.4);
}

.home-overlay .tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #fff;
  margin-top: 1.2rem;
  text-shadow:
    0 0 8px rgba(0,0,0,1),
    0 2px 20px rgba(0,0,0,0.8);
}

/* ---- ABOUT PAGE ---- */

.about-page {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-container {
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.1);
}

.about-text h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.8rem;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.divider {
  display: none;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.5rem;
}

.about-details {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.about-details h3 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-pink);
  margin-bottom: 0.5rem;
}

.about-details p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---- CONTACT PAGE ---- */

.contact-page {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-container {
  max-width: 600px;
  width: 100%;
}

.contact-container h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.8rem;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.contact-intro {
  color: #444;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.15);
  color: #1a1a1e;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--warm-pink);
}

.form-group textarea {
  resize: vertical;
}

.btn-submit {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: transparent;
  border: 1px solid var(--warm-pink);
  color: var(--warm-pink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.btn-submit:hover {
  background: var(--warm-pink);
  color: var(--off-white);
}

/* ---- ALERTS ---- */

.alert {
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.alert-success {
  background: rgba(74,139,141,0.1);
  border: 1px solid var(--teal);
  color: var(--teal);
}

.alert-error {
  background: rgba(196,88,122,0.1);
  border: 1px solid var(--warm-pink);
  color: var(--warm-pink);
}

.alert-error p {
  margin: 0;
}

/* ---- GALLERY PAGE ---- */

.gallery-page {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-page h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.8rem;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 3 / 4;
  border: 2px solid #000;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* ---- LIGHTBOX ---- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,12,0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  max-width: 92vw;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 65vw;
  max-height: 90vh;
  object-fit: contain;
  border: 2px solid;
  border-color: rgba(255,255,255,0.25) rgba(0,0,0,0.35) rgba(0,0,0,0.35) rgba(255,255,255,0.25);
}

.lightbox-meta {
  min-width: 200px;
  max-width: 280px;
  color: var(--silver);
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--off-white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.lightbox-description {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--silver);
}

.lightbox-dimensions {
  font-size: 0.85rem;
  color: var(--silver);
  margin-bottom: 0.4rem;
}

.lightbox-price {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--off-white);
  margin-bottom: 1rem;
}

.lightbox-gallery {
  font-size: 0.8rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(200,192,184,0.5);
  margin-bottom: calc(0.8rem * 1.4);
}

/* ---- LIGHTBOX AUDIO PLAYER ---- */

.lightbox-audio {
  margin-bottom: 1rem;
}

.audio-player {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}

.audio-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--silver);
  background: none;
  color: var(--silver);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
  padding: 0;
}

.audio-play-btn:hover {
  background: rgba(255,255,255,0.15);
  color: var(--off-white);
}

.audio-progress-bar {
  flex: 1 1 0%;
  height: 3px;
  min-width: 50px;
  background: rgba(200,192,184,0.25);
  cursor: pointer;
  position: relative;
  border-radius: 1.5px;
}

.audio-progress-fill {
  height: 100%;
  background: var(--silver);
  border-radius: 1.5px;
  width: 0;
  transition: width 0.1s linear;
}

.audio-time {
  font-size: 0.75rem;
  color: var(--silver);
  font-variant-numeric: tabular-nums;
  min-width: 2.5em;
  text-align: right;
}

.lightbox-inquire {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--off-white);
  background: none;
  border: 1px solid var(--silver);
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.5rem;
}

.lightbox-inquire:hover {
  background: var(--off-white);
  color: var(--charcoal);
  border-color: var(--off-white);
}

/* ---- INQUIRY POPUP ---- */

.inquiry-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.inquiry-overlay.active {
  opacity: 1;
  visibility: visible;
}

.inquiry-popup {
  background: #1a1a1e;
  border: 1px solid rgba(200,192,184,0.2);
  padding: 2rem 2.5rem;
  max-width: 420px;
  width: 90vw;
  position: relative;
}

.inquiry-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--silver);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.inquiry-close:hover {
  color: var(--off-white);
}

.inquiry-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--off-white);
  margin-bottom: 0.4rem;
}

.inquiry-artwork-info {
  font-size: 0.85rem;
  color: var(--silver);
  margin-bottom: 1.5rem;
}

.inquiry-field {
  margin-bottom: 1rem;
}

.inquiry-field label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(200,192,184,0.6);
  margin-bottom: 0.3rem;
}

.inquiry-field input,
.inquiry-field textarea {
  width: 100%;
  padding: 0.5rem 0.6rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--off-white);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(200,192,184,0.25);
  outline: none;
  transition: border-color 0.2s;
}

.inquiry-field input:focus,
.inquiry-field textarea:focus {
  border-color: var(--silver);
}

.inquiry-field textarea {
  resize: vertical;
}

.inquiry-send {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--off-white);
  border: 1px solid var(--off-white);
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.5rem;
}

.inquiry-send:hover {
  background: var(--silver);
  border-color: var(--silver);
}

.inquiry-send:disabled {
  opacity: 0.5;
  cursor: default;
}

.inquiry-success {
  color: var(--off-white);
  font-size: 1rem;
  text-align: center;
  padding: 1rem 0;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--silver);
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--off-white);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--silver);
  font-size: 3rem;
  cursor: pointer;
  padding: 1rem;
  transition: color 0.3s;
  line-height: 1;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--off-white);
}

/* ---- RESPONSIVE ---- */

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6rem 2rem 2rem;
    transition: right 0.4s ease;
  }

  nav.open {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }

  nav ul li {
    width: 100%;
  }

  nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  nav a::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0 0 0 1.5rem;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, opacity 0.3s, visibility 0.3s;
  }

  .dropdown.touch-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 300px;
    transform: none;
  }

  .dropdown-menu a {
    padding: 0.6rem 0;
    font-size: 0.95rem;
  }

  .dropdown-menu a:hover {
    background: transparent;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    order: -1;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  .lightbox-prev { left: 0.5rem; font-size: 2rem; }
  .lightbox-next { right: 0.5rem; font-size: 2rem; }

  .lightbox-content {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    overflow-y: auto;
  }

  .lightbox-img {
    max-width: 90vw;
    max-height: 60vh;
  }

  .lightbox-meta {
    max-width: 90vw;
    text-align: center;
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 1.2rem;
  }

  .logo {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .gallery-page {
    padding: 7rem 1rem 3rem;
  }

  .about-page {
    padding: 7rem 1.2rem 3rem;
  }

  .contact-page {
    padding: 7rem 1.2rem 3rem;
  }

  .about-text h1,
  .contact-container h1,
  .gallery-page h1 {
    font-size: 2rem;
  }
}
