/* 
 * TRIVIUM HUB - Premium Landing Page Styles
 * Palette: White, Silver (#e5e7eb), Charcoal/Black (#111827), Accents (Slate/Gray), Gold/Premium touches if needed.
 * Typography: Inter (Google Fonts)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;700&display=swap');

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f3f4f6;
  /* Gray-100 */
  --color-text: #1f2937;
  /* Gray-800 */
  --color-text-muted: #4b5563;
  /* Gray-600 */
  --color-primary: #111827;
  /* Gray-900 (Black-ish) */
  --color-secondary: #e5e7eb;
  /* Gray-200 */
  --color-accent: #374151;
  /* Gray-700 */
  --color-cta: #1e293b;
  /* Slate-800 */
  --color-cta-hover: #0f172a;
  /* Slate-900 */
  --color-border: #d1d5db;
  /* Gray-300 */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 0.5rem;
  --container-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--color-primary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

ul {
  list-style: none;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section-padding {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

.text-bold {
  font-weight: 700;
  color: var(--color-primary);
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-4 {
  gap: 2rem;
}

.hidden-mobile {
  display: block;
}

@media (max-width: 768px) {
  .hidden-mobile {
    display: none;
  }
}

/* Animations & Transitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse Animation for CTA */
@keyframes pulse-btn {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(30, 41, 59, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(30, 41, 59, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(30, 41, 59, 0);
  }
}

.btn-pulse {
  animation: pulse-btn 2s infinite;
}

/* Base Styles for Reusable Components */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: var(--color-cta);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn:hover {
  background-color: var(--color-cta-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-cta);
  border: 2px solid var(--color-cta);
}

.btn-secondary:hover {
  background-color: var(--color-cta);
  color: white;
}

.btn-full-mobile {
  width: auto;
}

@media(max-width: 768px) {
  .btn-full-mobile {
    width: 100%;
  }
}

/* Section Common */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
}

@media(max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

/* --- Block Specifics --- */

/* Header */
header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-secondary);
  z-index: 1000;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: center;
  /* Centered Logo */
  align-items: center;
}

.logo img {
  height: 70px;
  /* Increased size significantly */
  width: auto;
  transition: transform 0.3s;
}

.logo img:hover {
  transform: scale(1.05);
}

/* Hero */
.hero {
  padding: 6rem 0 5rem;
  background: radial-gradient(circle at top right, #f3f4f6 0%, #ffffff 50%);
}

.hero-headline {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}

.hero-sub {
  font-size: 1.5rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-bullets {
  margin-bottom: 3rem;
}

.hero-bullet-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.icon-check {
  color: #10b981;
  /* Green-500 for checkmarks */
  flex-shrink: 0;
}

@media(max-width: 768px) {
  .hero-headline {
    font-size: 2.5rem;
  }

  .hero-sub {
    font-size: 1.25rem;
  }
}

/* Problem Section */
.problem {
  background-color: #fafafa;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.problem-card {
  background: white;
  padding: 1.5rem;
  border-left: 4px solid var(--color-cta);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}

.problem-card:hover {
  transform: translateY(-3px);
}

/* Opportunity / Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pillar-card {
  background: white;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--color-secondary);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-cta);
}

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-cta);
}

/* Target Audience */
.target-section {
  background-color: var(--color-primary);
  color: white;
}

.target-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.target-col h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.5rem;
}

.target-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.target-list.yes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
}

.target-list.no li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #ef4444;
}

@media(max-width: 768px) {
  .target-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Value Props */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  background: var(--color-bg-alt);
  padding: 2rem;
  border-radius: var(--radius);
  transition: background 0.3s;
}

.value-card:hover {
  background: #e5e7eb;
}

.value-card h3 {
  margin-bottom: 1rem;
}

@media(max-width: 768px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
}

/* Social Proof */
.proof-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.proof-item {
  background-color: #ddd;
  aspect-ratio: 9/16;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s;
}

.proof-item:hover {
  transform: scale(1.02);
  z-index: 5;
}

.proof-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.5rem;
  font-size: 0.8rem;
}

/* Method Timeline/Accordion */
.method-item {
  border-bottom: 1px solid var(--color-secondary);
  padding: 1.5rem 0;
}

.method-item:last-child {
  border-bottom: none;
}

.method-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.method-head h3 {
  font-size: 1.25rem;
}

.method-body {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
  color: var(--color-text-muted);
}

.method-item.active .method-body {
  height: auto;
  padding-top: 1rem;
}

.method-icon {
  width: 24px;
  height: 24px;
  background: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.method-item.active .method-icon {
  transform: rotate(180deg);
}

/* Offers */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.offer-card {
  border: 1px solid var(--color-secondary);
  padding: 2rem;
  border-radius: var(--radius);
  background: white;
  transition: 0.3s;
}

.offer-card.featured {
  border-color: var(--color-cta);
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(1.05);
  z-index: 10;
}

.offer-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.offer-tag {
  background: var(--color-cta);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 1rem;
}

@media(max-width: 900px) {
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .offer-card.featured {
    transform: none;
  }
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  text-align: center;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.team-img-wrap {
  width: 200px;
  /* Specific size for round */
  height: 200px;
  background-color: #eee;
  border-radius: 50%;
  /* Circle */
  overflow: hidden;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;

  /* Floating Effect */
  animation: float 4s ease-in-out infinite;
}

.team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Delays for floating to be asynchronous */
.team-card:nth-child(1) .team-img-wrap {
  animation-delay: 0s;
}

.team-card:nth-child(2) .team-img-wrap {
  animation-delay: 1s;
}

.team-card:nth-child(3) .team-img-wrap {
  animation-delay: 2s;
}


@media(max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
footer {
  background: var(--color-primary);
  color: #9ca3af;
  padding: 3rem 0;
  font-size: 0.9rem;
}

.footer-links a {
  margin: 0 1rem;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

/* FAQ */
.faq-item {
  background: white;
  border: 1px solid var(--color-secondary);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  background: #fdfdfd;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  /* arbitrary limit for animation */
  padding-bottom: 1.5rem;
}