/* ============================================================
   FLYING SPARKS — Fire-themed Static Website
   Design system: dark background + red/orange/gold palette
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Raleway:wght@300;400;500;600&display=swap');

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

:root {
  --bg:        #0d0805;
  --surface:   #1a0f0a;
  --surface2:  #221208;
  --fire-red:  #e84520;
  --fire-org:  #f97316;
  --fire-gold: #fbbf24;
  --text:      #f5e6d8;
  --muted:     #8a6a5a;
  --border:    rgba(248, 115, 22, 0.18);
  --glow:      rgba(249, 115, 22, 0.35);
  --radius:    12px;
  --transition: 0.4s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: var(--fire-org); text-decoration: none; }
a:hover { color: var(--fire-gold); }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  line-height: 1.2;
  letter-spacing: 0.04em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

p  { font-size: 1.05rem; color: var(--text); opacity: 0.88; }

/* ── Fire gradient helpers ────────────────────────────────── */
.fire-text {
  background: linear-gradient(135deg, var(--fire-gold) 0%, var(--fire-org) 50%, var(--fire-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fire-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--fire-red), var(--fire-gold));
  border-radius: 2px;
  margin: 1.2rem auto;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--fire-red), var(--fire-org));
  color: #fff;
  box-shadow: 0 4px 24px rgba(232, 69, 32, 0.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.6);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--fire-org);
  color: var(--fire-org);
}
.btn-outline:hover {
  background: var(--fire-org);
  color: var(--bg);
  transform: translateY(-2px);
}

/* ── Navigation ───────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(13,8,5,0.92) 0%, transparent 100%);
  backdrop-filter: blur(4px);
  transition: background var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: rgba(13, 8, 5, 0.97);
  padding: 0.6rem 2.5rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.nav-logo img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(249,115,22,0.5));
  transition: filter var(--transition);
}
.nav-logo img:hover { filter: drop-shadow(0 0 16px rgba(249,115,22,0.9)); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.85;
  transition: opacity var(--transition), color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 100%;
  height: 1px;
  background: var(--fire-org);
  transition: right var(--transition);
}
.nav-links a:hover { opacity: 1; color: var(--fire-org); }
.nav-links a:hover::after { right: 0; }

.nav-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-social a {
  color: var(--muted);
  font-size: 1.1rem;
  transition: color var(--transition), transform var(--transition);
}
.nav-social a:hover { color: var(--fire-org); transform: scale(1.2); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ── Hero / Slider ────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.slide.active { opacity: 1; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.65);
}

/* Flame vignette overlay */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,  rgba(13,8,5,0.95) 0%, rgba(13,8,5,0.1) 50%, transparent 100%),
    linear-gradient(to right, rgba(13,8,5,0.5) 0%, transparent 40%);
}

.hero-content {
  position: absolute;
  bottom: 15%;
  left: 6%;
  z-index: 2;
  max-width: 680px;
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fire-org);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-content h1 {
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 32px rgba(0,0,0,0.8);
}

.hero-content .subtitle {
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0.8;
  margin-bottom: 2rem;
  max-width: 480px;
  font-style: italic;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Slider controls */
.slider-controls {
  position: absolute;
  bottom: 6%;
  right: 6%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-dots {
  display: flex;
  gap: 8px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.dot.active {
  width: 28px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--fire-red), var(--fire-org));
}

.slider-arrow {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(249,115,22,0.3);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}
.slider-arrow:hover {
  background: var(--fire-org);
  border-color: var(--fire-org);
  color: var(--bg);
  transform: scale(1.1);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.5;
  animation: bounce 2s infinite;
}
.scroll-indicator span {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}
.scroll-indicator svg { color: var(--fire-org); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Section Layout ───────────────────────────────────────── */
section { padding: 7rem 2.5rem; position: relative; }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--fire-org);
  display: block;
  margin-bottom: 0.8rem;
}
.section-title { margin-bottom: 0.5rem; }
.section-intro { max-width: 600px; color: var(--text); opacity: 0.75; margin-bottom: 3.5rem; }

/* ── About / Cards ────────────────────────────────────────── */
#about { background: var(--surface); }

#about .intro-block {
  max-width: 700px;
  margin: 0 auto 4rem;
  text-align: center;
}
#about .intro-block p {
  font-size: 1.1rem;
  line-height: 1.85;
  opacity: 0.85;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--fire-red), var(--fire-gold));
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(249,115,22,0.15);
  border-color: rgba(249,115,22,0.4);
}
.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  display: block;
  filter: drop-shadow(0 0 8px rgba(249,115,22,0.6));
}
.card h3 { font-size: 1.1rem; margin-bottom: 0.8rem; color: var(--fire-gold); }
.card p  { font-size: 0.95rem; opacity: 0.75; line-height: 1.7; }

/* ── Alternating Text/Image ───────────────────────────────── */
#gallery { background: var(--bg); }

.alt-section { margin-bottom: 6rem; }
.alt-section:last-child { margin-bottom: 0; }

.alt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.alt-row.reverse { direction: rtl; }
.alt-row.reverse > * { direction: ltr; }

.alt-text {}
.alt-text .section-label { display: block; margin-bottom: 0.6rem; }
.alt-text h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.alt-text p  { opacity: 0.8; line-height: 1.85; margin-bottom: 1.5rem; }

.alt-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.alt-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.6s ease;
  display: block;
}
.alt-image:hover img { transform: scale(1.04); }

/* fire glow frame */
.alt-image::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(135deg, var(--fire-red), var(--fire-gold), var(--fire-red));
  z-index: -1;
  opacity: 0.7;
}
.alt-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 60px rgba(232,69,32,0.15);
  z-index: 1;
  pointer-events: none;
}

/* ── Events ───────────────────────────────────────────────── */
#events { background: var(--surface); }

.events-header { text-align: center; margin-bottom: 4rem; }

.events-coming {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.events-coming::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(232,69,32,0.08) 0%, transparent 70%);
}
.events-coming .flame-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 0 12px rgba(249,115,22,0.8));
  animation: flicker 3s ease-in-out infinite;
}
.events-coming h3 {
  color: var(--fire-gold);
  margin-bottom: 1rem;
}
.events-coming p {
  opacity: 0.75;
  margin-bottom: 2rem;
}

@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-1deg); opacity: 1; }
  25%       { transform: scale(1.05) rotate(1deg); opacity: 0.9; }
  50%       { transform: scale(0.98) rotate(-0.5deg); opacity: 1; }
  75%       { transform: scale(1.03) rotate(0.8deg); opacity: 0.95; }
}

/* ── Contact ──────────────────────────────────────────────── */
#contact { background: var(--bg); }

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

.contact-info h2 { margin-bottom: 0.5rem; }
.contact-info .fire-divider { margin: 1rem 0; }
.contact-info .lead {
  font-size: 1.05rem;
  opacity: 0.8;
  margin-bottom: 2.5rem;
}

.contact-items { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(249,115,22,0.3));
}
.contact-item-text h4 {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--fire-org);
  margin-bottom: 0.25rem;
}
.contact-item-text p,
.contact-item-text a {
  font-size: 0.95rem;
  opacity: 0.85;
  color: var(--text);
}
.contact-item-text a:hover { color: var(--fire-org); }

.contact-social {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-social::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(249,115,22,0.08) 0%, transparent 60%);
}
.contact-social h3 {
  color: var(--fire-gold);
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}
.contact-social p {
  opacity: 0.7;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.social-link:hover {
  background: rgba(249,115,22,0.1);
  border-color: var(--fire-org);
  color: var(--fire-org);
  transform: translateY(-2px);
}
.social-link svg { width: 18px; height: 18px; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 2.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-logo img {
  height: 40px;
  filter: drop-shadow(0 0 6px rgba(249,115,22,0.4));
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--fire-org); }

.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  color: var(--muted);
  font-size: 1.1rem;
  transition: color var(--transition), transform var(--transition);
}
.footer-social a:hover { color: var(--fire-org); transform: scale(1.2); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.8rem;
  opacity: 0.4;
  color: var(--muted);
}
.footer-tagline {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--fire-org);
  opacity: 0.6;
  text-transform: uppercase;
}

/* ── Scroll Reveal animations ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .alt-row, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .alt-row.reverse { direction: ltr; }
  .alt-image img { height: 320px; }
  .hero-content { bottom: 20%; left: 5%; }
}

@media (max-width: 680px) {
  section { padding: 5rem 1.5rem; }
  .navbar { padding: 1rem 1.5rem; }
  .navbar.scrolled { padding: 0.6rem 1.5rem; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13,8,5,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 200;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }

  .nav-toggle { display: flex; z-index: 210; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-social { display: none; }

  .cards-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2.4rem; }
  .slider-controls { right: 50%; transform: translateX(50%); bottom: 3%; }
  .footer-top { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
  .footer-social { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
