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

:root {
  --gold: #c9a84c;
  --gold-light: #e2c47a;
  --black: #0a0a0a;
  --dark: #111111;
  --dark2: #1a1a1a;
  --light: #f5f1eb;
  --lightgrey: #f0eeea;
  --white: #ffffff;
  --gray: #888;
  --font-display: "Playfair Display", serif;
  --font-body: "Cormorant Garamond", serif;
  --font-sans: "Oswald", sans-serif;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark);
  font-size: 18px;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

.gold-ornament {
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--gold);
  display: block;
  text-align: center;
  margin: 10px auto 0;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 
   NAVBAR
 */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 60px;
  background: rgba(10, 10, 10, 0);
  transition:
    background 0.4s,
    padding 0.4s;
}
#navbar.scrolled {
  background: rgba(10, 10, 10, 0.96);
  padding: 14px 60px;
  backdrop-filter: blur(8px);
}
/* On this page the nav starts solid (no hero image) */
#navbar.solid {
  background: rgba(10, 10, 10, 0.97);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}
.nav-cta {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 11px 26px;
  transition: background 0.3s;
}
.nav-cta:hover {
  background: var(--gold-light);
}
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* 
   PAGE TITLE BAR
 */
#page-title-bar {
  margin-top: 70px; /* navbar height */
  padding: 28px 60px;
  background: #f7f7f9;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#page-title-bar h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
}
.breadcrumb a {
  color: var(--dark);
  transition: color 0.3s;
}
.breadcrumb a:hover {
  color: var(--gold);
}

/* 
   GALLERY SECTION
 */
#gallery-section {
  padding: 70px 60px 80px;
  background: var(--white);
}

.gallery-header {
  text-align: center;
  margin-bottom: 48px;
}
.gallery-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
}

/*  Mosaic Grid  */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 4px;
  max-width: 1100px;
  margin: 0 auto 50px;
}
.gallery-mosaic.hidden {
  display: none;
}

/* Base item */
.g-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--dark2);
}

/* Size modifiers */
.g-tall {
  grid-row: span 2;
}
.g-wide {
  grid-column: span 2;
}

/* Inner - the visual panel */
.g-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  transition:
    filter 0.5s,
    transform 0.6s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(201, 168, 76, 0.12);
}
.g-item:hover .g-inner {
  filter: grayscale(20%);
  transform: scale(1.06);
}

/* CSS-generated visuals (replace with real images via background-image) */
.gi-1 { background-image: url("https://images.unsplash.com/photo-1517837016564-bfc465599c7f?auto=format&fit=crop&w=1200&q=80"); }
.gi-2 { background-image: url("https://images.unsplash.com/photo-1599351431202-1e0f0137899a?auto=format&fit=crop&w=1200&q=80"); }
.gi-3 { background-image: url("https://images.unsplash.com/photo-1503951914875-452162b0f3f1?auto=format&fit=crop&w=1200&q=80"); }
.gi-4 { background-image: url("https://images.unsplash.com/photo-1521590832167-7bcbfaa6381f?auto=format&fit=crop&w=1200&q=80"); }
.gi-5 { background-image: url("https://images.unsplash.com/photo-1621605815971-fbc98d665033?auto=format&fit=crop&w=1200&q=80"); }
.gi-6 { background-image: url("https://images.unsplash.com/photo-1512690459411-b0fd1b904e28?auto=format&fit=crop&w=1200&q=80"); }
.gi-7 { background-image: url("https://images.unsplash.com/photo-1622286342621-4bd786c2447c?auto=format&fit=crop&w=1200&q=80"); }
.gi-9 { background-image: url("https://images.unsplash.com/photo-1516975080664-ed2fc6a32937?auto=format&fit=crop&w=1200&q=80"); }

/* Page 2 items */
.gi-10 { background-image: url("https://images.unsplash.com/photo-1517832606299-7ae9b720a186?auto=format&fit=crop&w=1200&q=80"); }
.gi-11 { background-image: url("https://images.unsplash.com/photo-1511920170033-f8396924c348?auto=format&fit=crop&w=1200&q=80"); }
.gi-12 { background-image: url("https://images.unsplash.com/photo-1493256338651-d82f7acb2b38?auto=format&fit=crop&w=1200&q=80"); }
.gi-13 { background-image: url("https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?auto=format&fit=crop&w=1200&q=80"); }
.gi-14 { background-image: url("https://images.unsplash.com/photo-1585747860715-2ba37e788b70?auto=format&fit=crop&w=1200&q=80"); }
.gi-15 { background-image: url("https://images.unsplash.com/photo-1519014816548-bf5fe059798b?auto=format&fit=crop&w=1200&q=80"); }
.gi-16 { background-image: url("https://images.unsplash.com/photo-1544717305-2782549b5136?auto=format&fit=crop&w=1200&q=80"); }
.gi-17 { background-image: url("https://images.unsplash.com/photo-1514996937319-344454492b37?auto=format&fit=crop&w=1200&q=80"); }
.gi-18 { background-image: url("https://images.unsplash.com/photo-1593702288056-f5d5c4b6f44b?auto=format&fit=crop&w=1200&q=80"); }

/* Hover overlay */
.g-hover {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.35s;
}
.g-item:hover .g-hover {
  opacity: 1;
}
.g-hover-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
  line-height: 1;
}
.g-hover span {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/*  VIEW card  */
.g-view-card {
  background: var(--white);
  border: 2px solid var(--gold);
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}
.g-view-inner {
  position: relative;
  text-align: center;
  padding: 20px;
}
.g-view-border {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  pointer-events: none;
}
.g-view-inner span {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.4rem;
  letter-spacing: 5px;
  color: var(--dark);
  font-weight: 500;
  text-transform: uppercase;
}
.g-view-inner p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 1.5px;
  margin-top: 4px;
}

/*  Pagination  */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 50px;
}
.page-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition:
    background 0.3s,
    border-color 0.3s,
    color 0.3s;
}
.page-btn:hover,
.page-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

/* 
   LIGHTBOX
 */
.lb-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.lb-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lb-content {
  max-width: 800px;
  width: 90%;
  text-align: center;
}
.lb-img {
  width: 100%;
  height: 520px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(201, 168, 76, 0.2);
  position: relative;
  transition: opacity 0.3s;
}
.lb-caption {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}
.lb-close {
  position: fixed;
  top: 24px;
  right: 32px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition:
    border-color 0.3s,
    color 0.3s;
}
.lb-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lb-prev,
.lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 2.5rem;
  width: 52px;
  height: 52px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s,
    border-color 0.3s,
    color 0.3s;
  line-height: 1;
}
.lb-prev {
  left: 24px;
}
.lb-next {
  right: 24px;
}
.lb-prev:hover,
.lb-next:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

/* 
   CONTACT
 */
#contact {
  position: relative;
  padding: 100px 80px;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}
.contact-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 10% 90%,
      rgba(201, 168, 76, 0.05) 0%,
      transparent 40%
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 80px,
      rgba(255, 255, 255, 0.01) 80px,
      rgba(255, 255, 255, 0.01) 81px
    );
}
.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 30px;
}
.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.contact-icon svg {
  width: 22px;
  height: 22px;
}
.contact-item span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  padding-top: 8px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.form-field input,
.form-field textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-bottom: 1px solid rgba(201, 168, 76, 0.5);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  outline: none;
  resize: none;
  transition:
    border-color 0.3s,
    background 0.3s;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.04);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.btn-send {
  width: 100%;
  padding: 18px;
  background: var(--gold);
  color: var(--black);
  border: none;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.2s;
}
.btn-send:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}
.form-success {
  display: none;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4caf50;
  padding: 12px;
  border: 1px solid rgba(76, 175, 80, 0.3);
}
.form-success.show {
  display: block;
}

/* 
   FOOTER
 */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 80px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.3);
}
.footer-bar a {
  color: var(--gold);
  transition: opacity 0.3s;
}
.footer-bar a:hover {
  opacity: 0.7;
}
.footer-social-row {
  display: flex;
  gap: 18px;
  align-items: center;
}
.footer-social-row a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s;
  display: flex;
  align-items: center;
}
.footer-social-row a:hover {
  color: var(--gold);
}

/* 
   RESPONSIVE
 */
@media (max-width: 1000px) {
  #gallery-section {
    padding: 60px 30px 70px;
  }
  .gallery-mosaic {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 160px;
  }
  #contact {
    padding: 70px 40px;
  }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 700px) {
  #navbar {
    padding: 16px 20px;
  }
  #navbar.scrolled {
    padding: 10px 20px;
  }
  .nav-links,
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: block;
  }

  #page-title-bar {
    padding: 22px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  #gallery-section {
    padding: 50px 12px 60px;
  }
  .gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 130px;
  }
  /* Remove wide/tall overrides on small screens for simpler layout */
  .g-wide {
    grid-column: span 1;
  }

  .lb-img {
    height: 300px;
  }
  .lb-prev {
    left: 8px;
  }
  .lb-next {
    right: 8px;
  }

  #contact {
    padding: 60px 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-bar {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    padding: 20px;
  }
}
