/* ============================================
   lifacollective.lat — Gallery / Exhibition Theme
   Color System: Slate #2f3640 | Terracotta #c44569 | Off-white #f5f6fa
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background-color: #2f3640;
  color: #f5f6fa;
  line-height: 1.7;
  min-height: 100vh;
  padding-right: 60px;
  overflow-x: hidden;
}

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

a {
  color: #c44569;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #e06a8b;
}

/* --- Vertical Navigation (Right Edge) --- */
.vertical-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 60px;
  height: 100vh;
  background-color: #252a32;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 1000;
  padding: 20px 0;
}

.vertical-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #f5f6fa;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.vertical-nav a::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background-color: #c44569;
  border-radius: 2px;
  transition: height 0.3s ease;
}

.vertical-nav a:hover,
.vertical-nav a.active {
  color: #c44569;
}

.vertical-nav a:hover::after,
.vertical-nav a.active::after {
  height: 60%;
}

.vertical-nav a .nav-label {
  display: inline;
}

.vertical-nav a .nav-icon {
  display: none;
}

/* --- SVG Favicon (inline) --- */
.favicon-svg {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* --- Layout Containers --- */
.exhibition-hall {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}

.hall-header {
  text-align: center;
  margin-bottom: 60px;
  padding-top: 40px;
}

.hall-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #f5f6fa;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hall-header .hall-subtitle {
  font-size: 1.1rem;
  color: #c44569;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

.hall-header .hall-number {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #7a8899;
  margin-bottom: 8px;
}

/* --- Exhibit Cards --- */
.exhibit {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 60px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #353b45;
  border: 1px solid #3f4652;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exhibit:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.exhibit-reverse {
  flex-direction: row-reverse;
}

.exhibit-visual {
  flex: 0 0 40%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.exhibit-visual svg {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
}

.exhibit-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.exhibit-content .exhibit-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c44569;
  margin-bottom: 12px;
  font-weight: 600;
}

.exhibit-content h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #f5f6fa;
  margin-bottom: 16px;
  line-height: 1.3;
}

.exhibit-content p {
  font-size: 0.95rem;
  color: #d0d3dd;
  margin-bottom: 12px;
  line-height: 1.8;
}

.exhibit-content p:last-child {
  margin-bottom: 0;
}

.exhibit-content .exhibit-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 24px;
  background-color: #c44569;
  color: #f5f6fa;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
}

.exhibit-content .exhibit-cta:hover {
  background-color: #a33a58;
}

/* --- Callout / Info Box --- */
.exhibition-callout {
  background: linear-gradient(135deg, #353b45 0%, #3f4652 100%);
  border-left: 4px solid #c44569;
  padding: 32px 36px;
  margin: 40px 0;
  border-radius: 0 8px 8px 0;
}

.exhibition-callout h3 {
  font-size: 1.2rem;
  color: #c44569;
  margin-bottom: 12px;
}

.exhibition-callout p {
  color: #d0d3dd;
  line-height: 1.8;
}

/* --- Stats Row --- */
.exhibition-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.stat-card {
  background-color: #353b45;
  border: 1px solid #3f4652;
  padding: 28px 20px;
  text-align: center;
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

.stat-card:hover {
  border-color: #c44569;
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #c44569;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: #a0abb8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Gallery Intro (Homepage Hero Alternative) --- */
.gallery-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.gallery-intro p {
  font-size: 1.1rem;
  color: #d0d3dd;
  line-height: 1.9;
  margin-bottom: 16px;
}

.gallery-intro .intro-highlight {
  color: #c44569;
  font-weight: 500;
}

/* --- Contact Exhibit Specific --- */
.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-details .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-details .contact-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-details .contact-item div {
  flex: 1;
}

.contact-details .contact-item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c44569;
  margin-bottom: 2px;
}

.contact-details .contact-item span {
  color: #d0d3dd;
  font-size: 0.9rem;
}

/* --- Footer / Exit --- */
.exhibition-exit {
  text-align: center;
  padding: 40px 20px;
  margin-top: 40px;
  border-top: 1px solid #3f4652;
}

.exhibition-exit p {
  font-size: 0.85rem;
  color: #7a8899;
}

.exhibition-exit a {
  color: #c44569;
}

.exhibition-exit a:hover {
  text-decoration: underline;
}

/* --- Privacy & Terms - Styled Exhibit Sections --- */
.legal-exhibit {
  display: block;
  padding: 40px;
}

.legal-exhibit h2 {
  font-size: 1.3rem;
  color: #c44569;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #3f4652;
}

.legal-exhibit p {
  color: #d0d3dd;
  margin-bottom: 14px;
  line-height: 1.8;
}

.legal-exhibit ul,
.legal-exhibit ol {
  color: #d0d3dd;
  margin: 12px 0 12px 24px;
  line-height: 1.8;
}

.legal-exhibit li {
  margin-bottom: 8px;
}

/* --- About Page Team Grid --- */
.team-exhibits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.team-member {
  background-color: #353b45;
  border: 1px solid #3f4652;
  border-radius: 6px;
  padding: 30px;
  text-align: center;
  transition: border-color 0.3s ease;
}

.team-member:hover {
  border-color: #c44569;
}

.team-member .member-visual {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
}

.team-member h3 {
  font-size: 1.1rem;
  color: #f5f6fa;
  margin-bottom: 4px;
}

.team-member .member-role {
  font-size: 0.8rem;
  color: #c44569;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.team-member p {
  font-size: 0.85rem;
  color: #a0abb8;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background-color: #353b45;
  border: 1px solid #3f4652;
  border-radius: 6px;
  padding: 32px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  border-color: #c44569;
  transform: translateY(-3px);
}

.service-card .service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.1rem;
  color: #f5f6fa;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.88rem;
  color: #a0abb8;
  line-height: 1.7;
}

/* --- Contact Form --- */
.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  font-size: 0.85rem;
  color: #a0abb8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  background-color: #2f3640;
  border: 1px solid #3f4652;
  border-radius: 4px;
  color: #f5f6fa;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #c44569;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  padding: 12px 28px;
  background-color: #c44569;
  color: #f5f6fa;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Inter', sans-serif;
  justify-self: start;
}

.contact-form button:hover {
  background-color: #a33a58;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  body {
    padding-right: 0;
    padding-bottom: 56px;
  }

  .vertical-nav {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 56px;
    flex-direction: row;
    gap: 0;
    justify-content: space-around;
    padding: 0;
    background-color: #252a32;
    border-top: 1px solid #3f4652;
  }

  .vertical-nav a {
    transform: none;
    writing-mode: horizontal-tb;
    width: auto;
    height: 100%;
    padding: 8px 10px;
    font-size: 0.65rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }

  .vertical-nav a .nav-label {
    display: none;
  }

  .vertical-nav a .nav-icon {
    display: block;
    font-size: 1.1rem;
  }

  .vertical-nav a::after {
    display: none;
  }

  .vertical-nav a:hover::after,
  .vertical-nav a.active::after {
    display: none;
  }

  .exhibition-hall {
    padding: 30px 16px;
  }

  .hall-header h1 {
    font-size: 2rem;
  }

  .exhibit {
    flex-direction: column;
    margin-bottom: 40px;
  }

  .exhibit-reverse {
    flex-direction: column;
  }

  .exhibit-visual {
    flex: none;
    min-height: 180px;
  }

  .exhibit-visual svg {
    min-height: 180px;
  }

  .exhibit-content {
    padding: 24px;
  }

  .exhibit-content h2 {
    font-size: 1.3rem;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .legal-exhibit {
    padding: 24px;
  }
}

@media (min-width: 769px) {
  .vertical-nav a .nav-icon {
    display: none;
  }
}

/* --- Additional Subtle Animations --- */
@keyframes exhibitFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.exhibit {
  animation: exhibitFadeIn 0.6s ease-out both;
}

.exhibit:nth-child(2) { animation-delay: 0.1s; }
.exhibit:nth-child(3) { animation-delay: 0.2s; }
.exhibit:nth-child(4) { animation-delay: 0.3s; }
.exhibit:nth-child(5) { animation-delay: 0.4s; }

/* Selection styling */
::selection {
  background-color: #c44569;
  color: #f5f6fa;
}

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

::-webkit-scrollbar-track {
  background: #2f3640;
}

::-webkit-scrollbar-thumb {
  background: #3f4652;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555d6b;
}
