/*
 * Component Styles - Exact Visual Match
 * Beacon & Bridge Solutions LLC
 */

/* =====================
   HEADER / NAVIGATION
   ===================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  background: transparent;
  transition: background 0.3s ease;
}

.header.scrolled {
  background: rgba(7, 13, 20, 0.9);
  backdrop-filter: blur(8px);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 0 24px;
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  height: 56px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text-main {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.1;
}

.logo-text-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--soft-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
  border-bottom-color: var(--soft-gold);
}

.nav-btn-contact {
  border: 1px solid var(--soft-gold);
  color: var(--text-main);
  background: transparent;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.25s ease;
}

.nav-btn-contact:hover {
  border-color: var(--gold-hover);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-line {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
}

/* =====================
   HERO SECTION
   ===================== */
.hero {
  min-height: 75vh;
  padding: 6rem 0;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 65% 40%, rgba(201, 169, 97, 0.15), transparent 50%),
    linear-gradient(to bottom, transparent, rgba(7, 13, 20, 0.8)),
    var(--bg-ocean);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 6rem;
}

.hero-content {
  max-width: 520px;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  opacity: 0.85;
}

.hero-cta {
  display: inline-block;
  border: 1px solid var(--soft-gold);
  background: transparent;
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.25s ease;
}

.hero-cta:hover {
  border-color: var(--gold-hover);
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 4 / 3;
  margin-left: auto;
}

.hero-visual canvas {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* =====================
   SECTIONS
   ===================== */
.section {
  padding: 96px 0;
}

.section--dark {
  background: rgba(7, 13, 20, 0.4);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

/* =====================
   CARDS
   ===================== */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  transition: border-color 0.25s ease;
}

.card:hover {
  border-color: var(--soft-gold);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.card-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-list li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.card-list li::before {
  content: "•";
  color: var(--soft-gold);
  position: absolute;
  left: 0;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  background: var(--header-dark);
  padding: 32px 0;
  text-align: center;
  margin-top: auto;
}

.footer-text {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.footer-icon {
  height: 28px;
  width: auto;
  vertical-align: middle;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-icon:hover {
  transform: scale(1.15);
}

/* Wizard Easter Egg Animation */
.footer-icon.activating {
  animation: wizard-grow 0.4s ease-out forwards, wizard-rainbow 3.5s ease-in-out 0.4s forwards;
}

@keyframes wizard-grow {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(2.5);
  }
}

@keyframes wizard-rainbow {
  0% {
    transform: scale(2.5);
    filter: drop-shadow(0 0 3px rgba(211, 107, 107, 0.9)) drop-shadow(0 0 6px rgba(211, 107, 107, 0.6));
  }
  16% {
    filter: drop-shadow(0 0 3px rgba(217, 161, 91, 0.9)) drop-shadow(0 0 6px rgba(217, 161, 91, 0.6));
  }
  32% {
    filter: drop-shadow(0 0 3px rgba(212, 195, 106, 0.9)) drop-shadow(0 0 6px rgba(212, 195, 106, 0.6));
  }
  48% {
    filter: drop-shadow(0 0 3px rgba(111, 191, 155, 0.9)) drop-shadow(0 0 6px rgba(111, 191, 155, 0.6));
  }
  64% {
    filter: drop-shadow(0 0 3px rgba(106, 166, 217, 0.9)) drop-shadow(0 0 6px rgba(106, 166, 217, 0.6));
  }
  80% {
    filter: drop-shadow(0 0 3px rgba(155, 123, 217, 0.9)) drop-shadow(0 0 6px rgba(155, 123, 217, 0.6));
  }
  95% {
    filter: drop-shadow(0 0 3px rgba(155, 123, 217, 0.9)) drop-shadow(0 0 6px rgba(155, 123, 217, 0.6));
  }
  100% {
    transform: scale(2.5);
    filter: drop-shadow(0 0 0 transparent);
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .footer-icon.activating {
    animation: none;
  }
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
    padding: 0 4rem;
  }
  
  .hero-content {
    max-width: 100%;
    order: 2;
  }
  
  .hero-visual {
    order: 1;
    max-width: 100%;
    margin: 0 auto 2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--header-dark);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .card-grid--4,
  .card-grid--3 {
    grid-template-columns: 1fr;
  }
  
  .hero {
    min-height: auto;
    padding: 4rem 2rem;
  }
  
  .hero-grid {
    padding: 0 2rem;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .section {
    padding: 64px 0;
  }
}
