@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Jost:wght@300;400&display=swap');

:root {
  /* Light palette — gallery walls */
  --gray-light:   #f0f0ee;   /* body background */
  --gray-mid:     #e4e4e1;   /* card / panel bg */
  --gray-dark:    #c8c8c4;   /* borders, dividers */
  --gray-nav:     #dcdcd8;   /* nav bar bg */

  /* Text */
  --text-dark:    #2a2a2a;   /* primary text */
  --text-mid:     #5a5a5a;   /* secondary text */
  --text-dim:     #9a9a96;   /* labels, captions */

  /* Jewel accents drawn from the mandalas */
  --accent-teal:  #3a7d8c;   /* primary accent — deep teal/blue */
  --accent-gold:  #b8860b;   /* secondary accent — antique gold */
  --accent-hover: #2d6270;   /* teal darkened for hover */

  --nav-height: 48px;
}

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

body {
  background-color: var(--gray-light);
  color: var(--text-dark);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
#header {
  background: var(--gray-light);
  border-bottom: 1px solid var(--gray-dark);
  padding: 28px 40px 22px;
  text-align: center;
}

#site-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 4.5vw, 3.4rem);
  letter-spacing: 0.22em;
  color: var(--text-dark);
  text-transform: uppercase;
}

#site-title span {
  color: var(--text-dim);
  letter-spacing: 0.1em;
  font-weight: 300;
}

/* ── NAV ── */
nav {
  background-color: var(--gray-nav);
  border-bottom: 1px solid var(--gray-dark);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0;
}

nav ul li a {
  display: block;
  padding: 14px 32px;
  color: var(--text-mid);
  text-decoration: none;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--accent-teal);
  transition: left 0.25s, right 0.25s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  left: 20%;
  right: 20%;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--accent-teal);
  background-color: rgba(58, 125, 140, 0.05);
}

/* ── MAIN CONTENT AREA ── */
#content {
  flex: 1;
  position: relative;
}

/* ── PAGES ── */
.page {
  display: none;
  min-height: 480px;
}

.page.active {
  display: block;
}

/* ── HOME SLIDESHOW ── */
#home-page {
  position: relative;
  overflow: hidden;
}

.slideshow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 520px;
}

.slide-panel {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.slide-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  pointer-events: none;
}

.slide-layer.visible {
  opacity: 1;
  pointer-events: auto;
}

.slide-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-panel .slide-layer:first-child {
  opacity: 1;
}

/* ── INTERIOR PAGE LAYOUT ── */
.interior-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  align-items: start;
}

.interior-content {
  padding: 48px 56px;
}

.interior-bg {
  position: relative;
  overflow: hidden;
}

.interior-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* About page: stack images vertically in right panel */
.about-gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 48px 40px 48px 0;
}

.about-gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.interior-content .accent-img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: 120px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  margin-top: 28px;
  opacity: 0.7;
}

.page-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--accent-teal);
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* ── ABOUT PAGE ── */
#about-page .interior-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 18px;
  max-width: 520px;
}

#about-page .interior-content a {
  color: var(--accent-teal);
  text-decoration: none;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--accent-teal);
  padding-bottom: 2px;
  transition: color 0.2s;
}

#about-page .interior-content a:hover {
  color: var(--accent-hover);
}

/* ── CONTACTS PAGE ── */
#contacts-page .contact-block {
  margin-top: 8px;
}

#contacts-page .contact-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

#contacts-page .contact-detail {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

#contacts-page .contact-detail a {
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}

#contacts-page .contact-detail a:hover {
  color: var(--accent-teal);
}

#contacts-page .contact-note {
  margin-top: 28px;
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 400px;
  font-style: italic;
}

/* ── GALLERY PAGE ── */
#gallery-page {
  padding: 40px;
}

#gallery-page .page-label {
  margin-bottom: 20px;
}

/* Category tabs */
.gallery-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--gray-dark);
}

.gallery-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 10px 22px;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.gallery-tab:hover {
  color: var(--accent-teal);
}

.gallery-tab.active {
  color: var(--accent-teal);
  border-bottom-color: var(--accent-teal);
}

/* Category info block (e.g. Flutterpin purchase info) */
.category-info {
  text-align: center;
  padding: 12px 20px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-mid);
  font-style: italic;
}

.category-info a {
  color: var(--accent-teal);
  text-decoration: none;
}

.category-info a:hover {
  text-decoration: underline;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--gray-mid);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--gray-mid);
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
  opacity: 0.9;
}

/* Category badge */
.gallery-item .category-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.82);
  color: var(--text-mid);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .category-badge {
  opacity: 1;
}

/* ── LIGHTBOX ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(240, 240, 238, 0.96);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#lightbox.open {
  display: flex;
}

#lightbox img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 8px 48px rgba(0,0,0,0.15);
  cursor: zoom-in;
  transition: transform 0.2s ease;
  user-select: none;
  -webkit-user-drag: none;
}

#lightbox .lb-caption {
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  margin-top: 18px;
  text-transform: uppercase;
}

#lightbox .lb-close {
  position: absolute;
  top: 24px;
  right: 36px;
  color: var(--text-dim);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

#lightbox .lb-close:hover {
  color: var(--text-dark);
}

#lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 2.8rem;
  cursor: pointer;
  padding: 20px;
  transition: color 0.2s;
  user-select: none;
  font-weight: 300;
}

#lightbox .lb-nav:hover { color: var(--text-dark); }
#lightbox .lb-prev { left: 10px; }
#lightbox .lb-next { right: 10px; }

/* ── FOOTER ── */
footer {
  background-color: var(--gray-nav);
  border-top: 1px solid var(--gray-dark);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-mid);
  letter-spacing: 0.08em;
}

.footer-ig {
  color: var(--text-mid);
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
  display: flex;
  align-items: center;
}

.footer-ig:hover {
  opacity: 1;
  color: var(--accent-teal);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .slideshow {
    grid-template-columns: repeat(2, 1fr);
    height: 380px;
  }

  .slideshow .slide-panel:nth-child(n+3) {
    display: none;
  }

  .interior-page {
    grid-template-columns: 1fr;
    position: relative;
  }

  .interior-bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.3;
  }

  .interior-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .interior-content {
    position: relative;
    z-index: 1;
    background: radial-gradient(ellipse at center,
      rgba(240,240,238,0.85) 20%,
      rgba(240,240,238,0.65) 55%,
      rgba(240,240,238,0.0) 100%);
    padding: 40px 40px 80px;
    min-height: 520px;
  }

  #about-page .interior-page,
  #contacts-page .interior-page {
    min-height: 700px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  nav ul li a {
    padding: 14px 16px;
    font-size: 0.7rem;
  }

  .gallery-tabs {
    flex-wrap: wrap;
  }

  .gallery-tab {
    padding: 10px 14px;
    font-size: 0.68rem;
  }
}

@media (max-width: 600px) {
  .slideshow {
    grid-template-columns: 1fr;
    height: 320px;
  }

  .slideshow .slide-panel:nth-child(n+2) {
    display: none;
  }

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

  #site-title {
    font-size: 1.3rem;
    letter-spacing: 0.12em;
  }

  #gallery-page {
    padding: 24px 16px;
  }
}
