/* ══════════════════════════════════════════════════════════════
   IdealMate — Public Landing Page CSS
   Afro-centric Palette: Terracotta, Deep Indigo, Savanna Gold
   Fonts: Work Sans (body), Libre Baskerville (headings)
   ══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600;700;800&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
    --primary: #D64933;
    /* Terracotta */
    --primary-light: #E06B58;
    --primary-dark: #B53D2A;
    --secondary: #2E4057;
    /* Deep Indigo */
    --secondary-light: #3D5573;
    --secondary-dark: #1F2E40;
    --accent: #F9A620;
    /* Savanna Gold */
    --accent-dark: #D88E10;
    --surface: #FDFBF7;
    /* Warm Cream/Ivory */
    --gray-50: #FAF8F5;
    --gray-100: #F3F1EE;
    --gray-200: #E5E3E0;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1C1B1F;
    --gray-900: #111827;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background: var(--surface);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Libre Baskerville', 'Georgia', serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Navbar ─────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: all 0.3s;
}

.navbar.scrolled {
    background: rgba(253, 251, 247, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 0.6rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.navbar-brand .brand-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.navbar-brand h2 {
    font-size: 1.3rem;
    color: white;
    font-family: 'Libre Baskerville', serif;
    transition: color 0.3s;
}

.navbar.scrolled .navbar-brand h2 {
    color: var(--secondary);
}

.navbar-brand span {
    color: var(--primary);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101; /* Ensure it stays above the menu */
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

.navbar.scrolled .mobile-menu-btn span {
    background-color: var(--secondary);
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

.navbar-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s;
}

.navbar.scrolled .navbar-links a {
    color: var(--gray-600);
}

.navbar-links a:hover {
    color: white;
}

.navbar.scrolled .navbar-links a:hover {
    color: var(--primary);
}

.btn-nav {
    padding: 0.5rem 1.3rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-nav-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.navbar.scrolled .btn-nav-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-nav-accent {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(214, 73, 51, 0.3);
}

.btn-nav-accent:hover {
    background: var(--primary-dark);
}

/* ── Hero ────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(31, 46, 64, 0.88), rgba(46, 64, 87, 0.75)), url('/images/bg_image.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--surface), transparent);
}

.hero-content {
    max-width: 680px;
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 99px;
    background: rgba(214, 73, 51, 0.15);
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero-label svg {
    width: 16px;
    height: 16px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.hero h1 .highlight {
    color: var(--accent);
}

.hero p.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-hero svg {
    width: 18px;
    height: 18px;
}

.btn-hero-accent {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(214, 73, 51, 0.35);
}

.btn-hero-accent:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-hero-white {
    background: white;
    color: var(--secondary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-hero-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ── Stats Bar ───────────────────────────────────── */
.stats-bar {
    padding: 3rem 0;
    background: var(--surface);
    position: relative;
    z-index: 3;
}

.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item .stat-number {
    font-family: 'Work Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
}

.stat-item .stat-number span {
    color: var(--primary);
}

.stat-item .stat-text {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ── Section Shared ──────────────────────────────── */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--gray-50);
}

.section-center {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.section-label {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-family: 'Work Sans', sans-serif;
}

.section-title {
    font-size: 2.25rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.7;
    font-family: 'Work Sans', sans-serif;
}

/* ── Feature Cards ───────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(46, 64, 87, 0.06);
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(46, 64, 87, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.feature-icon.accent {
    background: var(--primary);
}

.feature-icon.primary {
    background: var(--secondary);
}

.feature-icon.success {
    background: #10B981;
}

.feature-icon.purple {
    background: #8B5CF6;
}

.feature-icon.orange {
    background: var(--accent);
}

.feature-icon.blue {
    background: #3B82F6;
}

.feature-card h3 {
    font-size: 1.35rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-500);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ── How It Works ────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    counter-reset: step;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: white;
    font-family: 'Work Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 15px rgba(46, 64, 87, 0.3);
}

.step-card h4 {
    font-size: 1.15rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── Why Choose Us ───────────────────────────────── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-item {
    text-align: center;
    padding: 1.5rem;
}

.why-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.why-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
}

.why-item h4 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.why-item p {
    color: var(--gray-500);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* ── CTA ─────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-light) 100%);
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.25rem;
}

.cta-section p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 0.9rem 2.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta svg {
    width: 18px;
    height: 18px;
}

.btn-cta-accent {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-cta-accent:hover {
    background: var(--primary-dark);
}

.btn-cta-white {
    background: white;
    color: var(--secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-cta-white:hover {
    background: var(--gray-50);
}

/* ── Footer ──────────────────────────────────────── */
.footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-brand h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.footer-brand span {
    color: var(--primary);
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: 'Work Sans', sans-serif;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

.footer-col ul a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
}

/* ── Animations ──────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .stats-bar .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 1.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mobile-menu-btn {
        display: block;
    }

    .navbar-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--surface);
        background: rgba(253, 251, 247, 0.98);
        transition: 0.3s ease-in-out;
        z-index: 100;
        gap: 1.5rem;
    }

    .navbar-links.active {
        right: 0;
    }

    .navbar-links a {
        color: var(--secondary);
        font-size: 1.5rem;
    }

    .navbar.scrolled .navbar-links a {
        color: var(--secondary);
    }

    .navbar-links a:hover {
        color: var(--primary);
    }
}

@media (max-width: 480px) {
    .stats-bar .container {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }
}