/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #faf8f5;
  --color-text: #3a3a3a;
  --color-accent: #b08d6e;
  --color-accent-light: #d4b99a;
  --color-white: #ffffff;
  --color-overlay: rgba(0, 0, 0, 0.35);
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Raleway', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Navigation ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.nav-logo {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--color-text);
}

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

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

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

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(var(--color-overlay), var(--color-overlay)),
              url('../images/bg1.jpg') center 57% / cover no-repeat;
  background-color: #8a7b6b;
  color: var(--color-white);
  padding: 2rem;
}

.hero-content h1 {
  font-family: var(--font-script);
  font-size: 5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content .date {
  font-size: 1.2rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-content .tagline {
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.8;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
  margin: 1.5rem auto;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-script);
  font-size: 3rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-accent);
}

.section-text {
  text-align: center;
  font-size: 1.05rem;
  line-height: 2;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== Our Story page ===== */
.story-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(var(--color-overlay), var(--color-overlay)),
              url('../images/story-bg.jpg') center / cover no-repeat;
  background-color: #7a8b7b;
  color: var(--color-white);
  padding: 6rem 2rem 3rem;
}

.story-hero h1 {
  font-family: var(--font-script);
  font-size: 4.5rem;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.story-section {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.story-section h2 {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 2rem;
}

.story-section p {
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ===== Gallery page ===== */
.gallery-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(var(--color-overlay), var(--color-overlay)),
              url('../images/gallery-bg.jpg') center / cover no-repeat;
  background-color: #6b7a8a;
  color: var(--color-white);
  padding: 6rem 2rem 3rem;
}

.gallery-hero h1 {
  font-family: var(--font-script);
  font-size: 3.5rem;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  max-width: 700px;
}

.gallery-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 4 / 5;
  background: var(--color-accent-light);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

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

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: #999;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-accent-light);
  color: var(--color-accent);
  transition: all 0.3s ease;
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
}

.social-links a:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content .date {
    font-size: 0.95rem;
    letter-spacing: 4px;
  }

  .story-hero h1,
  .gallery-hero h1 {
    font-size: 2.5rem;
  }

  .section-title,
  .story-section h2 {
    font-size: 2.2rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 0;
    gap: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 0.8rem 2rem;
  }

  .nav-toggle {
    display: block;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }

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