/*
Theme Name: Zoom Rental Cars
Theme URI: https://zoomrentalcars.co.nz
Author: Zoom Rental Cars
Author URI: https://zoomrentalcars.co.nz
Description: Custom theme for Zoom Rental Cars, a Nelson NZ car rental company. Built from a Stitch design export.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: zoom-rental
*/

body { font-family: 'Montserrat', sans-serif; }

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-overlay {
    background: linear-gradient(180deg, rgba(45, 27, 77, 0.4) 0%, rgba(26, 26, 27, 0.8) 100%);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.vibrant-purple-gradient {
    background: linear-gradient(135deg, #AD15E5 0%, #68558a 100%);
}

.text-gradient-purple {
    background: linear-gradient(135deg, #AD15E5 0%, #2D1B4D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.transition-standard {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card-hover:hover .blog-image {
    transform: scale(1.05);
}

.custom-logo-link img {
  max-height: 35px;
  width: auto;
  object-fit: contain;
}

/* WP core alignment helpers */
.alignwide { max-width: 1280px; margin-left: auto; margin-right: auto; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
img { max-width: 100%; height: auto; }

/* Nav active state */
.nav-current { color: #FFD700 !important; font-weight: 700; border-bottom: 2px solid #FFD700; padding-bottom: 4px; }

/* Mobile menu overlay — display is toggled directly by inline style in JS (see header.php),
   so this panel can never get stuck open/closed due to a caching issue with this file.
   This CSS only adds the fade/slide animation on top of that. */
.zr-mobile-menu {
    min-height: 100vh;
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.zr-mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
}
/* Custom Logo Global Alignment Fix */
.custom-logo-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.custom-logo-link img {
    max-height: 44px !important;
    width: auto !important;
    object-fit: contain;
    margin-left: 0 !important;
}

/* Micro-interactions and global input glow settings */
input focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(173, 21, 229, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}
/* Ensure the full screen takeover works properly and is positioned perfectly under fixed headers */
.zr-mobile-menu {
    height: 100vh;
    width: 100vw;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.22s ease-in-out, transform 0.22s ease-in-out;
}

.zr-mobile-menu.open {
    opacity: 1;
    transform: scale(1);
}

/* Active Page Link Underline Handling for WordPress Menus */
.desktop-nav ul li {
    position: relative;
}

.desktop-nav ul li a {
    position: relative;
    padding-bottom: 6px;
    transition: color 0.25s ease;
}

/* Automatic hook for WordPress' active tracking classes */
.desktop-nav ul li.current-menu-item a::after,
.desktop-nav ul li.current_page_item a::after,
.desktop-nav ul li a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #FFD700; /* Action Gold Underline */
    border-radius: 2px;
    transform: scaleX(1);
    transition: transform 0.25s ease;
}

/* Zero out potential structural padding/margin leaks causing gaps */
header + section, 
header + main {
    margin-top: 0 !important;
}