/* === Base Styles === */
html, body {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  background: #fff;
  color: #222;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden; /* prevent horizontal scroll */
}

/* === Header & Nav === */
header {
  background: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #B8860B;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.3rem 0.5rem;
  display: inline-block;
}

nav a:hover,
nav a:focus {
  color: #D4AF37;
  outline: none;
}

/* Dropdown menu */
nav li {
  position: relative;
}

nav li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  padding: 0.2rem 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 200;

  display: block; /* ✅ force vertical stacking, override flex */
}

nav li:hover > ul,
nav li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

nav li ul li {
  display: block;
  margin: 0;
  padding: 0;
}

nav li ul li a {
  padding: 0.1rem 1rem;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 400;
  color: #333;
  background: none;
  border: none;
  display: block;
}

nav li ul li a:hover,
nav li ul li a:focus {
  background: #B8860B;
  color: white;
}


/* === Hero Section === */
.hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
  border-bottom: 2px solid #B8860B;
  background: #fff; /* prevents any vertical “line” bleed */
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: #B8860B;
  margin: 0;
}

.hero p {
  font-style: italic;
  font-size: 1.2rem;
  color: #555;
  margin-top: 0.4rem;
}

/* === Main content container (do not let it push the strip) === */
main {
  flex: 0;                 /* <- key: stop main from consuming vertical space */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  background: #fff;
}

/* === Filmstrip (full-width) === */
.carousel-wrapper {
  position: relative;
  width: 100%;             /* full page width without causing overflow */
  overflow: hidden;
  padding: 2rem 0;         /* balanced spacing */
  box-sizing: border-box;
  background: #fff;
  margin-block: auto;      /* <- key: centers the strip between hero & footer */
}

.scroll-container {
  position: relative;      /* for overlay arrows */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
.scroll-container::-webkit-scrollbar { display: none; }

.image-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.image-strip img {
  height: 60vh;
  flex-shrink: 0;
  object-fit: cover;
  scroll-snap-align: start;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  cursor: pointer; /* 🔥 changed from zoom-in to pointer */
  user-select: none;
  transition: transform 0.3s ease;
}
.image-strip img:hover { transform: scale(1.03); }

/* Overlay arrows (two total) */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10;
}
.scroll-btn.left { left: 10px; }
.scroll-btn.right { right: 10px; }
.scroll-btn:hover { background: rgba(0,0,0,0.8); }

/* === Index hero rotator (unchanged) === */
.hero-rotator {
  position: relative;
  width: 960px;
  height: 640px;           /* 3:2 ratio */
  margin: 2rem auto 0;
  border-radius: 10px;
  overflow: hidden;
}
.hero-rotator img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 1;
  pointer-events: none;
  display: block;
}
.hero-rotator img.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

/* === Lightbox (if used) === */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: default;
  padding: 1rem;
  box-sizing: border-box;
}

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  object-fit: contain;
  z-index: 1001;
}

#lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1002;
}

#lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  padding: 0 0.5rem;
  font-size: 3rem;
}

/* bring arrows further in on large screens, keep closer on mobile */
#lightbox-prev { left: 20%; }
#lightbox-next { right: 20%; }

@media (max-width: 1024px) {
  #lightbox-prev { left: 8%; }
  #lightbox-next { right: 8%; }
}

/* === CTA Buttons (index) === */
.cta-row {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.btn {
  padding: 0.6rem 1.2rem;
  border: 2px solid #B8860B;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  color: #B8860B;
  transition: all 0.3s ease;
}
.btn:hover { background: #B8860B; color: #fff; }
.btn.primary { background: #B8860B; color: #fff; }
.btn.primary:hover { background: #D4AF37; border-color: #D4AF37; }

/* === Footer === */
footer {
  background: #f9f9f9;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #ddd;
}

/* === Dark Mode Support === */
@media (prefers-color-scheme: dark) {
  body { background-color: #111; color: #eee; }
  header { background-color: #1a1a1a; box-shadow: 0 2px 6px rgba(0,0,0,0.4); }
  nav a { color: #f0c674; }
  nav a:hover { color: #fff; }
  nav li ul { background-color: #222; border-color: #333; }
  nav li ul li a { color: #ddd; }
  nav li ul li a:hover { background-color: #f0c674; color: #111; }
  .hero { background: #1a1a1a; }
  .hero h2 { color: #f0c674; }
  .hero p { color: #ccc; }
  footer { background-color: #1a1a1a; color: #aaa; border-top: 1px solid #333; }
}

/* === Responsive tweak === */
@media (max-width: 1000px) {
  .hero-rotator {
    width: 90vw;
    height: calc(90vw * 2 / 3);
  }

/* === Index-only hero tweaks === */
.hero.hero-index {
  padding: 4rem 1rem 3rem; /* adjust to taste */
  margin-bottom: 2rem;     /* space before the carousel */
}

/* === Responsive Tweaks === */

/* Tablet (portrait tablets, small laptops) */
@media (max-width: 1000px) {
  .hero-rotator {
    width: 90vw;
    height: calc(90vw * 2 / 3); /* keep 3:2 ratio */
  }

  nav a {
    font-size: 0.9rem;
  }

  .hero h2 {
    font-size: 2.4rem;
  }
}

/* Mobile (phones, large phones) */
@media (max-width: 768px) {
  .page-container main {
    padding: 0 10px; /* tighter side gutters */
  }

  .hero {
    padding: 2rem 0 1rem; /* less vertical padding */
  }
  .hero h2 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }

  .cta-below {
    margin: 2rem 0 1rem;
  }

  .image-strip img {
    height: 40vh; /* shorter strip images */
  }

  nav ul {
    gap: 0.6rem;
  }
  nav a {
    font-size: 0.85rem;
    padding: 0.25rem;
  }

  .contact-wrap {
    margin: 1.5rem auto 2rem;
    padding: 0 0.5rem;
  }
  .form-grid {
    grid-template-columns: 1fr; /* stack inputs */
  }
 
   nav ul {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    width: 100%;

}

/* Small Mobile (very small phones) */
@media (max-width: 480px) {
  .hero h2 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  nav ul {
    gap: 0.4rem;
  }
  nav a {
    font-size: 0.8rem;
  }

  .cta-below .btn {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }
}

