/* ==========================================================================
   MULTI-TAB ROUTING & CONTAINER STYLES
   Smooth transitions between Home, Packages, Projects, How It Works, Contact
   ========================================================================== */

.tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: tabFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Dedicated Page/Tab Header Banners */
.tab-header-banner {
  background: radial-gradient(circle at top right, rgba(229, 184, 105, 0.15), transparent 45%),
              linear-gradient(180deg, #051329 0%, #0a203e 100%);
  color: #ffffff;
  padding: 3.8rem 1.5rem 3.2rem;
  border-bottom: 1px solid rgba(229, 184, 105, 0.25);
  position: relative;
  overflow: hidden;
}

.tab-header-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.35;
  pointer-events: none;
}

.tab-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: left;
}

.tab-header-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 0.85rem;
}

.tab-header-title {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.8rem;
  color: #ffffff;
  text-align: left;
}

.tab-header-sub {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--on-navy-soft);
  max-width: 740px;
  margin: 0;
  text-align: left;
}

/* Quick Jump Pill Links */
.tab-subnav-pills {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.subnav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.subnav-pill:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Home Section Teaser Cards */
.home-feature-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0 1rem;
}

.home-feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 28px -15px rgba(7, 39, 76, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.home-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--line);
  transition: background 0.25s ease;
}

.home-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -16px rgba(7, 39, 76, 0.25);
  border-color: rgba(250, 99, 51, 0.4);
}

.home-feature-card:hover::before {
  background: var(--accent);
}

.home-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.home-feature-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.home-feature-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
  flex-grow: 1;
}

.home-feature-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: gap 0.2s ease, color 0.2s ease;
}

.home-feature-btn:hover {
  gap: 0.65rem;
  color: var(--accent-2);
}

@media (max-width: 960px) {
  .home-feature-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .home-feature-matrix {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .tab-header-banner {
    padding: 2.2rem 1.15rem 1.75rem;
  }
  .tab-header-title {
    font-size: 1.85rem;
    margin-bottom: 0.5rem;
  }
  .tab-header-sub {
    font-size: 0.92rem;
    line-height: 1.5;
  }
  .tab-subnav-pills {
    margin-top: 1.1rem;
    gap: 0.45rem;
  }
  .subnav-pill {
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
  }
}
