@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

:root {
    --primary: #ffc107;
    --primary-hover: #ffb300;
    --primary-gradient: linear-gradient(135deg, #ffca28 0%, #ffb300 100%);
    --dark-text: #2a2a35;
    --light-text: #6b6b80;
    --bg-light: #fafafb;
    --white: #ffffff;
    --footer-bg: #2a2a35;
    --shadow-soft: 0 15px 35px rgba(0,0,0,0.05);
    --shadow-yellow: 0 15px 35px rgba(255, 193, 7, 0.4);
    --base-url: '/godlib';
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--light-text);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { color: var(--dark-text); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; }

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary {
    background: var(--primary);
    color: var(--dark-text);
    box-shadow: var(--shadow-yellow);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 193, 7, 0.5);
}
.btn-secondary {
    background: var(--white);
    color: var(--dark-text);
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--primary);
}
.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
}

/* Header */
header {
    background: var(--footer-bg);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .logo a {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}
header nav {
    display: flex;
    gap: 30px;
    align-items: center;
}
header nav a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}
header nav a:hover { color: var(--primary); }
header nav a.cta-nav {
    background: var(--primary);
    color: var(--dark-text);
    padding: 10px 24px;
    border-radius: 30px;
}
header nav a.cta-nav:hover {
    background: var(--primary-hover);
}

/* Enhanced Hero Section */
.hero {
    background-color: #fffdf2;
    padding: 100px 5% 150px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
/* Top right soft glow */
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,193,7,0.15) 0%, rgba(255,193,7,0) 70%);
    border-radius: 50%;
    z-index: -1;
}
/* Wavy bottom */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 100" xmlns="http://www.w3.org/2000/svg"><path d="M0,50 C320,150 420,-50 1440,50 L1440,100 L0,100 Z" fill="%23ffffff"/></svg>') no-repeat bottom;
    background-size: cover;
    z-index: -1;
}
/* Dot pattern decorative element */
.hero-dots {
    position: absolute;
    bottom: 60px;
    left: 5%;
    width: 200px;
    height: 150px;
    background-image: radial-gradient(var(--primary) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: -1;
}
/* Hero Split Layout for Illustrations */
.hero-split-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    gap: 40px;
    padding-top: 20px;
}
.hero-split-text {
    flex: 1;
    text-align: left;
}
.hero-split-img {
    flex: 1;
    text-align: center;
}
.hero-split-img img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    mix-blend-mode: multiply; /* Blends white bg of illustration into pale yellow */
}
@media (max-width: 768px) {
    .hero-split-container { flex-direction: column; text-align: center; }
    .hero-split-text { text-align: center; margin-bottom: 30px; }
}
.hero .eyebrow {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
}
.hero h1 {
    font-size: 3.5rem;
    max-width: 900px;
    margin: 0 auto 20px;
    color: var(--dark-text);
}
.hero p.subhead {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
}
.hero-illustration {
    max-width: 800px;
    margin: 40px auto 0;
    display: block;
}

/* Staggered Content (Text + Yellow Cards) */
.split-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 80px 5%;
    background: var(--white);
    gap: 5%;
}
.split-content {
    flex: 1;
    min-width: 300px;
}
.split-content h2 { font-size: 2.5rem; }
.split-content p { margin-bottom: 20px; font-size: 1.1rem; }
.split-cards {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.yellow-card {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-yellow);
    transition: transform 0.3s;
}
.yellow-card:hover { transform: translateY(-10px); }
.yellow-card h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 10px; }
.yellow-card p { font-size: 0.9rem; margin: 0; color: rgba(255,255,255,0.9); }
/* Staggering the cards */
.split-cards .yellow-card:nth-child(even) { transform: translateY(30px); }
.split-cards .yellow-card:nth-child(even):hover { transform: translateY(20px); }

/* Stats Strip */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px 5%;
    background: var(--bg-light);
    flex-wrap: wrap;
}
.stat-box {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}
.stat-box .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}
.stat-box span { font-weight: 600; color: var(--dark-text); }

/* Generic Sections & Grids */
.section-padding { padding: 80px 5%; background: var(--white); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; }
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.white-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    border-bottom: 4px solid transparent;
    transition: all 0.3s;
}
.white-card:hover { border-bottom-color: var(--primary); transform: translateY(-5px); }
.white-card h3 { font-size: 1.4rem; }
.white-card ul { margin-top: 15px; padding-left: 20px; list-style: disc; color: var(--light-text); }
.white-card ul li { margin-bottom: 8px; }

/* Contact Form */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 10;
}
.contact-wrapper form fieldset {
    border: none;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.contact-wrapper form legend {
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.contact-wrapper form label.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}
.contact-wrapper form label.radio-label:hover { background: #f0f0f5; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--dark-text); }
.input-group input, .input-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.contact-wrapper button { width: 100%; font-size: 1.1rem; padding: 18px; }

/* Footer overlapping newsletter (mimicking image) */
.newsletter-overlap {
    max-width: 900px;
    margin: -40px auto 40px;
    background: var(--white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 20;
    gap: 20px;
    flex-wrap: wrap;

    
}
.newsletter-overlap h3 { margin: 0; color: var(--dark-text); }
.newsletter-overlap form { display: flex; gap: 10px; flex: 1; min-width: 300px; }
.newsletter-overlap input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #eee;
    border-radius: 50px;
    outline: none;
}
.newsletter-overlap input:focus { border-color: var(--primary); }
.newsletter-overlap button { padding: 12px 30px; border-radius: 50px; border: none; background: var(--primary); font-weight: 700; cursor: pointer; }

/* Footer */
footer {
    background: var(--footer-bg);
    color: #a0a0b5;
    padding: 120px 5% 40px; /* Extra top padding for overlap */
    font-size: 0.95rem;
    margin-top: -60px; /* Pull footer up under the overlap */
    position: relative;
    z-index: 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand h3 { color: var(--primary); font-size: 2rem; }
.footer-grid h4 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { color: #a0a0b5; }
.footer-links ul li a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .split-section { flex-direction: column; }
    .split-cards { margin-top: 40px; }
    .split-cards .yellow-card:nth-child(even) { transform: none; }
    .split-cards .yellow-card:nth-child(even):hover { transform: translateY(-10px); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}
/* Hamburger animation */
.mobile-menu-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 768px) {
    header { 
        padding: 15px 20px; 
        position: relative;
    }
    .mobile-menu-toggle { display: flex; }
    
    header nav { 
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--footer-bg);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        gap: 0;
    }
    header nav.active { display: flex; }
    header nav a { 
        padding: 15px 0; 
        font-size: 1.1rem; 
        border-bottom: 1px solid rgba(255,255,255,0.05); 
        width: 100%;
    }
    header nav a:last-child { border-bottom: none; }
    header nav a.cta-nav { 
        display: inline-block; 
        margin-top: 15px; 
        width: max-content; 
        align-self: center;
    }

    .hero h1 { font-size: 2.5rem; }
    .contact-wrapper form fieldset { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Extra Mobile Polish */
@media (max-width: 576px) {
    .hero, .hero-split-container { padding-top: 20px; }
    h1, .hero-split-text h1, .hero h1 { font-size: 2rem !important; }
    h2, .split-content h2, .section-header h2 { font-size: 1.8rem !important; }
    .hero .subhead, .hero-split-text .subhead { font-size: 1rem !important; }
    .stat-box { min-width: 100%; }
    .newsletter-overlap { margin: -60px 5% 40px; padding: 25px; flex-direction: column; text-align: center; }
    .newsletter-overlap form { width: 100%; flex-direction: column; }
    .newsletter-overlap input, .newsletter-overlap button { width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; margin: 10px 0 !important; }
}
