/*!
 * JME Custom Styles - Theme Independent CSS
 * Extracted from JME Hero Patterns plugin for pattern-based approach
 * Version: 2.0.1
 * Author: JME Photo LLC
 */

/* =============================================================================
   HERO STYLES (for use with Group blocks + jme-hero class)
   ========================================================================== */

.jme-hero {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 40px;
    margin: 30px auto;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 1200px;
}

/* Animated top border */
.jme-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

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

/* Hero hover effect */
.jme-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

/* Hero Typography */
.jme-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.2;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.jme-hero h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #2d3748;
    margin-bottom: 22px;
    font-weight: 600;
    line-height: 1.2;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.jme-hero .subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #718096;
    font-style: italic;
    margin-bottom: 12px;
    font-weight: 400;
}

.jme-hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

/* Hero Buttons */
.jme-hero .jme-cta-button .wp-block-button__link {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%) !important;
    color: white !important;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.jme-hero .jme-cta-button .wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.jme-hero .jme-cta-button .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(45, 55, 72, 0.3);
    text-decoration: none;
    color: white !important;
}

.jme-hero .jme-cta-button .wp-block-button__link:hover::before {
    left: 100%;
}

.jme-hero .jme-cta-button .wp-block-button__link:active {
    transform: translateY(0);
}

/* =============================================================================
   PHOTOGRAPHY THEME VARIATIONS
   ========================================================================== */

.jme-hero.photography-theme {
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.95) 0%, rgba(45, 55, 72, 0.95) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.jme-hero.photography-theme::before {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
}

.jme-hero.photography-theme h1,
.jme-hero.photography-theme h2 {
    color: white;
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.jme-hero.photography-theme p {
    color: #e2e8f0;
}

.jme-hero.photography-theme .subtitle {
    color: #cbd5e0;
}

.jme-hero.photography-theme .jme-cta-button .wp-block-button__link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: #667eea;
}

.jme-hero.photography-theme .jme-cta-button .wp-block-button__link:hover {
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Basic Theme (default - no additional styles needed) */
.jme-hero.basic-theme {
    /* Uses default styles above */
}

/* Warm Theme */
.jme-hero.warm-theme {
    background: linear-gradient(135deg, rgba(255, 248, 235, 0.95) 0%, rgba(254, 243, 199, 0.95) 100%);
    border: 1px solid rgba(214, 158, 46, 0.2);
}

.jme-hero.warm-theme::before {
    background: linear-gradient(90deg, #d69e2e 0%, #f6ad55 50%, #d69e2e 100%);
}

.jme-hero.warm-theme h1,
.jme-hero.warm-theme h2 {
    color: #744210;
    background: linear-gradient(135deg, #744210 0%, #d69e2e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.jme-hero.warm-theme p {
    color: #8b5a00;
}

.jme-hero.warm-theme .subtitle {
    color: #a0640e;
}

.jme-hero.warm-theme .jme-cta-button .wp-block-button__link {
    background: linear-gradient(135deg, #d69e2e 0%, #f6ad55 100%) !important;
    color: white !important;
}

.jme-hero.warm-theme .jme-cta-button .wp-block-button__link:hover {
    box-shadow: 0 10px 25px rgba(214, 158, 46, 0.3);
}

/* Cool Theme */
.jme-hero.cool-theme {
    background: linear-gradient(135deg, rgba(237, 250, 255, 0.95) 0%, rgba(224, 242, 254, 0.95) 100%);
    border: 1px solid rgba(49, 130, 206, 0.2);
}

.jme-hero.cool-theme::before {
    background: linear-gradient(90deg, #3182ce 0%, #63b3ed 50%, #3182ce 100%);
}

.jme-hero.cool-theme h1,
.jme-hero.cool-theme h2 {
    color: #1e40af;
    background: linear-gradient(135deg, #1e40af 0%, #3182ce 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.jme-hero.cool-theme p {
    color: #1e3a8a;
}

.jme-hero.cool-theme .subtitle {
    color: #3730a3;
}

.jme-hero.cool-theme .jme-cta-button .wp-block-button__link {
    background: linear-gradient(135deg, #3182ce 0%, #63b3ed 100%) !important;
    color: white !important;
}

.jme-hero.cool-theme .jme-cta-button .wp-block-button__link:hover {
    box-shadow: 0 10px 25px rgba(49, 130, 206, 0.3);
}

/* =============================================================================
   SERVICE PACKAGES STYLES
   ========================================================================== */

.jme-services-section {
    padding: 40px 0;
    margin: 40px auto;
    max-width: 1200px;
}

.jme-services-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #2d3748;
    margin-bottom: 30px;
    margin-top: 0;
    font-weight: 600;
    line-height: 1.2;
}

/* Services container styling */
.jme-services-section.photography-theme {
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.95) 0%, rgba(45, 55, 72, 0.95) 100%);
    border-radius: 20px;
    padding: 35px 40px 30px 40px;
    position: relative;
    overflow: hidden;
    margin: 40px auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.jme-services-section.photography-theme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.jme-services-section.photography-theme .jme-services-title {
    color: white !important;
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
    .jme-services-section.photography-theme .jme-services-title {
        color: white !important;
        background: none !important;
    }
}

/* Package Cards */
.jme-packages {
    gap: 20px !important;
}

.jme-package-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.jme-package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.jme-package-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.jme-package-card h3 {
    color: #2d3748;
    font-size: 1.4rem;
    margin-bottom: 15px;
    margin-top: 0;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.jme-package-card .price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.jme-package-card ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.jme-package-card li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.4;
}

.jme-package-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1rem;
}

.jme-package-card .jme-package-button .wp-block-button__link {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%) !important;
    color: white !important;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    z-index: 2;
}

.jme-package-card .jme-package-button .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 55, 72, 0.25);
    text-decoration: none;
    color: white !important;
}

/* Photography theme package adjustments */
.jme-services-section.photography-theme .jme-package-card::before {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
}

.jme-services-section.photography-theme .jme-package-button .wp-block-button__link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.jme-services-section.photography-theme .jme-package-button .wp-block-button__link:hover {
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* =============================================================================
   FORM STYLES
   ========================================================================== */

.jme-form-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px 40px;
    margin: 40px auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    max-width: 1200px;
}

.jme-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.jme-form-container h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.2;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.jme-form-container .form-subtitle {
    text-align: center;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #718096;
    font-style: italic;
    margin-bottom: 30px;
    font-weight: 400;
}

.jme-form-container .form-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(203, 213, 224, 0.3);
    color: #4a5568;
    font-size: 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.jme-form-container .form-divider {
    margin: 30px 0 20px;
    border-color: rgba(203, 213, 224, 0.3);
}

/* Photography theme form */
.jme-form-container.photography-theme {
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.95) 0%, rgba(45, 55, 72, 0.95) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.jme-form-container.photography-theme::before {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
}

.jme-form-container.photography-theme h2 {
    color: white;
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.jme-form-container.photography-theme .form-subtitle {
    color: #cbd5e0;
}

.jme-form-container.photography-theme .form-footer {
    border-top-color: rgba(226, 232, 240, 0.2);
    color: #e2e8f0;
}

.jme-form-container.photography-theme .form-divider {
    border-color: rgba(226, 232, 240, 0.2);
}

/* WPForms styling within containers */
.jme-form-container .wpforms-container {
    position: relative;
    z-index: 2;
}

.jme-form-container .wpforms-field {
    margin-bottom: 25px;
}

.jme-form-container .wpforms-field-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 1rem;
}

.jme-form-container input[type="text"],
.jme-form-container input[type="email"],
.jme-form-container input[type="tel"],
.jme-form-container input[type="url"],
.jme-form-container input[type="password"],
.jme-form-container input[type="number"],
.jme-form-container input[type="date"],
.jme-form-container input[type="time"],
.jme-form-container select,
.jme-form-container textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid rgba(203, 213, 224, 0.6);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    color: #2d3748;
    font-family: inherit;
    line-height: 1.4;
    box-sizing: border-box;
}

.jme-form-container input:focus,
.jme-form-container select:focus,
.jme-form-container textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.jme-form-container .wpforms-submit-container {
    text-align: center;
    margin-top: 40px;
}

.jme-form-container .wpforms-submit {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.jme-form-container .wpforms-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.jme-form-container .wpforms-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(45, 55, 72, 0.3);
}

.jme-form-container .wpforms-submit:hover::before {
    left: 100%;
}

.jme-form-container.photography-theme .wpforms-field-label {
    color: #e2e8f0;
}

.jme-form-container.photography-theme input,
.jme-form-container.photography-theme select,
.jme-form-container.photography-theme textarea {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(226, 232, 240, 0.3);
}

.jme-form-container.photography-theme .wpforms-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

@media (max-width: 768px) {
    .jme-hero,
    .jme-form-container {
        padding: 30px 25px;
        margin: 20px 10px;
        border-radius: 15px;
    }
    
    .jme-hero .jme-cta-button .wp-block-button__link {
        display: block;
        text-align: center;
        margin: 15px auto 10px;
        max-width: 280px;
        width: 100%;
    }
    
    .jme-services-section.photography-theme {
        padding: 25px 25px 20px 25px;
        margin: 25px 10px;
        border-radius: 15px;
    }
    
    .jme-package-card {
        padding: 20px;
        margin: 18px 0;
    }
    
    .jme-packages {
        flex-direction: column !important;
    }
    
    .jme-form-container input,
    .jme-form-container select,
    .jme-form-container textarea {
        padding: 12px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .jme-form-container .wpforms-submit {
        width: 100%;
        max-width: 300px;
        padding: 15px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .jme-hero,
    .jme-form-container {
        padding: 20px;
        margin: 15px 5px;
        border-radius: 12px;
    }
    
    .jme-package-card {
        padding: 20px 15px;
        margin: 18px 0;
    }
    
    .jme-services-section.photography-theme {
        padding: 20px 20px 15px 20px;
        margin: 20px 5px;
        border-radius: 12px;
    }
}

/* =============================================================================
   ACCESSIBILITY & ANIMATIONS
   ========================================================================== */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
}

/* Focus states */
.jme-hero:focus-within,
.jme-form-container:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.jme-cta-button .wp-block-button__link:focus,
.jme-package-button .wp-block-button__link:focus,
.jme-form-container input:focus,
.jme-form-container select:focus,
.jme-form-container textarea:focus,
.jme-form-container .wpforms-submit:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Utility classes */
.jme-hero.no-animation::before,
.jme-package-card.no-animation::before,
.jme-form-container.no-animation::before {
    animation: none;
}

.jme-hero.full-width {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}