/* ===== FIAT Catholic Hackathon – Design System ===== */

/* ---------- Google Font ---------- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,500;0,700;1,500&display=swap");

/* ---------- Custom Properties ---------- */
:root {
  --color-navy: #0e273b;
  --color-light-pink: #fcf4f6;
  --color-grey: #cccdc9;
  --color-gold: #f0ae00;
  --color-teal: #267597;

  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-soft: 0 4px 24px rgba(14, 39, 59, 0.12);
  --shadow-glow-gold: 0 0 40px rgba(240, 174, 0, 0.25);

  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background: var(--color-navy);
  color: var(--color-light-pink);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Background Pattern ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(38, 117, 151, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(240, 174, 0, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(14, 39, 59, 0.6) 0%,
      transparent 80%
    );
  pointer-events: none;
  z-index: 0;
}

/* ---------- Utility ---------- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(14, 39, 59, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition-base);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.nav__logo img {
  height: 42px;
  width: auto;
  border-radius: 4px;
}

.nav__links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  list-style: none;
}

.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-light-pink);
  opacity: 0.8;
  transition:
    opacity var(--transition-base),
    color var(--transition-base);
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-base);
}

.nav__links a:hover {
  opacity: 1;
  color: var(--color-gold);
}
.nav__links a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-light-pink);
  margin: 5px 0;
  transition: var(--transition-base);
  border-radius: 2px;
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 4rem;
}

.hero__logo {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  margin-bottom: 2rem;
  animation: float 6s ease-in-out infinite;
  box-shadow: var(--shadow-glow-gold);
}

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

.hero__tagline {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.hero__title span {
  color: var(--color-gold);
}

.hero__date {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-teal);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hero__date-icon {
  font-size: 1.3rem;
}

.hero__schedule {
  font-size: 0.95rem;
  color: var(--color-grey);
  margin-bottom: 1.6rem;
}

.hero__verse {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  max-width: 540px;
  color: rgba(252, 244, 246, 0.7);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.hero__verse-ref {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 2.4rem;
}

.hero__theme-badge {
  display: inline-block;
  background: rgba(240, 174, 0, 0.12);
  border: 1px solid rgba(240, 174, 0, 0.3);
  color: var(--color-gold);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2.2rem;
}

/* ---------- CTA BUTTONS ---------- */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn:hover::before {
  opacity: 1;
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-navy);
  box-shadow: 0 4px 20px rgba(240, 174, 0, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(240, 174, 0, 0.45);
}

.btn--secondary {
  background: transparent;
  border-color: var(--color-teal);
  color: var(--color-light-pink);
}

.btn--secondary:hover {
  background: var(--color-teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(38, 117, 151, 0.35);
}

.btn--outline {
  background: transparent;
  border-color: rgba(252, 244, 246, 0.25);
  color: var(--color-light-pink);
}

.btn--outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

/* ---------- FEATURES SECTION ---------- */
.features {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-grey);
  margin-bottom: 3rem;
  font-size: 1rem;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: rgba(252, 244, 246, 0.04);
  border: 1px solid rgba(252, 244, 246, 0.08);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  transition: all var(--transition-base);
}

.feature-card:hover {
  background: rgba(252, 244, 246, 0.07);
  border-color: rgba(240, 174, 0, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card__text {
  font-size: 0.9rem;
  color: var(--color-grey);
  line-height: 1.6;
}

/* ---------- FAQ SECTION ---------- */
.faq-section {
  position: relative;
  z-index: 1;
  padding: 5rem 0 6rem;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: rgba(252, 244, 246, 0.04);
  border: 1px solid rgba(252, 244, 246, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq-item.active {
  border-color: rgba(240, 174, 0, 0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--color-light-pink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-base);
}

.faq-question:hover {
  color: var(--color-gold);
}

.faq-icon {
  font-size: 1.4rem;
  transition: transform var(--transition-base);
  flex-shrink: 0;
  margin-left: 1rem;
  color: var(--color-gold);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
}

.faq-answer__inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.92rem;
  color: var(--color-grey);
  line-height: 1.7;
}

/* ---------- FOOTER ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(252, 244, 246, 0.08);
  padding: 2.5rem 0;
  text-align: center;
}

.footer__text {
  font-size: 0.82rem;
  color: var(--color-grey);
  opacity: 0.7;
}

.footer__text a {
  color: var(--color-gold);
  transition: opacity var(--transition-base);
}

.footer__text a:hover {
  opacity: 0.8;
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-navy);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
  box-shadow: 0 4px 16px rgba(240, 174, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(240, 174, 0, 0.45);
}

/* ---------- PAGE HEADER (FAQ Page) ---------- */
.page-header {
  position: relative;
  z-index: 1;
  padding: 8rem 0 3rem;
  text-align: center;
}

.page-header__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
}

.page-header__subtitle {
  color: var(--color-grey);
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(14, 39, 59, 0.95);
    backdrop-filter: blur(18px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav__links.open {
    display: flex;
  }
  .nav__toggle {
    display: block;
  }

  .hero__logo {
    width: 160px;
    height: 160px;
  }

  .cta-group {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero__logo {
    width: 130px;
    height: 130px;
  }

  .hero__verse {
    font-size: 0.95rem;
  }
}
