/* Freedom Aid - Custom Styles */

:root {
    --primary-color: #E8F754;
    --secondary-color: #090909;
    --accent-color: #ffcd57;
    --dark-bg: #090909;
    --light-bg: #f9f6fe;
    --slate: #1e293b;
    --gray: #67768e;
    --light-purple: #f9f6fe;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.65;
    color: #1e293b;
    font-weight: 400;
    font-size: 18px; /* 1rem - matching Freedom Pay Wallet */
}

/* Navigation */
.navbar {
    background-color: transparent;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: #000000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: fixed;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 3rem;
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: center;
    gap: 2rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-logo-img {
    width: 200px;
    height: auto;
    transition: opacity 0.3s ease;
}

.navbar-logo-img:hover {
    opacity: 0.9;
}

.navbar-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
    justify-content: center;
}

.navbar-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    text-shadow: none;
}

.navbar-menu a:hover {
    color: white;
}

.navbar.scrolled .navbar-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: none;
}

.navbar.scrolled .navbar-menu a:hover {
    color: white;
}

.navbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.navbar-actions .btn {
    background-color: white;
    color: #090909;
    padding: 0.6rem 1.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-shadow: none;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.navbar-actions .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #090909;
    transform: translateY(-1px);
}

.navbar.scrolled .navbar-actions .btn {
    background-color: white;
    color: #090909;
}

.navbar.scrolled .navbar-actions .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #090909;
}

/* Hamburger Menu */
.navbar-hamburger {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.navbar-hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.navbar.scrolled .navbar-hamburger span {
    background-color: white;
}

.navbar-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.navbar-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    color: white;
    padding: 10rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(9, 9, 9, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
}

/* Smaller hero for inner pages */
.hero-small {
    min-height: 50vh;
    padding: 8rem 2rem 4rem;
}

/* Hero Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(9, 9, 9, 0.75) 0%, rgba(30, 41, 59, 0.75) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(214, 225, 38, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Hero Content */
.hero .container {
    position: relative;
    z-index: 2;
}

/* Slider Dots */
.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 0.75rem;
    z-index: 2;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.hero-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.hero h1 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 3.56rem; /* 64px - matching Freedom Pay Wallet */
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #e2e8f0;
    position: relative;
    z-index: 1;
}

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

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

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-text {
    max-width: 550px;
}

.why-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--secondary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.why-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.why-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--slate);
    margin-bottom: 2rem;
}

.app-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Why Images */
.why-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    position: relative;
}

.why-image-top {
    grid-column: 1 / 2;
    margin-top: 0;
}

.why-image-bottom {
    grid-column: 2 / 3;
    margin-top: 3rem;
}

.why-images img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* CTA Section */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, rgb(56 56 56 / 85%) 0%, rgba(118, 75, 162, -0.15) 100%),
                url('https://freedompaywallet.com/wp-content/uploads/2025/06/yingchou-han-IJrIeCs3D4g-unsplash-scaled.jpg') center/cover no-repeat;
    color: white;
    padding: 6rem 2rem;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

/* Section */
.section {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 2.67rem; /* 48px (H2) - matching Freedom Pay Wallet */
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    line-height: 1.3;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Card */
.card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card h3 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1.33rem; /* 24px (H3) - matching Freedom Pay Wallet */
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    line-height: 1.3;
}

.card p {
    color: var(--gray);
    line-height: 1.7;
}

/* Button */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
}

.btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

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

.btn-secondary:hover {
    opacity: 0.85;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #334155;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    margin-right: 0.5rem;
}

.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    line-height: 2;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    text-align: center;
    color: #94a3b8;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 999;
}

/* Alert container spacing to clear fixed navbar */
.container:has(.alert) {
    margin-top: 6rem !important;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--secondary-color);
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-container {
        grid-template-columns: 1fr auto;
        gap: 1rem;
    }

    .navbar-logo-img {
        width: 150px;
    }

    /* Show hamburger menu */
    .navbar-hamburger {
        display: flex;
        grid-column: 2;
        grid-row: 1;
    }

    /* Hide menu and actions by default on mobile */
    .navbar-menu,
    .navbar-actions {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        max-width: 300px;
        background-color: #090909;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .navbar-menu {
        height: calc(100vh - 140px);
        flex-direction: column;
        gap: 0;
        padding: 2rem 0 0 0;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        justify-content: flex-start;
    }

    .navbar-actions {
        top: auto;
        bottom: 0;
        height: 70px;
        padding: 1rem 2rem;
        box-shadow: -2px -2px 10px rgba(0, 0, 0, 0.3);
        border-top: 1px solid #334155;
    }

    /* Show menu when active */
    .navbar-menu.active,
    .navbar-actions.active {
        right: 0;
    }

    .navbar-menu li {
        width: 100%;
        padding: 0;
    }

    .navbar-menu a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        border-bottom: 1px solid #334155;
        color: rgba(242, 245, 247, 0.76);
    }

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

    .hero {
        min-height: 100vh;
        padding: 6rem 2rem 4rem;
    }

    .hero-small {
        min-height: 40vh;
        padding: 6rem 2rem 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Why Section Mobile */
    .why-section {
        padding: 3rem 0;
    }

    .why-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .why-text {
        max-width: 100%;
    }

    .why-title {
        font-size: 1.75rem;
    }

    .why-description {
        font-size: 1rem;
    }

    .why-images {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .why-image-top,
    .why-image-bottom {
        grid-column: 1;
        margin-top: 0;
    }

    .app-buttons {
        justify-content: center;
    }

    .app-btn img {
        height: 45px;
    }
}
