/* ==========================================================================
   BVT PORTAL - DESIGN SYSTEM & STYLESHEET
   Inspirato a Beach Volley Training (https://www.beachvolleytraining.it)
   Palette: BVT Crimson Red, Sand Gold, Slate Dark Navy, Crisp White
   ========================================================================== */

:root {
  /* Brand Colors */
  --bvt-red: #d32f2f;
  --bvt-red-glow: rgba(211, 47, 47, 0.45);
  --bvt-red-dark: #9a0007;
  --bvt-red-light: #ff6659;
  
  --bvt-gold: #ffb300;
  --bvt-gold-glow: rgba(255, 179, 0, 0.35);
  --bvt-sand: #f5eedc;
  --bvt-sand-muted: #d4c8b5;
  
  --bvt-lime: #c7f15b;
  --bvt-lime-glow: rgba(199, 241, 91, 0.35);
  
  /* Dark Atmosphere Colors */
  --bg-dark: #090d14;
  --bg-card: rgba(17, 24, 39, 0.72);
  --bg-card-hover: rgba(24, 33, 53, 0.85);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-active: rgba(255, 255, 255, 0.28);
  
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Typography */
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-normal: 0.35s var(--ease-spring);
  --transition-slow: 0.6s var(--ease-spring);
}

/* Base Reset & Document Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Background Stage with Depth */
.background-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-image {
  position: absolute;
  inset: -20px;
  background-image: url('assets/hero_bg.jpg');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.42) saturate(1.25) contrast(1.1);
  transform: scale(1.02);
  transition: transform 1.2s ease-out;
}

.bg-gradient-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 10%, rgba(211, 47, 47, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 15% 90%, rgba(255, 179, 0, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 90%, rgba(199, 241, 91, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(9, 13, 20, 0.75) 0%, rgba(9, 13, 20, 0.88) 50%, rgba(9, 13, 20, 0.98) 100%);
}

.bg-mesh-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Main Container Shell */
.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: space-between;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: transform var(--transition-fast);
}

.header-brand:hover .brand-logo-img {
  transform: translateY(-1px) scale(1.02);
}

.brand-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
}

.brand-tagline-wrap {
  display: flex;
  flex-direction: column;
}

.brand-tagline-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-tagline-sub {
  font-size: 0.75rem;
  color: var(--bvt-gold);
  letter-spacing: 0.5px;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--bvt-lime);
  box-shadow: 0 0 10px var(--bvt-lime);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.btn-ghost-site {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.btn-ghost-site:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  transform: translateY(-1px);
}

/* Main Stage / Hero Content */
.main-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 0 3rem;
  position: relative;
}

.hero-banner {
  text-align: center;
  margin-bottom: 2.75rem;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 1.1rem;
  background: rgba(211, 47, 47, 0.16);
  border: 1px solid rgba(211, 47, 47, 0.35);
  border-radius: 9999px;
  color: #ff867c;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(211, 47, 47, 0.15);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  letter-spacing: 1.5px;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

.hero-title span.text-highlight {
  background: linear-gradient(135deg, #ffffff 30%, var(--bvt-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span.text-red {
  color: var(--bvt-red-light);
  text-shadow: 0 0 25px var(--bvt-red-glow);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  font-weight: 400;
}

/* Dual Portal Cards Container */
.portals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

/* Portal Card Styles */
.portal-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 
    0 10px 30px -10px rgba(0, 0, 0, 0.6),
    0 20px 40px -20px rgba(0, 0, 0, 0.5);
  transition: 
    transform var(--transition-normal), 
    border-color var(--transition-normal), 
    box-shadow var(--transition-normal),
    background var(--transition-normal);
}

/* Card Glow Ambience */
.portal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.portal-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Card Specific Themes */
/* Card 1: BVT Hub (Athletic Crimson / Sun Gold) */
.card-bvt-hub {
  --card-accent: var(--bvt-red);
  --card-glow: var(--bvt-red-glow);
  --card-light: #ff7961;
}

.card-bvt-hub:hover {
  transform: translateY(-8px);
  border-color: rgba(211, 47, 47, 0.65);
  box-shadow: 
    0 20px 45px -10px rgba(211, 47, 47, 0.32),
    0 0 35px -5px rgba(211, 47, 47, 0.25),
    0 10px 25px -10px rgba(0, 0, 0, 0.8);
  background: var(--bg-card-hover);
}

.card-bvt-hub::before {
  background: linear-gradient(90deg, transparent, var(--bvt-red), var(--bvt-gold), transparent);
}

/* Card 2: Beach Scout (Tactical Lime / Cyber Teal) */
.card-beach-scout {
  --card-accent: var(--bvt-lime);
  --card-glow: var(--bvt-lime-glow);
  --card-light: #c7f15b;
}

.card-beach-scout:hover {
  transform: translateY(-8px);
  border-color: rgba(199, 241, 91, 0.6);
  box-shadow: 
    0 20px 45px -10px rgba(199, 241, 91, 0.25),
    0 0 35px -5px rgba(199, 241, 91, 0.2),
    0 10px 25px -10px rgba(0, 0, 0, 0.8);
  background: var(--bg-card-hover);
}

.card-beach-scout::before {
  background: linear-gradient(90deg, transparent, var(--bvt-lime), #00bcd4, transparent);
}

/* Card Header Section */
.card-header-area {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.card-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--transition-normal);
}

.card-bvt-hub .card-icon-wrapper {
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.3) 0%, rgba(255, 179, 0, 0.15) 100%);
  border: 1px solid rgba(211, 47, 47, 0.45);
  color: #ff867c;
  box-shadow: 0 8px 24px -6px rgba(211, 47, 47, 0.4);
}

.card-beach-scout .card-icon-wrapper {
  background: linear-gradient(135deg, rgba(199, 241, 91, 0.25) 0%, rgba(0, 188, 212, 0.15) 100%);
  border: 1px solid rgba(199, 241, 91, 0.45);
  color: var(--bvt-lime);
  box-shadow: 0 8px 24px -6px rgba(199, 241, 91, 0.3);
}

.portal-card:hover .card-icon-wrapper {
  transform: scale(1.1) rotate(-4deg);
}

.card-badge-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  backdrop-filter: blur(6px);
}

.card-bvt-hub .card-badge-tag {
  background: rgba(211, 47, 47, 0.18);
  border: 1px solid rgba(211, 47, 47, 0.35);
  color: #ff9e94;
}

.card-beach-scout .card-badge-tag {
  background: rgba(199, 241, 91, 0.15);
  border: 1px solid rgba(199, 241, 91, 0.35);
  color: var(--bvt-lime);
}

/* Card Content Area */
.card-body-area {
  margin-bottom: 2rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 0.75rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Features Pill List */
.card-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #cbd5e1;
  font-weight: 500;
}

.feature-bullet {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.card-bvt-hub .feature-bullet {
  background: rgba(211, 47, 47, 0.25);
  color: #ff867c;
  border: 1px solid rgba(211, 47, 47, 0.4);
}

.card-beach-scout .feature-bullet {
  background: rgba(199, 241, 91, 0.2);
  color: var(--bvt-lime);
  border: 1px solid rgba(199, 241, 91, 0.4);
}

/* Primary Action Buttons */
.card-action-area {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-portal-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 60px;
  padding: 0.9rem 1.8rem;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

/* Button 1: BVT Hub */
.btn-bvt-hub {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 6px 20px -4px rgba(211, 47, 47, 0.6),
    0 0 15px rgba(211, 47, 47, 0.3);
}

.btn-bvt-hub:hover {
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
  box-shadow: 
    0 10px 28px -4px rgba(211, 47, 47, 0.8),
    0 0 25px rgba(211, 47, 47, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-bvt-hub:active {
  transform: translateY(1px);
}

/* Button 2: Beach Scout */
.btn-beach-scout {
  background: linear-gradient(135deg, #103441 0%, #0d2731 100%);
  color: var(--bvt-lime);
  border: 1.5px solid var(--bvt-lime);
  box-shadow: 
    0 6px 20px -4px rgba(199, 241, 91, 0.35),
    0 0 15px rgba(199, 241, 91, 0.2);
}

.btn-beach-scout:hover {
  background: linear-gradient(135deg, #17485a 0%, #103441 100%);
  border-color: #d4f442;
  box-shadow: 
    0 10px 28px -4px rgba(199, 241, 91, 0.55),
    0 0 25px rgba(199, 241, 91, 0.35);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-beach-scout:active {
  transform: translateY(1px);
}

/* Button Arrow Micro-animation */
.btn-portal-action .btn-arrow-icon {
  display: inline-flex;
  align-items: center;
  transition: transform var(--transition-fast);
}

.btn-portal-action:hover .btn-arrow-icon {
  transform: translateX(6px);
}

/* Button Subtle Sheen Effect */
.btn-portal-action::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  transition: all 0.75s ease;
}

.btn-portal-action:hover::after {
  left: 130%;
}

.card-quick-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.meta-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.meta-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Quick Features Info Ribbon */
.info-ribbon-bar {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.ribbon-pill {
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-fast);
}

.ribbon-pill:hover {
  background: rgba(24, 33, 53, 0.65);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.ribbon-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bvt-gold);
  flex-shrink: 0;
}

.ribbon-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.15rem;
}

.ribbon-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Site Footer */
.site-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-locations-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.location-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.location-item::after {
  content: '•';
  margin-left: 0.6rem;
  color: rgba(255, 255, 255, 0.15);
}

.location-item:last-child::after {
  content: '';
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-link-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-link-btn:hover {
  background: var(--bvt-red);
  border-color: var(--bvt-red-light);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVENESS (Mobile, Tablet, Desktop)
   ========================================================================== */

/* Tablet & Smaller Desktops */
@media (max-width: 1024px) {
  .portals-grid {
    gap: 1.5rem;
  }
  
  .portal-card {
    padding: 1.75rem 1.5rem;
  }
  
  .info-ribbon-bar {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* Mobile & Small Tablets */
@media (max-width: 768px) {
  .app-shell {
    padding: 1rem 1rem 1.5rem;
  }
  
  .site-header {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.85rem;
    padding-bottom: 1rem;
  }
  
  .brand-logo-img {
    height: 38px;
    max-width: 145px;
  }
  
  .brand-divider,
  .brand-tagline-wrap {
    display: none;
  }
  
  .status-badge {
    padding: 0.35rem 0.65rem;
    font-size: 0.7rem;
  }
  
  .btn-ghost-site {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }
  
  .main-stage {
    padding: 1.5rem 0 2rem;
  }
  
  .hero-banner {
    margin-bottom: 2rem;
  }
  
  .hero-eyebrow {
    font-size: 0.72rem;
    padding: 0.25rem 0.85rem;
  }
  
  /* Stack Portals Vertically on Mobile */
  .portals-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .portal-card {
    border-radius: 20px;
    padding: 1.5rem 1.25rem;
  }
  
  .card-header-area {
    margin-bottom: 1rem;
  }
  
  .card-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }
  
  .card-icon-wrapper svg {
    width: 26px;
    height: 26px;
  }
  
  .card-title {
    font-size: 2.1rem;
  }
  
  .card-desc {
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
  }
  
  .btn-portal-action {
    font-size: 1.45rem;
    min-height: 54px;
    padding: 0.8rem 1.2rem;
  }
  
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-locations-list {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* Compact Mobile (under 420px) */
@media (max-width: 420px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .card-features-list {
    display: none; /* Keep mobile super clean & focused directly on the 2 action buttons */
  }
  
  .btn-portal-action {
    font-size: 1.35rem;
    min-height: 50px;
  }
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--bvt-gold);
  outline-offset: 4px;
}
