/* Elite Ushering & Event - Public Website Styles */

:root {
  --primary-dark: #1a1a1a;
  --secondary-dark: #2d2d2d;
  --accent-gold: #d4a574;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --border-light: #e5e5e5;
  /* Added font family variables */
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* Using elegant Inter font for body with refined line-height */
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.7;
  background-color: var(--white);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  /* Using elegant serif font for all headings with refined spacing */
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}
h2 {
  font-size: 2.75rem;
  font-weight: 600;
}
h3 {
  font-size: 2.25rem;
  font-weight: 600;
}
h4 {
  font-size: 1.75rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Navigation */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 1px;
}

/* Added logo styling for navbar */
.navbar-brand img {
  height: 45px;
  width: auto;
  display: block;
  border-radius: 5px;
}

.navbar-nav .nav-link {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-gold);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  color: var(--white);
  padding: 8rem 0 6rem;
  text-align: center;
}

.hero h1 {
  /* Enhanced hero heading with better font sizing and spacing */
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-wrap: balance;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Added typing animation styles */
#typing-text {
  display: inline-block;
  position: relative;
}

#typing-text::after {
  content: "|";
  position: absolute;
  right: -10px;
  color: var(--accent-gold);
  animation: blink 0.8s infinite;
}

#typing-text.typing-complete::after {
  display: none;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero p {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto 2rem;
  text-wrap: pretty;
  font-weight: 300;
  line-height: 1.7;
}

.hero .btn {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

/* Enhanced hero section with background image option */
.hero-with-bg {
  background-image: linear-gradient(rgba(0, 0, 0, 0.105), rgba(0, 0, 0, 0.105)), url("../images/background.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Buttons */
.btn-primary {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--primary-dark);
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #c49563;
  border-color: #c49563;
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 2px solid var(--white);
  color: var(--white);
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary-dark);
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  /* Enhanced section titles with better font sizing */
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-title p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.8;
}

/* Service Cards */
.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.service-card h4 {
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.85rem;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Stats Section */
.stats-section {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 4rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-item h3 {
  /* Enhanced stat numbers with better visual hierarchy */
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-item p {
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 300;
}

/* Testimonials */
.testimonial-card {
  background: var(--light-bg);
  border-radius: 8px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent-gold);
}

.testimonial-card p {
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.8;
  font-weight: 300;
}



.testimonial-card .client-name {
  font-weight: 600;
  color: var(--primary-dark);
}

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

/* Updated gallery card styles for description below image layout */
.gallery-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.gallery-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--light-bg);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.05);
}

/* Added play button overlay styles for video-linked gallery images */
.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: var(--accent-gold);
  opacity: 0.9;
  transition: all 0.3s ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 10;
}

.gallery-card:hover .play-button-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.gallery-content {
  padding: 1.5rem;
  flex-grow: 1;
}

.gallery-title {
  /* Enhanced gallery titles with serif font */
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.gallery-description {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

.read-more-link {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.read-more-link:hover {
  color: #c49563;
  text-decoration: underline;
}

/* Legacy gallery-item for backwards compatibility - can be removed if not used elsewhere */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Added gallery info overlay for descriptions */
.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7), transparent);
  color: var(--white);
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.gallery-info h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.gallery-info p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
}

/* Forms */
.form-control {
  border: 1px solid var(--border-light);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  transition: border-color 0.3s ease;
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 0.2rem rgba(212, 165, 116, 0.25);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer h5 {
  /* Enhanced footer headings with serif font */
  font-family: var(--font-heading);
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

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

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

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .section {
    padding: 3rem 0;
  }

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

  /* Adjust logo size on mobile */
  .navbar-brand img {
    height: 35px;
  }

  /* Better gallery info on mobile */
  .gallery-info {
    padding: 1.5rem 1rem 1rem;
  }

  .gallery-info h5 {
    font-size: 1rem;
  }

  .gallery-info p {
    font-size: 0.85rem;
  }

  /* Adjusted gallery card padding for mobile */
  .gallery-content {
    padding: 1rem;
  }

  .gallery-title {
    font-size: 1rem;
  }

  .gallery-description {
    font-size: 0.9rem;
  }

  /* Smaller play button on mobile */
  .play-button-overlay {
    font-size: 3rem;
  }

  /* Added modal image styles to match gallery card sizing */
  .modal-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
  }
}

/* Added modal image styles to match gallery card sizing */
.modal-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--primary-dark);
  overflow: hidden;
}

.modal-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Make modal wider for better image display */
.modal-xl {
  max-width: 1140px;
}

/* Added WhatsApp floating button styles */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
  line-height: 1;
}

/* Responsive WhatsApp button */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.75rem;
    bottom: 20px;
    right: 20px;
  }
}

/* Added calendar grid and styling for availability calendar */
.calendar-month {
  margin-bottom: 2rem;
}

.calendar-month h5 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-grid > div {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card styles for calendar page */
.card {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-header {
  background-color: var(--light-bg);
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem;
}

.card-body {
  padding: 1.5rem;
}

.list-group-item {
  border: none;
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
}

.list-group-item:last-child {
  border-bottom: none;
}
