/* ====================================
   css/solutions.css - Solutions Page Styles
   Font: Asap (changed from Bitter)
   ==================================== */

/* Solutions Hero Section */
.reldev-solutions-hero {
    min-height: 35vh;
    /* Top bar: 50px + Nav: padding 1.25rem*2 (40px) + logo 94px = 184px total */
    margin-top: 184px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/page-top.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.reldev-solutions-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Diagonal radar lines */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(25, 121, 57, 0.08) 40px,
            rgba(25, 121, 57, 0.08) 42px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            rgba(25, 121, 57, 0.06) 40px,
            rgba(25, 121, 57, 0.06) 42px
        ),
        /* Subtle grid overlay */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 80px,
            rgba(255, 255, 255, 0.02) 80px,
            rgba(255, 255, 255, 0.02) 81px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 80px,
            rgba(255, 255, 255, 0.02) 80px,
            rgba(255, 255, 255, 0.02) 81px
        ),
        /* Vignette */
        radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.reldev-hero-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.reldev-hero-content h1 {
    font-family: 'Asap', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.reldev-hero-content p {
    font-family: 'Asap', sans-serif;
    font-size: 1.3rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
    text-align: center;
}

/* Locations Section with Tabs */
.reldev-locations-section {
    padding: 7rem 0;
    background: #f5f5f5;
}

.reldev-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.reldev-tabs-wrapper {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.reldev-tabs-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #197939, #145a2c, #197939);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

/* Tab Navigation */
.reldev-tab-nav {
    display: flex;
    background: #f8f9fa;
}

.reldev-tab-btn {
    flex: 1;
    background: #e9ecef;
    border: none;
    padding: 1.5rem 2rem;
    font-family: 'Asap', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-bottom: 3px solid transparent;
}

.reldev-tab-btn:hover {
    background: #dee2e6;
    color: #333;
}

.reldev-tab-btn.active {
    background: linear-gradient(135deg, #197939 0%, #145a2c 100%);
    color: #ffffff;
    border-bottom: 3px solid #145a2c;
}

.reldev-tab-icon {
    font-size: 1.3rem;
}

/* Tab Content */
.reldev-tab-content {
    position: relative;
    min-height: 500px;
}

.reldev-tab-panel {
    display: none;
    padding: 4rem 3rem;
    animation: fadeIn 0.4s ease-in-out;
}

.reldev-tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reldev-tab-layout {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 4rem;
    align-items: center;
}

.reldev-tab-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.reldev-tab-image img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
    background: #f8f9fa;
}

.reldev-tab-image:hover img {
    transform: scale(1.05);
}

.reldev-tab-text h2 {
    font-family: 'Asap', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.reldev-tab-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #197939, #145a2c);
    border-radius: 2px;
}

.reldev-tab-text p {
    font-family: 'Asap', sans-serif;
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #666;
    font-weight: 400;
}

.reldev-tab-text p:last-child {
    margin-bottom: 0;
}

.reldev-contact-link {
    color: #197939;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.reldev-contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #197939;
    transition: width 0.3s ease;
}

.reldev-contact-link:hover {
    color: #145a2c;
}

.reldev-contact-link:hover::after {
    width: 100%;
}

/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1199px) {
    .reldev-solutions-hero {
        /* Top bar: 50px + Nav: padding 1.25rem*2 (40px) + logo 83px = 173px */
        margin-top: 173px;
    }
    
    .reldev-hero-content h1 {
        font-size: 3.2rem;
    }
    
    .reldev-hero-content p {
        font-size: 1.25rem;
        max-width: 850px;
    }

    .reldev-tab-layout {
        grid-template-columns: 400px 1fr;
        gap: 3.5rem;
    }
}

/* Tablets */
@media (max-width: 991px) {
    .reldev-solutions-hero {
        min-height: 32vh;
        /* Top bar: 50px + Nav: padding 1.25rem*2 (40px) + logo 83px = 173px */
        margin-top: 173px;
        padding: 2rem 2rem;
    }
    
    .reldev-hero-content h1 {
        font-size: 3rem;
    }
    
    .reldev-hero-content p {
        font-size: 1.2rem;
        max-width: 800px;
    }

    .reldev-locations-section {
        padding: 6rem 0;
    }

    .reldev-container {
        padding: 0 2rem;
    }

    .reldev-tab-layout {
        grid-template-columns: 350px 1fr;
        gap: 3rem;
    }
}

/* Mobile - Top bar hidden, only nav visible */
@media (max-width: 768px) {
    .reldev-solutions-hero {
        min-height: 28vh;
        /* No top bar, Nav only: padding 0.75rem*2 (24px) + logo 61px = 85px */
        margin-top: 85px;
        padding: 1.75rem 1.5rem;
    }

    .reldev-hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }

    .reldev-hero-content p {
        font-size: 1.15rem;
    }

    .reldev-locations-section {
        padding: 5rem 0;
    }

    .reldev-container {
        padding: 0 1.5rem;
    }

    .reldev-tab-btn {
        padding: 1.25rem 1rem;
        font-size: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .reldev-tab-icon {
        font-size: 1.1rem;
    }

    .reldev-tab-panel {
        padding: 3rem 2rem;
    }

    .reldev-tab-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .reldev-tab-image {
        order: -1;
    }

    .reldev-tab-image img {
        height: 300px;
    }

    .reldev-tab-text h2 {
        font-size: 1.85rem;
    }

    .reldev-tab-text p {
        font-size: 1.05rem;
    }
}

/* Small mobile */
@media (max-width: 575px) {
    .reldev-solutions-hero {
        min-height: 25vh;
        /* Nav: padding 0.75rem*2 (24px) + logo 61px = 85px */
        margin-top: 85px;
        padding: 1.5rem 1.25rem;
    }
    
    .reldev-hero-content h1 {
        font-size: 2.25rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .reldev-hero-content p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .reldev-locations-section {
        padding: 4.5rem 0;
    }
    
    .reldev-tab-btn {
        padding: 1rem 0.75rem;
        font-size: 0.95rem;
    }

    .reldev-tab-panel {
        padding: 2.5rem 1.5rem;
    }

    .reldev-tab-text h2 {
        font-size: 1.65rem;
    }

    .reldev-tab-text p {
        font-size: 1rem;
    }

    .reldev-tab-image img {
        height: 260px;
    }

    .reldev-tab-content {
        min-height: 450px;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .reldev-solutions-hero {
        min-height: 22vh;
        /* Nav: padding 0.75rem*2 (24px) + logo 55px = 79px */
        margin-top: 79px;
        padding: 1.25rem 1rem;
    }

    .reldev-hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.875rem;
    }

    .reldev-hero-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .reldev-locations-section {
        padding: 4rem 0;
    }

    .reldev-container {
        padding: 0 1rem;
    }

    .reldev-tab-btn {
        padding: 1rem 0.75rem;
        font-size: 0.95rem;
    }

    .reldev-tab-panel {
        padding: 2.5rem 1.5rem;
    }

    .reldev-tab-text h2 {
        font-size: 1.65rem;
    }

    .reldev-tab-text p {
        font-size: 1rem;
    }

    .reldev-tab-image img {
        height: 260px;
    }

    .reldev-tab-content {
        min-height: 450px;
    }
}

/* Smallest mobile */
@media (max-width: 375px) {
    .reldev-solutions-hero {
        min-height: 20vh;
        /* Nav: padding 0.75rem*2 (24px) + logo 55px = 79px */
        margin-top: 79px;
        padding: 1rem 0.875rem;
    }
    
    .reldev-hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .reldev-hero-content p {
        font-size: 0.95rem;
    }

    .reldev-tab-text h2 {
        font-size: 1.5rem;
    }
}