/**
 * Apple-Inspired Design System for Scoop Unit
 * Minimalist, conversion-focused design with clean aesthetics
 */

/* CSS Variables - Apple Color Palette */
:root {
    /* Primary Colors */
    --apple-white: #ffffff;
    --apple-black: #1d1d1f;
    --apple-gray-light: #f5f5f7;
    --apple-gray-medium: #a1a1a6;
    --apple-gray-dark: #515154;
    
    /* Brand Colors */
    --apple-blue: #0071e3;
    --apple-blue-dark: #0056b3;
    --apple-green: #00ab41;
    --apple-green-dark: #008c35;
    
    /* Red Colors for Buttons */
    --apple-red: #dc3545;
    --apple-red-dark: #c82333;
    --apple-red-light: #e74c3c;
    
    /* Typography */
    --apple-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --apple-font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-fast: 0.2s ease-out;
    --transition-smooth: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
}

/* Hero Yard Background Section */
.hero-yard {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-image: url('images/hero-yard-background.jpg?v=20241201-v15');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 64px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-yard-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 60px 20px 0 20px;
}

.hero-yard-content h1 {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.8rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: min(900px, 90vw);
    margin-left: auto;
    margin-right: auto;
    color: white;
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 0 8px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.02em;
    transition: font-size 0.3s ease, text-shadow 0.3s ease;
}

.hero-yard-content p {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(0.95rem, 2.5vw, 1.35rem);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 2rem;
    max-width: min(600px, 85vw);
    margin-left: auto;
    margin-right: auto;
    color: white;
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 0 6px rgba(0, 0, 0, 0.8);
    transition: font-size 0.3s ease, text-shadow 0.3s ease;
}

/* Responsive Design for Hero Yard - Optimized with smooth scaling */
@media (min-width: 1200px) {
    .hero-yard-content {
        padding: 80px 20px 0 20px;
    }
    
    .hero-yard-content h1 {
        letter-spacing: -0.025em;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .hero-yard-content {
        padding: 60px 20px 0 20px;
        max-width: 750px;
    }
    
    .hero-yard-content h1 {
        line-height: 1.05;
    }
    
    .hero-yard-content p {
        line-height: 1.45;
    }
}

@media (max-width: 768px) {
    .apple-nav-container {
        height: 60px;
    }
    
    .hero-yard {
        height: 60vh;
        min-height: 400px;
        background-attachment: scroll;
        margin-top: 60px;
    }
    
    .hero-yard-content {
        padding: 50px 20px 0 20px;
        max-width: 95vw;
    }
    
    .hero-yard-content h1 {
        line-height: 1.1;
        margin-bottom: 1.2rem;
        letter-spacing: -0.015em;
    }
    
    .hero-yard-content p {
        line-height: 1.4;
        margin-bottom: 1.8rem;
    }
}

@media (max-width: 480px) {
    .apple-nav-container {
        height: 56px;
    }
    
    .hero-yard {
        height: 55vh;
        min-height: 380px;
        margin-top: 56px;
    }
    
    .hero-yard-content {
        padding: 40px 16px 0 16px;
        max-width: 100vw;
    }
    
    .hero-yard-content h1 {
        line-height: 1.15;
        margin-bottom: 1rem;
        letter-spacing: -0.01em;
        text-shadow: 
            -3px -3px 0 #000,
            3px -3px 0 #000,
            -3px 3px 0 #000,
            3px 3px 0 #000,
            0 0 10px rgba(0, 0, 0, 1),
            0 0 20px rgba(0, 0, 0, 0.8),
            0 0 30px rgba(0, 0, 0, 0.6);
        font-weight: 900;
        background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        filter: drop-shadow(-2px -2px 0 #000) drop-shadow(2px -2px 0 #000) drop-shadow(-2px 2px 0 #000) drop-shadow(2px 2px 0 #000);
    }
    
    .hero-yard-content p {
        line-height: 1.35;
        margin-bottom: 1.5rem;
        text-shadow: 
            -2px -2px 0 #000,
            2px -2px 0 #000,
            -2px 2px 0 #000,
            2px 2px 0 #000,
            0 0 8px rgba(0, 0, 0, 1),
            0 0 16px rgba(0, 0, 0, 0.8),
            0 0 24px rgba(0, 0, 0, 0.6);
        font-weight: 600;
        background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        filter: drop-shadow(-1px -1px 0 #000) drop-shadow(1px -1px 0 #000) drop-shadow(-1px 1px 0 #000) drop-shadow(1px 1px 0 #000);
    }
}

@media (max-width: 375px) {
    .hero-yard-content {
        padding: 35px 12px 0 12px;
    }
    
    .hero-yard-content h1 {
        line-height: 1.2;
        letter-spacing: 0;
    }
    
    .hero-yard-content p {
        line-height: 1.3;
    }
}

@media (max-width: 320px) {
    .apple-nav-container {
        height: 52px;
    }
    
    .hero-yard {
        min-height: 360px;
        margin-top: 52px;
    }
    
    .hero-yard-content {
        padding: 30px 10px 0 10px;
    }
    
    .hero-yard-content h1 {
        line-height: 1.25;
        margin-bottom: 0.8rem;
        font-weight: 900;
        text-shadow: 
            -4px -4px 0 #000,
            4px -4px 0 #000,
            -4px 4px 0 #000,
            4px 4px 0 #000,
            0 0 12px rgba(0, 0, 0, 1),
            0 0 24px rgba(0, 0, 0, 0.9),
            0 0 36px rgba(0, 0, 0, 0.7);
        background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        filter: drop-shadow(-3px -3px 0 #000) drop-shadow(3px -3px 0 #000) drop-shadow(-3px 3px 0 #000) drop-shadow(3px 3px 0 #000);
    }
    
    .hero-yard-content p {
        line-height: 1.3;
        margin-bottom: 1.2rem;
        font-weight: 700;
        text-shadow: 
            -2px -2px 0 #000,
            2px -2px 0 #000,
            -2px 2px 0 #000,
            2px 2px 0 #000,
            0 0 10px rgba(0, 0, 0, 1),
            0 0 20px rgba(0, 0, 0, 0.9),
            0 0 30px rgba(0, 0, 0, 0.7);
        background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        filter: drop-shadow(-2px -2px 0 #000) drop-shadow(2px -2px 0 #000) drop-shadow(-2px 2px 0 #000) drop-shadow(2px 2px 0 #000);
    }
    
    /* Ultra small screen readability */
    .apple-section {
        padding: var(--spacing-md) var(--spacing-xs);
    }
    
    .apple-trust {
        gap: var(--spacing-xs);
    }
    
    .apple-trust-item {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.85rem;
    }
}

/* Modern image formats support */
.hero-yard.webp {
    background-image: url('images/hero-yard-background.webp');
}

.hero-yard.avif {
    background-image: url('images/hero-yard-background.avif');
}

/* Login Portal Styles */
.apple-section-centered {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-sm);
}

.apple-login-container {
    max-width: 480px;
    width: 100%;
}

.apple-card-login {
    background: var(--apple-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-medium);
    margin: var(--spacing-lg) 0;
}

.apple-form-group {
    margin-bottom: var(--spacing-md);
}

.apple-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--apple-black);
    margin-bottom: var(--spacing-xs);
}

.apple-form-input {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--apple-gray-light);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: var(--apple-font);
    transition: border-color var(--transition-fast);
    box-sizing: border-box;
}

.apple-form-input:focus {
    outline: none;
    border-color: var(--apple-red);
}

.apple-btn-full {
    width: 100%;
    margin: var(--spacing-md) 0;
}

.apple-form-links {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.apple-link {
    color: var(--apple-red);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.apple-link:hover {
    color: var(--apple-red-dark);
    text-decoration: underline;
}

.apple-nav-active {
    color: var(--apple-red) !important;
    font-weight: 500;
}

.apple-feature {
    text-align: center;
    padding: var(--spacing-md);
}

.apple-feature-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-sm);
}

.apple-feature-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--apple-black);
    margin-bottom: var(--spacing-xs);
}

.apple-feature-description {
    font-size: 14px;
    color: var(--apple-gray-dark);
    line-height: 1.5;
}

/* Professional Guarantee Badges */
.apple-section-compact {
    padding: var(--spacing-md) 0;
}

.apple-guarantee-badges {
    text-align: center;
    width: 100%;
    margin: 0;
}

.apple-guarantee-badges img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: var(--radius-md);
}

.guarantee-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.guarantee-logo {
    width: 35px !important;
    height: 35px !important;
    max-width: 35px !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.guarantee-header h3 {
    color: var(--apple-black);
    font-weight: 600;
    font-size: 20px;
    margin: 0;
}

/* Service Showcase */
.apple-service-showcase {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.apple-service-showcase img {
    width: 100%;
    height: auto;
    display: block;
}

.apple-showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: var(--spacing-lg);
    text-align: left;
}

.apple-showcase-overlay h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.apple-showcase-overlay p {
    font-size: 16px;
    line-height: 1.4;
    opacity: 0.9;
}

.showcase-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.overlay-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-sm);
    padding: 6px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Military & First Responder Section */
.apple-military-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.apple-military-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
}

.apple-military-benefits {
    margin: var(--spacing-lg) 0;
}

.apple-benefit-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background: var(--apple-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-light);
}

.apple-benefit-icon {
    font-size: 24px;
}

.apple-benefit-item strong {
    color: var(--apple-black);
    font-weight: 600;
}

.apple-benefit-item span:last-child {
    color: var(--apple-gray-dark);
    font-size: 14px;
}

.apple-small-text {
    font-size: 12px;
    color: var(--apple-gray-medium);
    margin-top: var(--spacing-md);
    font-style: italic;
}

.military-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.military-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.military-header .apple-section-title {
    margin: 0;
}

@media (max-width: 768px) {
    .apple-military-section {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .military-header {
        justify-content: center;
    }
}

/* Optimized Logo Styles - Removed Duplicate */

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.footer-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.footer-logo .logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--apple-black);
}

/* Image optimization for better loading */
img:not(.apple-nav-logo img):not(.apple-nav img):not(nav img):not(#header-logo) {
    max-width: 100%;
    height: auto;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--apple-font);
    background-color: var(--apple-white);
    color: var(--apple-black);
    line-height: 1.47059;
    font-size: 17px;
    font-weight: 400;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Apple Typography Scale */
.apple-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--apple-black);
}

.apple-subheadline {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    line-height: 1.25;
    margin: var(--spacing-sm) 0 0 0;
    color: var(--apple-gray-dark);
}

.apple-body-large {
    font-size: 19px;
    line-height: 1.4211;
    font-weight: 400;
}

.apple-body {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
}

.apple-caption {
    font-size: 14px;
    line-height: 1.42857;
    font-weight: 400;
    color: var(--apple-gray-medium);
}

/* Apple Button System */
.apple-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-xl);
    font-family: var(--apple-font);
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.apple-btn-primary {
    background: linear-gradient(135deg, var(--apple-red) 0%, var(--apple-red-dark) 100%);
    color: var(--apple-white);
    box-shadow: var(--shadow-medium);
}

.apple-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
    background: linear-gradient(135deg, var(--apple-red-light) 0%, var(--apple-red) 100%);
}

.apple-btn-secondary {
    background: var(--apple-white);
    color: var(--apple-red);
    border: 2px solid var(--apple-red);
}

.apple-btn-secondary:hover {
    background: var(--apple-red);
    color: var(--apple-white);
    transform: translateY(-1px);
}

.apple-btn-large {
    padding: 20px 48px;
    font-size: 19px;
    border-radius: 28px;
}

/* Apple Navigation */
.apple-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999998 !important; /* Just below logo */
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all var(--transition-smooth);
    overflow: visible !important;
    min-height: 64px;
    width: 100%;
}

.apple-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: relative;
    overflow: visible !important;
    min-height: 64px;
    grid-template-columns: 1fr 2fr 1fr;
    gap: var(--spacing-md);
    background: white;
}

.apple-nav-logo {
    display: flex !important;
    align-items: center;
    overflow: visible !important;
    position: relative;
    z-index: 10000;
    background: white;
}

.logo-link {
    text-decoration: none;
    color: var(--apple-black);
    display: flex;
    align-items: center;
    background: white;
}

/* NUCLEAR APPROACH - FORCE LOGO VISIBILITY */
.apple-nav-logo img,
.apple-nav img,
nav img,
header img,
img[src*="scoop-unit-header-logo"],
img[alt*="Scoop Unit"] {
    height: 42px !important;
    width: auto !important;
    object-fit: contain !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 99999 !important;
    overflow: visible !important;
    min-width: 100px !important;
    max-width: none !important;
    transform: none !important;
    filter: none !important;
    clip: none !important;
    clip-path: none !important;
    mask: none !important;
    transition: none !important;
    animation: none !important;
    background: white !important;
    padding: 4px !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-indent: 0 !important;
    text-align: left !important;
    vertical-align: middle !important;
    float: none !important;
    clear: none !important;
}

/* Backup specific selector */
.apple-nav-logo img {
    height: 42px !important;
    width: auto !important;
    object-fit: contain;
    /* REMOVED TRANSITION TO PREVENT LOGO HIDING */
    /* transition: transform var(--transition-fast); */
    /* will-change: transform; */
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10001 !important;
    overflow: visible !important;
    min-width: 100px;
    max-width: none !important;
}

/* REMOVED HOVER TRANSFORM TO PREVENT LOGO HIDING */
/*
.apple-nav-logo:hover img {
    transform: scale(1.02);
}
*/

.apple-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--spacing-lg);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

.apple-nav-cta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.apple-nav-item {
    position: relative;
}

.apple-nav-link {
    color: var(--apple-black);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color var(--transition-fast);
    padding: var(--spacing-sm) 0;
}

.apple-nav-link:hover {
    color: var(--apple-red);
}

/* Apple Hero Section */
.apple-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3)),
        url('images/hero-lawn-background.jpg') center/cover no-repeat;
    padding: var(--spacing-xxl) var(--spacing-sm);
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.apple-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 113, 227, 0.05) 100%);
    pointer-events: none;
}

.apple-hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.apple-hero .apple-headline {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.apple-hero .apple-subheadline {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.apple-hero .apple-hero-description {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.apple-hero .apple-trust-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.apple-hero-image {
    display: none; /* Hidden since we're using background image */
}

.apple-hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-heavy);
}

.apple-hero-cta {
    margin-top: var(--spacing-lg);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

/* Apple Card System */
.apple-card {
    background: var(--apple-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    padding: var(--spacing-lg);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.apple-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.apple-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--apple-red) 0%, var(--apple-green) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--apple-white);
    font-size: 24px;
}

.apple-card-title {
    font-size: 21px;
    font-weight: 600;
    margin: 0 0 var(--spacing-xs) 0;
    color: var(--apple-black);
}

.apple-card-description {
    color: var(--apple-gray-dark);
    margin: 0;
}

/* Apple Grid System */
.apple-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.apple-grid {
    display: grid;
    gap: var(--spacing-lg);
    margin: var(--spacing-xxl) 0;
}

.apple-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.apple-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.apple-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Apple Section Spacing */
.apple-section {
    padding: var(--spacing-xxl) 0;
}

.apple-section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.apple-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--apple-black);
}

.apple-section-subtitle {
    font-size: 19px;
    color: var(--apple-gray-dark);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Apple Testimonial */
.apple-testimonial {
    background: var(--apple-gray-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    position: relative;
}

.apple-testimonial-quote {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.33;
    color: var(--apple-black);
    margin: 0 0 var(--spacing-md) 0;
    font-style: italic;
}

.apple-testimonial-author {
    font-size: 16px;
    font-weight: 600;
    color: var(--apple-gray-dark);
    margin: 0;
}

.apple-testimonial-title {
    font-size: 14px;
    color: var(--apple-gray-medium);
    margin: 4px 0 0 0;
}

/* Apple Trust Indicators */
.apple-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin: var(--spacing-lg) 0;
}

.apple-trust-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--apple-gray-light);
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    color: var(--apple-gray-dark);
}

.apple-trust-icon {
    color: var(--apple-green);
    font-size: 16px;
}

/* Apple Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.apple-animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.apple-animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Apple Mobile Optimization */
/* Mobile Sticky CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--apple-red) 0%, var(--apple-red-dark) 100%);
    padding: 12px 20px;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

.mobile-sticky-cta.visible {
    transform: translateY(0);
}

.mobile-sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--apple-red) 0%, var(--apple-red-dark) 100%);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: white;
    font-weight: 700;
    box-shadow: var(--shadow-medium);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.mobile-sticky-btn:hover {
    background: linear-gradient(135deg, var(--apple-red-light) 0%, var(--apple-red) 100%);
    transform: scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.mobile-sticky-text {
    margin-right: 8px;
}

.mobile-sticky-icon {
    font-size: 20px;
    font-weight: bold;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 24px;
    background-color: var(--apple-black);
    margin: 3px 0;
    transition: 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .apple-nav-cta {
        display: none;
    }
    
    .apple-grid-2,
    .apple-grid-3,
    .apple-grid-4 {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-sm) !important;
    }
    
    .apple-container {
        padding: 0 16px !important;
        max-width: 100% !important;
    }
    
    .apple-card {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .desktop-cta {
        display: none;
    }
    
    .mobile-sticky-cta {
        display: block;
    }
    
    .apple-nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--apple-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .apple-nav-menu.active {
        left: 0;
    }
    
    .apple-nav-menu .apple-nav-item {
        margin: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--apple-gray-light);
    }
    
    .apple-nav-menu .apple-nav-link {
        display: block;
        padding: 20px;
        font-size: 18px;
        color: var(--apple-black);
        text-decoration: none;
        width: 100%;
    }
    
    .apple-nav-menu .apple-nav-link:hover {
        background-color: var(--apple-gray-light);
    }
    
    .mobile-cta-item {
        margin-top: 20px !important;
        border: none !important;
    }
    
    .mobile-cta-btn {
        padding: 16px 32px !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        border-radius: var(--radius-lg) !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .apple-hero {
        padding: var(--spacing-xl) var(--spacing-sm);
        min-height: 80vh;
    }
    
    .apple-btn-large {
        padding: 16px 32px;
        font-size: 17px;
        width: 100%;
    }
    
    .apple-grid {
        gap: var(--spacing-md);
        margin: var(--spacing-xl) 0;
    }
    
    .apple-section {
        padding: var(--spacing-xl) 0;
    }
    
    .apple-trust {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    /* Enhanced Mobile CTA Styling */
    .mobile-hero-cta {
        font-size: 20px !important;
        padding: 20px 40px !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        letter-spacing: 1px;
        background: linear-gradient(135deg, var(--apple-red) 0%, var(--apple-red-dark) 100%) !important;
        box-shadow: 0 8px 24px rgba(220, 53, 69, 0.3) !important;
        border: none !important;
    }
    
    .mobile-hero-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(220, 53, 69, 0.4) !important;
    }
    
    .mobile-caption {
        font-size: 16px !important;
        margin-top: 16px !important;
        font-weight: 500;
    }
    
    /* Mobile-optimized form styling */
    .apple-form {
        margin: var(--spacing-sm);
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
    }
    
    .apple-form-input,
    .apple-form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 18px;
    }
    
    #estimateForm button[type="submit"] {
        font-size: 18px !important;
        padding: 18px 32px !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        background: linear-gradient(135deg, var(--apple-red) 0%, var(--apple-red-dark) 100%) !important;
        box-shadow: 0 8px 24px rgba(220, 53, 69, 0.3) !important;
    }
    
    /* Mobile body padding to account for sticky CTA */
    body {
        padding-bottom: 80px;
    }
    
    /* Enhanced Mobile Readability */
    .apple-section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .apple-section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
        line-height: 1.2 !important;
        margin-bottom: var(--spacing-md) !important;
        font-weight: 800 !important;
    }
    
    .apple-section-subtitle {
        font-size: clamp(1rem, 4vw, 1.3rem) !important;
        line-height: 1.5 !important;
        margin-bottom: var(--spacing-lg) !important;
        font-weight: 400 !important;
    }
    
    /* Mobile Text Improvements */
    p, .apple-text {
        font-size: clamp(0.95rem, 3.5vw, 1.1rem) !important;
        line-height: 1.6 !important;
        margin-bottom: var(--spacing-md) !important;
    }
    
    /* Mobile Trust Indicators */
    .apple-trust-item {
        font-size: clamp(0.9rem, 3vw, 1.05rem) !important;
        padding: var(--spacing-sm) !important;
        margin-bottom: var(--spacing-xs) !important;
    }
    
    /* Mobile Card Content */
    .apple-card h3 {
        font-size: clamp(1.2rem, 4.5vw, 1.5rem) !important;
        line-height: 1.3 !important;
        margin-bottom: var(--spacing-sm) !important;
    }
    
    .apple-card p {
        font-size: clamp(0.9rem, 3.2vw, 1.05rem) !important;
        line-height: 1.5 !important;
    }
}

/* Apple Form Styles */
.apple-form {
    background: var(--apple-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-medium);
    max-width: 500px;
    margin: var(--spacing-lg) auto;
}

.apple-form-group {
    margin-bottom: var(--spacing-md);
}

.apple-form-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    color: var(--apple-black);
}

.apple-form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: var(--apple-font);
    transition: border-color var(--transition-fast);
    background: var(--apple-white);
}

.apple-form-input:focus {
    outline: none;
    border-color: var(--apple-red);
}

.apple-form-select {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: var(--apple-font);
    background: var(--apple-white);
    cursor: pointer;
}

/* Apple Footer */
.apple-footer {
    background: var(--apple-gray-light);
    padding: var(--spacing-xl) 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.apple-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Utility Classes */
.apple-text-center { text-align: center; }
.apple-text-left { text-align: left; }
.apple-text-right { text-align: right; }

.apple-mb-sm { margin-bottom: var(--spacing-sm); }
.apple-mb-md { margin-bottom: var(--spacing-md); }
.apple-mb-lg { margin-bottom: var(--spacing-lg); }
.apple-mb-xl { margin-bottom: var(--spacing-xl); }

.apple-mt-sm { margin-top: var(--spacing-sm); }
.apple-mt-md { margin-top: var(--spacing-md); }
.apple-mt-lg { margin-top: var(--spacing-lg); }
.apple-mt-xl { margin-top: var(--spacing-xl); }

.apple-hidden { display: none; }
.apple-visible { display: block; }/* Force rebuild */
