/* Limited-Time Offer Pop-up Styles */

/* Pop-up Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 42, 54, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

/* Pop-up Modal */
.popup-modal {
    background: white;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
}

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

/* Close Button */
.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #1F2A36;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close:hover {
    background: #1F2A36;
    transform: rotate(90deg);
}

.popup-close:hover svg {
    stroke: white;
}

/* Top Accent Bar */
.popup-accent {
    height: 6px;
    background: linear-gradient(90deg, #CC6B5C 0%, #B87B6B 100%);
}

/* Content Area */
.popup-content {
    padding: 40px 32px 32px;
    text-align: center;
}

/* Icon */
.popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #CC6B5C 0%, #B87B6B 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badge */
.popup-badge {
    display: inline-block;
    background: #F3F1EE;
    color: #A5564A;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

/* Headline */
.popup-headline {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1F2A36;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

/* Description */
.popup-description {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 28px 0;
}

/* CTA Button */
.popup-cta {
    display: inline-block;
    background: linear-gradient(135deg, #CC6B5C 0%, #B87B6B 100%);
    color: white;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(204, 107, 92, 0.3);
}

.popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 107, 92, 0.4);
}

/* Footer Note */
.popup-footer {
    padding: 20px 32px;
    background: #F3F1EE;
    text-align: center;
}

.popup-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.popup-footer strong {
    color: #1F2A36;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .popup-modal {
        max-width: 95%;
    }
    
    .popup-content {
        padding: 32px 24px 24px;
    }
    
    .popup-headline {
        font-size: 1.6rem;
    }
    
    .popup-description {
        font-size: 1rem;
    }
    
    .popup-cta {
        padding: 14px 32px;
        font-size: 1rem;
        width: 100%;
    }
    
    .popup-footer {
        padding: 16px 24px;
    }
}
/* Trust Section Mobile Responsive Styles */

/* Mobile adjustments for trust section */
@media (max-width: 768px) {
    .trust-guarantee-section {
        padding: 3rem 0 !important;
    }
    
    .trust-guarantee-section .section-header h2 {
        font-size: 2rem !important;
        padding: 0 10px;
    }
    
    .trust-guarantee-section .section-header p {
        font-size: 1rem !important;
        padding: 0 10px;
    }
    
    /* Trust Pillars - Stack on mobile */
    .trust-pillars {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .trust-pillar {
        padding: 2rem 1.5rem !important;
    }
    
    .trust-pillar h3 {
        font-size: 1.3rem !important;
    }
    
    .trust-pillar p {
        font-size: 0.95rem !important;
    }
    
    /* Professional Badges section */
    .professional-badges {
        padding-top: 2rem !important;
    }
    
    .professional-badges h3 {
        font-size: 1.1rem !important;
        padding: 0 10px;
    }
    
    .professional-badges > div {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .badge-item {
        padding: 1rem !important;
    }
    
    .badge-item h4 {
        font-size: 0.95rem !important;
    }
    
    .badge-item p {
        font-size: 0.8rem !important;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .trust-guarantee-section {
        padding: 2rem 0 !important;
    }
    
    .trust-guarantee-section .section-header h2 {
        font-size: 1.75rem !important;
    }
    
    .trust-pillar {
        padding: 1.5rem 1rem !important;
    }
    
    .professional-badges {
        padding-top: 1.5rem !important;
    }
}
/* Portfolio Image Error Handling and Fallbacks */
/* Ensures robust image loading with graceful degradation */

/* Error state styling for broken images */
.portfolio-image img {
    background: linear-gradient(135deg, #f3f1ee 0%, #e8e6e3 100%);
    border: 1px solid #d0d0d0;
    position: relative;
}

/* Fallback content for broken images */
.portfolio-image img::before {
    content: "Website Preview";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    z-index: 1;
}

/* Loading state animation */
.portfolio-image img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Netlify-compatible responsive image containers */
.portfolio-visuals {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    .portfolio-image img {
        width: 100%;
        height: auto;
        max-width: 400px;
    }
}

/* Desktop optimization */
@media (min-width: 769px) {
    .portfolio-image img {
        width: 100%;
        height: auto;
        max-width: 600px;
    }
}

/* High DPI display optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .portfolio-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility improvements */
.portfolio-image img[alt=""] {
    outline: 2px solid #ff6b6b;
}

/* Performance optimization */
.portfolio-image {
    contain: layout style paint;
    will-change: transform;
}

/* Lawndale-specific mobile enhancements */
.portfolio-image img[src*="lawndale"] {
    transition: opacity 0.3s ease;
}

/* Error state for Lawndale images */
.portfolio-image img[src*="lawndale"]:not([src$=".webp"]):not([src$=".jpg"]) {
    background-image: linear-gradient(135deg, #e8f4fd 0%, #f3f1ee 100%);
    background-size: cover;
}

/* Loading optimization for Lawndale - prevent text cutoff flash */
.portfolio-image img[src*="lawndale"][loading="lazy"] {
    opacity: 0;
    animation: fadeInOnLoad 0.5s ease forwards;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

@keyframes fadeInOnLoad {
    to { opacity: 1; }
}

/* Netlify deployment safety */
@media (prefers-reduced-motion: reduce) {
    .portfolio-image img[src*="lawndale"] {
        transition: none;
        animation: none;
    }
}/* Lawndale Image Fix - Comprehensive Text Visibility Enhancement */
/* Mobile-first responsive design with Netlify compatibility */

/* Enhanced Lawndale portfolio image positioning - v2 images */
.portfolio-image img[src*="lawndale"] {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center top; /* Fixed positioning for v2 cropped images */
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 8px;
  image-rendering: crisp-edges;
  transition: transform 0.3s ease;
}

/* Mobile optimization with text visibility priority */
@media (max-width: 768px) {
  .portfolio-image img[src*="lawndale"] {
    max-width: 100%;
    object-position: center 20%; /* Slightly different for mobile */
    border-radius: 6px;
  }
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1024px) {
  .portfolio-image img[src*="lawndale"] {
    object-position: center 18%;
  }
}

/* High-resolution display optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .portfolio-image img[src*="lawndale"] {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Netlify deployment compatibility - fallback for older browsers */
@supports not (object-position: center 15%) {
  .portfolio-image img[src*="lawndale"] {
    background-position: center 15%;
    background-size: cover;
  }
}

/* Loading state optimization */
.portfolio-image img[src*="lawndale"][loading="lazy"] {
  background: linear-gradient(135deg, #4a5568 20%, #2d3748 80%);
  min-height: 267px; /* Reserve space to prevent layout shift */
}

/* Error handling for broken images */
.portfolio-image img[src*="lawndale"]:not([src]) {
  background: linear-gradient(135deg, #e8f4fd 0%, #f3f1ee 100%);
  position: relative;
}

.portfolio-image img[src*="lawndale"]:not([src])::before {
  content: "Lawndale Inc. Website Preview";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #4a5568;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  text-align: center;
}

/* Performance optimization */
.portfolio-image img[src*="lawndale"] {
  will-change: transform;
  contain: layout style paint;
}

/* Accessibility enhancement */
.portfolio-image img[src*="lawndale"]:focus {
  outline: 2px solid #4299e1;
  outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .portfolio-image img[src*="lawndale"] {
    transition: none;
  }
}