@import url('style.css');

/* Breadcrumbs & Navigation */
.navbar.category-navbar {
    position: relative;
    padding: 24px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-color);
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-grey);
    font-weight: 500;
}

.breadcrumb-link {
    color: var(--text-grey);
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--text-dark);
}

.breadcrumb-separator {
    color: #cccccc;
    user-select: none;
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 600;
}

/* Category Hero Section */
.category-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    padding: 60px 5% 100px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.category-hero-left {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.category-hero-left h1 {
    font-size: 4rem;
    line-height: 1.05;
    letter-spacing: -2px;
    color: var(--text-dark);
}

.category-hero-left p {
    font-size: 1.15rem;
    color: var(--text-grey);
    line-height: 1.7;
}

.category-hero-right {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.category-hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    transition: transform 0.8s ease;
}

.category-hero-right:hover img {
    transform: scale(1.02);
}

/* Services Grid (SEO Hub) */
.services-section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.services-grid-title {
    font-size: 3rem;
    margin-bottom: 50px;
    letter-spacing: -1.5px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
}

.service-card {
    background-color: #FFFFFF;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.service-card-img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.service-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.8s ease;
}

.service-card:hover .service-card-img-wrapper img {
    transform: scale(1.03);
}

.service-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.service-card-content h2 {
    font-size: 1.5rem;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

.service-card-content p {
    font-size: 0.95rem;
    color: var(--text-grey);
    line-height: 1.6;
    flex-grow: 1;
}

/* Service Card Pill Button */
.service-card-content .btn-pill {
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--text-dark);
    background: transparent;
    color: var(--text-dark);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.service-card-content .btn-pill:hover {
    background-color: var(--text-dark);
    color: var(--text-light);
}

/* Grid Columns logic for asymmetrical balancing */
.service-card.col-3 {
    grid-column: span 2;
}

.service-card.col-2 {
    grid-column: span 3;
}

/* 12-column Grid for 7-card layout (3 in row one, 4 in row two) */
.services-grid.grid-12col {
    grid-template-columns: repeat(12, 1fr);
}

.services-grid.grid-12col .service-card.span-4 {
    grid-column: span 4;
}

.services-grid.grid-12col .service-card.span-3 {
    grid-column: span 3;
}

/* Affordable Premium Trust Banner */
.trust-banner-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #E8E6DE;
    padding: 80px 5%;
    margin-top: 60px;
    margin-bottom: 60px;
}

.trust-banner-section.bg-alt-beige {
    background-color: #EBEAE4;
}

.trust-banner-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.trust-banner-container p {
    font-size: 1.35rem;
    line-height: 1.7;
    color: var(--text-dark);
    font-weight: 500;
    letter-spacing: -0.3px;
}

.trust-banner-container a {
    color: var(--text-dark);
    text-decoration: underline;
    font-weight: 700;
    transition: color 0.3s ease;
}

.trust-banner-container a:hover {
    color: #444444;
}

/* Category Pre-Footer & Footer */
.category-pre-footer {
    background-color: #0A0A0A;
    color: var(--text-light);
    padding: 100px 5%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.category-pre-footer h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
    max-width: 800px;
    color: var(--text-light);
}

.category-pre-footer .btn-pill.btn-white {
    background-color: var(--text-light);
    color: #0A0A0A;
    border: 1px solid var(--text-light);
}

.category-pre-footer .btn-pill.btn-white:hover {
    background-color: #E8E6DE;
    border-color: #E8E6DE;
    transform: scale(1.02);
}

.category-footer {
    background-color: #050505;
    color: var(--text-light);
    padding: 80px 5% 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.category-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto 60px;
}

.category-footer-col h4 {
    font-size: 1.125rem;
    margin-bottom: 24px;
    color: var(--text-light);
    letter-spacing: -0.5px;
    font-weight: 700;
}

.category-footer-col p {
    color: #aaaaaa;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.category-footer-col a {
    color: #aaaaaa;
    transition: color 0.3s ease;
}

.category-footer-col a:hover {
    color: var(--text-light);
}

.category-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.category-footer-bottom .copyright {
    color: #555555;
    font-size: 14px;
}

.category-footer-bottom .footer-logo {
    font-size: 8vw;
    line-height: 0.8;
    color: var(--text-light);
    font-weight: 900;
    letter-spacing: -3px;
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .category-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 60px;
    }
    
    .category-hero-left {
        text-align: center;
        align-items: center;
    }
    
    .category-hero-left h1 {
        font-size: 3rem;
    }
    
    .category-hero-right {
        max-width: 600px;
        width: 100%;
        margin: 0 auto;
    }
    
    .services-grid, .services-grid.grid-12col {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .service-card.col-3, .service-card.col-2, .services-grid.grid-12col .service-card.span-4, .services-grid.grid-12col .service-card.span-3 {
        grid-column: span 1;
    }
    
    .category-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar.category-navbar {
        flex-direction: row;
        gap: 0;
        align-items: center;
        justify-content: space-between;
        padding: 16px 5%;
    }
    
    .navbar.category-navbar nav[aria-label="breadcrumb"] {
        max-width: calc(100% - 50px);
    }
    
    .navbar.category-navbar .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-color);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 32px;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 100;
        justify-content: flex-start;
    }
    
    .navbar.category-navbar .nav-links.active {
        right: 0;
    }
    
    .navbar.category-navbar .nav-links a {
        font-size: 18px;
        color: var(--text-dark);
    }
    
    .breadcrumb-container {
        flex-wrap: wrap;
    }
    
    .category-hero-left h1 {
        font-size: 2.25rem;
    }
    
    .services-grid, .services-grid.grid-12col {
        grid-template-columns: 1fr;
    }
    
    .trust-banner-container p {
        font-size: 1.15rem;
    }
    
    .category-pre-footer h2 {
        font-size: 2.25rem;
    }
    
    .category-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .category-footer-bottom .footer-logo {
        font-size: 16vw;
    }
}

/* Related Services Cross-Links */
.related-services {
    padding: 60px 5% 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.related-services h2 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.related-links a {
    display: inline-block;
    padding: 10px 22px;
    border: 1.5px solid var(--text-dark);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    background: transparent;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.related-links a:hover {
    background: var(--text-dark);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .category-hero-left h1 {
        font-size: 1.75rem;
    }
    .category-hero-left p {
        font-size: 1rem;
    }
    .services-grid-title {
        font-size: 2rem;
    }
    .category-pre-footer h2 {
        font-size: 1.75rem;
    }
    .category-pre-footer {
        padding: 60px 5%;
    }
    .trust-banner-container p {
        font-size: 1rem;
    }
    .breadcrumb-container {
        font-size: 12px;
    }
    .service-card {
        padding: 16px;
    }
    .service-card-content h2 {
        font-size: 1.25rem;
    }
    .service-card-content p {
        font-size: 0.875rem;
    }
    .category-footer {
        padding: 40px 5% 24px;
    }
    .faq-section h2 {
        font-size: 1.5rem;
    }
    .faq-item summary h3 {
        font-size: 1rem;
    }
}
