/* ==========================================================================
   GLOBAL THEME VARIABLES
   ========================================================================== */
:root {
  --primary-color: #e65100;        /* Vibrant Texas Orange/Red */
  --primary-hover: #bf360c;
  --bg-dark: #0a0c0e;              /* Deep dark background */
  --bg-secondary: #12161a;         /* Slightly lighter section background */
  --bg-card: #181d22;              /* Card background */
  
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-heading: #ffffff;
  
  --overlay-dark: rgba(10, 12, 14, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --font-heading: 'Dosis', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  letter-spacing: 1px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

.uppercase { text-transform: uppercase; }
.bg-secondary { background-color: var(--bg-secondary); }

/* ==========================================================================
   HEADER NAVIGATION (FIXED AT TOP)
   ========================================================================== */
.header.default {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.header .logo h2 {
  font-size: 1.25rem;
  color: #fff;
}

.main-nav .main-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.main-nav .main-menu a {
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-nav .main-menu a:hover {
  color: var(--primary-color);
}

/* ==========================================================================
   HERO SECTION (FULL BLEED COVER)
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero .background-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero .background-img img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Preserves full illustration artwork without harsh crop */
  object-position: center;
}

.hero .background-img.overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-dark);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 4rem; /* Offset for header navigation */
}

.hero-content h1.large {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

.hero-content h5 {
  font-size: 1.25rem;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* ==========================================================================
   BUTTONS & CARDS
   ========================================================================== */
.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  letter-spacing: 1px;
  box-shadow: 0 4px 14px rgba(230, 81, 0, 0.4);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

/* ==========================================================================
   SECTIONS & LAYOUT HELPERS
   ========================================================================== */
section.main {
  padding: 6rem 0;
  position: relative;
}

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

.grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: center;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}

.card-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.card-gallery img:hover {
  transform: scale(1.02);
}

.footer {
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* Utility classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-width-700 { max-width: 700px; }
.max-width-800 { max-width: 800px; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* Social Icons */
.block-social {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.block-social a {
  color: var(--text-muted);
}

.block-social a:hover {
  color: var(--primary-color);
}

/* ==========================================================================
   FLEXIBLE MIXED-ASPECT VIDEO GRID & MODAL
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.video-card {
  cursor: pointer;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

/* Aspect ratio containers */
.thumbnail-wrapper {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background-color: #000;
}

.video-card.horizontal .thumbnail-wrapper {
  aspect-ratio: 16 / 9;
}

.video-card.vertical .thumbnail-wrapper {
  aspect-ratio: 9 / 16;
}

.thumbnail-wrapper video,
.thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hover play button */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.video-card:hover .play-button {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Modal Popup Window */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 850px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.9);
  transition: max-width 0.3s ease;
}

/* Dynamic Modal Sizes for Horizontal vs Vertical */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 75vh;
  border-radius: 6px;
  overflow: hidden;
  background-color: #000;
  margin: 0 auto;
}

.video-container.vertical-player {
  aspect-ratio: 9 / 16;
  max-width: 380px; /* Constrains vertical reels so they don't stretch */
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.close-modal {
  position: absolute;
  top: 8px;
  right: 18px;
  font-size: 2.2rem;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 10;
}

.close-modal:hover {
  color: var(--primary-color);
}