/* ==========================================================================
   Clean Nation - Reusable UI Components
   ========================================================================== */

/* --- 1. Buttons --- */
.btn-primary, 
.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-family: var(--font-ui, 'Roboto', sans-serif);
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color, #00b894);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-hover, #008f72);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.25);
}

.btn-secondary {
    background: #ffffff;
    color: var(--secondary-color, #1a3636);
}

.btn-secondary:hover {
    background: #e2f5ee;
    transform: translateY(-2px);
}

/* Header Contact Us Green Button */
.btn-nav {
    background-color: var(--primary-color, #00b894);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background-color: var(--primary-hover, #008f72);
    transform: translateY(-2px);
}

/* --- 2. Header Contact Info & Social Icons (Next to Contact Us) --- */
.nav-contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: 10px;
    border-left: 2px solid #e2e8f0;   /* Contact Us button එක පැත්තෙන් vertical line එක */
    border-right: 2px solid #e2e8f0;  /* Social Media icons පැත්තෙන් vertical line එක */
    gap: 6px;                          /* Text lines 3 අතර පරතරය */
}

.nav-contact-info .info-item {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--text-dark, #2d3748) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.nav-contact-info .info-item i {
    font-size: 13px;
    color: var(--primary-color, #00b894);
    width: 14px;
    text-align: center;
}

.nav-contact-info a.info-item:hover {
    color: var(--primary-color, #00b894) !important;
}

.nav-contact-info .location {
    cursor: default;
    color: var(--text-light, #5a6a70) !important;
}

/* Header Social Media Icons */
.nav-social-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 5px;
}

.nav-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(0, 184, 148, 0.1);
    color: var(--primary-color, #00b894) !important;
    border-radius: 50%;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.nav-social-icons a:hover {
    background-color: var(--primary-color, #00b894);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* --- 3. Section Titles --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--secondary-color, #1a3636);
    margin-bottom: 10px;
}

.section-title p {
    font-size: 16px;
    color: var(--text-light, #5a6a70);
}

/* --- 4. Service Cards --- */
.service-card {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.2);
}

.service-card .card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-img img {
    transform: scale(1.05);
}

.service-card .card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card .service-icon {
    font-size: 28px;
    color: var(--primary-color, #00b894);
    margin-bottom: 12px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color, #1a3636);
}

.service-card p {
    font-size: 15px;
    color: var(--text-light, #5a6a70);
    line-height: 1.5;
}

/* --- 5. Scroll To Top Button --- */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color, #00b894);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 184, 148, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: var(--primary-hover, #008f72);
    transform: translateY(-3px);
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}

/* --- 6. Mobile Responsive Adjustments for Components --- */
@media (max-width: 992px) {
    .nav-contact-info {
        border-left: none;
        border-right: none;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        align-items: center;
        margin-top: 15px;
        gap: 10px;
    }

    .nav-social-icons {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }
}