/* ==========================================
   SERVICE PAGE STYLES
   Reusable template for all service pages
   Scaled to match homepage compact style
   Legacy Protection Services
========================================== */

/* ------------------------------------------
   SERVICE OVERVIEW SECTION (White Background)
------------------------------------------ */
.service-overview-section {
    padding: clamp(48px, 6vw, 80px) 0;
    background: #ffffff;
}

.service-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.service-overview-content {
    max-width: 100%;
}

.service-badge {
    display: inline-block;
    background: rgba(214, 154, 59, 0.12);
    color: var(--color-primary-dark);
    font-size: 0.7rem;  /* Reduced from 0.75rem - matches homepage */
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.9rem;  /* Reduced padding */
    border-radius: 40px;
    margin-bottom: 0.75rem;  /* Reduced from 1rem */
}

.service-overview-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);  /* Reduced from 1.8-2.2rem - matches homepage */
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.75rem;  /* Reduced from 1rem */
    line-height: 1.3;
}

.service-overview-content p {
    font-size: 0.9rem;  /* Reduced from 1rem - matches homepage */
    line-height: 1.65;  /* Matches homepage */
    color: var(--color-text-light);
    margin-bottom: 0.875rem;
}

/* Key Features */
.key-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;  /* Reduced from 1rem */
    margin-top: 1.25rem;  /* Reduced from 1.5rem */
}

.feature {
    display: flex;
    gap: 0.75rem;  /* Reduced from 1rem */
    align-items: flex-start;
}

.feature i {
    color: var(--color-primary);
    font-size: 1rem;  /* Reduced from 1.2rem */
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.feature h4 {
    font-size: 0.85rem;  /* Reduced from 0.9rem */
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.15rem;
}

.feature p {
    font-size: 0.75rem;  /* Reduced from 0.8rem */
    margin: 0;
    line-height: 1.5;
}

.service-overview-image {
    border-radius: 1rem;  /* Reduced from 1.5rem - matches homepage */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);  /* Softer shadow */
    background: #f5f5f5;
}

.service-overview-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ------------------------------------------
   WHAT WE OFFER SECTION (Grey Background)
------------------------------------------ */
.what-we-offer-section {
    padding: clamp(48px, 6vw, 80px) 0;
    background: #F0F2F5;  /* Subtle grey - matches homepage */
}

.section-header-center {
    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;  /* Reduced from 0.75rem */
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.9rem;
    border-radius: 40px;
    margin-bottom: 0.75rem;  /* Reduced from 1rem */
}

.section-header-center h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);  /* Reduced from 1.8-2.2rem */
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.section-header-center p {
    font-size: 0.9rem;  /* Reduced from 1rem */
    color: var(--color-text-light);
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;  /* Reduced from 2rem */
}

.offering-card {
    background: #ffffff;
    border-radius: 1rem;  /* Reduced from 1.25rem - matches homepage */
    padding: 1.5rem;  /* Reduced from 2rem */
    text-align: center;
    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);
}

.offering-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);
}

.offering-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.875rem;  /* Reduced from 1.25rem */
}

.offering-icon i {
    font-size: 1.4rem;  /* Reduced from 2rem - matches homepage */
    color: var(--color-primary);
}

.offering-card h3 {
    font-size: 1rem;  /* Reduced from 1.2rem - matches homepage */
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.5rem;  /* Reduced from 0.75rem */
    line-height: 1.4;
}

.offering-card p {
    font-size: 0.8rem;  /* Reduced from 0.85rem - matches homepage */
    line-height: 1.6;
    color: var(--color-text-light);
}

/* ------------------------------------------
   WHO WE PROTECT SECTION (White Background)
------------------------------------------ */
.who-we-protect-section {
    padding: clamp(48px, 6vw, 80px) 0;
    background: #ffffff;
}

.who-we-protect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.who-we-protect-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);  /* Reduced from 1.8-2.2rem */
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.who-we-protect-content p {
    font-size: 0.9rem;  /* Reduced from 1rem */
    line-height: 1.65;
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
}

.protect-list {
    list-style: none;
    padding: 0;
}

.protect-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;  /* Reduced from 0.75rem */
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.85rem;  /* Reduced from 0.95rem */
    color: var(--color-text);
}

.protect-list li:last-child {
    border-bottom: none;
}

.protect-list li i {
    color: var(--color-primary);
    width: 20px;  /* Reduced from 24px */
    font-size: 0.85rem;
    flex-shrink: 0;
}

.who-we-protect-image {
    border-radius: 1rem;  /* Reduced from 1.5rem */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    background: #f5f5f5;
}

.who-we-protect-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ------------------------------------------
   WHY CHOOSE SERVICE SECTION (Grey Background)
------------------------------------------ */
.why-choose-service-section {
    padding: clamp(48px, 6vw, 80px) 0;
    background: #F0F2F5;  /* Matched to homepage grey sections */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;  /* Reduced from 2rem */
}

.stat-card {
    background: #ffffff;
    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.06);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.stat-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);
}

.stat-icon {
    width: 50px;  /* Reduced from 65px - matches homepage feature-icon */
    height: 50px;  /* Reduced from 65px */
    background: rgba(214, 154, 59, 0.1);
    border-radius: 12px;  /* Reduced from 16px */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.875rem;  /* Reduced from 1rem */
}

.stat-icon i {
    font-size: 1.4rem;  /* Reduced from 1.8rem - matches homepage */
    color: var(--color-primary);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1rem;  /* Reduced from 1.2rem */
    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;
}

/* ------------------------------------------
   CTA SECTION (Using Global CTA - Minimal overrides)
   The global CTA already has the compact scale
------------------------------------------ */
/* Note: The .cta-section styles are in cta.css - no need to duplicate */
/* Just ensure the global CTA has the grey background matching your pattern */

/* ------------------------------------------
   REVEAL ANIMATIONS
------------------------------------------ */
.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) {
    .service-overview-grid,
    .who-we-protect-grid {
        gap: 2rem;
    }
    
    .offerings-grid {
        gap: 1.25rem;
    }
    
    .stats-grid {
        gap: 1.25rem;
    }
    
    .offering-card {
        padding: 1.25rem;
    }
    
    .stat-card {
        padding: 1.25rem 0.875rem;
    }
}

/* Tablet portrait */
@media (max-width: 991px) {
    .offerings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .key-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Mobile landscape */
@media (max-width: 768px) {
    .service-overview-grid,
    .who-we-protect-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-overview-image,
    .who-we-protect-image {
        order: -1;
    }
    
    .service-overview-content h2 {
        font-size: 1.2rem;
    }
    
    .service-overview-content p {
        font-size: 0.85rem;
    }
    
    .feature h4 {
        font-size: 0.8rem;
    }
    
    .feature p {
        font-size: 0.7rem;
    }
    
    .section-header-center h2 {
        font-size: 1.2rem;
    }
    
    .section-header-center p {
        font-size: 0.85rem;
    }
    
    .offerings-grid {
        gap: 1rem;
    }
    
    .offering-card {
        padding: 1rem;
    }
    
    .offering-icon {
        width: 45px;
        height: 45px;
    }
    
    .offering-icon i {
        font-size: 1.2rem;
    }
    
    .offering-card h3 {
        font-size: 0.9rem;
    }
    
    .offering-card p {
        font-size: 0.75rem;
    }
    
    .who-we-protect-content h2 {
        font-size: 1.2rem;
    }
    
    .who-we-protect-content p {
        font-size: 0.85rem;
    }
    
    .protect-list li {
        font-size: 0.8rem;
        padding: 0.5rem 0;
    }
    
    .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;
    }
}

/* Mobile portrait */
@media (max-width: 640px) {
    .offerings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .stat-card {
        text-align: left;
        display: flex;
        gap: 1rem;
        align-items: center;
        padding: 1rem;
    }
    
    .stat-icon {
        margin: 0;
        flex-shrink: 0;
    }
    
    .stat-content {
        text-align: left;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .service-badge,
    .section-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.8rem;
    }
    
    .service-overview-content h2 {
        font-size: 1.15rem;
    }
    
    .service-overview-content p {
        font-size: 0.8rem;
    }
    
    .feature {
        gap: 0.6rem;
    }
    
    .feature i {
        font-size: 0.85rem;
    }
    
    .feature h4 {
        font-size: 0.75rem;
    }
    
    .section-header-center h2 {
        font-size: 1.15rem;
    }
    
    .section-header-center p {
        font-size: 0.8rem;
    }
    
    .offering-card {
        padding: 0.875rem;
    }
    
    .offering-icon {
        width: 42px;
        height: 42px;
    }
    
    .offering-icon i {
        font-size: 1.1rem;
    }
    
    .protect-list li {
        font-size: 0.75rem;
        gap: 0.6rem;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .service-overview-grid,
    .offerings-grid,
    .who-we-protect-grid,
    .stats-grid {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Touch device optimization */
@media (hover: none) {
    .offering-card:hover,
    .stat-card:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .offering-card,
    .stat-card,
    .reveal-item {
        transition: none;
    }
    
    .reveal-item {
        opacity: 1;
        transform: none;
    }
}