/* Silver Street Gallery & Gifts - Styles */
:root {
  --primary: #2c3e50;
  --accent: #c9a96e;
  --light: #f8f6f3;
  --dark: #1a1a1a;
  --text: #333;
  --announcement: #1a3a4a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Georgia', 'Lato', sans-serif; color: var(--text); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Password Wall */
.password-wall {
  position: fixed;
  inset: 0;
  background: var(--light);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.password-box {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  text-align: center;
  max-width: 400px;
  width: 90%;
}
.password-box img { height: 70px; margin: 0 auto 20px; }
.password-box h1 { font-size: 1.5rem; margin-bottom: 8px; color: var(--primary); }
.password-box p { margin-bottom: 20px; color: #666; }
.password-box input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}
.password-box button {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}
.password-box .error { color: #c0392b; margin-top: 10px; font-size: 0.9rem; }
.announcement-bar {
  background: var(--announcement);
  color: white;
  text-align: center;
  padding: 10px 15px;
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.announcement-bar a { color: white; }
.separator { opacity: 0.6; }

/* Header */
.header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}
.logo { display: flex; align-items: center; gap: 12px; color: var(--primary); font-weight: bold; font-size: 1.1rem; }
.logo img { height: 50px; width: auto; }
.logo-text { display: none; flex-direction: column; line-height: 1.15; }
.logo-location { font-size: 0.75rem; font-weight: 500; opacity: 0.8; letter-spacing: 0.5px; }
@media (min-width: 768px) { 
  .logo-text { display: flex; } 
}

.nav { display: flex; gap: 24px; }
.nav a { color: var(--primary); font-weight: 500; }
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--primary); border-radius: 2px; }

@media (max-width: 767px) {
  .header-inner { flex-direction: row; }
  .logo { margin-right: auto; }
  .hamburger { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 16px;
  }
  .nav.open { display: flex; }
}

/* Hero */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}
.hero-video-wrapper {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
}
.hero-video-wrapper iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw; height: 56.25vw; /* 16:9 */
  min-height: 100%; min-width: 177.77vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; }
.hero h1 { font-size: 2.8rem; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.hero p { font-size: 1.25rem; margin-bottom: 12px; }
.hero-sub { font-size: 1rem; opacity: 0.9; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 12px 28px;
  border-radius: 4px;
  margin-top: 20px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn:hover { background: #b8945a; text-decoration: none; }

@media (max-width: 767px) {
  .hero { height: 70vh; min-height: 420px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.1rem; }
}

/* Sections */
.section { padding: 70px 0; }
.section h2 { text-align: center; font-size: 2.2rem; margin-bottom: 30px; color: var(--primary); }
.about { background: var(--light); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 30px; text-align: center; }
.feature { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

/* Gallery */
.gallery-tabs { text-align: center; margin-bottom: 30px; }
.tab {
  background: none; border: 2px solid var(--accent); color: var(--accent);
  padding: 8px 20px; margin: 0 6px; border-radius: 20px; cursor: pointer; font-weight: 500;
}
.tab.active, .tab:hover { background: var(--accent); color: white; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-item { 
  overflow: hidden; 
  border-radius: 8px; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
  cursor: pointer;
  aspect-ratio: 1 / 1;
}
.gallery-item img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.3s; 
}
.gallery-item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.35);
}
.lightbox-close { top: 20px; right: 20px; font-size: 2.5rem; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Contact columns centered */
.contact-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.contact-left p, .contact-right p { margin: 8px 0; }
.contact-right h3 { margin-bottom: 12px; color: var(--primary); }
@media (max-width: 700px) {
  .contact-columns { grid-template-columns: 1fr; gap: 30px; }
}

/* Reviews */
.reviews { 
  background: #f0ebe5 url('../images/fixed-background-banner.png') center center / cover no-repeat fixed;
  position: relative;
}
.reviews::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(240, 235, 229, 0.88);
  z-index: 0;
}
.reviews .container { position: relative; z-index: 1; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.review { background: white; padding: 24px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.stars { color: #e6b800; font-size: 1.2rem; margin-bottom: 10px; }
.reviewer { margin-top: 14px; font-style: italic; color: #666; font-size: 0.95rem; }

/* Contact columns centered */
.contact-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.contact-left p, .contact-right p { margin: 8px 0; }
.contact-right h3 { margin-bottom: 12px; color: var(--primary); }
@media (max-width: 700px) {
  .contact-columns { grid-template-columns: 1fr; gap: 30px; }
}

/* Smooth scroll */
html { scroll-behavior: smooth; }
.smooth-scroll { scroll-behavior: smooth; }

/* Reviews grid better fill */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

/* Footer */
.footer { background: var(--dark); color: #ccc; padding: 30px 0; font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer a { color: var(--accent); }
@media (max-width: 767px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* Login page specific */
.login-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--light); }
.login-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.login-box {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  text-align: center;
  max-width: 400px;
  width: 100%;
}
.login-box img { height: 70px; margin: 0 auto 20px; }
.login-box h1 { font-size: 1.6rem; margin-bottom: 24px; color: var(--primary); }
.login-box input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}
.login-box button {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 12px;
}
.login-box .back-btn { background: #666; }
.dashboard-nav {
  background: var(--announcement);
  color: white;
  padding: 10px 15px;
  text-align: center;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.dashboard-nav a { color: white; }
.dashboard-frame { width: 100%; height: calc(100vh - 120px); border: none; }
.error { color: #c0392b; margin-top: 10px; font-size: 0.9rem; }
