/* ============================================
   E5 ENCLAVE INCORPORATED — STYLESHEET
   Colors: Black, Gold, Deep Red
   Typography: Playfair Display + Inter
   ============================================ */

:root {
    --black: #0a0a0a;
    --black-light: #1a1a1a;
    --black-medium: #2a2a2a;
    --gold: #c9a84c;
    --gold-light: #d4b86a;
    --gold-dark: #a8882e;
    --gold-muted: #b89d45;
    --red: #8b1a1a;
    --red-light: #a52a2a;
    --red-accent: #c0392b;
    --white: #f5f5f0;
    --white-pure: #ffffff;
    --gray: #888;
    --gray-light: #bbb;
    --gray-dark: #444;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-e5 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.logo-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.logo-inc {
    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 400;
    color: var(--gray);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-donate {
    background: var(--gold);
    color: var(--black) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 2px;
    font-weight: 600 !important;
    letter-spacing: 0.15em !important;
}

.nav-donate:hover {
    background: var(--gold-light) !important;
    color: var(--black) !important;
}

.nav-donate::after {
    display: none !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--black);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(139, 26, 26, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(201, 168, 76, 0.04) 0%, transparent 40%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.1) 50%, rgba(10,10,10,0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 2rem;
}

.hero-tagline {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-muted);
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.hero-e5 {
    color: var(--gold);
    display: inline;
}

.hero-subtitle-block {
    display: block;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.6em;
    color: var(--gray);
    margin-top: 0.8rem;
}

.hero-motto {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--gold-muted);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.hero-description {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.hero-scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gray);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.3); }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--gold-light);
    color: var(--black);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

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

.btn-large {
    padding: 1.2rem 3.5rem;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

/* ============================================
   ABOUT
   ============================================ */

.about {
    background: var(--black);
    border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-lead {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-main p {
    color: var(--gray-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.vision-card {
    background: var(--black-light);
    border: 1px solid rgba(201, 168, 76, 0.15);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.vision-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.vision-card p {
    color: var(--gray-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.latin-motto {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem !important;
    color: var(--gold-muted) !important;
    margin-bottom: 0.3rem !important;
}

/* ============================================
   PILLARS
   ============================================ */

.pillars {
    background: var(--black-light);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.pillar-card {
    background: var(--black);
    border: 1px solid rgba(201, 168, 76, 0.1);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.pillar-card:hover::before {
    transform: scaleX(1);
}

.pillar-card:hover {
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateY(-4px);
}

.pillar-icon {
    margin-bottom: 1.5rem;
}

.pillar-letter {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
}

.pillar-letter sub {
    font-size: 1rem;
    color: var(--red-light);
}

.pillar-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.pillar-card p {
    font-size: 0.85rem;
    color: var(--gray-light);
    line-height: 1.7;
}

/* ============================================
   PROGRAMS
   ============================================ */

.programs {
    background: var(--black);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.program-card {
    background: var(--black-light);
    border: 1px solid rgba(201, 168, 76, 0.08);
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
}

.program-card:hover {
    border-color: rgba(201, 168, 76, 0.25);
    transform: translateY(-4px);
}

.program-card.featured {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.05) 0%, var(--black-light) 100%);
}

.program-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--gold);
    padding: 0.3rem 1rem;
    margin-bottom: 1rem;
}

.program-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.program-card p {
    color: var(--gray-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

.program-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gold);
}

/* ============================================
   FARMBLOCK
   ============================================ */

.farmblock-section {
    background: var(--black-light);
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
}

.farmblock-content {
    max-width: 800px;
    margin: 0 auto;
}

.farmblock-lead {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
}

.farmblock-text p {
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.farmblock-stats {
    display: flex;
    gap: 3rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.fb-stat {
    display: flex;
    flex-direction: column;
}

.fb-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
}

.fb-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray);
    margin-top: 0.3rem;
}

.farmblock-pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.fb-pill {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 0.5rem 1.2rem;
    text-transform: uppercase;
}

/* ============================================
   IMPACT
   ============================================ */

.impact {
    background: var(--black);
}

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

.impact-card {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--black-light);
    border: 1px solid rgba(201, 168, 76, 0.1);
}

.impact-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--gold);
    display: inline;
}

.impact-plus {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
}

.impact-card p {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray);
    margin-top: 0.8rem;
}

.impact-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray);
    font-style: italic;
}

/* ============================================
   FOUNDER
   ============================================ */

.founder {
    background: var(--black-light);
    border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.founder-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.founder-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.founder-title {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
}

.founder-text p:last-child {
    color: var(--gray-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ============================================
   DONATE
   ============================================ */

.donate {
    background: var(--black);
    border-top: 2px solid var(--red);
}

.donate-description {
    text-align: center;
    color: var(--gray-light);
    max-width: 600px;
    margin: -2rem auto 3rem;
    font-size: 0.95rem;
}

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

.tier-card {
    background: var(--black-light);
    border: 1px solid rgba(201, 168, 76, 0.1);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tier-card:hover {
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateY(-2px);
}

.tier-card.featured {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08) 0%, var(--black-light) 100%);
}

.tier-amount {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold);
    display: block;
    margin-bottom: 0.8rem;
}

.tier-card p {
    color: var(--gray-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.donate-actions {
    text-align: center;
    margin-bottom: 4rem;
}

.donate-alt {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.donate-leviathan {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: var(--black-light);
    border: 1px solid rgba(139, 26, 26, 0.3);
}

.donate-leviathan h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.donate-leviathan p {
    color: var(--gray-light);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
    background: var(--black-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--gray-light);
    line-height: 1.7;
}

.contact-item a {
    color: var(--gray-light);
}

.contact-item a:hover {
    color: var(--gold);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--white);
    background: var(--black);
    border: 1px solid rgba(201, 168, 76, 0.15);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.form-group select option {
    background: var(--black);
    color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--black);
    border-top: 1px solid rgba(201, 168, 76, 0.1);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-status {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-muted);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--gray);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.4rem;
}

.footer-contact a {
    color: var(--gray);
}

.footer-contact a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(201, 168, 76, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--gray);
}

.footer-motto {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--gold-muted) !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pillars-grid .pillar-card:nth-child(4),
    .pillars-grid .pillar-card:nth-child(5) {
        grid-column: span 1;
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--black);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(201, 168, 76, 0.15);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 0.9rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .farmblock-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

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

    .donate-tiers {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section {
        padding: 5rem 0;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

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