:root {
  --cream: #D4C89A;
  --cream-light: #EAE2C6;
  --cream-dark: #B8A96A;
  --slate: #4A4A42;
  --slate-dark: #2E2E28;
  --slate-light: #6E6E64;
  --slate-xlight: #9A9A90;
  --off-white: #F5F2EA;
  --warm-white: #FAFAF8;
  --line-med: rgba(74,74,66,0.22);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--warm-white);
  color: var(--slate-dark);
  overflow-x: hidden;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4rem;
  background: #030402;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid rgba(212,200,154,0.18);
  transition: padding 0.35s ease;
}

nav.scrolled { padding: 1rem 4rem; }

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-image {
  width: clamp(145px, 14vw, 205px);
  height: auto;
  display: block;
}

.nav-links {
  display: flex; gap: 2.8rem; list-style: none;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-links a {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(212,200,154,0.72); text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 0.5px; background: var(--cream-dark);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--cream-light); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }

.nav-cta {
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #000;
  background: var(--cream);
  padding: 0.75rem 1.8rem;
  text-decoration: none;
  transition: background 0.2s, letter-spacing 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--cream-light); letter-spacing: 0.28em; }

.nav-hamburger {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 0.5px;
  background: var(--cream); transition: all 0.3s;
}

.page-hero {
  padding: 9.5rem 4rem 4.5rem;
  background:
    linear-gradient(180deg, rgba(212,200,154,0.28) 0%, rgba(250,250,248,0.96) 56%, var(--warm-white) 100%);
  text-align: center;
}

.page-tag {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--cream-dark);
  margin-bottom: 1.2rem;
}

.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 300;
  line-height: 1.02;
  margin-bottom: 1.2rem;
}

.page-intro {
  max-width: 820px;
  margin: 0 auto;
  font-size: 13px;
  line-height: 2.1;
  color: var(--slate-light);
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--cream-dark) 30%, var(--cream-dark) 70%, transparent 100%);
  opacity: 0.35;
}

.gallery-wrap {
  padding: 4.5rem 1.2rem 6rem;
}

.gallery-sections {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.gallery-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.gallery-section-header {
  text-align: center;
}

.gallery-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 3.8vw, 4rem);
  font-weight: 300;
  margin-bottom: 0.6rem;
}

.gallery-section-subtitle {
  max-width: 720px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.9;
  color: var(--slate-light);
}

.gallery-scroll-hint {
  margin-top: 0.7rem;
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--slate-xlight);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

.gallery-grid-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 2px;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(184,169,106,0.55) transparent;
}

.gallery-grid-scroll::-webkit-scrollbar {
  height: 8px;
}

.gallery-grid-scroll::-webkit-scrollbar-thumb {
  background: rgba(184,169,106,0.55);
}

.gallery-carousel {
  position: relative;
}

.gallery-carousel .gallery-grid-scroll {
  padding-left: 0;
  padding-right: 0;
  grid-auto-columns: calc((100% - 12px) / 7);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(3,4,2,0.72);
  color: var(--cream-light);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.gallery-nav:hover {
  background: var(--cream);
  color: #030402;
}

.gallery-nav-prev {
  left: -0.2rem;
}

.gallery-nav-next {
  right: -0.2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: #030402;
  min-height: 280px;
  text-decoration: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.92);
}

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

.gallery-item-small,
.gallery-item-small img {
  min-height: 150px;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(3,4,2,0.88);
  z-index: 400;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1200px);
  max-height: 88vh;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid rgba(234,226,198,0.14);
  background: #030402;
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 401;
  background: rgba(212,200,154,0.15);
  border: 0.5px solid rgba(212,200,154,0.35);
  color: var(--cream-light);
  font-size: 3rem;
  line-height: 1;
  width: 56px;
  height: 56px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-arrow:hover { background: rgba(212,200,154,0.3); }
.lightbox-arrow.hidden { visibility: hidden; }
.lightbox-arrow-prev { left: 1.5rem; }
.lightbox-arrow-next { right: 1.5rem; }

@media (max-width: 768px) {
  .lightbox-arrow { display: none; }
}

.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: var(--cream);
  color: #030402;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 401;
}

.lightbox-nav {
  position: relative;
  z-index: 2;
  background: rgba(212,200,154,0.15);
  border: 0.5px solid rgba(212,200,154,0.3);
  color: var(--cream-light);
  font-size: 2.2rem;
  line-height: 1;
  width: 52px;
  height: 52px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover { background: rgba(212,200,154,0.3); }
.lightbox-nav.hidden { visibility: hidden; }

footer {
  padding: 5rem 4rem 2.5rem;
  background: #030402;
  position: relative;
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 0.5px solid rgba(212,200,154,0.12);
  position: relative;
  z-index: 1;
}

.footer-brand-logo {
  width: min(100%, 280px);
  height: auto;
  display: block;
  margin-bottom: 1.2rem;
}

.footer-brand-desc {
  font-size: 13px; font-weight: 300;
  line-height: 1.9; color: rgba(212,200,154,0.45);
  max-width: 280px;
}

.footer-col-title {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--cream); margin-bottom: 1.5rem;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links.services-list { gap: 0.65rem; }
.footer-links a {
  font-size: 13px; font-weight: 300;
  color: rgba(212,200,154,0.5); text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cream-light); }

.footer-links.services-list a {
  position: relative;
  padding-left: 0.9rem;
}

.footer-links.services-list a::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cream-dark);
}

.footer-contact { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-contact-item {
  font-size: 13px; font-weight: 300;
  color: rgba(212,200,154,0.5); line-height: 1.6;
}
.footer-contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-item a:hover { color: var(--cream-light); }
.footer-contact-item strong {
  display: block; font-size: 10px; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(212,200,154,0.3); margin-bottom: 3px;
}

.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between; padding-top: 2.5rem;
  position: relative; z-index: 1;
}

.footer-copy {
  font-size: 12px; letter-spacing: 0.18em;
  color: rgba(212,200,154,0.3);
}

.footer-social {
  display: flex; gap: 1.5rem;
}
.footer-social a {
  font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(212,200,154,0.4); text-decoration: none;
  transition: color 0.2s;
  display: flex; align-items: center; gap: 0.6rem;
}
.footer-social a:hover { color: var(--cream-light); }

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 900px) {
  nav,
  .page-hero,
  footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .gallery-wrap {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  nav.scrolled { padding: 0.9rem 1.5rem; }
  .nav-links { display: none; }
  .nav-links.menu-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 100%; left: 0; right: 0;
    transform: none;
    background: #030402;
    padding: 2rem 1.5rem;
    gap: 1.8rem;
    z-index: 300;
    border-bottom: 0.5px solid rgba(212,200,154,0.2);
  }
  .nav-links.menu-open a { font-size: 11px; text-align: center; }
  .nav-links.menu-open li { text-align: center; }
  .nav-cta { display: none !important; }
  .nav-hamburger { display: flex; }
  .nav-logo-image { width: 132px; }
  footer { padding: 4rem 1.5rem 2.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .footer-brand-desc { font-size: 10px; }
  .footer-col-title { font-size: 8.5px; }
  .footer-links a { font-size: 10px; }
  .footer-contact-item { font-size: 10px; }
  .footer-contact-item strong { font-size: 8px; }
  .footer-copy { font-size: 9px; }
  .footer-social a { font-size: 9px; }

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

  .gallery-grid-scroll {
    grid-auto-columns: calc((100vw - 1.2rem * 2) / 2.5);
  }

  .gallery-carousel .gallery-grid-scroll {
    padding-left: 0;
    padding-right: 0;
    grid-auto-columns: calc((100vw - 1.2rem * 2) / 2.5);
  }

  .gallery-nav {
    width: 34px;
    height: 34px;
  }

  .gallery-nav-prev {
    left: 0.2rem;
  }

  .gallery-nav-next {
    right: 0.2rem;
  }

  .gallery-item,
  .gallery-item img {
    min-height: 360px;
  }

  .gallery-item-small,
  .gallery-item-small img {
    min-height: 260px;
  }
}
