/* ==========================================================================
   Friends in Music - Modern Stylesheet
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --color-primary: #1a1a1a;
  --color-secondary: #2d2d2d;
  --color-accent: #e67e22;
  --color-highlight: #d35400;
  --color-gold: #f39c12;
  --color-text: #2d2d2d;
  --color-text-light: #6b6b6b;
  --color-bg: #ffffff;
  --color-bg-alt: #fdf8f3;
  --color-bg-dark: #1a1a1a;
  --color-border: #f0e6da;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
  --transition: 0.3s ease;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --radius: 8px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

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

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

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

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-primary);
}

.btn-gold {
  background: var(--color-gold);
  color: #fff;
  border-color: var(--color-gold);
}

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

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
}

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

.nav-menu a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-accent);
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: #1a1a1a;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    font-size: 1.2rem;
    color: #fff;
  }
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 40%, #d35400 100%);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.hero-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---------- Page Header (non-home pages) ---------- */
.page-header {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #d35400 100%);
  text-align: center;
  color: #fff;
  margin-top: var(--header-height);
}

.page-header h1 {
  color: #fff;
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
}

.page-header p {
  opacity: 0.8;
  font-size: 1.1rem;
}

/* ---------- Features / Cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--color-bg-alt);
  padding: 4rem 0;
}

.testimonial-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testimonial-card blockquote {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.testimonial-card .source {
  color: var(--color-text-light);
  font-weight: 600;
}

/* ---------- Team Section ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.team-card {
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-card .info {
  padding: 1.5rem;
}

.team-card .info h4 {
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
}

.team-card .info p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ---------- Contact Section ---------- */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-card {
  text-align: center;
  padding: 2.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-card h4 {
  margin-bottom: 0.75rem;
}

.contact-card p {
  color: var(--color-text-light);
}

.contact-card a {
  color: var(--color-accent);
  font-weight: 600;
}

.contact-card a:hover {
  color: var(--color-highlight);
}

/* ---------- Video Section ---------- */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 2rem auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

/* ---------- Photo Gallery ---------- */
.gallery-albums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.album-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

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

.album-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.album-card h4 {
  font-family: var(--font-body);
}

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

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition);
}

.gallery-grid img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

.gallery-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: color var(--transition);
}

.gallery-back:hover {
  color: var(--color-highlight);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 1rem;
  border-radius: 50%;
  transition: background var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-download {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-gold);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.lightbox-download:hover {
  background: var(--color-highlight);
}

/* Gallery loading state */
.gallery-loading {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-light);
}

.gallery-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.gallery-error {
  text-align: center;
  padding: 3rem;
  color: var(--color-highlight);
  background: #fff3f3;
  border-radius: var(--radius);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0;
  text-align: center;
}

.site-footer p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

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

.site-footer a:hover {
  color: #fff;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: #fff;
}

/* ---------- Performances list ---------- */
.performances-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.performance-item {
  background: #fff;
  padding: 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  font-weight: 500;
}

/* ---------- About Content ---------- */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.values-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.values-list li {
  padding: 0.75rem 0;
  font-style: italic;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border);
}

.values-list li:last-child {
  border-bottom: none;
}

/* ---------- Divider ---------- */
.divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 1.5rem auto;
  border-radius: 2px;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

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

  .hero-content p {
    font-size: 1.1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .page-header {
    padding: 5rem 0 3rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .features-grid,
  .team-grid,
  .contact-info {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-albums {
    grid-template-columns: 1fr;
  }
}
