/**
 * Homepage (index.html) Specific Styles
 * Includes: Hero section, value proposition, services grid, guarantee section, testimonials, CTA sections
 */

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ==========================================================================
   LOADING OVERLAY
   ========================================================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--background-off-white);
    border-top: 3px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ==========================================================================
   MOBILE NAVIGATION TOGGLE (Page-specific styles)
   ========================================================================== */

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    width: 30px;
    height: 30px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-navy);
    margin: 5px 0;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
}

.hamburger:nth-child(1) {
    top: 5px;
}

.hamburger:nth-child(2) {
    top: 12px;
}

.hamburger:nth-child(3) {
    top: 19px;
}

.mobile-nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg);
    top: 12px;
}

.mobile-nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg);
    top: 12px;
}

/* ==========================================================================
   ANIMATION UTILITY CLASSES
   ========================================================================== */

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.delay-2 {
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

.delay-3 {
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   HERO SECTION STYLES
   ========================================================================== */

.hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Homepage-specific button enhancements */
.cta-button i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* White variant of secondary button for hero section */
.cta-button-secondary.hero-variant {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.cta-button-secondary.hero-variant:hover {
    background-color: var(--white);
    color: var(--primary-navy);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.trust-signals {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-signals span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   VALUE PROPOSITION SECTION
   ========================================================================== */

.mini-section {
    padding: 2rem 1rem;
    background-color: var(--background-blue-light);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.value-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    transition: all 0.3s ease;
}

.value-item:hover .value-icon-wrapper {
    background-color: rgba(212, 175, 55, 0.2);
    transform: scale(1.1);
}

.value-item i {
    font-size: 2rem;
    color: var(--accent-gold);
}

.value-item h4 {
    color: var(--primary-navy);
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.value-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ==========================================================================
   SERVICE CARDS ENHANCEMENT
   ========================================================================== */

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-summary-item:hover .service-icon-wrapper {
    transform: rotate(10deg) scale(1.1);
    background-color: rgba(212, 175, 55, 0.2);
}

.service-icon-summary {
    font-size: 1.8rem;
    color: var(--accent-gold);
}

.service-highlights {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.service-highlights li {
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.service-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-bright);
    font-weight: bold;
}

.learn-more-link i {
    transition: transform 0.3s ease;
}

.learn-more-link:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   GUARANTEE FEATURES
   ========================================================================== */

.guarantee-icon {
    font-size: 4rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.guarantee-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--primary-navy);
    transition: transform 0.3s ease;
}

.guarantee-item:hover {
    transform: scale(1.05);
}

.guarantee-item i {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

/* ==========================================================================
   FINAL CTA SECTION
   ========================================================================== */

.final-cta-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

/* Homepage uses component button styles from /css/components/buttons.css */

.cta-subtext {
    color: var(--text-faded);
    font-size: 0.9rem;
}

/* ==========================================================================
   SOCIAL LINKS
   ========================================================================== */

.social-links {
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
    transform: translateY(-3px);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-center {
    text-align: center !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    nav ul {
        display: none;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .cta-button-secondary {
        width: 100%;
        max-width: 300px;
    }

    .trust-signals {
        font-size: 0.85rem;
    }

    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-highlights {
        display: none;
    }

    .guarantee-features {
        flex-direction: column;
        align-items: center;
    }

    #hero h1 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .value-grid {
        grid-template-columns: 1fr;
    }

    .hero-badge {
        font-size: 0.8rem;
    }

    #hero h1 {
        font-size: 1.6rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* ==========================================================================
   TOUCH-FRIENDLY IMPROVEMENTS
   ========================================================================== */

@media (hover: none) {
    .service-summary-item:active {
        transform: scale(0.98);
    }

    .cta-button:active {
        transform: scale(0.98);
    }

    .value-item:active {
        transform: scale(0.98);
    }
}
