/* ==========================================
   SERVICES PAGE STYLES
   Matched to Homepage Compact Scale
   Legacy Protection Services
========================================== */

/* ------------------------------------------
   SERVICES INTRO SECTION (White Background)
------------------------------------------ */
.services-intro-section {
    padding: clamp(48px, 6vw, 60px) 0 0;
    background: #ffffff;
}

.services-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

.intro-badge {
    display: inline-block;
    background: rgba(214, 154, 59, 0.12);
    color: var(--color-primary-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.9rem;
    border-radius: 40px;
    margin-bottom: 0.75rem;
}

.services-intro h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);  /* Matched to homepage */
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.services-intro p {
    font-size: 0.9rem;  /* Matched to homepage */
    line-height: 1.65;  /* Matched to homepage */
    color: var(--color-text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ------------------------------------------
   SERVICES GRID SECTION (Subtle Grey Background)
   3 Cards Per Row
------------------------------------------ */
.services-grid-section {
    padding: clamp(48px, 6vw, 80px) 0;
    background: #F0F2F5;  /* Matched to services section on homepage */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;  /* Reduced from 2rem */
}

/* Service Card - Matching homepage service-card sizes */
.service-card {
    background: #ffffff;
    border-radius: 1rem;  /* Reduced from 1.25rem - matches homepage */
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);  /* Matched to homepage */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: rgba(214, 154, 59, 0.2);
}

.service-card__image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.service-card__image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;  /* Matched to homepage */
}

.service-card:hover .service-card__image-img {
    transform: scale(1.02);  /* Matched to homepage */
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(214, 154, 59, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-overlay i {
    font-size: 2rem;  /* Reduced from 2.5rem */
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.service-card__content {
    padding: 1.25rem;  /* Reduced from 1.5rem - matches homepage */
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-icon {
    position: absolute;
    top: -20px;  /* Reduced from -24px */
    right: 1.25rem;
    width: 40px;  /* Reduced from 48px - matches homepage service-icon */
    height: 40px;  /* Reduced from 48px */
    background: var(--color-primary);
    border-radius: 10px;  /* Reduced from 12px - matches homepage */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(214, 154, 59, 0.3);
}

.service-icon i {
    font-size: 1.1rem;  /* Reduced from 1.3rem - matches homepage */
    color: var(--color-black);
}

.service-card__content h3 {
    font-family: var(--font-heading);
    font-size: 1rem;  /* Reduced from 1.1rem - matches homepage service-card h3 */
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.5rem;  /* Reduced from 0.7rem */
    padding-right: 2.5rem;  /* Reduced from 3rem */
    line-height: 1.4;
}

.service-card__content p {
    font-size: 0.8rem;  /* Reduced from 0.85rem - matches homepage */
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 0.875rem;  /* Reduced from 1rem */
}

/* Service Features Tags */
.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.25rem 0 1rem;  /* Reduced margin */
}

.service-features span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(214, 154, 59, 0.08);
    padding: 0.2rem 0.65rem;  /* Reduced padding - matches homepage service-tags */
    border-radius: 30px;
    font-size: 0.65rem;  /* Reduced from 0.68rem - matches homepage */
    font-weight: 500;
    color: var(--color-primary-dark);
}

.service-features span i {
    font-size: 0.55rem;  /* Reduced from 0.6rem */
    color: var(--color-primary);
}

/* Service Link */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;  /* Reduced from 0.8rem - matches homepage */
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    margin-top: auto;
    transition: all 0.2s ease;
}

.service-link i {
    transition: transform 0.2s ease;
    font-size: 0.65rem;  /* Reduced */
}

.service-link:hover {
    gap: 0.75rem;
    color: var(--color-primary-dark);
}

.service-link:hover i {
    transform: translateX(3px);  /* Reduced from 4px */
}

/* ------------------------------------------
   REDESIGNED WHY CHOOSE SECTION (White Background)
   Modern Stats Cards - Scaled to Homepage
------------------------------------------ */
.why-choose-modern {
    padding: clamp(48px, 6vw, 80px) 0;
    background: #ffffff;
}

.why-choose-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;  /* Reduced from 3rem */
}

.section-badge {
    display: inline-block;
    background: rgba(214, 154, 59, 0.12);
    color: var(--color-primary-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.9rem;
    border-radius: 40px;
    margin-bottom: 0.75rem;
}

.why-choose-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);  /* Matched to homepage */
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.why-choose-header p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--color-text-light);
}

/* Stats Grid - 4 cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;  /* Reduced from 2rem */
    margin-bottom: 2rem;  /* Reduced from 3rem */
}

.stat-card {
    background: #F8F9FA;  /* Lighter background - matches homepage feature-card */
    border-radius: 1rem;  /* Reduced from 1.25rem - matches homepage */
    padding: 1.5rem 1rem;  /* Reduced from 2rem 1.5rem */
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.stat-card:hover {
    transform: translateY(-4px);  /* Matched to homepage */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(214, 154, 59, 0.15);
}

.stat-icon {
    width: 50px;  /* Reduced from 70px - matches homepage feature-icon */
    height: 50px;  /* Reduced from 70px */
    background: rgba(214, 154, 59, 0.1);
    border-radius: 12px;  /* Reduced from 20px - matches homepage */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;  /* Reduced from 1.25rem */
}

.stat-icon i {
    font-size: 1.4rem;  /* Reduced from 2rem - matches homepage */
    color: var(--color-primary);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1rem;  /* Reduced from 1.3rem */
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: 0.35rem;
}

.stat-text {
    font-size: 0.75rem;  /* Reduced from 0.85rem */
    color: var(--color-text-light);
    line-height: 1.5;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding-top: 1.5rem;  /* Reduced from 2rem */
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;  /* Reduced from 0.85rem - matches homepage */
    color: var(--color-text-light);
}

.trust-item i {
    color: var(--color-primary);
    font-size: 0.85rem;  /* Reduced from 1rem */
}

/* ------------------------------------------
   REVEAL ANIMATIONS (Keep the same)
------------------------------------------ */
.reveal-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------
   ENHANCED RESPONSIVE BREAKPOINTS
   Matched to Homepage System
------------------------------------------ */

/* Tablet landscape & smaller desktops */
@media (max-width: 1100px) {
    .services-grid {
        gap: 1.25rem;
    }
    
    .service-card__image {
        height: 180px;
    }
    
    .service-card__content {
        padding: 1rem;
    }
    
    .service-card__content h3 {
        font-size: 0.95rem;
        padding-right: 2rem;
    }
    
    .stats-grid {
        gap: 1.25rem;
    }
}

/* Tablet portrait */
@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .trust-badges {
        gap: 1.5rem;
    }
}

/* Mobile landscape */
@media (max-width: 768px) {
    .services-intro-section {
        padding: 40px 0 0;
    }
    
    .services-grid-section {
        padding: 40px 0;
    }
    
    .services-grid {
        gap: 1rem;
    }
    
    .service-card__image {
        height: 200px;
    }
    
    .service-card__content {
        padding: 1rem;
    }
    
    .service-icon {
        top: -18px;
        right: 1rem;
        width: 36px;
        height: 36px;
    }
    
    .service-icon i {
        font-size: 0.9rem;
    }
    
    .service-card__content h3 {
        font-size: 0.9rem;
        padding-right: 1.75rem;
    }
    
    .service-card__content p {
        font-size: 0.75rem;
    }
    
    .service-features span {
        font-size: 0.6rem;
        padding: 0.15rem 0.55rem;
    }
    
    .service-link {
        font-size: 0.7rem;
    }
    
    .stats-grid {
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
    }
    
    .stat-icon i {
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 0.9rem;
    }
    
    .stat-text {
        font-size: 0.7rem;
    }
    
    .trust-badges {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .trust-item {
        font-size: 0.7rem;
    }
    
    .trust-item i {
        font-size: 0.75rem;
    }
}

/* Mobile portrait */
@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card__image {
        height: 200px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        text-align: left;
        display: flex;
        gap: 1rem;
        align-items: center;
        padding: 1rem;
    }
    
    .stat-icon {
        margin: 0;
        flex-shrink: 0;
        width: 50px;
        height: 50px;
    }
    
    .stat-content {
        text-align: left;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .services-intro h2 {
        font-size: 1.2rem;
    }
    
    .services-intro p {
        font-size: 0.8rem;
    }
    
    .service-card__image {
        height: 180px;
    }
    
    .service-card__content {
        padding: 0.875rem;
    }
    
    .service-card__content h3 {
        font-size: 0.85rem;
    }
    
    .service-card__content p {
        font-size: 0.7rem;
    }
    
    .service-icon {
        width: 32px;
        height: 32px;
        top: -16px;
    }
    
    .service-icon i {
        font-size: 0.8rem;
    }
    
    .why-choose-header h2 {
        font-size: 1.2rem;
    }
    
    .why-choose-header p {
        font-size: 0.8rem;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
    }
    
    .stat-icon i {
        font-size: 1.1rem;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .services-grid,
    .stats-grid {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Touch device optimization */
@media (hover: none) {
    .service-card:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    }
    
    .service-card:hover .service-card__image-img {
        transform: none;
    }
    
    .service-overlay {
        opacity: 0;
    }
    
    .stat-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-card__image-img,
    .service-link,
    .stat-card,
    .reveal-item {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .stat-card:hover {
        transform: none;
    }
    
    .reveal-item {
        opacity: 1;
        transform: none;
    }
}