/* ===== VARIABLES ===== */
:root {
  --primary: #1a1a1a;
  --accent: #c9a96e;
  --accent-light: #dfc08a;
  --bg: #fafafa;
  --bg-dark: #111;
  --text: #333;
  --text-light: #777;
  --white: #fff;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white);
  transition: color var(--transition);
}
.navbar.scrolled .nav-logo { color: var(--primary); }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  transition: color var(--transition);
}
.navbar.scrolled .nav-links a { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* HAMBURGER */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1001; }
.hamburger span {
  display: block;
  width: 28px; height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}
.navbar.scrolled .hamburger span { background: var(--primary); }
.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); }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('https://images.unsplash.com/photo-1594794312433-05a69a98b7a0?w=1600') center/cover no-repeat;
  color: var(--white);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.6) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 0 5%; }
.hero-subtitle {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  border: 1px solid var(--accent);
  padding: 8px 24px;
}
.hero h1 {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 300;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero-desc {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.btn-hero {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid var(--accent);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all var(--transition);
}
.btn-hero:hover {
  background: var(--accent);
  color: var(--primary);
}

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.9;
}
.about-img img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

/* ===== EXHIBITIONS ===== */
.exhibitions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.exhibit-card {
  overflow: hidden;
  cursor: pointer;
}
.exhibit-img {
  overflow: hidden;
  position: relative;
}
.exhibit-img img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.exhibit-card:hover .exhibit-img img { transform: scale(1.05); }
.exhibit-info {
  padding: 24px 0;
}
.exhibit-info h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--primary);
}
.exhibit-info p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== REASSURANCE ===== */
.reassurance { background: var(--bg); }
.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.reassurance-item {
  text-align: center;
  padding: 40px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
}
.reassurance-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}
.reassurance-item svg {
  color: var(--accent);
  margin-bottom: 20px;
}
.reassurance-item h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--primary);
}
.reassurance-item p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== CTA ===== */
.cta {
  background: var(--bg-dark);
  color: var(--white);
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cta-inner p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 2px;
  margin-bottom: 36px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.5);
  padding: 50px 0;
  text-align: center;
}
.footer-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-info p {
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.footer-copy {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-copy p { font-size: 12px; }

/* ===== ANIMATIONS REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  animation: revealFallback 0.8s ease 0.5s forwards;
}
.reveal.visible { animation: none; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
}
.lightbox.active { opacity: 1; }
.lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
}

/* ===== GALERIE PAGE ===== */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  background: var(--primary);
  color: var(--white);
}
.page-header h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
}
.page-header p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
  margin-top: 12px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 60px 5%;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-item:nth-child(4) img { height: 400px; }

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info-block { margin-bottom: 36px; }
.contact-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.contact-value {
  font-size: 16px;
  color: var(--primary);
  line-height: 1.7;
}
.contact-map {
  width: 100%;
  height: 400px;
  border: none;
  filter: grayscale(0.3);
}

/* ===== ADMIN PAGE ===== */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.admin-box {
  background: var(--white);
  padding: 50px 40px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  text-align: center;
}
.admin-box h2 {
  font-size: 20px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 30px;
  font-weight: 400;
}
.admin-box input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  font-size: 14px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.3s;
}
.admin-box input:focus { border-color: var(--accent); }
.admin-box button {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}
.admin-box button:hover { background: var(--accent); }
.admin-panel {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 5%;
  text-align: center;
}
.admin-panel h2 {
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 400;
}
.admin-panel p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 30px;
}
.admin-email-field {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  font-size: 14px;
  margin-bottom: 16px;
  outline: none;
}
.btn-domain {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-domain:hover { background: var(--accent-light); }
.admin-error { color: #c0392b; font-size: 13px; margin-bottom: 12px; display: none; }
.admin-logout {
  display: inline-block;
  margin-top: 30px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  cursor: pointer;
  border: 1px solid #ddd;
  padding: 10px 24px;
  transition: all 0.3s;
}
.admin-logout:hover { border-color: var(--accent); color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .exhibitions-grid { grid-template-columns: 1fr 1fr; }
  .reassurance-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(4) { grid-column: span 1; }
  .gallery-item:nth-child(4) img { height: 320px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transition: right 0.4s ease;
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-links a { color: var(--white) !important; font-size: 15px; }
  .hamburger { display: flex; }
  .hero { min-height: 500px; }
  .hero h1 { letter-spacing: 4px; }
  .section { padding: 70px 0; }
  .exhibitions-grid { grid-template-columns: 1fr; }
  .reassurance-grid { grid-template-columns: 1fr 1fr; }
  .reassurance-item { padding: 24px 12px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
  .gallery-item img, .gallery-item:nth-child(4) img { height: 260px; }
  .about-img img { height: 300px; }
  .contact-map { height: 300px; }
}