/* ============================================================
   4-CHANCE REPUBLIC — Base Stylesheet
   ============================================================ */

/* ─── Reset & Base ─── */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background: var(--bg);
    line-height: 1.7;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
}

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

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

/* ─── Navigation ─── */
#mainNav {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.navbar-nav .nav-link {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    color: var(--mid);
    padding: 8px 16px;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-nav .nav-link.highlight {
    background: var(--accent);
    color: var(--white);
    border-radius: 6px;
    padding: 8px 20px;
    font-weight: 600;
}

.navbar-nav .nav-link.highlight:hover {
    background: var(--primary);
    color: var(--white);
}

/* ─── Hero Sections ─── */
.hero-section {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.3em;
}

.hero-section .subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--accent);
    margin-bottom: 1.5em;
}

.hero-section .body-text {
    font-size: 1.1rem;
    color: var(--mid);
    max-width: 650px;
    margin: 0 auto 2.5em;
    line-height: 1.8;
}

/* ─── Buttons ─── */
.btn-primary-cr {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 36px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 0.03em;
}

.btn-primary-cr:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 58, 92, 0.3);
}

.btn-accent-cr {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 14px 36px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-accent-cr:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 67, 0.3);
}

.btn-outline-cr {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 34px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline-cr:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-group-cr {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ─── Super Assets ─── */
.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 3em;
}

.asset-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 3px solid var(--accent);
}

.asset-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.asset-card .icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.asset-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 0;
}

/* ─── Content Sections ─── */
.content-section {
    padding: 80px 0;
}

.content-section.alt {
    background: var(--white);
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    text-align: center;
    margin-bottom: 1.5em;
    color: var(--primary);
}

.section-body {
    font-size: 1.05rem;
    color: var(--mid);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ─── Footer ─── */
.site-footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

.footer-brand {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.footer-tagline {
    font-style: italic;
    color: var(--accent);
    font-size: 0.95rem;
}

.footer-heading {
    color: var(--accent);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ─── Forms ─── */
.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(46, 117, 182, 0.15);
}

/* ─── Animations ─── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-in.delay-1 { animation-delay: 0.15s; }
.animate-in.delay-2 { animation-delay: 0.3s; }
.animate-in.delay-3 { animation-delay: 0.45s; }
.animate-in.delay-4 { animation-delay: 0.6s; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 50px;
    }

    .assets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .btn-group-cr {
        flex-direction: column;
        align-items: center;
    }

    .content-section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .assets-grid {
        grid-template-columns: 1fr;
    }
}
