/**
 * Suite Elan - Shared Custom Styles
 * Design System: "Coastal Editorial"
 */

/* ==========================================================================
   Base & Typography
   ========================================================================== */

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #fbf9f4;
  color: #1b1c19;
}

h1, h2, h3, h4, h5, h6,
.font-serif,
.font-headline {
  font-family: 'Noto Serif', serif;
}

/* Selection colors */
::selection {
  background-color: #fddba7;
  color: #281900;
}

/* ==========================================================================
   Material Icons
   ========================================================================== */

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ==========================================================================
   Glassmorphism Navigation
   ========================================================================== */

.glass-nav {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* ==========================================================================
   Scrollbar Hiding (for date scrubber, horizontal scrolls)
   ========================================================================== */

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   Editorial Shadow (subtle, magazine-like)
   ========================================================================== */

.editorial-shadow {
  box-shadow: 0 20px 50px rgba(27, 28, 25, 0.05);
}

/* ==========================================================================
   Brass Underline Hover Effect
   ========================================================================== */

.brass-underline {
  position: relative;
  display: inline-block;
}

.brass-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: #735a31;
  transition: width 0.3s ease;
}

.brass-underline:hover::after {
  width: 100%;
}

/* Active nav link */
.nav-active {
  color: #735a31;
  border-bottom: 1px solid rgba(115, 90, 49, 0.3);
  padding-bottom: 0.25rem;
}

/* ==========================================================================
   Image Hover Effects
   ========================================================================== */

.img-hover-zoom {
  overflow: hidden;
}

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

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

/* ==========================================================================
   Lightbox
   ========================================================================== */

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

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

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10;
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
}

/* Hide nav buttons on mobile, use swipe instead */
@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 2.5rem;
    height: 2.5rem;
  }

  .lightbox-prev {
    left: 0.75rem;
  }

  .lightbox-next {
    right: 0.75rem;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu a {
  font-family: 'Noto Serif', serif;
  font-size: 1.5rem;
  color: #1b1c19;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: #735a31;
}

/* Hamburger button */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #002446;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* ==========================================================================
   Form Inputs (minimalist underline style)
   ========================================================================== */

.input-underline {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(115, 119, 127, 0.3);
  padding: 0.75rem 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  color: #1b1c19;
  transition: border-color 0.3s ease;
}

.input-underline:focus {
  outline: none;
  border-bottom-color: #735a31;
}

.input-underline::placeholder {
  color: #73777f;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Tonal surface shift for sections */
.tonal-shift {
  background-color: #f5f3ee;
}

/* Asymmetric offset element */
.asymmetric-offset {
  position: relative;
}

.asymmetric-offset::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #eae8e3;
  z-index: -1;
}

/* Smooth page transitions */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #735a31;
  outline-offset: 2px;
}
