/* GRIGA Events FZE - Core Styles */
:root {
  --color-red: #d11f26;
  --color-red-dark: #a8181e;
  --color-black: #222222;
  --color-black-soft: #333333;
  --color-white: #ffffff;
  --color-grey: #cccccc;
  --color-grey-light: #f4f4f4;

  --font-display: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
  --radius-soft: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--color-black-soft);
  background: var(--color-white);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-soft);
}

a {
  text-decoration: none;
  color: inherit;
}

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

.section {
  opacity: 0.95;
  padding: 40px 0;
}

.section-dark {
  background: radial-gradient(circle at top left, rgba(209,31,38,0.3), transparent 65%),
              radial-gradient(circle at bottom right, rgba(0,0,0,0.25), transparent 70%);
  color: var(--color-white);
  text-align: center;
  margin-bottom: 24px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 32px;
  margin: 0 0 10px;
}

.section-header p {
  max-width: 540px;
  margin: 0 auto;
  color: #777;
}

.section-dark .section-header p {
  color: #bbb;
}

/* Typography */

h1,
.h1 {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1.05;
  margin: 0 0 18px;
  color: var(--color-black);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero .hero-content h1 span {
  display: block;
  white-space: nowrap;
}

h2,
.h2 {
  font-family: var(--font-display);
  font-size: 32px;
  margin: 0 0 12px;
}

h3,
.h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 10px;
}

p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--color-red);
}

/* Header / Nav */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: padding 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.site-header.shrink .header-inner {
  padding: 8px 0;
}

.site-header.shrink {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-black);
}

.logo span {
  color: var(--color-red);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-black-soft);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width 0.2s ease;
}

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

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: var(--color-white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: relative;
  z-index: 1200;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-black);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.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);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-soft);
}

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

.btn-primary:hover {
  background: var(--color-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-black);
  border-color: rgba(0,0,0,0.2);
}

.btn-secondary:hover {
  background: #111;
  color: var(--color-white);
}

.btn-lg {
  padding: 14px 32px;
}

.text-link {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-black-soft);
}

.text-link:hover {
  color: var(--color-red);
}

/* Hero */

.hero {
  position: relative;
  min-height: clamp(600px, 80vh, 780px);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-bg-main {
  background-image: linear-gradient(120deg, rgba(0,0,0,0.7), rgba(0,0,0,0.2)), url('../img/placeholder-hero.jpg');
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: contrast(1.1) saturate(1.05);
  opacity: 1;
}

.hero-bg-overlay {
  z-index: 1;
  background: radial-gradient(circle at top left, rgba(209,31,38,0.2), transparent 70%),
              radial-gradient(circle at bottom right, rgba(0,0,0,0.25), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.4;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08), rgba(0,0,0,0.35));
  z-index: 1;
}

.hero .hero-content {
  width: min(960px, 95vw);
  color: var(--color-white);
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 60px) clamp(40px, 5vw, 60px);
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}

.hero-logo {
  margin: 18px auto 0;
  display: inline-block;
}
  
.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  background: transparent;
}

/* Hero heading uses full hero width so short text wraps cleanly */

.hero .hero-content h1 {
  max-width: min(720px, 92vw);
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 1.1;
  font-size: clamp(2.2rem, 3.6vw, 4rem);
  letter-spacing: 0.05em;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
}

@media (min-width: 1024px) {
  .hero .hero-content h1 {
    font-size: clamp(3.2rem, 3.4vw, 5.4rem);
  }
}

.hero .hero-subtitle {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  letter-spacing: 0.12em;
}

.hero .hero-content.hero-heading-visible {
  animation: heroHeadingZoom 0.9s ease-out forwards;
}

@keyframes heroHeadingZoom {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero .hero-content h1 span {
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow-wrap: normal;
}

@media (max-width: 640px) {
  .hero .hero-content {
    width: min(540px, 92vw);
    gap: 12px;
    padding: 4px 12px;
  }

  .hero .hero-content h1 {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
    line-height: 1.2;
  }

  .hero .hero-content h1 span {
    white-space: normal;
    word-break: break-word;
  }
}

@media (max-width: 767px) {
  .hero .hero-content h1 span {
    display: inline;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero .hero-content h1 span:first-child {
    display: inline;
  }

  .hero .hero-content h1 {
    font-weight: 1600;
  }
}

.hero .hero-subtitle {
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}

/* Tighten space between hero/logo and Upcoming Events */
#featured.section {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
}

@media (max-width: 768px) {
  #featured.section {
    margin-top: 0;
  }
}

#featured .section-header,
#partners .section-header {
  margin-bottom: 2px;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

/* Section split */

.section-split-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.split-media-card {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(209,31,38,0.4), transparent 55%),
              linear-gradient(135deg, #111, #333);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  overflow: hidden;
}
.split-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.split-media-cta {
  display: none;
  margin-top: 0.4rem;
  text-align: center;
}
.split-media-cta .btn {
  padding: 10px 16px;
  font-size: 11px;
}

/* Stats */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 6px;
}

.stat-label {
  color: #ccc;
  font-size: 14px;
}

/* Partners marquee */

.partners-marquee {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #eee;
  background: #fafafa;
  padding: 12px 20px;
}

.partners-track {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  animation: marquee 22s linear infinite;
}

.partner-logo {
  min-width: 80px;
  text-align: center;
  font-weight: 600;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-width: 120px;
  max-height: 48px;
  object-fit: contain;
  filter: saturate(0.9);
}
.event-card {
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.event-card img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
}
.event-card-body {
  padding: 14px 16px 16px;
}

.event-meta {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #999;
  margin-bottom: 6px;
}

.event-description {
  color: #666;
}

.event-card-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Swiper tweaks */

.featured-swiper .swiper-pagination-bullet {
  background: #ddd;
}

.featured-swiper .swiper-pagination-bullet-active {
  background: var(--color-red);
}

.featured-swiper {
  max-width: 900px;
  margin: 0 auto;
}

/* Footer */

.site-footer {
  padding: 32px 0 22px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 6px;
}

.footer-text {
  color: #777;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  font-size: 14px;
  color: #555;
}

.footer-links a:hover {
  color: var(--color-red);
}

.footer-meta {
  font-size: 13px;
  color: #777;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer-social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.footer-social a:hover {
  background: var(--color-red);
  color: var(--color-white);
  border-color: transparent;
}

/* Back to top */

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.76);
  color: var(--color-white);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Page templates (Events, Event detail, About, Gallery, Contact) will share many of these utilities. */

.page-hero {
  padding-top: 120px;
  padding-bottom: 60px;
  background: radial-gradient(circle at top left, rgba(209,31,38,0.08), transparent 60%),
              linear-gradient(to bottom, #ffffff, #f8f8f8);
}

.page-hero h1 {
  margin-bottom: 10px;
}

.page-hero p {
  max-width: 540px;
}

/* Utility grids */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Responsive */

@media (max-width: 960px) {
  .section {
    padding: 40px 0;
  }

  h1,
  .h1 {
    font-size: 42px;
  }

  h2,
  .h2 {
    font-size: 26px;
  }

  .section-split-inner {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .section-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .main-nav {
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(60vw, 420px);
    height: 100vh;
    padding: 120px 20px 32px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 18px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
    align-items: stretch;
    border-radius: 0 0 0 32px;
    overflow-y: auto;
    justify-content: flex-start;
    z-index: 1100;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li.nav-mobile-cta-item {
    margin-top: 0;
  }

  .nav-links a {
    padding: 24px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
  }

  .nav-mobile-cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    padding: 16px 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-red), var(--color-black));
    color: var(--color-white) !important;
    border: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 0;
    text-shadow: 0 1px 1px rgba(0,0,0,0.4);
  }

  .nav-links a::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-bottom: 80px;
  }

  .hero-logo {
    margin-top: 8px;
  }

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

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

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {
  .section-split-inner {
    grid-template-columns: 1fr;
  }

  .split-media-cta {
    display: block;
  }

  .split-text .split-text-cta {
    display: none;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 32px 0;
  }

  .hero {
    padding-top: 90px;
    padding-bottom: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .btn-lg {
    width: 100%;
  }

  h1,
  .h1 {
    font-size: 32px;
  }

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

  /* On mobile, remove extra space above Upcoming Events cards */
  #featured.section {
    padding-top: 0;
  }

  #featured .section-header {
    margin-bottom: 4px;
  }

  /* Limit event description lines on mobile for cleaner cards */
  .event-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-logo img {
    max-width: 480px;
    height: auto;
  }

  #featured.section {
    margin-top: 0;
  }
}

