/*
 * ENHANCED RESPONSIVE TRUST BADGES & VALUE PROPOSITIONS
 * Optimized for all screen sizes from mobile to ultra-wide displays
 * Version: 1.0
 */

/* ============================================
   HERO SECTION TRUST BADGES - ENHANCED
   ============================================ */

.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem); /* Fluid spacing */
    flex-wrap: wrap;
    margin: 2rem auto;
    max-width: 900px;
    padding: 0 1rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: clamp(0.875rem, 2vw, 1.1rem); /* Fluid typography */
    color: #ffffff;
    transition: all 0.3s ease;
    min-width: 140px; /* Prevent too-narrow badges */
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 215, 0, 0.6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.trust-icon {
    width: clamp(20px, 4vw, 28px);
    height: clamp(20px, 4vw, 28px);
    flex-shrink: 0;
    stroke: currentColor;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ============================================
   WHY CHOOSE US SECTION - ENHANCED
   ============================================ */

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: 3rem;
    padding: 0 1rem;
}

.why-choose-card {
    background: #ffffff;
    border-radius: 16px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.why-choose-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #d32f2f 0%, #ff6b00 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.why-choose-card:hover::before {
    transform: scaleX(1);
}

.why-choose-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    border-color: rgba(211, 47, 47, 0.3);
}

.why-choose-icon {
    width: clamp(48px, 8vw, 70px);
    height: clamp(48px, 8vw, 70px);
    margin-bottom: 1.25rem;
    color: #d32f2f;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.1) 0%, rgba(255, 107, 0, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.why-choose-card:hover .why-choose-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.2) 0%, rgba(255, 107, 0, 0.2) 100%);
}

.why-choose-icon svg,
.why-choose-icon i {
    font-size: clamp(24px, 4vw, 36px);
}

.why-choose-title {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    color: #212121;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.why-choose-description {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: #757575;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   RESPONSIVE BREAKPOINTS - ULTRA DETAILED
   ============================================ */

/* ULTRA-WIDE DISPLAYS (2560px+) */
@media (min-width: 2560px) {
    .trust-badges {
        max-width: 1400px;
        gap: 3.5rem;
    }

    .trust-badge {
        padding: 1.5rem 2.5rem;
        font-size: 1.3rem;
        min-width: 200px;
    }

    .why-choose-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1800px;
        margin-left: auto;
        margin-right: auto;
        gap: 3.5rem;
    }

    .why-choose-card {
        padding: 3.5rem 3rem;
        min-height: 280px;
    }
}

/* LARGE DESKTOP (1920px-2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
    .trust-badges {
        max-width: 1200px;
        gap: 3rem;
    }

    .trust-badge {
        padding: 1.25rem 2.25rem;
        font-size: 1.2rem;
    }

    .why-choose-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* STANDARD DESKTOP (1440px-1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .trust-badges {
        max-width: 1000px;
        gap: 2.5rem;
    }

    .trust-badge {
        padding: 1.1rem 2rem;
        font-size: 1.1rem;
    }

    .why-choose-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* LAPTOP/SMALL DESKTOP (1200px-1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .trust-badges {
        gap: 2rem;
    }

    .trust-badge {
        padding: 1rem 1.75rem;
        font-size: 1.05rem;
        min-width: 160px;
    }

    .why-choose-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* SMALL LAPTOP/LARGE TABLET LANDSCAPE (992px-1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .trust-badges {
        gap: 1.75rem;
        max-width: 850px;
    }

    .trust-badge {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        min-width: 150px;
    }

    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .why-choose-card {
        min-height: 200px;
    }
}

/* TABLET LANDSCAPE (768px-991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .trust-badges {
        gap: 1.5rem;
        max-width: 700px;
    }

    .trust-badge {
        padding: 0.85rem 1.35rem;
        font-size: 0.95rem;
        min-width: 140px;
        border-width: 1.5px;
    }

    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }

    .why-choose-card {
        padding: 2rem 1.5rem;
        min-height: 190px;
    }
}

/* TABLET PORTRAIT (600px-767px) */
@media (min-width: 600px) and (max-width: 767px) {
    .trust-badges {
        gap: 1.25rem;
        flex-direction: row;
        justify-content: center;
    }

    .trust-badge {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        min-width: 130px;
        gap: 0.6rem;
    }

    .trust-icon {
        width: 22px;
        height: 22px;
    }

    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .why-choose-card {
        padding: 1.75rem 1.35rem;
        min-height: 180px;
    }

    .why-choose-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 1rem;
    }
}

/* LARGE MOBILE (480px-599px) */
@media (min-width: 480px) and (max-width: 599px) {
    .trust-badges {
        gap: 1rem;
        flex-direction: column;
        align-items: stretch;
        max-width: 400px;
    }

    .trust-badge {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
        width: 100%;
        min-width: auto;
        justify-content: center;
        gap: 0.75rem;
    }

    .trust-icon {
        width: 24px;
        height: 24px;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    .why-choose-card {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .why-choose-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.1rem;
    }
}

/* STANDARD MOBILE (375px-479px) */
@media (min-width: 375px) and (max-width: 479px) {
    .trust-badges {
        gap: 0.9rem;
        flex-direction: column;
        align-items: stretch;
        max-width: 350px;
        padding: 0 0.75rem;
    }

    .trust-badge {
        padding: 0.9rem 1.1rem;
        font-size: 0.9rem;
        width: 100%;
        min-width: auto;
        justify-content: center;
        gap: 0.7rem;
    }

    .trust-icon {
        width: 22px;
        height: 22px;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .why-choose-card {
        padding: 1.75rem 1.25rem;
        min-height: auto;
    }

    .why-choose-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }

    .why-choose-title {
        font-size: 1.15rem;
        margin-bottom: 0.65rem;
    }

    .why-choose-description {
        font-size: 0.95rem;
    }
}

/* SMALL MOBILE (320px-374px) */
@media (max-width: 374px) {
    .trust-badges {
        gap: 0.8rem;
        flex-direction: column;
        align-items: stretch;
        max-width: 300px;
        padding: 0 0.5rem;
    }

    .trust-badge {
        padding: 0.85rem 1rem;
        font-size: 0.85rem;
        width: 100%;
        min-width: auto;
        justify-content: center;
        gap: 0.6rem;
        border-width: 1.5px;
    }

    .trust-icon {
        width: 20px;
        height: 20px;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .why-choose-card {
        padding: 1.5rem 1rem;
        min-height: auto;
        border-radius: 12px;
    }

    .why-choose-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.9rem;
    }

    .why-choose-icon svg,
    .why-choose-icon i {
        font-size: 24px;
    }

    .why-choose-title {
        font-size: 1.05rem;
        margin-bottom: 0.6rem;
    }

    .why-choose-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* ============================================
   ORIENTATION-SPECIFIC OPTIMIZATIONS
   ============================================ */

/* Landscape orientation on mobile/tablets */
@media (max-height: 500px) and (orientation: landscape) {
    .trust-badges {
        flex-direction: row;
        gap: 1rem;
        margin: 1rem auto;
    }

    .trust-badge {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        min-width: 120px;
    }

    .why-choose-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.25rem;
    }

    .why-choose-card {
        padding: 1.25rem 1rem;
        min-height: auto;
    }

    .why-choose-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.75rem;
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .trust-badge {
        border-width: 3px;
        font-weight: 700;
    }

    .why-choose-card {
        border: 3px solid #212121;
    }

    .why-choose-title {
        font-weight: 800;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .trust-badge,
    .why-choose-card,
    .why-choose-icon,
    .why-choose-card::before {
        transition: none;
        animation: none;
    }

    .trust-badge:hover,
    .why-choose-card:hover {
        transform: none;
    }

    .why-choose-card:hover .why-choose-icon {
        transform: scale(1.05);
    }
}

/* ============================================
   PRINT OPTIMIZATION
   ============================================ */

@media print {
    .trust-badges,
    .why-choose-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        page-break-inside: avoid;
    }

    .trust-badge,
    .why-choose-card {
        background: #ffffff;
        border: 2px solid #212121;
        box-shadow: none;
        page-break-inside: avoid;
    }

    .trust-badge:hover,
    .why-choose-card:hover {
        transform: none;
    }
}

/* ============================================
   DARK MODE SUPPORT (Future Enhancement)
   ============================================ */

@media (prefers-color-scheme: dark) {
    .why-choose-card {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .why-choose-card:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .why-choose-title {
        color: #ffffff;
    }

    .why-choose-description {
        color: rgba(255, 255, 255, 0.8);
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile */
    .trust-badge {
        min-height: 48px; /* Minimum touch target size */
        padding: 1rem 1.25rem;
    }

    .why-choose-card {
        min-height: 200px;
        padding: 2rem 1.5rem;
    }

    /* Remove hover effects on touch devices */
    .trust-badge:hover,
    .why-choose-card:hover {
        transform: none;
    }

    /* Add tap/active states instead */
    .trust-badge:active {
        transform: scale(0.97);
        background: rgba(255, 255, 255, 0.2);
    }

    .why-choose-card:active {
        transform: scale(0.98);
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* GPU acceleration for smooth animations */
.trust-badge,
.why-choose-card,
.why-choose-icon {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

/* Contain layout changes */
.trust-badges,
.why-choose-grid {
    contain: layout style;
}

/* ============================================
   DUAL LOCATION DISPLAY (Winchester + Capon Springs)
   ============================================ */

.hero-locations {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    flex-wrap: wrap;
    margin: 0.75rem auto 0 auto;
    padding: 0 1rem;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.location-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    padding: 0.35rem 0;
    transition: all 0.2s ease;
}

.location-item:hover {
    color: #ffffff;
    transform: scale(1.05);
}

.location-icon {
    width: clamp(16px, 3vw, 20px);
    height: clamp(16px, 3vw, 20px);
    flex-shrink: 0;
    stroke: currentColor;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.location-separator {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    line-height: 1;
}

/* Responsive adjustments for locations */
@media (min-width: 1440px) {
    .hero-locations {
        gap: 2rem;
        margin-top: 1rem;
    }

    .location-item {
        font-size: 1.2rem;
        gap: 0.6rem;
    }

    .location-icon {
        width: 22px;
        height: 22px;
    }
}

@media (min-width: 768px) and (max-width: 1439px) {
    .hero-locations {
        gap: 1.25rem;
    }

    .location-item {
        font-size: 1.05rem;
    }

    .location-icon {
        width: 18px;
        height: 18px;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .hero-locations {
        gap: 1rem;
        font-size: 0.95rem;
    }

    .location-item {
        gap: 0.45rem;
    }

    .location-icon {
        width: 17px;
        height: 17px;
    }

    .location-separator {
        font-size: 1.3rem;
    }
}

@media (max-width: 479px) {
    .hero-locations {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .location-item {
        font-size: 0.9rem;
        gap: 0.4rem;
    }

    .location-icon {
        width: 16px;
        height: 16px;
    }

    .location-separator {
        display: none; /* Hide dot separator on very small screens */
    }
}

/* Touch device optimization for locations */
@media (hover: none) and (pointer: coarse) {
    .location-item {
        min-height: 32px;
        padding: 0.5rem 0;
    }
}

/* High contrast mode for locations */
@media (prefers-contrast: high) {
    .hero-locations {
        color: #ffffff;
        text-shadow: 0 0 2px #000000, 0 0 4px #000000;
    }

    .location-icon {
        stroke-width: 2.5px;
        filter: drop-shadow(0 0 2px #000000);
    }
}
