/* ========================================
   NAMAR Event Center - Stylesheet
   ======================================== */

/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap");

/* CSS Variables */
:root {
  --primary-color: #2c5f7e;
  --secondary-color: #b2a674;
  --accent-color: #8b4513;
  --text-dark: #333;
  --text-light: #5e5e5e;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--bg-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 3rem;
  font-weight: 300;
}
h2 {
  font-size: 2.5rem;
  font-weight: 300;
}
h3 {
  font-size: 1.8rem;
  font-weight: 400;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-family: "Raleway", sans-serif;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-white);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.btn-submit {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
}

/* Header & Navigation */
header {
  background-color: var(--bg-white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  height: 200px;
  width: auto;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--secondary-color);
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  font-family: "Raleway", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
  border-bottom-color: var(--secondary-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--bg-white);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 1);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
}

/* Intro Section */
.intro {
  padding: 4rem 0;
  background-color: var(--bg-white);
}

.intro-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.intro h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.intro p {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Gallery Preview Section */
.gallery-preview {
  padding: 3rem 0 4rem;
  background-color: var(--bg-white);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.preview-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.preview-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.preview-item a {
  display: block;
}

.preview-item .image-placeholder {
  padding-top: 100%;
}

.preview-cta {
  text-align: center;
}

/* Features Section */
.features {
  padding: 4rem 0;
  background-color: var(--bg-light);
}

.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.features-image {
  border-radius: 8px;
  overflow: hidden;
}

.features-content h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.features-content h3 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.features-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Venue Details Section */
.venue-details {
  padding: 4rem 0;
  background-color: var(--bg-white);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.details-content h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.details-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.details-content h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.details-content ul {
  list-style: none;
  padding-left: 0;
}

.details-content ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-light);
}

.details-content ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.details-image {
  border-radius: 8px;
  overflow: hidden;
}

.image-placeholder {
  width: 100%;
  padding-top: 75%;
  background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
  position: relative;
}

.image-placeholder:after {
  content: "Photo Coming Soon";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #999;
  font-size: 1.2rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

/* Packages Section */
.packages {
  padding: 4rem 0;
  background-color: var(--bg-light);
  text-align: center;
}

.packages h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.section-intro {
  max-width: 900px;
  margin: 0 auto 1rem;
  font-size: 1.1rem;
  color: var(--text-light);
}

/* CTA Section */
.cta {
  padding: 4rem 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../images/whit-table.jpg") center/cover no-repeat;
  text-align: center;
  color: var(--bg-white);
}

.cta h2 {
  color: var(--bg-white);
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta .btn {
  background-color: var(--bg-white);
  color: var(--primary-color);
  border-color: var(--bg-white);
}

.cta .btn:hover {
  background-color: transparent;
  color: var(--bg-white);
  border-color: var(--bg-white);
}

/* Page Header */
.page-header {
  padding: 4rem 0 2rem;
  background-color: var(--bg-light);
  text-align: center;
}

.page-header h1 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Gallery Section */
.gallery-section {
  padding: 4rem 0;
  background-color: var(--bg-white);
}

.gallery-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.gallery-intro p {
  font-size: 1.1rem;
  color: var(--text-light);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.photo-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.photo-item:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-item img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-item .image-placeholder {
  padding-top: 100%;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
  background-color: var(--bg-white);
}

.faq-intro {
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: center;
}

.faq-intro p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-light);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
}

.faq-item h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.faq-answer p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer strong {
  color: var(--primary-color);
}

.faq-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background-color: var(--bg-light);
  border-radius: 8px;
}

.faq-cta h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.faq-cta p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Reservations Section */
.reservations-section {
  padding: 4rem 0;
  background-color: var(--bg-white);
}

.reservations-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.reservations-intro h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.reservations-intro p {
  font-size: 1.1rem;
  color: var(--text-light);
}

.reservations-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.why-book {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
}

.why-book h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.why-book ul {
  list-style: none;
  padding: 0;
}

.why-book ul li {
  padding: 0.5rem 0;
  color: var(--text-light);
}

/* Testimonials Section */
.testimonials-fullwidth {
  padding: 70px 0;
  text-align: center;
  background: white;
}

.testimonial {
  max-width: 720px;
  margin: 40px auto;
  padding: 26px;
  border-radius: 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  background: #fafafa;
}

.testimonial-author {
  margin-top: 14px;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.8;
}

.testimonial-title {
  font-size: 0.85rem;
  font-style: italic;
}

.testimonials-section {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 3rem;
}

.testimonials-section h3 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
}

.testimonial {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
  margin-bottom: 1.5rem;
}

.testimonial:last-child {
  margin-bottom: 0;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 600;
  color: var(--text-dark);
  font-family: "Raleway", sans-serif;
  margin-bottom: 0;
}

.testimonial-title {
  font-weight: 400;
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.contact-form-wrapper {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
}

.contact-form-wrapper h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Contact Form */
.contact-form {
  max-width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
}

.required {
  color: #d32f2f;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.field-help {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  font-family: "Georgia", "Times New Roman", serif;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(44, 95, 126, 0.1);
}

.form-group textarea {
  resize: vertical;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
  display: none;
}

.form-message.success {
  display: block;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Contact Info */
.contact-info {
  text-align: left;
  padding: 0rem;
  background-color: var(--bg-light);
  border-radius: 8px;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  font-size: 1.1rem;
  color: var(--text-light);
}

.contact-item strong {
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: var(--bg-light);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--bg-white);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--bg-light);
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.5rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--bg-white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-layout,
  .details-grid,
  .reservations-content {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   LightGallery Custom Styling
   ======================================== */

/* Wrapper styling */
#lightgallery a {
  text-decoration: none;
  display: block;
}

#lightgallery .photo-item {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

#lightgallery .photo-item::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#lightgallery .photo-item:hover::after {
  opacity: 0.9;
}

#lightgallery .photo-item:hover {
  transform: scale(1.03);
}

/* Custom LightGallery theme colors to match NAMAR */
.lg-namar-gallery .lg-backdrop {
  background-color: rgba(44, 95, 126, 0.95);
}

.lg-namar-gallery .lg-toolbar,
.lg-namar-gallery .lg-actions .lg-next,
.lg-namar-gallery .lg-actions .lg-prev,
.lg-namar-gallery .lg-sub-html {
  background-color: rgba(44, 95, 126, 0.9);
}

.lg-namar-gallery .lg-thumb-outer {
  background-color: rgba(44, 95, 126, 0.9);
}

.lg-namar-gallery .lg-thumb-item {
  border-color: var(--secondary-color);
}

.lg-namar-gallery .lg-thumb-item.active,
.lg-namar-gallery .lg-thumb-item:hover {
  border-color: var(--secondary-color);
}

/* Make sure images in gallery maintain aspect ratio */
#lightgallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hover effect for gallery grid */
#lightgallery a {
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

/* Loading state */
.lg-loading {
  color: var(--secondary-color) !important;
}
