/* ==========================================================================
   THE HEATHERTON SINGERS - OFFICIAL WEBSITE STYLESHEET
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --primary-950: #050a17;
  --primary-900: #0d1833;
  --primary-800: #152654;
  --primary-700: #1e3674;
  --primary-600: #294896;
  --primary-500: #3b60c4;
  
  --gold-600: #b45309;
  --gold-500: #d97706;
  --gold-400: #f59e0b;
  --gold-300: #fbbf24;
  --gold-100: #fef3c7;
  --gold-50:  #fffbeb;

  --neutral-900: #0f172a;
  --neutral-800: #1e293b;
  --neutral-700: #334155;
  --neutral-600: #475569;
  --neutral-500: #64748b;
  --neutral-300: #cbd5e1;
  --neutral-200: #e2e8f0;
  --neutral-100: #f1f5f9;
  --neutral-50:  #f8fafc;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.16);
  --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.22);
  --shadow-gold: 0 8px 24px rgba(217, 119, 6, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--neutral-800);
  background-color: var(--neutral-50);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--gold-500);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Header Styles */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-950);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--neutral-600);
  font-weight: 400;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition);
  background: rgba(13, 24, 51, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
  padding: 0.85rem 0;
  box-shadow: var(--shadow-lg);
  background: rgba(13, 24, 51, 0.98);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.brand-logo i {
  color: var(--gold-400);
  font-size: 1.6rem;
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.975rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-400);
  transition: var(--transition);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--primary-950) !important;
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-gold);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.4);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
  padding: 6rem 0;
  background-color: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--neutral-700);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.rehearsal-box {
  background: linear-gradient(135deg, var(--primary-900), var(--primary-800));
  color: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.rehearsal-box h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  color: var(--gold-300);
}

.rehearsal-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.rehearsal-detail i {
  font-size: 1.25rem;
  color: var(--gold-400);
  margin-top: 0.2rem;
}

.rehearsal-detail div strong {
  display: block;
  font-size: 1rem;
  color: #ffffff;
}

.rehearsal-detail div p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--gold-300);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-full);
}

.map-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #ffffff;
}

/* ==========================================================================
   EVENTS & GOOGLE CALENDAR SECTION
   ========================================================================== */
.events-section {
  padding: 5rem 0;
  background-color: var(--neutral-50);
}

.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: center;
}

.subscribe-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-700);
  font-weight: 600;
  background: #ffffff;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--neutral-300);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.subscribe-link:hover {
  border-color: var(--gold-500);
  color: var(--gold-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.events-status {
  text-align: center;
  color: var(--neutral-600);
  padding: 2rem;
  font-size: 1rem;
}

.events-status i {
  margin-right: 0.5rem;
  color: var(--gold-500);
}

.events-error {
  color: var(--neutral-700);
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
}

.events-empty {
  text-align: center;
  color: var(--neutral-600);
  font-size: 1.05rem;
  padding: 2rem;
  grid-column: 1 / -1;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.event-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-300);
}

.event-header {
  background: var(--primary-900);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.event-date-badge {
  background: var(--gold-500);
  color: var(--primary-950);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 54px;
  font-weight: 800;
  line-height: 1.1;
}

.event-date-badge .day {
  font-size: 1.3rem;
  display: block;
}

.event-date-badge .month {
  font-size: 0.75rem;
  text-transform: uppercase;
}

.event-header-text h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.25;
}

.event-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-meta {
  list-style: none;
  margin-bottom: 1rem;
}

.event-meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--neutral-600);
  margin-bottom: 0.5rem;
}

.event-meta li i {
  color: var(--gold-500);
  margin-top: 0.2rem;
}

.event-details {
  font-size: 0.925rem;
  color: var(--neutral-700);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.event-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-add-cal {
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  background: var(--neutral-100);
  color: var(--neutral-800);
  font-weight: 600;
  border: 1px solid var(--neutral-300);
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-add-cal:hover {
  background: var(--gold-500);
  color: var(--primary-950);
  border-color: var(--gold-500);
}

/* ==========================================================================
   GALLERY SECTION
   ========================================================================== */
.gallery-section {
  padding: 5rem 0;
  background-color: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background-color: var(--neutral-200);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0.9;
  transition: var(--transition);
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-info h3 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.gallery-info p {
  color: var(--gold-300);
  font-size: 0.9rem;
  font-weight: 500;
}

.gallery-zoom-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  opacity: 0;
  transition: var(--transition);
}

.gallery-card:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1.1);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 10, 23, 0.94);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image-wrapper {
  max-height: 75vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-image-wrapper img {
  max-height: 75vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-caption {
  color: #ffffff;
  text-align: center;
  margin-top: 1.25rem;
}

.lightbox-caption h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gold-300);
}

.lightbox-caption p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--gold-400);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: var(--gold-500);
  color: var(--primary-950);
  border-color: var(--gold-500);
}

.lightbox-prev {
  left: -4rem;
}

.lightbox-next {
  right: -4rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-950) 0%, var(--primary-900) 100%);
  color: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--gold-300);
}

.contact-info p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Perfect Card Vertical Center Alignment */
.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.contact-card-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--gold-500);
  color: var(--primary-950);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0;
}

.contact-card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-card-text h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--gold-300);
  letter-spacing: 0.05em;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.contact-card-text p {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
}

.contact-form-wrapper {
  background: #ffffff;
  color: var(--neutral-900);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.contact-form-wrapper h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--primary-950);
  margin-bottom: 0.5rem;
}

.contact-form-wrapper p {
  color: var(--neutral-600);
  margin-bottom: 2rem;
}

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

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--neutral-800);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1.5px solid var(--neutral-300);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
  background-color: var(--neutral-50);
}

.form-control:focus {
  border-color: var(--primary-600);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(41, 72, 150, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-submit:hover {
  background: linear-gradient(135deg, var(--primary-950), var(--primary-800));
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.form-alert {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  display: none;
}

.form-alert.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-alert.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   FOOTER & SOCIALS
   ========================================================================== */
.footer {
  background-color: var(--primary-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-pill:hover {
  background: var(--gold-500);
  color: var(--primary-950);
  border-color: var(--gold-500);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .lightbox-prev {
    left: 0.5rem;
  }
  .lightbox-next {
    right: 0.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--primary-950);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 1.5rem;
    transition: var(--transition);
  }
  .nav-menu.active {
    left: 0;
  }
  .mobile-toggle {
    display: block;
  }
  .gallery-grid,
  .events-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .footer-brand {
    width: 100%;
  }
  .footer-socials {
    justify-content: center;
    width: 100%;
  }
}
