/* Base Styles and CSS Reset */
:root {
  --black: #000000;
  --gold: #D4AF37;
  --red: #B22222;
  --dark-gray: #222;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--black);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  color: var(--gold);
}

p {
  margin-bottom: 1rem;
  color: var(--white);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--red);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  z-index: 101; /* Keep logo above mobile menu */
}

.site-logo {
  max-height: 50px;
  margin-right: 15px;
}

.logo h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.logo a {
  color: var(--gold);
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Header Styles */
.site-header {
  background-color: var(--black);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin-left: 1.5rem;
}

.main-nav a {
  color: var(--white);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  display: block;
  position: relative;
}

.main-nav a:hover,
.main-nav li.active a {
  color: var(--gold);
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav li.active a::after {
  width: 100%;
}

/* Social Icons */
.social-icons {
  display: flex;
  align-items: center;
}

.social-icons a {
  font-size: 1.2rem;
  margin-left: 15px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 102; /* Ensure toggle is above the menu */
  padding: 10px;
  background: transparent;
  border: none;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--gold);
  margin: 2px 0;
  transition: all 0.3s ease;
  display: block;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Main Content Area */
main {
  padding-top: var(--header-height);
  min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--gold);
  color: var(--black);
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: transparent;
  color: var(--gold);
}

.btn-secondary {
  background-color: transparent;
  color: var(--gold);
}

.btn-secondary:hover {
  background-color: var(--gold);
  color: var(--black);
}

/* Gallery Section with Scrolling */
.gallery {
  padding: 4rem 0;
  background-color: var(--black);
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-container {
  height: 800px; /* Adjust this to show about 2.5 rows */
  overflow-y: auto;
  position: relative;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
}

/* Custom scrollbar for gallery */
.gallery-container::-webkit-scrollbar {
  width: 8px;
}

.gallery-container::-webkit-scrollbar-track {
  background: var(--dark-gray);
  border-radius: 4px;
}

.gallery-container::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

.gallery-container::-webkit-scrollbar-thumb:hover {
  background: var(--red);
}

/* Adjust gallery grid for scrollable container */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.gallery-item {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-info {
  opacity: 1;
}

/* Gallery Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: none;
  color: var(--white);
  font-size: 30px;
  cursor: pointer;
  line-height: 40px;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
  border: 2px solid var(--gold);
}

.lightbox-caption {
  margin-top: 20px;
  color: var(--white);
  text-align: center;
}

/* Services Section */
.services-page {
  padding: 4rem 0;
  background-color: var(--black);
}

.page-intro {
  margin-bottom: 2rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Service Categories */
.service-category {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.service-category .category-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.service-category .category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-category:hover .category-image img {
  transform: scale(1.05);
}

.category-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.category-header h3 {
  margin: 0;
}

.category-description {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background-color: rgba(212, 175, 55, 0.8);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 2;
  max-height: 70%;
  overflow-y: auto;
}

.category-description p {
  color: var(--black);
  margin-bottom: 0.5rem;
}

.service-category:hover .category-description {
  transform: translateY(0);
}

.category-cta {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 3;
  display: none;
}

.service-category:hover .category-cta {
  display: block;
}

/* Contact Section */
.contact {
  padding: 4rem 0;
  background-color: var(--dark-gray);
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-form-container {
  flex: 2;
  min-width: 500px;
}

.contact-form {
  background-color: var(--black);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--dark-gray);
  border-radius: 4px;
  background-color: var(--dark-gray);
  color: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
}

.form-control.error {
  border-color: var(--red);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-success {
  background-color: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.2);
  color: #28a745;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
}

.form-error {
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.2);
  color: #dc3545;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* Footer Styles */
.site-footer {
  background-color: var(--black); /* Match header color */
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo h2 {
  margin-top: 0;
}

.footer-nav ul {
  display: flex;
  flex-direction: row; /* Ensure inline layout */
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin: 0 15px;
}

.footer-nav li:first-child {
  margin-left: 0;
}

.footer-social a {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-login {
  margin-top: 1rem;
  font-size: 0.8rem;
}

.admin-login a {
  color: rgba(255, 255, 255, 0.5);
}

/* Page Header */
.page-header {
  background-color: var(--black);
  padding: 2rem 0;
  margin-bottom: 2rem;
  text-align: center;
}

.page-header h1 {
  margin: 0;
}

/* CTA Section */
.cta {
  padding: 4rem 0;
  background-color: var(--dark-gray);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  margin-bottom: 2rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .site-logo {
    max-height: 40px;
  }
  
  .main-nav li {
    margin-left: 1rem;
  }
  
  .main-nav a {
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--black);
    padding-top: 80px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    padding: 0;
  }
  
  .main-nav li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .main-nav a {
    padding: 15px 20px;
    width: 100%;
    display: block;
  }
  
  .main-nav a::after {
    display: none;
  }
  
  .social-icons {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    justify-content: center;
  }
  
  .social-icons a {
    margin: 0 10px;
  }
  
  .contact-form-container,
  .contact-info {
    min-width: 100%;
  }
  
  .gallery-grid,
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .gallery-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-content > div {
    margin-bottom: 1.5rem;
    width: 100%;
  }
  
  .footer-nav ul {
    justify-content: center;
  }
  
  .footer-social {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 1.2rem;
  }
  
  .site-logo {
    max-height: 30px;
  }
}