/* ==========================================================================
   RankNest.co - Brand & Responsive Stylesheet
   ========================================================================== */

:root {
    --primary: #0A4CFF;
    --primary-hover: #0039CB;
    --dark: #111111;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --gray: #64748B;
    --border: #E2E8F0;
    --danger: #EF4444;
    --success: #10B981;
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    font-size: 16px;
    padding-bottom: 60px;
}

@media (min-width: 769px) {
    body {
        padding-bottom: 0;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-fluid {
    width: 100%;
    border-radius: 12px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.padding-section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

.margin-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-700 {
    max-width: 700px;
}

h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--dark);
}

h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
}

h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

p {
    color: var(--gray);
    margin-bottom: 15px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.grid-2-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.navbar {
    position: sticky;
    top: 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Prominent Logo Size */
.brand-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--dark);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
}

.dropdown-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
    border: 1px solid var(--border);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: var(--light-bg);
    color: var(--primary);
    padding-left: 24px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-btn {
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 0.95rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(10, 76, 255, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.badge-success {
    display: inline-block;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.hero-section {
    padding: 60px 0;
}

.hero-features {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.hero-features i {
    color: var(--success);
}

.hero-image-wrapper {
    position: relative;
}

.hero-cover-img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.hero-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--white);
    padding: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary);
}

.lead-form {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.lead-form h3 {
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus {
    outline: 2px solid var(--primary);
}

.section-title {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(10, 76, 255, 0.1);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.icon-box-danger {
    width: 50px;
    height: 50px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.step-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.step-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.3;
    display: block;
    margin-bottom: 10px;
}

.niche-card {
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.niche-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.niche-card-body {
    padding: 20px;
}

.link-btn {
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.result-card {
    border-left: 4px solid var(--primary);
}

.result-img {
    width: 100%;
    border-radius: 8px;
    margin: 15px 0;
    max-height: 220px;
    object-fit: cover;
}

.result-stats {
    display: flex;
    justify-content: space-between;
    background: var(--light-bg);
    padding: 12px 15px;
    border-radius: 6px;
    margin: 10px 0;
    font-weight: 700;
}

.val-bad {
    color: var(--danger);
}

.val-good {
    color: var(--success);
}

.result-desc {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.check-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.check-list i {
    color: var(--success);
}

.cta-section {
    background: var(--dark);
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
}

.cta-section p {
    color: #94A3B8;
    margin-bottom: 25px;
}

.niche-tags {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.niche-tags span {
    background: rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #CBD5E1;
}

.footer {
    background: #090A0F;
    color: #94A3B8;
    padding-top: 60px;
    font-size: 0.9rem;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a:hover {
    color: var(--white);
}

.footer-logo {
    height: 45px;
    margin-bottom: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
}

.mobile-call-btn {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 15px 0;
    font-weight: 800;
    font-size: 1.1rem;
    z-index: 9999;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
}

.mobile-call-btn i {
    margin-right: 8px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .grid-2-inner {
        grid-template-columns: 1fr;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hide-mobile {
        display: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-bottom: 1px solid var(--border);
        align-items: flex-start;
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 15px;
        background-color: transparent;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-card {
        position: static;
        margin-top: 15px;
    }

    .brand-logo {
        height: 48px;
    }

    .phone-btn {
        font-size: 0.78rem;
        gap: 4px;
    }

    .mobile-call-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}