/* style.css - RSE Group Professional Website - Consolidated */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #111827;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 20px;
}

/* Logo Styles - Fixed for Firefox compatibility */
.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.logo-img {
    max-width: 100%;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Specific logo sizing - works across all browsers */
.logo-img {
    height: 70px;
    width: auto;
}

/* For larger desktop screens */
@media (min-width: 1280px) {
    .logo-img {
        height: 85px;
    }
}

/* For tablets */
@media (max-width: 768px) {
    .logo-img {
        height: 55px;
    }
}

/* For mobile */
@media (max-width: 480px) {
    .logo-img {
        height: 45px;
    }
}

/* Firefox-specific fix for oversized images */
@-moz-document url-prefix() {
    .logo-img {
        height: 70px;
        width: auto;
        max-width: none;
    }
    @media (min-width: 1280px) {
        .logo-img {
            height: 85px;
        }
    }
    @media (max-width: 768px) {
        .logo-img {
            height: 55px;
        }
    }
}

/* Fallback text logo */
.logo-fallback {
    display: none;
}

.logo-fallback h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0B2F5E 0%, #1E4A76 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.logo-fallback p {
    font-size: 0.8rem;
    color: #4b5563;
    letter-spacing: 0.3px;
    margin: 0;
}

/* Ensure proper image rendering */
.logo-img {
    image-rendering: auto;
    image-rendering: crisp-edges;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #1f2937;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: #1E4A76;
    border-bottom: 2px solid #1E4A76;
    padding-bottom: 4px;
}

.btn-nav-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-outline {
    border: 1.5px solid #1E4A76;
    background: transparent;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    color: #1E4A76;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: #1E4A76;
    color: white;
    transform: translateY(-2px);
}

.btn-primary {
    background: #0B2F5E;
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #05203f;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1.5px solid #0B2F5E;
    color: #0B2F5E;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-secondary:hover {
    background: #0B2F5E;
    color: white;
}

/* Hero */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(110deg, #F8FAFE 0%, #EFF3F9 100%);
    border-radius: 0 0 40px 40px;
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #0B2F5E;
}

.hero-content p {
    font-size: 1.1rem;
    color: #374151;
    max-width: 550px;
    margin-bottom: 32px;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0B2F5E;
}

.section-sub {
    color: #4b5563;
    max-width: 700px;
    margin-bottom: 48px;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .service-grid, .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Values Grid - 2 columns */
.values-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (max-width: 768px) {
    .values-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.service-card, .digital-card {
    background: white;
    padding: 40px 32px;
    border-radius: 28px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    min-height: 320px;
    cursor: pointer;
}

.service-card:hover, .digital-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3rem;
    color: #1E4A76;
    margin-bottom: 24px;
}

.service-card h3, .digital-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.service-card p, .digital-card p {
    color: #4b5563;
    line-height: 1.6;
}

.card-link {
    display: inline-block;
    margin-top: 16px;
    color: #1E4A76;
    font-weight: 600;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

/* Why RSE Standard Section */
.why-rse-standard {
    background: #F8FAFE;
    border-radius: 48px;
    padding: 48px 32px;
    margin-bottom: 60px;
    text-align: center;
}

.why-rse-intro {
    max-width: 700px;
    margin: 0 auto 32px;
    color: #374151;
}

.why-rse-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.why-rse-badges span {
    background: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    color: #0B2F5E;
}

.why-rse-badges i {
    margin-right: 8px;
    color: #1E4A76;
}

/* Two column layout */
.two-col-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}

.two-col-layout > div {
    flex: 1;
    min-width: 280px;
}

/* Contact side */
.contact-details-side {
    background: #EFF3F9;
    padding: 32px;
    border-radius: 28px;
    height: fit-content;
}

.contact-details-side h3 {
    color: #0B2F5E;
    margin-bottom: 12px;
}

.contact-details-side p {
    margin-bottom: 8px;
}

/* Forms */
.standard-form {
    max-width: 700px;
    margin: 0 auto;
    background: #F9FBFE;
    padding: 40px;
    border-radius: 32px;
    border: 1px solid #e2edf7;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1f2937;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid #cfdfed;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: 0.2s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #1E4A76;
    box-shadow: 0 0 0 3px rgba(30,74,118,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* Contact section target */
.contact-section-target {
    scroll-margin-top: 100px;
}

/* Floating buttons - Stacked on right */
.float-call, .float-wa {
    position: fixed;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
    z-index: 1000;
}

.float-call {
    background-color: #0B2F5E;
    bottom: 110px;
    color: white;
}

.float-wa {
    background-color: #25D366;
    bottom: 30px;
    color: white;
}

.float-call:hover, .float-wa:hover {
    transform: scale(1.08);
}

.tooltip {
    position: absolute;
    background: #0B1725;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
    right: 70px;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
}

.float-call:hover .tooltip, .float-wa:hover .tooltip {
    opacity: 1;
}

/* Footer */
footer {
    background: #0B1725;
    color: #cbd5e1;
    padding: 56px 0 24px;
    margin-top: 60px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-grid a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-grid a:hover {
    color: white;
}

hr {
    border: none;
    border-top: 1px solid #2d3a4a;
}

.copyright {
    text-align: center;
    margin-top: 32px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-nav-group {
        width: 100%;
        justify-content: flex-start;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .service-card {
        padding: 28px 20px;
    }
    .grid-3, .service-grid {
        gap: 24px;
    }
    .float-call, .float-wa {
        width: 50px;
        height: 50px;
        font-size: 24px;
        right: 20px;
    }
    .float-call {
        bottom: 90px;
    }
    .float-wa {
        bottom: 25px;
    }
    .tooltip {
        display: none;
    }
}

/* Utility */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 32px;
}

/* Pricing */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.pricing-card {
    flex: 1;
    min-width: 280px;
    background: #fff;
    border-radius: 32px;
    padding: 40px 32px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: 0.2s;
}

.pricing-card.featured {
    border-top: 5px solid #0B2F5E;
    background: #FCFDFF;
    box-shadow: 0 12px 24px rgba(0,0,0,0.05);
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 20px 0;
    color: #0B2F5E;
}

/* Blog cards */
.blog-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #edf2f7;
}

.tag {
    font-size: 0.7rem;
    background: #EFF3F9;
    padding: 4px 12px;
    border-radius: 40px;
    display: inline-block;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Stats boxes */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 48px 0;
}

.stat-box {
    flex: 1;
    background: #F8FAFE;
    border-radius: 24px;
    padding: 32px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0B2F5E;
}

/* Audit items */
.audit-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 32px 0;
}

.audit-item {
    flex: 1;
    min-width: 200px;
    background: #F8FAFE;
    padding: 20px;
    border-radius: 20px;
}

/* CTA Box */
.cta-box {
    background: #0B2F5E;
    border-radius: 28px;
    padding: 48px;
    color: white;
    margin: 40px 0;
    text-align: center;
}

.cta-box h2 {
    color: white;
}

.btn-white {
    background: white;
    color: #0B2F5E;
    display: inline-block;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
}

.btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Employer/Candidate sections */
.dual-panels {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.panel {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 28px;
}

.panel ul {
    margin-top: 16px;
    list-style: none;
    line-height: 2;
}

.panel ul li i {
    margin-right: 8px;
    color: #1E4A76;
}

/* Gradient hero */
.gradient-hero {
    background: linear-gradient(135deg, #0B2F5E 0%, #1E4A76 100%);
    border-radius: 28px;
    padding: 48px;
    color: white;
    margin-bottom: 48px;
}

.gradient-hero h2 {
    color: white;
}

/* Testimonial */
.testimonial {
    flex: 1;
    padding: 24px;
    border-left: 4px solid #0B2F5E;
}

.testimonial i.fa-quote-left {
    color: #0B2F5E;
    font-size: 28px;
}

/* Digital Page Specific Styles */
.digital-page .digital-card {
    padding: 48px 40px;
    min-height: auto;
}

.digital-page .service-icon {
    font-size: 3.5rem;
    margin-bottom: 28px;
}

.digital-page .digital-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.digital-page .digital-card > p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.digital-page .service-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.digital-page .service-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    color: #374151;
}

.digital-page .service-list li:last-child {
    border-bottom: none;
}

.digital-page .service-list li i {
    color: #1E4A76;
    font-size: 1.2rem;
    margin-top: 2px;
    min-width: 20px;
}

.digital-page .service-list li strong {
    color: #0B2F5E;
}

.digital-page .two-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    margin: 40px 0 60px;
}

@media (max-width: 900px) {
    .digital-page .two-card-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .digital-page .digital-card {
        padding: 32px 24px;
    }
}