/*
Theme Name: AVIS 2025
Theme URI: https://ambulanciasavis.com
Author: J2K [el]
Author URI: https://wordpress.org
Description: Plantilla para ambulancias AVIS, El Cerrito, Valle del Cauca.
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.4
*/

/* --- Global Styles & Resets --- */
:root {
    --avis-blue: #004AAD; /* Example AVIS blue */
    --avis-red: #E10000; /* Example AVIS red */
    --avis-light-grey: #f0f0f0;
    --avis-dark-grey: #333;
    --avis-text-color: #444;
    --header-height: 80px; /* Adjust based on your header height */
}

body {
    font-family: 'Arial', sans-serif; /* Or your preferred font */
    color: var(--avis-text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll from diagonal elements */
}

a {
    text-decoration: none;
    color: var(--avis-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--avis-red);
}

/* --- Large Navigation & Full-Height Menu --- */
/* Assuming your main navigation is within a header or nav tag */
.site-header {
    position: relative; /* Or fixed/sticky if you want it always visible */
    width: 100%;
    z-index: 100; /* Ensure it's above other content */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #fff; /* Example background */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-height: var(--header-height);
}

.site-branding {
    /* Styles for your logo/site title */
    font-size: 2.5em; /* Large logo size */
    font-weight: bold;
    color: var(--avis-blue);
}

/* Hamburger Icon for Mobile/Tablet */
.menu-toggle {
    display: none; /* Hide by default, show on smaller screens */
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: var(--avis-blue);
    padding: 10px;
    z-index: 200; /* Above the overlay menu */
}

/* Full-Height Overlay Menu */
.main-navigation {
    display: none; /* Hidden by default, toggled by JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95); /* Dark overlay */
    z-index: 150;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hide scrollbars if content overflows */
    transition: opacity 0.4s ease, visibility 0.4s ease;
    opacity: 0;
    visibility: hidden;
}

.main-navigation.is-open {
    opacity: 1;
    visibility: visible;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between menu items */
}

.main-navigation li a {
    color: #fff;
    font-size: 3.5em; /* Very large font for navigation */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block; /* For transform effects */
    padding: 10px 20px;
}

.main-navigation li a:hover {
    color: var(--avis-red);
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Close button for full-height menu */
.main-navigation .close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    font-size: 3em;
    color: #fff;
    cursor: pointer;
    z-index: 200;
    padding: 10px;
}


@media (max-width: 900px) {
    .menu-toggle {
        display: block; /* Show hamburger on smaller screens */
    }
    .main-navigation {
        display: none; /* Hide regular navigation on smaller screens */
    }
    /* You'll need JavaScript to toggle the 'is-open' class on .main-navigation */
}

/* --- Simple Galleries --- */
.wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px; /* Space between images */
    margin: 40px auto;
    max-width: 1200px; /* Max width for your gallery */
    padding: 0 20px;
}

.wp-block-gallery .wp-block-image img {
    width: 100%;
    height: 250px; /* Fixed height for consistent look */
    object-fit: cover; /* Crop images to fit */
    display: block;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-gallery .wp-block-image img:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* --- Diagonal DIV Service Slides --- */
.services-section {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    justify-content: center;
    margin-top: 80px;
    overflow: hidden; /* Crucial to contain skewed elements */
    padding: 20px 0;
}

.service-slide {
    position: relative;
    width: 300px; /* Base width for each slide */
    height: 200px; /* Base height */
    margin: 20px; /* Space between slides */
    overflow: hidden;
    background-color: var(--avis-blue); /* Default background */
    color: #fff;
    transform: skewY(-2deg); /* Apply the diagonal skew */
    transition: background-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex; /* For content alignment */
    align-items: center;
    justify-content: center;
}

.service-slide:nth-child(even) {
    background-color: var(--avis-red); /* Alternate color */
    transform: skewY(2deg); /* Alternate skew direction */
}

.service-slide-content {
    transform: skewY(2deg); /* Counter-skew to straighten content */
    text-align: center;
    padding: 20px;
    z-index: 1; /* Ensure content is above background effects */
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.service-slide:nth-child(even) .service-slide-content {
    transform: skewY(-2deg); /* Counter-skew for alternate */
}

.service-slide h3 {
    margin-top: 0;
    font-size: 1.8em;
    color: #fff;
}

.service-slide p {
    font-size: 1em;
    line-height: 1.5;
    opacity: 0.9;
}

/* Mouseover Effects for Service Slides */
.service-slide:hover {
    transform: skewY(-2deg) scale(1.05); /* Zoom and maintain skew */
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    background-color: #006AFF; /* Brighter blue on hover */
}

.service-slide:nth-child(even):hover {
    transform: skewY(2deg) scale(1.05);
    background-color: #FF3333; /* Brighter red on hover */
}

/* Optional: Hide content slightly on hover for an effect */
.service-slide:hover .service-slide-content {
    /* You could add a slight translate here or another effect */
    transform: skewY(2deg) translateY(-5px); /* Lift content slightly */
}
.service-slide:nth-child(even):hover .service-slide-content {
    transform: skewY(-2deg) translateY(-5px);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .site-header {
        padding: 10px 20px;
    }

    .main-navigation ul {
        gap: 20px;
    }
    .main-navigation li a {
        font-size: 2.5em;
    }
    .main-navigation .close-button {
        font-size: 2.5em;
        top: 15px;
        right: 20px;
    }

    .wp-block-gallery {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }

    .service-slide {
        width: 90%; /* Take more width on smaller screens */
        height: 180px;
        margin: 15px auto;
        transform: skewY(0deg); /* Remove skew on small screens for better readability */
    }
    .service-slide-content {
        transform: skewY(0deg); /* Remove counter-skew */
    }
    .service-slide:nth-child(even) {
        transform: skewY(0deg);
    }
    .service-slide:nth-child(even) .service-slide-content {
        transform: skewY(0deg);
    }

    .service-slide:hover,
    .service-slide:nth-child(even):hover {
        transform: scale(1.03); /* Just scale on mobile */
    }
}

@media (max-width: 480px) {
    .site-branding {
        font-size: 2em;
    }
    .main-navigation li a {
        font-size: 1.8em;
    }
    .wp-block-gallery {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    .wp-block-gallery .wp-block-image img {
        height: 200px;
    }
    .service-slide h3 {
        font-size: 1.5em;
    }
    .service-slide p {
        font-size: 0.9em;
    }
}