/* ARSA Modern Library — custom styles layered on top of Tailwind (CDN).
   Kept minimal on purpose: anything Tailwind utilities can express lives in index.html. */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* keeps section headings clear of the sticky header */
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

.font-heading {
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
}

/* ---------- Header ---------- */
/* Header starts transparent-ish over the hero photo, so it always carries its own
   dark scrim — text contrast can't depend on what happens to be behind it. */
#site-header {
  transition: background 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  background: linear-gradient(to bottom, rgba(10, 30, 51, 0.6) 0%, rgba(10, 30, 51, 0.2) 100%);
}
#site-header.header-solid {
  background: #faf8f4;
  box-shadow: 0 1px 0 rgba(15, 42, 71, 0.08);
}

/* Logo/nav/menu-icon default to light (readable on the dark scrim above the hero),
   then flip to dark once the header goes solid after scrolling past the hero. */
.header-logo,
.header-nav-link {
  color: #faf8f4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: color 0.25s ease;
}
.header-logo-accent {
  color: #e0b85c;
  transition: color 0.25s ease;
}
.header-nav-link:hover {
  color: #e0b85c;
}
#site-header.header-solid .header-logo,
#site-header.header-solid .header-nav-link {
  color: #0f2a47;
  text-shadow: none;
}
#site-header.header-solid .header-logo-accent {
  color: #a87d2a;
}
#site-header.header-solid .header-nav-link:hover {
  color: #0f2a47;
}

#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
#mobile-menu.open {
  max-height: 420px;
}

/* ---------- Gallery slider ---------- */
#gallery-wrapper {
  position: relative;
  overflow: hidden;
}
#gallery-track {
  position: relative;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.carousel-slide.active {
  opacity: 1;
  position: relative;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: rgba(250, 248, 244, 0.5);
  transition: background-color 0.2s ease, width 0.2s ease;
}
.carousel-dot.active {
  background-color: #c99a3d;
  width: 22px;
}

/* Touch/tap targets stay comfortably above the 44x44px minimum (§6.1) */
.carousel-arrow {
  min-width: 44px;
  min-height: 44px;
}

/* ---------- Early-bird tier tracker ---------- */
#tier-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  position: relative;
}
.tier-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}
.tier-step__dot {
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background-color: rgba(250, 248, 244, 0.15);
  border: 2px solid rgba(250, 248, 244, 0.3);
}
.tier-step--filled .tier-step__dot {
  background-color: #c99a3d;
  border-color: #c99a3d;
}
.tier-step--active .tier-step__dot {
  background-color: #faf8f4;
  border-color: #c99a3d;
  box-shadow: 0 0 0 4px rgba(201, 154, 61, 0.35);
}
.tier-step__label {
  font-size: 0.7rem;
  color: rgba(250, 248, 244, 0.65);
  line-height: 1.1;
}
.tier-step__discount {
  font-size: 0.8rem;
  font-weight: 700;
  color: #faf8f4;
}
.tier-step--upcoming .tier-step__discount {
  color: rgba(250, 248, 244, 0.4);
}

@media (max-width: 480px) {
  .tier-step__label {
    font-size: 0.6rem;
  }
}

/* ---------- FAQ accordion ---------- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer.open {
  max-height: 240px;
}
.faq-question i {
  transition: transform 0.2s ease;
}

/* ---------- Countdown ---------- */
#countdown {
  display: flex;
  gap: 0.75rem;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  background-color: rgba(250, 248, 244, 0.12);
  border-radius: 0.5rem;
  padding: 0.4rem 0.3rem;
}
.countdown-unit strong {
  font-size: 1.1rem;
  font-family: "Poppins", sans-serif;
}
.countdown-unit small {
  font-size: 0.6rem;
  opacity: 0.7;
  text-transform: uppercase;
}

/* ---------- Sticky mobile CTA ---------- */
#mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
}

/* ---------- Accessibility: visible focus outlines everywhere ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #c99a3d;
  outline-offset: 2px;
}

/* ---------- Tables reflow to cards on mobile (features table stays a real table >= sm) ---------- */
@media (max-width: 639px) {
  #features-table-wrap {
    display: none;
  }
}
@media (min-width: 640px) {
  #features-cards {
    display: none;
  }
}
