/*
Theme Name: FutureBuild Foundation Theme
Theme URI: https://furturebuild.org/
Author: Antigravity
Author URI: https://google.com
Description: A premium, cinematic, and high-performance custom WordPress theme for FutureBuild Foundation. Built with the "Midnight Luxe" aesthetic.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: future-build-theme
*/

/* ---------------------------------------------------------
    Midnight Luxe Design Tokens (Palette, Typography)
--------------------------------------------------------- */
:root {
  --color-obsidian: #0D0D12;
  --color-champagne: #C9A84C;
  --color-champagne-hover: #b8973d;
  --color-ivory: #FAF8F5;
  --color-slate: #2A2A35;
  --color-slate-light: #4A4A58;
  --color-teal: #10B981;
  --color-teal-hover: #0D9668;
  --color-red: #EF4444;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-ivory);
  color: var(--color-slate);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global Noise Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  content: "";
  opacity: 0.05;
  z-index: 9999;
  pointer-events: none;
}

/* Custom Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------------------------------------------------------
    Typography
--------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--color-obsidian);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.serif-italic-drama {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------------------------------------------------------
    Premium Micro-Interactions
--------------------------------------------------------- */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border: none;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.btn-premium:hover {
  transform: scale(1.03);
}

.btn-premium::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.btn-premium:hover::after {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--color-champagne);
  color: var(--color-obsidian);
}

.btn-primary:hover {
  background-color: var(--color-champagne-hover);
}

.btn-accent {
  background-color: var(--color-teal);
  color: var(--color-ivory);
}

.btn-accent:hover {
  background-color: var(--color-teal-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-ivory);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.interactive-lift:hover {
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
    Layout Modules
--------------------------------------------------------- */
.rounded-container-large {
  border-radius: 2.5rem;
}

.rounded-container-medium {
  border-radius: 1.5rem;
}

/* Grid helper */
.grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ---------------------------------------------------------
    Header / Navigation Floating Island
--------------------------------------------------------- */
.crisis-banner {
  background-color: var(--color-red);
  color: var(--color-ivory);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  padding: 0.5rem;
  letter-spacing: 0.05em;
  z-index: 1000;
  width: 100%;
}

.header-nav-wrapper {
  position: absolute;
  top: 2.5rem;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.floating-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  background-color: rgba(13, 13, 18, 0.02);
  border: 1px solid rgba(13, 13, 18, 0.05);
  border-radius: 9999px;
  padding: 0.6rem 1.5rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.floating-nav.scrolled {
  background-color: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(13, 13, 18, 0.1);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.nav-brand {
  font-weight: 900;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--color-obsidian);
  letter-spacing: -0.02em;
}

.floating-nav.scrolled .nav-brand {
  color: var(--color-obsidian);
}

.nav-menu-list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-menu-list a {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(13, 13, 18, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-menu-list a:hover {
  color: var(--color-obsidian);
}

/* ---------------------------------------------------------
    Hero Section (Midnight Luxe Blueprint)
--------------------------------------------------------- */
.hero-wrapper {
  min-height: 100dvh;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--color-obsidian);
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 18, 0.3) 0%, rgba(13, 13, 18, 0.95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 150px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-champagne);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: 2.2rem;
  color: var(--color-ivory);
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.hero-headline span.main-sans {
  display: block;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-headline span.drama-serif {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--color-champagne);
  font-size: 3.5rem;
  margin-top: 0.5rem;
}

.hero-description {
  font-size: 0.9rem;
  color: rgba(250, 248, 245, 0.8);
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .header-nav-wrapper {
    position: absolute;
    top: 1.5rem;
    left: 0;
    right: 0;
    padding: 0 1rem;
  }
  .floating-nav {
    padding: 0.5rem 1.25rem;
    background-color: #fff;
    border-color: rgba(13, 13, 18, 0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  }
  .nav-brand {
    font-size: 0.85rem;
  }
  .floating-nav .btn-premium {
    padding: 0.5rem 1rem !important;
    font-size: 0.65rem !important;
  }
  .hero-headline span.drama-serif {
    font-size: 2.4rem;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn-premium {
    width: 100%;
  }
  .nav-menu-list {
    display: none;
  }
  .crisis-banner {
    font-size: 0.65rem;
    padding: 0.5rem 1rem;
  }
}

/* ---------------------------------------------------------
    Section General
--------------------------------------------------------- */
.section-padding {
  padding: 6rem 0;
}

.section-dark {
  background-color: var(--color-obsidian);
  color: var(--color-ivory);
}

.section-dark h2 {
  color: var(--color-ivory);
}

.section-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 3rem;
}

/* ---------------------------------------------------------
    Spheres / Pillars Grid
--------------------------------------------------------- */
.card-pillar {
  background-color: var(--color-ivory);
  border: 1px solid rgba(13, 13, 18, 0.08);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-pillar:hover {
  border-color: var(--color-champagne);
  box-shadow: 0 20px 40px -10px rgba(13, 13, 18, 0.04);
}

.card-pillar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.card-pillar-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(201, 168, 76, 0.1);
  color: var(--color-champagne);
}

.card-pillar-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-slate-light);
}

.card-pillar-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-pillar-body p {
  font-size: 0.8rem;
  color: var(--color-slate-light);
  margin-bottom: 1.5rem;
}

.card-pillar-footer {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-champagne);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------------------------------------------------------
    Manifesto / Philosophy (The Parallax Texture)
--------------------------------------------------------- */
.manifesto-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--color-obsidian);
  color: var(--color-ivory);
}

.manifesto-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-size: cover;
  background-position: center;
  z-index: 1;
  mix-blend-mode: overlay;
}

.manifesto-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.manifesto-pre {
  font-size: 0.95rem;
  color: var(--color-slate-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.manifesto-post {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.2rem;
  line-height: 1.4;
  color: var(--color-champagne);
}

/* ---------------------------------------------------------
    Protocol Sticky Stacking Cards
--------------------------------------------------------- */
.stack-section {
  position: relative;
  background-color: var(--color-obsidian);
}

.stack-card {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  background-color: var(--color-obsidian);
  padding: 4rem 1rem;
}

.stack-card-inner {
  width: 100%;
  max-width: 1000px;
  background-color: var(--color-slate);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 2.5rem;
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
}

.stack-card-content {
  display: flex;
  flex-direction: column;
}

.stack-card-step {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-champagne);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.stack-card-title {
  color: var(--color-ivory);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.stack-card-desc {
  color: rgba(250, 248, 245, 0.75);
  font-size: 0.85rem;
  line-height: 1.7;
}

.stack-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

@media (max-width: 768px) {
  .stack-card-inner {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 1.5rem;
  }
  .stack-card-visual {
    order: -1;
    aspect-ratio: 1.6;
  }
}

/* ---------------------------------------------------------
    Pricing Grid (Membership)
--------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.pricing-card {
  background-color: var(--color-ivory);
  border: 1px solid rgba(13, 13, 18, 0.08);
  border-radius: 2.5rem;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 50px -10px rgba(13, 13, 18, 0.06);
}

.pricing-card.featured {
  background-color: var(--color-obsidian);
  color: var(--color-ivory);
  border: 1px solid var(--color-champagne);
}

.pricing-card.featured h3,
.pricing-card.featured .pricing-price {
  color: var(--color-ivory);
}

.pricing-card.featured .pricing-features li {
  color: rgba(250, 248, 245, 0.8);
}

.pricing-card-header h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-obsidian);
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-price span.period {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-slate-light);
}

.pricing-features {
  list-style: none;
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-features li {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-slate-light);
}

.pricing-features li::before {
  content: '✔';
  color: var(--color-teal);
  font-weight: bold;
}

/* ---------------------------------------------------------
    Footer Area
--------------------------------------------------------- */
.site-footer {
  background-color: var(--color-obsidian);
  color: var(--color-ivory);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 5rem 0 3rem 0;
  border-top-left-radius: 4rem;
  border-top-right-radius: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-champagne);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-about p {
  font-size: 0.75rem;
  color: rgba(250, 248, 245, 0.7);
  margin-bottom: 1.5rem;
}

.footer-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-teal);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-teal);
  border-radius: 50%;
  animation: pulse-ring 1.8s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col ul a {
  font-size: 0.75rem;
  color: rgba(250, 248, 245, 0.75);
}

.footer-col ul a:hover {
  color: var(--color-ivory);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: rgba(250, 248, 245, 0.5);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
