/* =========================================
   Hisbuu Site — Shared Stylesheet
   ========================================= */

:root {
    --primary-color: #C20F2F;
    --primary-dark: #9d0d27;
    --primary-soft: #fee2e2;
    --accent-color: #f59e0b;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --bg-light: #fef5f5;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --border-color: #d9e2ef;
    --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 24px 50px rgba(15, 23, 42, 0.15);
    --radius-md: 0.9rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;

    --bs-primary: var(--primary-color);
    --bs-primary-rgb: 194, 15, 47;
    --bs-danger: var(--primary-color);
    --bs-danger-rgb: 194, 15, 47;
}

/* --- Base --- */
body {
    font-family: "Manrope", sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background:
        radial-gradient(circle at 90% 5%, rgba(194, 15, 47, 0.07), transparent 40%),
        radial-gradient(circle at 5% 35%, rgba(245, 158, 11, 0.06), transparent 35%),
        #fff8f8;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .section-title {
    font-family: "Plus Jakarta Sans", sans-serif;
    letter-spacing: -0.02em;
}

.section-title {
    font-weight: 800;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 760px;
    margin-inline: auto;
}

/* --- Navigation --- */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.88) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary-color) !important;
    font-size: 1.8rem;
    letter-spacing: -0.04em;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* --- Buttons --- */
.cta-btn,
.btn-danger {
    background: linear-gradient(135deg, var(--primary-color), #e0132b);
    color: #fff;
    padding: 0.95rem 2.35rem;
    font-weight: 700;
    border-radius: 999px;
    border: 0;
    transition: all 0.24s ease;
    font-size: 1.02rem;
    box-shadow: 0 12px 22px rgba(194, 15, 47, 0.24);
}

.cta-btn:hover,
.btn-danger:hover {
    background: linear-gradient(135deg, var(--primary-dark), #C20F2F);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(194, 15, 47, 0.28);
}

.btn-danger:focus,
.cta-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(194, 15, 47, 0.25);
}

.btn-outline-custom {
    border: 1.5px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.9rem 2rem;
    font-weight: 700;
    border-radius: 999px;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.8);
}

.btn-outline-custom:hover {
    border-color: var(--primary-color);
    background-color: rgba(194, 15, 47, 0.08);
    color: var(--primary-color);
}

.cta-btn-light {
    background: linear-gradient(135deg, #ffffff, #f7fafc);
    color: var(--primary-color);
    padding: 0.95rem 2.3rem;
    font-weight: 800;
    border-radius: 999px;
    border: 0;
    font-size: 1rem;
    transition: all 0.22s ease;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

.cta-btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 28px rgba(15, 23, 42, 0.26);
    color: var(--primary-color);
}

.btn-dark {
    border-radius: 999px;
    font-weight: 700;
    background: #0f172a;
    border-color: #0f172a;
}

.btn-dark:hover {
    background: #1e293b;
    border-color: #1e293b;
}

/* --- Stats Section --- */
.stats-section {
    padding: 4.4rem 0;
    background: linear-gradient(120deg, #0b1729 0%, #10253f 55%, #C20F2F 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.13), transparent 45%);
    pointer-events: none;
}

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

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
    color: #fbbf24;
}

.stat-item p {
    font-size: 1.03rem;
    opacity: 0.9;
    margin-bottom: 0;
    font-weight: 500;
}

/* --- CTA Section --- */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(130deg, #C20F2F 0%, #0f172a 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-section::before,
.cta-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cta-section::before {
    top: -45%;
    left: -18%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 70%);
}

.cta-section::after {
    bottom: -42%;
    right: -16%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.28) 0%, transparent 72%);
}

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

.cta-section h2 {
    font-weight: 800;
    font-size: 2.7rem;
    margin-bottom: 1.25rem;
}

.cta-section p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 2.2rem;
}

.cta-section .form-control {
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 0.9rem 1rem;
}

.cta-section .form-control::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.cta-section .form-control:focus {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.58);
    box-shadow: none;
    color: #fff;
}

/* --- Footer --- */
footer {
    background: linear-gradient(180deg, #0b1120 0%, #101b31 100%);
    color: #9fb0c7;
    padding: 4rem 0 2rem;
}

.footer-brand {
    font-weight: 800;
    font-size: 1.75rem;
    color: #ff6b7d;
    margin-bottom: 1rem;
}

.footer-heading {
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 1.25rem;
    font-size: 1.02rem;
}

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

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: #9fb0c7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ff6b7d;
}

footer .text-muted {
    color: #b7c7db !important;
}

footer .small {
    color: #c5d4e6 !important;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.55rem;
    height: 2.55rem;
    background: rgba(159, 176, 199, 0.12);
    color: #9fb0c7;
    border-radius: 0.7rem;
    margin-right: 0.5rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(159, 176, 199, 0.16);
}

.social-links a:hover {
    background: rgba(255, 107, 125, 0.2);
    color: #fff;
    border-color: rgba(255, 107, 125, 0.45);
}

footer hr {
    border-color: rgba(159, 176, 199, 0.2) !important;
}

/* --- Responsive (shared) --- */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.35rem;
    }
}

@media (max-width: 768px) {
    .stats-section {
        padding: 3.5rem 0;
    }

    .stat-item h3 {
        font-size: 2.2rem;
    }

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

    .cta-section {
        padding: 4.8rem 0;
    }

    .cta-section h2 {
        font-size: 2.1rem;
    }
}

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}
