/* Global Styles */
:root {
  --bg-color: #f4ebd9;
  /* Beige paper texture color from flyer */
  --text-dark: #3f2a1d;
  /* Dark brown from logo font */
  --accent-gold: #c29a4a;
  /* Gold from the logo A shape */
  --accent-red: #d13b35;
  /* Red from the flower */
  --accent-green: #517523;
  /* Green from the leaf */
  --white: #ffffff;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lora', serif;
  /* Lora gives a nice traditional feel */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  /* Adding a very subtle noise texture if possible, but basic color works for now */
  background-image: url('https://www.transparenttextures.com/patterns/rice-paper.png');
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--accent-gold);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-red);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background-color: transparent;
  padding: 20px 0;
  border-bottom: 2px solid var(--accent-gold);
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--text-dark);
  font-weight: bold;
  letter-spacing: 1px;
}

.logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.logo span {
  color: var(--accent-gold);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li a {
  color: var(--text-dark);
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--accent-red);
  border-bottom: 2px solid var(--accent-red);
}

/* Button */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent-red);
  color: var(--white);
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  border: 2px solid var(--accent-red);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: transparent;
  color: var(--accent-red);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.btn-secondary:hover {
  background-color: var(--accent-gold);
  color: var(--white);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-image: linear-gradient(rgba(63, 42, 29, 0.7), rgba(63, 42, 29, 0.5)), url('https://images.unsplash.com/photo-1571896349842-33c89424de2d?q=80&w=2680&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  animation: fadeIn 1.5s ease;
}

.hero-content h1 {
  font-size: 4.5rem;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 40px;
  font-weight: 300;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 60px;
  color: var(--text-dark);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--accent-gold);
  margin: 15px auto 0;
}

/* Features/About Snippet */
.about-snippet {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.5rem;
  color: var(--accent-gold);
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #555;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 10px 10px 0px var(--accent-green);
}

/* Decorative top and bottom borders inspired by flyer */
.decorative-border {
  height: 20px;
  background-color: var(--text-dark);
  background-image: repeating-linear-gradient(45deg, var(--accent-red) 25%, transparent 25%, transparent 75%, var(--accent-red) 75%, var(--accent-red)), repeating-linear-gradient(45deg, var(--accent-red) 25%, var(--text-dark) 25%, var(--text-dark) 75%, var(--accent-red) 75%, var(--accent-red));
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
  opacity: 0.8;
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: var(--bg-color);
  padding: 60px 0 20px;
  text-align: center;
  border-top: 5px solid var(--accent-red);
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
  color: var(--bg-color);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}

.footer-section a:hover {
  color: var(--accent-red);
}

.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  color: var(--text-dark);
  transition: all 0.3s;
}

.social-links a:hover {
  background-color: var(--accent-red);
  color: var(--bg-color);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Hamburger Menu */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--accent-gold);
  cursor: pointer;
  background: none;
  border: none;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--text-dark);
    flex-direction: column;
    gap: 0;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  .nav-links.active {
    max-height: 400px;
    padding-bottom: 20px;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 15px 0;
  }

  .nav-links li a {
    color: var(--white);
    display: block;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .about-snippet {
    flex-direction: column !important;
  }

  .mission-vision {
    flex-direction: column;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .event-section {
    flex-direction: column !important;
    gap: 30px;
  }

  .delivery-section {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.8rem;
  }

  .logo-img {
    height: 50px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .section {
    padding: 60px 0;
  }

  .room-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .search-container {
    flex-direction: column;
  }

  .search-container input {
    border-right: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
  }

  .search-container button {
    border-radius: 8px;
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Popup Styles */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.popup-content {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border-top: 5px solid var(--accent-gold);
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
}

.close-popup:hover {
  color: var(--accent-red);
}

.popup-content h3 {
  color: var(--text-dark);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.popup-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  padding: 15px;
  background: #fdfbf7;
  border-radius: 6px;
  border: 1px solid #eee;
  text-align: left;
}

.popup-item i {
  font-size: 1.5rem;
  color: var(--accent-gold);
  width: 30px;
  text-align: center;
}

.popup-item span {
  display: block;
  font-size: 0.9rem;
  color: #666;
}

.popup-item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text-dark);
  font-family: var(--font-heading);
}

.popup-item a {
  color: var(--text-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.popup-item a:hover i {
  color: var(--accent-red);
}