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

:root {
  --navy: #1a2332;
  --navy-light: #243044;
  --gold: #c9a96e;
  --gold-light: #dfc599;
  --cream: #faf8f5;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

/* ── Password Gate ── */
#password-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(201,169,110,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(201,169,110,0.05) 0%, transparent 50%);
}

#password-gate.hidden {
  display: none;
}

.gate-box {
  text-align: center;
  padding: 3rem 2.5rem;
  max-width: 400px;
  width: 90%;
}

.gate-box h1 {
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.15em;
  margin-bottom: 0.3rem;
}

.gate-box .subtitle {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.gate-box input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.1em;
  outline: none;
  transition: border-color 0.3s;
}

.gate-box input::placeholder {
  color: rgba(255,255,255,0.35);
}

.gate-box input:focus {
  border-color: var(--gold);
}

.gate-box button {
  width: 100%;
  margin-top: 1rem;
  padding: 0.9rem;
  border: none;
  border-radius: 6px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

.gate-box button:hover {
  background: var(--gold-light);
}

.gate-error {
  color: #e87c7c;
  font-size: 0.85rem;
  margin-top: 0.8rem;
  min-height: 1.2em;
}

/* ── Site Content (hidden until authenticated) ── */
#site-content {
  display: none;
}

#site-content.visible {
  display: block;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s, box-shadow 0.3s;
}

nav.scrolled {
  background: rgba(26, 35, 50, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-brand {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.12em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../photos/5X4A9689.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: var(--gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 300;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
}

.scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.3);
  margin: 0.5rem auto 0;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ── Sections ── */
section {
  padding: 5rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 300;
  color: var(--navy);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-header .accent-line {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto;
}

/* ── About ── */
.about {
  background: var(--white);
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ── Gallery ── */
.gallery {
  background: var(--cream);
  max-width: 1200px;
  margin: 0 auto;
}

.album {
  margin-bottom: 3.5rem;
}

.album h3 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201,169,110,0.3);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.photo-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.photo-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ── Footer ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

footer .footer-brand {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }

  .photo-grid img {
    height: 160px;
  }

  section {
    padding: 3.5rem 1.2rem;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 1.8rem;
  }
}
