/* 
   SmartHomewareservice - Custom Sections CSS
   Premium Styles for Footer, Team, and Clients Sections
   Scoped to avoid global conflicts
*/

/* =========================================
   Footer Section Premium Styles
   ========================================= */
.footer {
    background: linear-gradient(to bottom, #0f172a, #020617);
    color: #cbd5e1;
    padding-top: 5rem;
    padding-bottom: 2rem;
    position: relative;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Brand Column */
.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-right: 3rem;
    /* Increased spacing */
    padding-left: 1.5rem;
    /* Shift content slightly right per user request */
    max-width: 350px;
    /* Force compact width to prevent touching right side */
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
}

.footer-logo img {
    height: 45px;
    width: auto;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    word-break: break-word;
    /* Ensure long text wraps */
}

/* Force site name visibility in desktop footer as requested */
.footer-logo .footer-site-name {
    /* Re-adding base styles since .logo-desktop class was removed */
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(255, 145, 0);
    letter-spacing: -0.02em;
    word-break: break-word;
    /* Inline style handles display:inline-block on desktop */
}

/* Hide desktop logo text on mobile/tablet matching style.css */
@media (max-width: 768px) {
    .footer-logo .footer-site-name {
        display: none !important;
    }
}

/* --- Search Dropdown Styles (Missing) --- */
.search-wrapper {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    outline: none;
}

.search-form .search-submit {
    background: #2563eb;
    /* Vibrant Blue */
    color: white;
    /* White icon */
    border: none;
    padding: 0 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form .search-submit:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.search-form .search-submit i {
    color: white !important;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #ffa305;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgb(89, 255, 0);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.footer-social a:hover {
    background: #f90000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
    border-color: #2563eb;
}

/* Footer Links & Contact */
.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #2563eb;
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #ff7b00;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    color: #94a3b8;
}

.contact-list i {
    color: #2563eb;
    margin-top: 0.25rem;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Footer Responsiveness */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 320px) {
    .footer-grid {
        gap: 1.5rem;
    }

    .footer-logo .footer-site-name,
    .footer-logo .logo-text {
        font-size: 1.2rem;
    }

    .footer-desc {
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-brand-col {
        /* Center align brand column for mobile */
        text-align: center;
        align-items: center;
        /* Crucial for centering flex column items */
        padding-right: 0;
        padding-left: 0;
        max-width: 100%;
    }

    .footer-logo {
        justify-content: center;
        width: 100%;
        margin-bottom: 1rem;
        /* Add spacing below centered logo */
    }

    /* .footer-desc defaults to left */

    .footer-col {
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    @media (max-width: 300px) {
        .footer-brand-col {
            gap: 1rem;
        }

        .footer-social {
            gap: 0.75rem;
        }

        .footer-social a {
            width: 34px;
            height: 34px;
            font-size: 0.9rem;
        }
    }
}



/* Common Utilities for these pages */
.py-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* =========================================
   Team Page Premium Styles
   ========================================= */
.page-header-section {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.page-header-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #60a5fa, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header-section p {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff8000;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #64748b;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.team-page-grid,
.testimonials-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 1.5rem !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}

.team-member-card {
    background: white;
    border-radius: 20px;
    /* More rounded for premium feel */
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-member-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.1);
}

.member-image-wrapper {
    position: relative;
    padding-top: 85%;
    /* More compact aspect ratio */
    overflow: hidden;
    background: #f1f5f9;
}

.member-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-member-card:hover .member-image-wrapper img {
    transform: scale(1.1);
}

.member-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    /* Softer overlay */
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s ease;
}

.team-member-card:hover .member-overlay {
    opacity: 1 !important;
    visibility: visible !important;
}

.member-social-link {
    color: white;
    width: 36px;
    /* Smaller icons */
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.member-social-link:hover {
    background: #3b82f6;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
    border-color: #3b82f6;
}

.member-info {
    padding: 1.25rem;
    /* Tightened padding */
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.member-role {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.member-bio {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.member-contact-info {
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1e293b;
    font-size: 0.85rem;
    font-weight: 500;
}

.contact-item i {
    color: #3b82f6;
    width: 16px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.badge-skill {
    background: #eff6ff;
    color: #3b82f6;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}


/* =========================================
   Clients / Testimonials Page Styles
   ========================================= */
.clients-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.client-review-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.client-review-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.quote-icon {
    font-size: 2rem;
    color: #e2e8f0;
}

.rating-stars {
    color: #fbbf24;
    font-size: 0.9rem;
}

.review-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #334155;
    flex-grow: 1;
    margin-bottom: 2rem;
    font-style: italic;
}

.review-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f5f9;
}

.reviewer-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.reviewer-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.1rem;
}

.reviewer-type {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.reviewer-type i {
    color: #22c55e;
}

/* Featured Client Logos Grid */
.trusted-brands-section {
    background: #f8fafc;
    padding: 4rem 0;
    margin-top: 4rem;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 3rem;
    align-items: center;
    justify-items: center;
    opacity: 0.7;
}

.brand-item img {
    max-height: 50px;
    max-width: 100%;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .page-header-section {
        padding: 3rem 0;
    }

    .page-header-section h1 {
        font-size: 2rem;
    }

    .team-page-grid,
    .clients-page-grid {
        gap: 1.5rem;
    }
}