/* Custom Styles for B.L.A Website */

:root {
    --primary-orange: #d97706;
    --secondary-orange: #ea580c;
    --cream-bg: #fdf8f2;
    --light-cream: #fff9f2;
    --dark-brown: #3d2d1e;
    --soft-nude: #f9f4ee;
}

/* Color Classes */
.bg-cream-50 {
    background-color: var(--cream-bg);
}

.text-orange-600 {
    color: var(--primary-orange);
}

.bg-orange-100 {
    background-color: #fef3c7;
}

.border-orange-600 {
    border-color: var(--primary-orange);
}

/* Improved Text Readability */
.text-gray-600 {
    color: #4b5563 !important; /* Darker gray for better contrast */
}

.text-gray-700 {
    color: #374151 !important; /* Even darker for headings */
}

.text-gray-800 {
    color: #1f2937 !important; /* Darkest for main headings */
}

/* High contrast for important text */
.high-contrast-text {
    color: #111827 !important;
    font-weight: 500;
}

/* Ensure content visibility */
section {
    display: block !important;
    visibility: visible !important;
}

/* Mature and professional styling for services section */
#services {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 5rem 0;
    position: relative;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(217, 119, 6, 0.02) 0%, rgba(234, 88, 12, 0.02) 100%);
    z-index: 0;
}

#services > .container {
    position: relative;
    z-index: 1;
}

#services .text-center h2 {
    color: #1a202c;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

#services .text-center h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #d97706 0%, #ea580c 100%);
    border-radius: 2px;
}

/* Mature pricing card styling */
.pricing-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d97706 0%, #ea580c 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #d97706;
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-title {
    color: #1a202c !important;
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.pricing-description {
    color: #4a5568 !important;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.pricing-amount {
    color: #d97706 !important;
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

/* Section headers styling */
#services h3 {
    color: #1a202c;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 1.125rem;
    position: relative;
    display: inline-block;
    margin-bottom: 2.5rem;
}

#services h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #d97706;
    border-radius: 1px;
}

/* Ensure all text elements are properly styled */
#services h2,
#services h3,
#services h4,
#services p,
#services div {
    color: #1a202c !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Professional color scheme */
.text-gray-700 {
    color: #4a5568 !important;
}

.text-gray-800 {
    color: #2d3748 !important;
}

.text-gray-900 {
    color: #1a202c !important;
}

.high-contrast-text {
    color: #1a202c !important;
    font-weight: 500;
}

/* Responsive Design for All Screen Sizes */

/* Large Screens (Desktop 1200px and above) */
@media (min-width: 1200px) {
    #services {
        padding: 6rem 0;
    }
    
    #services .container {
        max-width: 1200px;
    }
    
    .pricing-card {
        padding: 2.5rem;
        min-height: 280px;
    }
    
    .pricing-title {
        font-size: 1.5rem;
    }
    
    .pricing-amount {
        font-size: 2rem;
    }
    
    #services h2 {
        font-size: 2.5rem;
    }
    
    #services h3 {
        font-size: 1.25rem;
    }
}

/* Medium Screens (Tablet 768px to 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    #services {
        padding: 4rem 0;
    }
    
    .pricing-card {
        padding: 2rem;
        min-height: 250px;
    }
    
    .pricing-title {
        font-size: 1.25rem;
    }
    
    .pricing-amount {
        font-size: 1.75rem;
    }
    
    #services h2 {
        font-size: 2.25rem;
    }
    
    #services h3 {
        font-size: 1.125rem;
    }
    
    /* Adjust grid for medium screens */
    #services .grid {
        gap: 1.5rem;
    }
}

/* Small Screens (Mobile 480px to 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    #services {
        padding: 3rem 0;
    }
    
    #services .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
        min-height: 220px;
        margin-bottom: 1rem;
    }
    
    .pricing-title {
        font-size: 1.125rem;
    }
    
    .pricing-description {
        font-size: 0.875rem;
    }
    
    .pricing-amount {
        font-size: 1.5rem;
    }
    
    #services h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    #services h3 {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Single column layout for small screens */
    #services .grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }
    
    #services .text-center h2::after {
        width: 60px;
        height: 2px;
    }
    
    #services h3::after {
        width: 30px;
        height: 1px;
    }
}

/* Extra Small Screens (Mobile below 480px) */
@media (max-width: 479px) {
    #services {
        padding: 2.5rem 0;
    }
    
    #services .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .pricing-card {
        padding: 1.25rem;
        min-height: 200px;
        margin-bottom: 0.75rem;
    }
    
    .pricing-title {
        font-size: 1rem;
    }
    
    .pricing-description {
        font-size: 0.8125rem;
    }
    
    .pricing-amount {
        font-size: 1.375rem;
    }
    
    #services h2 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
        letter-spacing: -0.25px;
    }
    
    #services h3 {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
        letter-spacing: 0.25px;
    }
    
    /* Ensure single column layout */
    #services .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    #services .text-center h2::after {
        width: 50px;
        height: 2px;
    }
    
    #services h3::after {
        width: 25px;
        height: 1px;
    }
    
    /* Adjust section spacing */
    .mb-16 {
        margin-bottom: 2.5rem;
    }
    
    .mt-16 {
        margin-top: 2.5rem;
    }
}

/* Ultra-wide Screen Support */
@media (min-width: 1400px) {
    #services .container {
        max-width: 1400px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .pricing-card {
        padding: 3rem;
        min-height: 300px;
    }
    
    #services h2 {
        font-size: 2.75rem;
    }
    
    .pricing-title {
        font-size: 1.625rem;
    }
    
    .pricing-amount {
        font-size: 2.25rem;
    }
}

/* Orientation-specific adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    #services {
        padding: 2rem 0;
    }
    
    .pricing-card {
        min-height: 180px;
        padding: 1rem;
    }
    
    #services h2 {
        font-size: 1.5rem;
    }
    
    #services h3 {
        font-size: 0.875rem;
    }
}

/* High DPI/Retina Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    #services .text-center h2::after,
    #services h3::after {
        transform: translateX(-50%) scale(0.5);
        transform-origin: center;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .pricing-card:hover {
        transform: none;
    }
    
    .pricing-card:active {
        transform: translateY(-4px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }
    
    /* Larger touch targets */
    .pricing-title {
        padding: 0.5rem 0;
    }
}

/* Print Styles */
@media print {
    #services {
        background: white;
        padding: 1rem 0;
    }
    
    .pricing-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .pricing-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Simple fade-in for better UX */
.fade-in-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Service Card Styling - Ensure visibility */
.service-card {
    position: relative;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white !important;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    display: block !important;
    visibility: visible !important;
}

.featured-services {
    background-color: #fdf8f2 !important;
}

.pricing-card {
    display: block !important;
    visibility: visible !important;
    background: white !important;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(234, 88, 12, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-title {
    color: #111827 !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.service-description {
    color: #374151 !important;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center;
}

.service-price {
    color: var(--primary-orange) !important;
    font-weight: 600;
    font-size: 1.25rem;
    text-align: center;
    display: block;
}

/* Pricing Card Enhancements - Ensure visibility */
.pricing-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: white !important;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    min-height: 200px;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    visibility: visible !important;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-orange);
}

.pricing-title {
    color: #111827 !important;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-description {
    color: #374151 !important;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.pricing-amount {
    color: var(--primary-orange) !important;
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: auto;
}

.pricing-card.popular::after {
    content: 'POPULAR';
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-orange);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Gallery Styling */
.gallery-section {
    background: white;
}

.gallery-heading {
    color: #111827 !important;
    font-size: 2.5rem;
    font-weight: 700;
}

.gallery-subheading {
    color: #374151 !important;
    font-size: 1.25rem;
    margin-top: 1rem;
}

/* Gallery Lightbox Effect */
.gallery-item {
    cursor: pointer;
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(217, 119, 6, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Testimonial Styling */
.testimonial-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-orange);
}

.testimonial-text {
    color: #374151 !important;
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
}

.client-name {
    color: #111827 !important;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Testimonial Carousel (if needed) */
.testimonial-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    transition: transform 0.5s ease-in-out;
}

/* Booking Form Styling */
.booking-form {
    background: linear-gradient(135deg, var(--soft-nude) 0%, var(--light-cream) 100%);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.form-input {
    background-color: white;
    border: 2px solid #d1d5db;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #1f2937;
}

.form-input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: #1f2937;
    font-size: 1.1rem;
}

.select-option {
    color: #1f2937;
}

/* WhatsApp Chat Button Enhancement */
.whatsapp-chat {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-chat:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced Text Sizes for Better Readability */
h1 {
    font-size: 3.5rem !important;
    line-height: 1.1 !important;
    color: #111827 !important;
}

h2 {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    color: #111827 !important;
}

h3 {
    font-size: 1.875rem !important;
    line-height: 1.3 !important;
    color: #111827 !important;
}

h4 {
    color: #111827 !important;
}

p {
    font-size: 1.125rem !important;
    line-height: 1.7 !important;
    color: #374151 !important;
}

span {
    color: inherit !important;
}

/* Comprehensive Responsive Design */

/* Large Desktop Screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-content {
        padding: 0 2rem;
    }
}

/* Tablet Screens */
@media (max-width: 1024px) {
    .section-padding {
        padding: 80px 0;
    }
    
    .grid-cols-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .pricing-card {
        min-height: auto;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .hero-bg {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    p {
        font-size: 1rem !important;
    }
    
    .whatsapp-chat {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }
    
    /* Mobile navigation */
    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        padding: 1rem;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    /* Service cards mobile */
    .service-card, .pricing-card {
        margin-bottom: 1.5rem;
    }
    
    /* Flex wrap for mobile */
    .flex-wrap-mobile {
        flex-wrap: wrap;
    }
    
    /* Mobile text improvements */
    .mobile-text-large {
        font-size: 1.25rem !important;
    }
    
    /* Gallery mobile */
    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    /* Service cards stacked */
    .grid-cols-2, .grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .service-card, .pricing-card {
        padding: 1.5rem;
    }
    
    /* Button stacking */
    .flex-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-orange {
        width: 100%;
        text-align: center;
    }
    
    /* WhatsApp chat adjustment */
    .whatsapp-chat {
        width: 45px;
        height: 45px;
        bottom: 0.75rem;
        right: 0.75rem;
    }
    
    /* Testimonial cards */
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    /* Form adjustments */
    .form-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Ultra-small screens */
@media (max-width: 320px) {
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    .service-card, .pricing-card {
        padding: 1rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
    }
    
    .text-2xl {
        font-size: 1.25rem;
    }
}

/* Touch Targets for Mobile */
.touch-target {
    min-height: 44px;
    min-width: 44px;
}

.button-large {
    min-height: 48px;
    padding: 12px 24px;
}

/* Accessibility Improvements */
.focus-visible:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Screen Reader Only Text */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-orange);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Print Styles */
@media print {
    .whatsapp-chat,
    .floating-whatsapp,
    nav,
    .skip-link {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    /* Ensure content prints properly */
    section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-whatsapp {
        animation: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .text-gray-600,
    .text-gray-700 {
        color: #000 !important;
    }
    
    .bg-cream-50 {
        background-color: #fff !important;
    }
    
    .border-gray-200 {
        border-color: #000 !important;
    }
}

/* Responsive utility classes */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
    
    .show-mobile {
        display: block;
    }
}

/* Container fluid for mobile */
.container-fluid {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 1200px) {
    .container-fluid {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Responsive fade-in animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Staggered animations for better mobile experience */
.stagger-delay-1 {
    transition-delay: 0.1s;
}

.stagger-delay-2 {
    transition-delay: 0.2s;
}

.stagger-delay-3 {
    transition-delay: 0.3s;
}

@media (max-width: 768px) {
    .stagger-delay-1,
    .stagger-delay-2,
    .stagger-delay-3 {
        transition-delay: 0s;
    }
}