/*
 * components.css — 3rd Street Designs Inc.
 * ─────────────────────────────────────────────────────
 * Structural and behavioural CSS — theme-agnostic.
 * To restyle the site, edit css/theme.css instead.
 */

/* ── Scroll offset for sticky nav ──────────────────── */
section {
  scroll-margin-top: 80px;
}

/* ── Accessibility: skip link ───────────────────────── */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: #00ABE4;
  color: #001f3f;
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0 0 0.5rem 0.5rem;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-to-content:focus { top: 0; }

/* ── Glassmorphism ──────────────────────────────────── */
.glass {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Nav base transition ────────────────────────────── */
#main-nav {
  transition: all 0.4s ease-in-out;
  background: transparent;
}

/* ── Pricing price number transitions ───────────────── */
#essential-price,
#growth-price,
#dominance-price {
  transition: all 0.3s ease;
  display: inline-block;
}

/* ── Shimmer hero button animation ─────────────────── */
.shimmer {
  overflow: hidden;
  position: relative;
}
.shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

/* ── Floating animation ─────────────────────────────── */
.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-20px); }
}

/* ── Mobile: ROI table horizontal scroll ────────────── */
@media (max-width: 768px) {
  #roi .overflow-x-auto {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  #roi table {
    min-width: 600px;
  }
}

/* ── FAQ Accordion ──────────────────────────────────── */
.faq-item .faq-trigger {
  transition: padding-bottom 0.35s ease;
}
.faq-item.open .faq-trigger {
  padding-bottom: 0.25rem;
}
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding-top: 0;
  padding-bottom: 0;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding-top: 0.25rem;
  padding-bottom: 1.75rem;
}
.faq-item .faq-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* ── Form placeholder contrast ──────────────────────── */
#audit-form input::placeholder,
#audit-form textarea::placeholder {
  color: #536272;
  opacity: 1;
}
