/* ===================================
   RASTAFARI.TV V2 - PROFESSIONAL DESIGN
   Based on: https://n4z.b73.myftpupload.com/coffee/
   =================================== */

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

:root {
  /* Rastafari Colors */
  --rasta-red: #E03C31;
  --rasta-gold: #FCD116;
  --rasta-green: #009B3A;

  /* Primary Palette (Lighter/Professional) */
  --primary-color: #2ea3f2;
  --bg-primary: #ffffff;
  --bg-secondary: #f9f9f9;
  --bg-tertiary: #f4f4f4;

  /* Text Colors */
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-inverse: #ffffff;

  /* Borders */
  --border-light: #e2e2e2;
  --border-medium: #cccccc;

  /* Spacing */
  --container-max: 1080px;
  --container-wide: 1200px;
  --gutter: 30px;
  --radius: 0;

  /* Typography */
  --font-body: 'Open Sans', Arial, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --base-size: 14px;
  --line-height: 1.7;

  /* Transitions */
  --transition: 0.2s linear;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: var(--base-size);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: var(--line-height);
  color: var(--text-secondary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

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

h1 { font-size: 2.143rem; } /* 30px */
h2 { font-size: 1.857rem; } /* 26px */
h3 { font-size: 1.571rem; } /* 22px */
h4 { font-size: 1.286rem; } /* 18px */
h5 { font-size: 1.143rem; } /* 16px */
h6 { font-size: 1rem; }     /* 14px */

p {
  margin-bottom: 1em;
}

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

a:hover {
  opacity: 0.8;
}

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

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--text-primary);
  color: var(--text-inverse);
  padding: 0.5rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* Containers */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  padding: 1rem 0;
}

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

.site-logo {
  height: 60px;
  width: auto;
  transition: var(--transition);
}

.site-logo:hover {
  opacity: 0.8;
}

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

.main-nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.5rem 0;
  position: relative;
}

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

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  position: relative;
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--text-primary);
}

.hero-video-background {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--text-inverse);
  padding: 2rem 0;
  animation: fadeIn 0.6s ease;
}

.hero-label {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(252, 209, 22, 0.2);
  border: 1px solid var(--rasta-gold);
  color: var(--rasta-gold);
  font-size: 0.857rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--text-inverse);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.286rem);
  max-width: 700px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

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

/* ===================================
   BUTTONS
   =================================== */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--rasta-gold);
  color: var(--text-primary);
  border-color: var(--rasta-gold);
}

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

.btn-secondary {
  background: transparent;
  color: var(--text-inverse);
  border-color: var(--text-inverse);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.143rem;
}

/* ===================================
   NETWORK IDENTITY (ABOUT)
   =================================== */

.network-identity {
  padding: 5rem 0;
  background: var(--bg-secondary);
  text-align: center;
}

.identity-content {
  max-width: 800px;
  margin: 0 auto;
}

.identity-divider {
  width: 100px;
  height: 4px;
  margin: 0 auto 2rem;
  background: linear-gradient(
    to right,
    var(--rasta-red) 0%, var(--rasta-red) 33%,
    var(--rasta-gold) 33%, var(--rasta-gold) 66%,
    var(--rasta-green) 66%, var(--rasta-green) 100%
  );
}

.identity-title {
  font-size: clamp(1.857rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.identity-mission {
  font-size: 1.143rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ===================================
   EVENTS STRIP
   =================================== */

.events-strip {
  padding: 4rem 0;
  background: var(--bg-primary);
}

.section-title {
  font-size: 1.857rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.events-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) var(--bg-tertiary);
  padding-bottom: 1rem;
}

.events-scroll::-webkit-scrollbar {
  height: 8px;
}

.events-scroll::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

.events-scroll::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

.event-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

.event-card:hover {
  border-color: var(--border-medium);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-thumbnail {
  position: relative;
  width: 100%;
  height: 180px;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.event-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.714rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.event-badge.live {
  background: var(--rasta-red);
  color: var(--text-inverse);
}

.event-badge.upcoming {
  background: var(--rasta-gold);
  color: var(--text-primary);
}

.event-details {
  padding: 1.25rem;
}

.event-title {
  font-size: 1.143rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.event-date {
  font-size: 0.929rem;
  color: var(--text-muted);
}

/* ===================================
   CONTENT ROWS (ARCHIVE)
   =================================== */

.content-rows {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.section-title-large {
  font-size: clamp(1.857rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
  text-align: center;
  color: var(--text-primary);
}

.content-row {
  margin-bottom: 3rem;
}

.row-title {
  font-size: 1.571rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.row-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) var(--bg-tertiary);
  padding-bottom: 1rem;
}

.row-scroll::-webkit-scrollbar {
  height: 8px;
}

.row-scroll::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

.row-scroll::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

.media-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: var(--transition);
}

.media-card:hover {
  transform: translateY(-4px);
}

.media-thumbnail {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--rasta-green) 0%, var(--rasta-gold) 100%);
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-light);
}

.media-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ===================================
   UNITY SECTION
   =================================== */

.unity-section {
  padding: 5rem 0;
  background: var(--bg-primary);
  text-align: center;
}

.unity-intro {
  font-size: 1.143rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--text-secondary);
}

.org-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.org-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.org-logo:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.org-logo img {
  max-width: 100%;
  height: auto;
  filter: grayscale(20%);
  transition: var(--transition);
}

.org-logo:hover img {
  filter: grayscale(0%);
}

/* ===================================
   SUPPORT SECTION
   =================================== */

.support-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
  text-align: center;
}

.support-content {
  max-width: 800px;
  margin: 0 auto;
}

.support-text {
  font-size: 1.143rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.support-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ===================================
   PARTNER SECTION
   =================================== */

.partner-section {
  padding: 4rem 0;
  background: var(--bg-primary);
  text-align: center;
}

.partner-label {
  font-size: 0.857rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.partner-text {
  font-size: 1.143rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-text {
  font-size: 1.143rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-form {
  text-align: left;
  margin-top: 2rem;
}

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

.form-group label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-form button {
  width: 100%;
  margin-top: 1rem;
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
  background: var(--text-primary);
  color: var(--text-inverse);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.143rem;
  color: var(--text-inverse);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
}

.copyright,
.nonprofit {
  font-size: 0.929rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .org-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

/* Mobile (Below 768px) */
@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 0;
  }

  .site-logo {
    height: 50px;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 68px);
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: left 0.3s ease;
    border-top: 1px solid var(--border-light);
  }

  .nav-links.active {
    left: 0;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .network-identity,
  .support-section,
  .contact-section {
    padding: 3rem 0;
  }

  .events-strip,
  .content-rows,
  .unity-section,
  .partner-section {
    padding: 3rem 0;
  }

  .event-card {
    flex: 0 0 calc(90vw - 2rem);
    max-width: 400px;
  }

  .media-card {
    flex: 0 0 160px;
  }

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

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

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

  .btn {
    width: 100%;
  }
}

/* Small Mobile (Below 480px) */
@media (max-width: 480px) {
  .site-logo {
    height: 45px;
  }

  .event-card {
    flex: 0 0 calc(85vw - 1rem);
    max-width: 350px;
  }

  .media-card {
    flex: 0 0 140px;
  }

  .section-title-large {
    font-size: 1.857rem;
  }
}

/* Focus States (Accessibility) */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--rasta-gold);
  outline-offset: 2px;
}
