/**
 * Lima - Custom CSS Overrides
 * This file contains custom styles that override the original theme CSS
 * without modifying the theme files directly.
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */

/* Header logo size */
.main-logo .custom-logo {
    max-height: 50px;
    width: auto;
}

/* Responsive hero title */
.header-personal .title-lg {
    font-size: clamp(2em, 10vw, 7.5rem) !important;
    line-height: 1.1;
}

.header-personal .title-block {
    font-size: clamp(0.875rem, 2.5vw, 1.25rem);
}

/* ==========================================================================
   About Section
   ========================================================================== */
/* About section title */
.section-title .title {
    font-size: clamp(2.5rem, 5vw, 6rem);
    line-height: 1.1;
}

@media (max-width: 768px) {
    .section-title .title {
        line-height: 1.15;
        margin-bottom: 15px;
    }

    .section-title.mb-70 {
        margin-bottom: 40px !important;
    }
}

/* ==========================================================================
   Services Section
   ========================================================================== */

/* Service item styling */
a.service-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ==========================================================================
   Experience About Section
   ========================================================================== */

/* Fix text overlap with vertical label */
.box-bottom .text {
    margin-left: 80px;
}

/* Responsive experience number */
.experience-about .number {
    font-size: clamp(4rem, 15vw, 10rem);
    line-height: 1;
}

@media (max-width: 768px) {
    .box-bottom .text {
        margin-left: 60px;
    }

    .box-bottom {
        flex-direction: column;
        gap: 30px;
    }

    .experience-about {
        margin-bottom: 20px;
    }
}

/* ==========================================================================
   Mobile Responsive Fixes
   ========================================================================== */

@media (max-width: 576px) {

    /* Smaller hero title on mobile */
    .header-personal .title-lg {
        font-size: clamp(2rem, 8vw, 4rem) !important;
    }

    /* Adjust subtitle */
    .header-personal .title-block {
        font-size: 0.875rem;
    }

    /* Fix experience section on mobile */
    .box-bottom .text {
        margin-left: 0;
    }
}

/* ==========================================================================
   Footer Section
   ========================================================================== */

/* Footer bottom responsive */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 30px;
    }

    /* Only center copyright */
    .footer-bottom .text-right {
        text-align: center;
        width: 100%;
    }

    .bottom-footer {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .bottom-footer .box-social {
        justify-content: center;
    }

    .bottom-footer .text-right {
        text-align: center;
        order: 3;
    }
}

/* Remove white space gap before footer */
.dsn-footer {
    margin-top: 0 !important;
}

#page_wrapper>section:last-of-type {
    margin-bottom: 0 !important;
}

/* ==========================================================================
   About Page - Services Section
   ========================================================================== */

/* Reduce expertise title size */
.our-services-about .services-item .title-lg {
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.1;
}

.our-services-about .services-item .number {
    font-size: clamp(1rem, 3vw, 1.5rem);
}

/* Center align items vertically */
.our-services-about .services-item .d-grid.grid-1-half {
    align-items: center;
}

@media (max-width: 768px) {
    .our-services-about .services-item .d-grid.grid-1-half {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .our-services-about .services-item .title-lg {
        font-size: 2rem;
    }
}

@media only screen and (max-width: 575px) {
    .title-lg {
        font-size: 45px;
        line-height: 60px;
    }
}