/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Lora', Georgia, serif;
  background: #0A0A0A;
  color: #F8F8F8;
  line-height: 1.75;
  min-height: 100vh;
}

a { color: #D4AF37; text-decoration: none; transition: color 0.2s; }
a:hover { color: #C9B178; }

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ===== Header ===== */
.site-header {
  background: #0A0A0A;
  border-bottom: 1px solid #2D2D2D;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}


.header-logo {
  height: 40px;
  width: auto;
  margin-right: 10px;
  vertical-align: middle;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
}

.site-logo {
  font-size: 1.35rem;
  font-weight: 600;
  color: #D4AF37;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.site-logo:hover { color: #C9B178; }

/* ===== Navigation ===== */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.main-nav li { position: relative; }

.main-nav > ul > li > a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: #F8F8F8;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
  color: #D4AF37;
}

.dropdown-arrow { font-size: 0.65em; margin-left: 0.2em; }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1A1A1A;
  border: 1px solid #2D2D2D;
  border-top: 2px solid #D4AF37;
  border-radius: 0 0 6px 6px;
  min-width: 220px;
  padding: 0.5rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 100;
}

.has-dropdown:hover > .dropdown,
.has-dropdown.open > .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 0.45rem 1.2rem;
  color: #F8F8F8;
  font-size: 0.85rem;
  transition: background 0.15s, color 0.15s;
}
.dropdown li a:hover,
.dropdown li a.active {
  background: rgba(212, 175, 55, 0.1);
  color: #D4AF37;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #D4AF37;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Main Content ===== */
.page-content {
  min-height: calc(100vh - 72px - 280px);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #D4AF37;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #2D2D2D;
}

/* Content typography */
.content h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #C9B178;
  margin: 2.5rem 0 1rem;
}
.content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #C9B178;
  margin: 2rem 0 0.75rem;
}
.content h4, .content h5, .content h6 {
  color: #C9B178;
  margin: 1.5rem 0 0.5rem;
}

.content p {
  margin-bottom: 1.25rem;
}

.content strong { color: #F8F8F8; }
.content em { font-style: italic; }

.content ul, .content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.content li { margin-bottom: 0.4rem; }

.content hr {
  border: none;
  border-top: 1px solid #2D2D2D;
  margin: 2.5rem 0;
}

.content blockquote {
  border-left: 3px solid #D4AF37;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #1A1A1A;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #C9B178;
}

/* Links in content styled as gold buttons where appropriate */
.content a {
  color: #D4AF37;
  border-bottom: 1px solid rgba(212,175,55,0.3);
  transition: border-color 0.2s, color 0.2s;
}
.content a:hover {
  color: #C9B178;
  border-bottom-color: #C9B178;
}

/* ===== Tables (card-style from Weebly layout) ===== */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.content table td {
  padding: 1rem;
  vertical-align: top;
  border: 1px solid #2D2D2D;
  background: #1A1A1A;
}
.content table td img {
  margin: 0.5rem 0;
}

/* ===== Cards ===== */
.content .card {
  background: #1A1A1A;
  border-top: 3px solid #D4AF37;
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.content .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,175,55,0.15);
}

/* ===== Gallery Pages ===== */
.gallery-banner {
  background: #1A1A1A;
  border: 1px solid #2D2D2D;
  border-left: 3px solid #5EC9B7;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.gallery-banner p {
  margin: 0;
  color: #C9B178;
  font-size: 0.95rem;
}

.btn-gold {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  background: linear-gradient(135deg, #D4AF37, #C9B178);
  color: #0A0A0A;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  border-bottom: none;
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212,175,55,0.35);
  color: #0A0A0A;
  border-bottom: none;
}

/* Gallery grid: images inside tables on gallery pages displayed as grid */
.gallery-page table {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  border: none;
}
.gallery-page table tr {
  display: contents;
}
.gallery-page table td {
  border: none;
  padding: 0;
  background: transparent;
}
.gallery-page table td img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.gallery-page table td img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(212,175,55,0.2);
}

/* Non-gallery tables with images: nicer layout */
.content:not(.gallery-page) table td img {
  border-radius: 4px;
}

/* Standalone images centered */
.content > p > img {
  margin: 1.5rem auto;
  border-radius: 6px;
}

/* ===== Footer ===== */
.site-footer {
  background: #0A0A0A;
  border-top: 1px solid #2D2D2D;
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #D4AF37;
  margin-bottom: 0.3rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #C9B178;
  margin-bottom: 1.5rem;
}

.footer-contact {
  margin-bottom: 1rem;
}
.footer-contact p {
  margin: 0.3rem 0;
}
.footer-contact a {
  color: #F8F8F8;
  border-bottom: none;
}
.footer-contact a:hover { color: #D4AF37; }

.footer-social {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.footer-social a {
  color: #F8F8F8;
  padding: 0.4rem 1rem;
  border: 1px solid #2D2D2D;
  border-radius: 50px;
  font-size: 0.85rem;
  transition: border-color 0.2s, color 0.2s;
  border-bottom: 1px solid #2D2D2D;
}
.footer-social a:hover {
  border-color: #D4AF37;
  color: #D4AF37;
}

.footer-copy {
  color: #666;
  font-size: 0.8rem;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hamburger { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #0A0A0A;
    border-bottom: 1px solid #2D2D2D;
    padding: 1rem 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav > ul > li > a {
    padding: 0.75rem 1.5rem;
  }

  .dropdown {
    position: static;
    border: none;
    border-top: none;
    box-shadow: none;
    background: #111;
    border-radius: 0;
    padding: 0;
  }
  .dropdown li a {
    padding-left: 2.5rem;
  }

  .page-title { font-size: 1.75rem; }

  .gallery-banner {
    flex-direction: column;
    text-align: center;
  }

  .gallery-page table {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .gallery-page table td img {
    height: 140px;
  }
}

@media (max-width: 480px) {
  .header-inner { height: 60px; }
  
.header-logo {
  height: 40px;
  width: auto;
  margin-right: 10px;
  vertical-align: middle;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
}

.site-logo { font-size: 1.1rem; }
  .container { padding: 1.5rem 1rem 3rem; }
  .page-title { font-size: 1.5rem; }
  .gallery-page table {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.5rem;
  }
  .gallery-page table td img { height: 110px; }
}

/* Lightbox */
#lightbox-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
#lightbox-overlay.active { display: flex; }
#lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(212,175,55,0.3);
}
#lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  color: #d4af37;
  font-size: 2.5rem;
  cursor: pointer;
}
/* Gallery grid for image-heavy pages */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin: 20px 0;
}
.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}
