﻿/* Reusable dark section background for themed areas */
.section-dark {
  background-color: var(--classic-charcoal) !important;
  color: var(--classic-cream) !important;
}
/* Classic Art Collection Color Palette */
:root {
  --classic-white: #ffffff;
  --classic-cream: #f8f6f2;
  --classic-beige: #e8e4dc;
  --classic-taupe: #c9c5ba;
  --classic-charcoal: #2c2c2c;
  --classic-black: #1a1a1a;
  --accent-gold: #b8935e;
  --accent-burgundy: #6b2c2c;
  --navbar-height: 72px;
  --hero-gap: 1.25rem;
  --hero-gap-sm: 1rem;
  /* Anchor scroll offset so target sections land below the navbar */
  --anchor-offset: calc(var(--navbar-height) - 32px);
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  font-family: Georgia, serif;
  background-color: var(--classic-cream);
  color: var(--classic-charcoal);
  min-height: 100vh;
  line-height: 1.6;
  margin: 0;
}

/* Ensure all anchored sections respect the navbar height */
section[id] {
  scroll-margin-top: var(--anchor-offset);
}

/* Navbar */
.navbar {
  background-color: var(--classic-charcoal) !important;
  padding: 0.5rem 2rem; /* reduced padding to fit larger logo */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--accent-gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.navbar-brand {
    font-family: Georgia, serif;
    font-size: 1.4rem;
    color: var(--accent-gold) !important;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    color: var(--classic-cream) !important;
}

.navbar-brand img {
    border: 1px solid var(--accent-gold);
    border-radius: 2px;
    padding: 2px;
    transition: all 0.3s ease;
}

/* Larger logo stretches to fill navbar height */
.nav-logo {
  height: 60px;
  width: auto;
  display: inline-block;
}

.navbar-brand:hover img {
    border-color: var(--classic-cream);
}

.navbar-nav .nav-link {
    color: var(--classic-cream) !important;
    font-family: Georgia, serif;
    font-size: 1rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 70%;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-gold) !important;
}

.navbar-nav .nav-link.active {
    color: var(--accent-gold) !important;
}

.navbar-nav .nav-link.active::after {
    width: 70%;
    background-color: var(--accent-gold);
}

.navbar-toggler {
    border: 1px solid var(--accent-gold);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(184, 147, 94, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
  /* Remove margin-top */
  /* margin-top: var(--navbar-height); */
  height: calc(100vh - var(--navbar-height));
  min-height: unset;
  padding: 0;
  background-color: var(--classic-cream);
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-section .container {
  max-height: 100%;
}

.hero-section .row {
  max-height: 100%;
  align-items: center;
}

.hero-image-container {
  border: 12px solid var(--classic-white);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: all 0.4s ease;
  overflow: hidden;
  max-height: calc(100vh - 200px);
}

.hero-image-container:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.hero-image-container:hover .hero-image {
  opacity: 0.95;
}

.hero-content {
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hero-title {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: normal;
  color: var(--classic-black);
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.hero-text {
  font-family: Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--classic-charcoal);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-style: italic;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 12px 32px;
  font-family: Georgia, serif;
  font-size: 1rem;
  text-transform: capitalize;
  border: 2px solid var(--classic-charcoal);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.hero-btn-primary {
  background-color: var(--classic-charcoal);
  color: var(--classic-white);
}

.hero-btn-primary:hover {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--classic-white);
  text-decoration: none;
}

.hero-btn-secondary {
  background-color: transparent;
  color: var(--classic-charcoal);
}

.hero-btn-secondary:hover {
  background-color: var(--classic-charcoal);
  color: var(--classic-white);
  text-decoration: none;
}

/* Social media icons hover effects */
.hero-content a[title]:hover,
.contact-form + div a:hover {
  color: var(--accent-gold) !important;
}

/* Philosophy Section */
.philosophy-section {
  background-color: var(--classic-charcoal);
  padding: 80px 0;
  overflow: hidden;
}

.philosophy-title {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: normal;
  color: var(--classic-white);
  letter-spacing: 0.5px;
  margin-bottom: 2rem;
}

.philosophy-text {
  font-family: Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--classic-beige);
  line-height: 1.9;
  margin-bottom: 2rem;
}

.philosophy-quote {
  border-left: 4px solid var(--accent-gold);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--classic-cream);
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 0;
}

/* Philosophy Media */
.philosophy-media-container {
  border: 8px solid var(--classic-white);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: all 0.4s ease;
  background-color: #000;
}

.philosophy-media-container:hover {
  box-shadow: 0 12px 40px rgba(184, 147, 94, 0.3);
}

.philosophy-image {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.philosophy-image:hover {
  opacity: 0.95;
}

.philosophy-video {
  width: 100%;
  height: auto;
  display: block;
  background-color: #000;
}

/* About Section - Circular Profile */
.about-profile {
  border: 8px solid var(--classic-white);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  background-color: #000;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
}
.about-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Exhibitions Section */
.exhibitions-section {
  background-color: var(--classic-cream);
  padding: 80px 0;
}

.exhibitions-title {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: normal;
  color: var(--classic-black);
  letter-spacing: 0.5px;
}

.exhibition-media {
  border: 8px solid var(--classic-white);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  background: #000;
  transition: box-shadow 0.3s ease;
}

.exhibition-media:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.exhibition-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
}

.exhibition-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gallery Section */
.gallery-section {
  background-color: var(--classic-cream);
  padding: 80px 0;
}

.gallery-title {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: normal;
  color: var(--classic-black);
  letter-spacing: 0.5px;
  margin-bottom: 3rem;
}

/* Featured Artworks */
.featured-row {
  margin-bottom: 4rem !important;
}

/* Gallery Filters (layout handled by Bootstrap utilities in HTML) */

.filter-btn {
  font-family: Georgia, serif;
  font-size: 1rem;
  padding: 10px 24px;
  border: 2px solid var(--classic-cream);
  background-color: transparent;
  color: var(--classic-cream);
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--classic-cream);
  color: var(--classic-charcoal);
}

.filter-btn.active {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--classic-white);
}

/* Gallery Grid - Masonry Style */
.gallery-grid {
  column-count: 3;
  column-gap: 20px;
}

.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 20px;
  overflow: hidden;
  background-color: var(--classic-white);
  border: 8px solid var(--classic-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  cursor: pointer;
}

.gallery-item.featured {
  border: 10px solid var(--classic-white);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.gallery-item.featured:hover {
  box-shadow: 0 12px 40px rgba(184, 147, 94, 0.2);
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: var(--classic-white);
  margin: 0 0 5px 0;
  font-weight: normal;
  letter-spacing: 0.5px;
}

.gallery-item-year {
  font-family: Georgia, serif;
  font-size: 0.9rem;
  color: var(--classic-beige);
  margin: 0;
  font-style: italic;
}

.gallery-item.hidden {
  display: none;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 60px;
  padding: 20px;
}

.pagination-btn {
  background-color: var(--classic-cream);
  color: var(--classic-charcoal);
  border: 2px solid var(--classic-cream);
  padding: 12px 28px;
  font-family: Georgia, serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.pagination-btn:hover:not(:disabled) {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--classic-white);
}

.pagination-btn:disabled {
  background-color: var(--classic-taupe);
  border-color: var(--classic-taupe);
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination-info {
  font-family: Georgia, serif;
  font-size: 1rem;
  color: var(--classic-cream);
  font-weight: normal;
  letter-spacing: 0.5px;
}

/* Artwork Lightbox Modal */
.artwork-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.artwork-modal.active {
  display: block;
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--classic-white);
  font-size: 3rem;
  cursor: pointer;
  z-index: 2002;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  line-height: 1;
}

.modal-close:hover {
  color: var(--accent-gold);
}

.modal-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--classic-white);
  color: var(--classic-white);
  font-size: 3rem;
  cursor: pointer;
  z-index: 2002;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
}

.modal-nav:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

.modal-content-wrapper {
  max-width: 1400px;
  margin: 80px auto 40px;
  padding: 0 100px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
  max-height: calc(100vh - 120px);
}

.modal-image-container {
  background: linear-gradient(
    135deg,
    rgba(44, 44, 44, 0.4) 0%,
    rgba(26, 26, 26, 0.6) 100%
  );
  padding: 20px;
  border: 1px solid rgba(184, 147, 94, 0.2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  max-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  max-height: calc(100vh - 200px);
}

.modal-details {
  color: var(--classic-white);
  padding: 20px 0;
}

.modal-title {
  font-family: Georgia, serif;
  font-size: 2.5rem;
  font-weight: normal;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  color: var(--classic-white);
}

.modal-year {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  color: var(--accent-gold);
  font-style: italic;
  margin-bottom: 30px;
}

.modal-info {
  margin-bottom: 25px;
  line-height: 1.8;
}

.modal-info p {
  margin: 8px 0;
  font-size: 1.05rem;
}

.modal-info strong {
  color: var(--classic-beige);
}

.modal-description {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--classic-cream);
  margin-bottom: 30px;
  font-style: italic;
}

.modal-inquire-btn {
  background-color: var(--accent-gold);
  color: var(--classic-white);
  border: 2px solid var(--accent-gold);
  padding: 14px 40px;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  width: 100%;
}

.modal-inquire-btn:hover {
  background-color: transparent;
  color: var(--accent-gold);
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .navbar {
    padding: 0.5rem 1.5rem;
  }
  .navbar-brand {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 60px;
    --anchor-offset: 60px;
  }

  .navbar {
    padding: 0.5rem 1rem;
  }
  .nav-logo { height: 50px; }

  .hero-section {
    padding: 2rem 1.25rem;
    height: auto;
    min-height: calc(100svh - var(--navbar-height));
    background: var(--classic-cream);
    justify-content: flex-start;
  }

  .hero-image-container {
    display: none;
  }

  .hero-content {
    padding: 0;
    background: transparent;
    border-radius: 0;
    margin: 0 auto;
    box-shadow: none;
    max-width: 640px;
    width: 100%;
  }

  .hero-title {
    margin-bottom: 2rem;
  }
  .hero-text {
    margin-bottom: 2.5rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 1.5rem;
  }
  .hero-btn {
    width: 100%;
    text-align: center;
    padding: 14px 32px;
  }

  .philosophy-section {
    padding: 60px 20px;
  }
  .philosophy-media-container {
    margin-bottom: 2rem;
    border-width: 6px;
  }

  .exhibitions-section {
    padding: 60px 20px;
  }
  .exhibition-media {
    border-width: 6px;
  }

  #gallery {
    padding: 60px 20px !important;
  }
  .gallery-grid {
    column-count: 2;
    column-gap: 15px;
  }
  .gallery-item {
    margin-bottom: 15px;
    border-width: 6px;
  }
  .gallery-item.featured {
    border-width: 8px;
  }
  .filter-btn {
    font-size: 0.9rem;
    padding: 8px 18px;
  }

  .pagination-container {
    flex-direction: column;
    gap: 1rem;
    margin-top: 40px;
  }
  .pagination-btn {
    width: 100%;
    max-width: 300px;
  }

  .modal-content-wrapper {
    grid-template-columns: 1fr;
    padding: 0 20px;
    margin: 60px auto 20px;
    gap: 20px;
    max-height: none;
  }
  .modal-image-container {
    max-height: 60vh;
  }
  .modal-image {
    max-height: 60vh;
  }
  .modal-nav {
    display: none;
  }
  .modal-close {
    top: 10px;
    right: 10px;
    font-size: 2.5rem;
  }
  .modal-title {
    font-size: 2rem;
  }
  .modal-inquire-btn {
    position: sticky;
    bottom: 0;
    margin-bottom: 0;
  }

  /* Smaller circular profile on mobile/tablet */
  .about-profile {
    max-width: 280px;
  }
}

@media (max-width: 576px) {
  :root {
    --navbar-height: 56px;
    --anchor-offset: 56px;
  }

  .navbar {
    padding: 0.5rem;
  }
  .navbar-brand {
    font-size: 1.1rem;
  }
  .nav-logo { height: 48px; }
  .philosophy-section {
    padding: 40px 15px;
  }
  .philosophy-quote {
    padding-left: 1rem;
    font-size: 1rem;
  }
  .exhibitions-section {
    padding: 40px 15px;
  }
  #gallery {
    padding: 40px 15px !important;
  }
  .gallery-grid {
    column-count: 1;
    column-gap: 0;
  }
  .gallery-item {
    margin-bottom: 20px;
  }
}

/* Navbar (collapsed) hover underline alignment fix) */
@media (max-width: 1199.98px) {
  /* When the navbar is collapsed (below xl), align the underline to the left */
  .navbar-collapse .navbar-nav .nav-link {
    display: inline-block;
  }
  .navbar-collapse .navbar-nav .nav-link::after {
    left: 0;
    transform: none;
  }
  .navbar-collapse .navbar-nav .nav-link:hover::after,
  .navbar-collapse .navbar-nav .nav-link.active::after {
    width: 100%;
  }
}
