@import 'variables.css';
@import 'reset.css';
@import 'utilities.css';

/* Creative Gradient Background ("Marcante") */
.bg-mesh {
    background-color: var(--primary-900);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(242, 201, 76, 0.15) 0%, transparent 40%),
        /* Gold Orb Top Left */
        radial-gradient(circle at 90% 80%, rgba(11, 31, 58, 1) 0%, transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(22, 55, 100, 0.5) 0%, transparent 50%),
        /* Blue Orb Top Right */
        linear-gradient(180deg, rgba(11, 31, 58, 0) 0%, #0B1F3A 100%);
    /* Fade to bottom */
    position: relative;
    overflow: hidden;
}

/* Subtle Geometric Circles (Like reference) */
.bg-mesh::before {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -100px;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
}

.bg-mesh::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 100px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
}

/* Editorial Layout Fix - Forced Side-by-Side */
.layout-editorial {
    display: grid;
    gap: var(--spacing-lg);
    grid-template-columns: 1fr;
    /* Mobile default */
}

@media (min-width: 900px) {
    .layout-editorial {
        grid-template-columns: 350px 1fr;
        /* Fixed Title Width + Fluid Content */
        align-items: start;
        grid-column-gap: 4rem;
    }

    .layout-editorial>*:first-child {
        position: sticky;
        top: 140px;
        /* Sticky Titles */
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Components --- */

/* Buttons */
.btn-primary {
    background: var(--accent);
    color: var(--primary-900);
    box-shadow: 0 4px 14px rgba(242, 201, 76, 0.25);
    /* Subtle gold shadow */
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 201, 76, 0.4);
}

.btn-outline-white {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary-800);
    color: var(--primary-800);
}

.btn-secondary:hover {
    background: var(--primary-800);
    color: white;
}

/* Cards */
.card {
    background: #FFFFFF;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-float);
    border-color: var(--primary-700);
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    color: var(--success);
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.card:hover .card-icon {
    background: var(--primary-900);
    color: var(--accent);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-block: 1rem;
    transition: var(--transition-smooth);
    background: rgba(11, 31, 58, 0.9);
    /* Dark Blue Transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 1.5rem;
    background: rgba(11, 31, 58, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Specifics */
.bg-dark {
    background-color: var(--primary-900);
    color: white;
}

.bg-light {
    background-color: white;
    color: var(--text-main);
}

.bg-alt {
    background-color: var(--bg-alt);
    color: var(--text-main);
}

/* Lead Form (Hero) */
.lead-form {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    color: var(--text-main);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-700);
    box-shadow: 0 0 0 3px rgba(22, 55, 100, 0.1);
}

/* Accordion (FAQ) */
.accordion-item {
    border-bottom: 1px solid var(--border-light);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
    transition: color 0.2s;
}

.accordion-header:hover {
    color: var(--primary-700);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.accordion-content p {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    /* Approximate max height */
    transition: max-height 0.5s ease-in-out;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Stat Cards */
.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
}

/* Footer Links */
.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent);
}