/**
 * Home Page Styles - Personal Branding Network
 * @version 1.0.0
 */

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    --emerald-dark: #014421;
    --soft-gold: #C9A66B;
    --ivory: #F8F8F0;
    --muted-sand: #C5BBA4;
    --charcoal: #1A1A1A;
    --white: #ffffff;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;
    --transition-base: all 0.3s ease;
}

/* ==========================================
   LAYOUT RESET (Force Full Width)
   ========================================== */
#page, 
#content, 
#primary, 
.site-main {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#page {
    margin: 0 !important;
    max-width: 100% !important;
}

.site-content {
    padding: 0 !important;
}

.site-header {
    width: 100%;
}

/* ==========================================
   BUTTON STYLES
   ========================================== */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--emerald-dark) !important;
    color: var(--white) !important;
}

.btn-secondary {
    background-color: var(--soft-gold) !important;
    color: var(--charcoal) !important;
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

/* ==========================================
/* ==========================================
   HERO SECTION - FORCED VERTICAL CENTERING
   ========================================== */

/* Remove any parent padding/margin that might interfere */
body.home .site-content,
body.page-template-page-home .site-content,
.home #primary,
.page-template-page-home #primary {
    padding: 0 !important;
    margin: 0 !important;
}

/* Hero Wrapper - Full Height with ABSOLUTE Centering */
.hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh !important;
    height: 100vh !important;
    
    /* TRIPLE-FORCE Flexbox Centering */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    
    /* Original Background Preserved */
    background: radial-gradient(circle at center, #014421 0%, #1A1A1A 100%) !important;
    
    padding: 0 20px !important;
    margin: 0 !important;
    overflow: hidden;
    text-align: center;
}

/* Extra specificity to override theme */
body .hero-wrapper,
.site-content .hero-wrapper,
#primary .hero-wrapper,
main .hero-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
}

/* Container - Remove if causing issues */
.hero-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Hero Content - Centered Container */
.hero-content {
    position: relative !important;
    z-index: 10 !important;
    max-width: 900px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    
    /* CRITICAL: Center Everything */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Extra specificity for hero content */
body .hero-content,
.site-content .hero-content,
#primary .hero-content,
main .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    font-weight: 700 !important;
    color: var(--white) !important;
    margin-bottom: 30px !important;
    letter-spacing: -1px;
    line-height: 1.2 !important;
    text-align: center !important;
    animation: fadeIn 1s ease-out;
}

.hero-content p {
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
    color: var(--ivory) !important;
    margin-bottom: 40px !important;
    max-width: 650px !important;
    text-align: center !important;
}

/* Hero Buttons - Centered */
.hero-buttons {
    display: flex !important;
    gap: 20px !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin-top: 30px !important;
    margin-bottom: 0 !important;
}

.hero-buttons .btn {
    min-width: 200px;
}

/* Diagonal Sliding Arrows Animation - PRESERVED */
.hero-arrows {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.arrow-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(201, 166, 107, 0.3), transparent);
    animation: slideArrow 8s linear infinite;
}

.arrow-line:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.arrow-line:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
}

.arrow-line:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
}

.arrow-line:nth-child(4) {
    left: 70%;
    animation-delay: 6s;
}

.arrow-line:nth-child(5) {
    left: 90%;
    animation-delay: 1s;
}

@keyframes slideArrow {
    0% {
        transform: translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(200%) rotate(45deg);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE - HERO ONLY
   ========================================== */

/* Tablets */
@media (max-width: 992px) {
    .hero-wrapper {
        min-height: 100vh !important;
        height: auto !important;
        padding: 60px 20px !important;
    }
    
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-content p {
        font-size: 1.125rem !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-wrapper {
        min-height: 100vh !important;
        height: auto !important;
        padding: 40px 15px !important;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
    }
    
    .hero-content p {
        font-size: 1rem !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .hero-wrapper {
        padding: 30px 15px !important;
    }
    
    .hero-content h1 {
        font-size: 1.75rem !important;
    }
}


/* ==========================================
   INTRO SECTION
   ========================================== */
.intro-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--ivory);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    font-size: 2.5rem;
    color: var(--emerald-dark);
    margin-bottom: var(--spacing-md);
    font-weight: 800 !important;
}

.intro-content p {
    font-size: 1.125rem;
    color: var(--charcoal);
    line-height: 1.8;
}

/* ==========================================
   QUIZ CARDS SECTION
   ========================================== */
.quiz-cards-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--emerald-dark);
    margin-bottom: var(--spacing-lg);
    font-weight: 800 !important;
}

.quiz-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.quiz-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--ivory) 100%);
    border-radius: 16px;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.quiz-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(1, 68, 33, 0.15);
    border-color: var(--soft-gold);
}

.quiz-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--emerald-dark), #016329);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: var(--white);
    font-size: 2rem;
}

.quiz-card h3 {
    font-size: 1.75rem;
    color: var(--emerald-dark);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.quiz-card p {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.quiz-card .btn {
    width: 100%;
}

/* ==========================================
   HOW IT WORKS SECTION
   ========================================== */
.how-it-works-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--ivory) 0%, var(--muted-sand) 100%);
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: var(--spacing-lg) auto 0;
    padding: 0 var(--spacing-md);
}

.step-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: var(--spacing-lg);
    text-align: center;
    position: relative;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: var(--transition-base);
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--soft-gold), #b8955d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    box-shadow: 0 4px 10px rgba(201, 166, 107, 0.4);
}

.step-card h4 {
    font-size: 1.25rem;
    color: var(--emerald-dark);
    margin: var(--spacing-md) 0 var(--spacing-sm);
}

.step-card p {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.6;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--emerald-dark) 0%, #016329 100%);
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.features-section h2 {
    font-weight: 800 !important;
    color: var(--emerald-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: var(--spacing-lg) auto 0;
    padding: 0 var(--spacing-md);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-md);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--soft-gold), #b8955d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 1.75rem;
    color: var(--white);
}

.feature-card h4 {
    font-size: 1.25rem;
    color: var(--emerald-dark);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.6;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablets */
@media (max-width: 992px) {
    .hero-wrapper {
        min-height: 90vh;
        padding: 60px 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
    
    .quiz-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-wrapper {
        min-height: 100vh;
        padding: 40px 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .quiz-cards-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .how-it-works-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .hero-wrapper {
        padding: 30px 15px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .intro-content h2,
    .section-title,
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    .quiz-card {
        padding: var(--spacing-md);
    }
}
