/**
 * Main Stylesheet
 * Manton Forklifts WordPress Theme
 */

/* ===================================
   CSS Reset & Base Styles
   =================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove any WordPress default margins that create asymmetry */
.wp-site-blocks {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.has-global-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.has-global-padding > .alignfull {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--wp--preset--font-family--inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 16px;
    line-height: 1.55;
    color: var(--wp--preset--color--text-900, #0D1B2A);
    background-color: var(--wp--preset--color--white, #FFFFFF);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--wp--preset--color--orange-500, #F26B21);
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover {
    color: var(--wp--preset--color--navy-900, #0B1C3A);
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
}

h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
}

h3 {
    font-size: clamp(22px, 3vw, 26px);
    font-weight: 600;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* ===================================
   Header Styles
   =================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--wp--preset--color--white, #FFFFFF);
    border-bottom: 1px solid rgba(13, 27, 42, 0.08);
    box-shadow: 0 2px 8px rgba(13, 27, 42, 0.04);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 12px rgba(13, 27, 42, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-logo .site-branding {
    display: flex;
    flex-direction: column;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--wp--preset--color--orange-500, #F26B21);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-action-btn:hover {
    background: var(--wp--preset--color--sky-050, #EEF2F8);
    transform: translateY(-1px);
}

.header-action-btn svg {
    width: 20px;
    height: 20px;
}

/* Header phone button with number */
.header-phone-btn {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 16px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 999px !important;
}

.header-phone-btn .phone-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--wp--preset--color--navy-900, #0B1C3A);
}

.header-phone-btn:hover .phone-number {
    color: var(--wp--preset--color--orange-500, #F26B21);
}

/* Hide phone number on smaller screens, show icon only */
@media (max-width: 1200px) {
    .header-phone-btn .phone-number {
        display: none;
    }
    
    .header-phone-btn {
        padding: 8px !important;
        width: 40px !important;
        height: 40px !important;
    }
}

/* Primary Navigation */
.primary-navigation {
    display: flex;
    align-items: center;
}

.primary-navigation .wp-block-navigation__container {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-navigation .wp-block-navigation-item {
    display: flex;
    align-items: center;
}

.primary-navigation a {
    color: var(--wp--preset--color--text-900, #0D1B2A);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.primary-navigation a:hover,
.primary-navigation a.current-menu-item {
    color: var(--wp--preset--color--orange-500, #F26B21);
}

.primary-navigation .wp-block-navigation__submenu-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--wp--preset--color--white, #FFFFFF);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(13, 27, 42, 0.12);
    padding: 8px;
    min-width: 200px;
    margin-top: 8px;
    z-index: 1000;
    list-style: none;
}

.primary-navigation .wp-block-navigation-submenu {
    position: relative;
}

.primary-navigation .wp-block-navigation-submenu:hover > .wp-block-navigation__submenu-container,
.primary-navigation .wp-block-navigation-submenu:focus-within > .wp-block-navigation__submenu-container {
    display: block;
    animation: dropdownFade 0.18s ease;
}

.primary-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item {
    display: block;
    margin: 0;
    padding: 4px;
    width: 100%;
}

.primary-navigation .wp-block-navigation__submenu-container a {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.primary-navigation .wp-block-navigation__submenu-container a:hover {
    background: var(--wp--preset--color--sky-050, #EEF2F8);
    color: var(--wp--preset--color--orange-500, #F26B21);
    padding-left: 20px;
}

/* Ensure navigation is visible */
.primary-navigation .wp-block-navigation-item__content {
    display: inline-block;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu */
/* Tablet - 1024px */
@media (max-width: 1024px) {
    /* Ensure WordPress columns stack properly */
    .wp-block-columns:not(.is-not-stacked-on-mobile) {
        flex-wrap: wrap;
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--wp--preset--color--orange-500, #F26B21);
    position: relative;
}

.mobile-menu-toggle .close-icon {
    display: none;
}

.mobile-menu-toggle.active .menu-icon {
    display: none;
}

.mobile-menu-toggle.active .close-icon {
    display: block;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Tablet/Mobile Menu - 1024px (hamburger activates here) */
@media (max-width: 1024px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hide desktop navigation */
    .primary-navigation {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--wp--preset--color--white, #FFFFFF);
        box-shadow: 0 10px 30px rgba(13, 27, 42, 0.15);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }
    
    .primary-navigation.mobile-open {
        max-height: 100vh;
        overflow-y: auto;
    }
    
    /* Stack navigation items vertically */
    .primary-navigation .wp-block-navigation__container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 16px;
        width: 100%;
    }
    
    .primary-navigation .wp-block-navigation-item {
        width: 100%;
        border-bottom: 1px solid rgba(13, 27, 42, 0.08);
    }
    
    .primary-navigation .wp-block-navigation-item:last-child {
        border-bottom: none;
    }
    
    .primary-navigation .wp-block-navigation-item > a {
        display: block;
        padding: 14px 16px;
        width: 100%;
    }
    
    /* Mobile submenu styling */
    .primary-navigation .wp-block-navigation__submenu-container {
        position: static;
        display: none;
        box-shadow: none;
        background: var(--wp--preset--color--slate-050, #F7F9FC);
        margin: 0;
        padding: 0;
        border-radius: 0;
    }
    
    .primary-navigation .wp-block-navigation-submenu.mobile-submenu-open > .wp-block-navigation__submenu-container {
        display: block;
    }
    
    .primary-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item {
        border-bottom: none;
        padding-left: 16px;
    }
    
    .primary-navigation .wp-block-navigation__submenu-container a {
        padding: 10px 16px;
        font-size: 15px;
    }
}

/* Mobile - 768px */
@media (max-width: 768px) {
    /* Header adjustments - reduce vertical space */
    .header-actions {
        gap: 6px;
    }
    
    .header-action-btn {
        width: 34px;
        height: 34px;
    }
    
    .site-header .header-inner {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }
    
    /* Reduce space between header and content on mobile */
    .site-header {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* First content after header - minimal top margin */
    main.wp-block-group {
        margin-top: 4px !important;
        padding-top: 0 !important;
    }
    
    /* First section in main */
    main.wp-block-group > .wp-block-group:first-child {
        margin-top: 4px !important;
    }
    
    /* Target ONLY wrapper/layout elements, not content */
    .wp-block-group.alignwide {
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }
    
    /* First alignwide after header gets less margin */
    main.wp-block-group > .wp-block-group.alignwide:first-child {
        margin-top: 4px !important;
    }
    
    /* Hero section and major groups */
    main > .wp-block-group,
    .wp-block-group > .wp-block-group.alignwide {
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }
    
    /* Columns minimal spacing */
    .wp-block-columns {
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }
    
    .wp-block-column + .wp-block-column {
        margin-top: 8px !important;
    }
    
    /* Ensure all columns stack */
    .wp-block-columns {
        flex-direction: column;
    }
    
    .wp-block-column {
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex-basis: 100% !important;
        width: 100%;
    }
}

/* Tablet/Mobile - Text hides and logo grows at 1024px */
@media (max-width: 1024px) {
    /* Hide site title and tagline to make room for logo */
    .site-branding {
        display: none !important;
    }
    
    /* Logo grows significantly when text hidden */
    .header-logo {
        gap: 0;
    }
    
    /* Larger logo when text is hidden - multiple selectors for specificity */
    .wp-block-site-logo,
    .header-logo .wp-block-site-logo,
    .site-header .wp-block-site-logo {
        width: 240px !important;
        max-width: 240px !important;
    }
    
    .wp-block-site-logo img,
    .wp-block-site-logo a img,
    .custom-logo-link img,
    .site-logo img {
        max-height: none !important;
        height: auto !important;
        width: 240px !important;
        max-width: 240px !important;
    }
}

@media (max-width: 768px) {
    /* Balanced logo size for mobile */
    .wp-block-site-logo,
    .header-logo .wp-block-site-logo,
    .site-header .wp-block-site-logo {
        width: 220px !important;
        max-width: 220px !important;
    }
    
    .wp-block-site-logo img,
    .wp-block-site-logo a img,
    .custom-logo-link img,
    .site-logo img {
        width: 220px !important;
        max-width: 220px !important;
    }
}

@media (max-width: 480px) {
    /* Container Padding */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* Header action buttons smaller */
    .header-action-btn {
        width: 32px;
        height: 32px;
    }
    
    .header-action-btn svg {
        width: 18px;
        height: 18px;
    }
    
    /* Mobile menu toggle - compact */
    .mobile-menu-toggle {
        width: 34px;
        height: 34px;
        padding: 5px;
    }
    
    .mobile-menu-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    /* Logo still prominent on very small screens */
    .wp-block-site-logo,
    .header-logo .wp-block-site-logo,
    .site-header .wp-block-site-logo {
        width: 200px !important;
        max-width: 200px !important;
    }
    
    .wp-block-site-logo img,
    .wp-block-site-logo a img,
    .custom-logo-link img,
    .site-logo img {
        width: 200px !important;
        max-width: 200px !important;
    }
    
    /* Search Modal */
    .search-modal__content {
        padding: 0 16px;
    }
    
    .search-modal__input {
        padding: 18px 24px;
        font-size: 24px;
    }
    
    .search-modal__close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

/* ===================================
   Footer Styles
   =================================== */

.site-footer {
    margin-top: 80px;
}

/* Footer link styling - orange to white on hover */
.site-footer a {
    color: var(--wp--preset--color--orange-500, #F26B21);
    text-decoration: none;
    transition: color 0.18s ease;
}

.site-footer a:hover {
    color: rgba(255, 255, 255, 1);
}

/* Footer phone link with icon */
.footer-phone-link {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--wp--preset--color--orange-500, #F26B21) !important;
    text-decoration: none;
    transition: all 0.18s ease;
}

.footer-phone-link svg {
    stroke: var(--wp--preset--color--orange-500, #F26B21);
    transition: stroke 0.18s ease;
    flex-shrink: 0;
}

.footer-phone-link:hover {
    color: rgba(255, 255, 255, 1) !important;
}

.footer-phone-link:hover svg {
    stroke: rgba(255, 255, 255, 1);
}

.footer-contact-card,
.footer-form-card {
    height: 100%;
}

/* Footer form: keep content top-aligned (avoid big vertical gaps) */
.site-footer .footer-form-card {
    text-align: left;
}

.site-footer .footer-form-card.is-layout-constrained > .wp-block-group__inner-container {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    height: auto;
}

/* Normalize block spacing inside footer form card */
.site-footer .footer-form-card.is-layout-constrained > .wp-block-group__inner-container > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.site-footer .footer-form-card.is-layout-constrained > .wp-block-group__inner-container > * + * {
    margin-block-start: 16px !important;
}

.site-footer .footer-form-card .wp-block-shortcode,
.site-footer .footer-form-card .manton-footer-contact {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.footer-contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}

.manton-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: flex-start !important;
    height: auto !important;
    min-height: 0;
}

.manton-footer-contact .form-notice[hidden],
.manton-footer-contact .form-notice:empty {
    display: none !important;
}

.site-footer .footer-form-card .wp-block-shortcode {
    display: block !important;
}

.manton-footer-contact .form-notice {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.manton-footer-contact .form-notice--success {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.12);
}

.manton-footer-contact .form-notice--error {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.12);
}

.footer-contact-form .form-notice {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
}

.footer-contact-form .form-notice--success {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.12);
}

.footer-contact-form .form-notice--error {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.12);
}

.footer-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.footer-contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.footer-contact-form input,
.footer-contact-form textarea {
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--wp--preset--color--white, #FFFFFF);
    font-family: inherit;
    font-size: 16px;
    transition: all 0.2s ease;
}

.footer-contact-form input::placeholder,
.footer-contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact-form input:focus,
.footer-contact-form textarea:focus {
    outline: none;
    border-color: var(--wp--preset--color--orange-500, #F26B21);
    background: rgba(255, 255, 255, 0.12);
}

.footer-contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    /* Footer columns stack on tablet */
    .site-footer .wp-block-columns {
        flex-direction: column;
    }
    
    .site-footer .wp-block-column {
        flex-basis: 100% !important;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .site-footer {
        padding-top: 48px;
        padding-bottom: 32px;
    }
    
    .footer-contact-card,
    .footer-form-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .footer-contact-form input,
    .footer-contact-form textarea {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .site-footer .wp-block-group {
        gap: 16px !important;
    }
}

/* ===================================
   Layout Utilities
   =================================== */

.section-spacing {
    padding-top: clamp(24px, 6vw, 96px);
    padding-bottom: clamp(24px, 6vw, 96px);
}

/* Mobile spacing - minimal */
@media (max-width: 768px) {
    .section-spacing {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
    
    /* Site-wide spacing reset - eliminate ALL top space */
    html,
    body,
    #page,
    .wp-site-blocks {
        padding: 0 !important;
        margin: 0 !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Header - no space above */
    .site-header,
    header.wp-block-group,
    header.site-header {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

.container,
.wp-block-group.alignwide,
main.wp-block-group {
    max-width: var(--max-width, 1280px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

/* Ensure WordPress blocks don't add extra margin */
.wp-block-group {
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 768px) {
    .container,
    .wp-block-group.alignwide,
    main.wp-block-group {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ===================================
   Reveal Animations (Spec-Aligned)
   =================================== */

/* Default reveal (up) - small cards */
[data-reveal],
[data-reveal="up"] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].is-visible,
[data-reveal="up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide in from left - large panels (dramatic) */
[data-reveal="left"],
[data-reveal="slide-left"] {
    opacity: 0;
    transform: translateX(-160px);
    transition: opacity 1.6s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal="left"].is-visible,
[data-reveal="slide-left"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide in from right - large panels (dramatic) */
[data-reveal="right"],
[data-reveal="slide-right"] {
    opacity: 0;
    transform: translateX(160px);
    transition: opacity 1.6s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal="right"].is-visible,
[data-reveal="slide-right"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale reveal - hero overlays and quote cards */
[data-reveal="scale"] {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal="scale"].is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Custom delay support via data attribute */
[data-reveal-delay="80"] { transition-delay: 80ms; }
[data-reveal-delay="160"] { transition-delay: 160ms; }
[data-reveal-delay="240"] { transition-delay: 240ms; }
[data-reveal-delay="320"] { transition-delay: 320ms; }

/* Stagger delays for grid items */
[data-reveal]:nth-child(1) { transition-delay: 0ms; }
[data-reveal]:nth-child(2) { transition-delay: 80ms; }
[data-reveal]:nth-child(3) { transition-delay: 160ms; }
[data-reveal]:nth-child(4) { transition-delay: 240ms; }
[data-reveal]:nth-child(5) { transition-delay: 320ms; }
[data-reveal]:nth-child(6) { transition-delay: 400ms; }

/* Support old class name for backwards compatibility */
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion support */
.reduced-motion [data-reveal],
.reduced-motion [data-reveal="up"],
.reduced-motion [data-reveal="left"],
.reduced-motion [data-reveal="right"],
.reduced-motion [data-reveal="slide-left"],
.reduced-motion [data-reveal="slide-right"],
.reduced-motion [data-reveal="scale"] {
    opacity: 1;
    transform: none;
    transition: none;
}

.reduced-motion .swiper-slide {
    transition: none;
}

/* CSS-based 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;
        scroll-behavior: auto !important;
    }
    
    [data-reveal],
    [data-reveal="up"],
    [data-reveal="left"],
    [data-reveal="right"],
    [data-reveal="slide-left"],
    [data-reveal="slide-right"],
    [data-reveal="scale"] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .manufacturer-track {
        animation: none !important;
    }
    
    .swiper-slide {
        transition: none !important;
    }
    
    .media-lightbox {
        transition: none !important;
    }
}

/* ===================================
   Search Modal
   =================================== */

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 28, 58, 0.95);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    pointer-events: all;
}

.search-modal__content {
    width: 100%;
    max-width: 800px;
    padding: 0 24px;
}

.search-modal__close {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    color: var(--wp--preset--color--white, #FFFFFF);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.search-modal__close:hover {
    transform: rotate(90deg);
}

.search-modal__input {
    width: 100%;
    padding: 24px 32px;
    font-size: 32px;
    border: none;
    border-radius: 24px;
    background: var(--wp--preset--color--white, #FFFFFF);
    color: var(--wp--preset--color--text-900, #0D1B2A);
    font-family: inherit;
}

.search-modal__input:focus {
    outline: 3px solid var(--wp--preset--color--orange-500, #F26B21);
}

/* ===================================
   Media Lightbox
   =================================== */

.media-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 28, 58, 0.97);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.media-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    opacity: 0.9;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.lightbox-close {
    top: 24px;
    right: 24px;
    font-size: 40px;
    line-height: 1;
}

.lightbox-prev {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.05);
}

.lightbox-next {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.05);
}

.lightbox-counter {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    .lightbox-prev {
        left: 16px;
    }
    
    .lightbox-next {
        right: 16px;
    }
    
    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 32px;
    }
    
    .lightbox-counter {
        bottom: 24px;
        font-size: 12px;
    }
}

/* ===================================
   Skeleton Loading
   =================================== */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--wp--preset--color--sky-050, #EEF2F8) 0%,
        var(--wp--preset--color--slate-050, #F7F9FC) 50%,
        var(--wp--preset--color--sky-050, #EEF2F8) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--card-radius, 24px);
}

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

.skeleton-card {
    width: 100%;
    height: 400px;
}

/* ===================================
   Utility Classes
   =================================== */

.text-navy { color: var(--wp--preset--color--navy-900, #0B1C3A); }
.text-orange { color: var(--wp--preset--color--orange-500, #F26B21); }
.text-muted { color: var(--wp--preset--color--text-600, #526173); }

.bg-navy { background-color: var(--wp--preset--color--navy-900, #0B1C3A); }
.bg-orange { background-color: var(--wp--preset--color--orange-500, #F26B21); }
.bg-sky { background-color: var(--wp--preset--color--sky-050, #EEF2F8); }
.bg-slate { background-color: var(--wp--preset--color--slate-050, #F7F9FC); }

.rounded { border-radius: var(--card-radius, 24px); }
.rounded-small { border-radius: var(--card-radius-small, 16px); }
.rounded-pill { border-radius: var(--button-radius, 999px); }

.shadow-sm {
    box-shadow: 0 2px 8px rgba(13, 27, 42, 0.04);
}

.shadow {
    box-shadow: 0 10px 30px rgba(13, 27, 42, 0.08);
}

.shadow-lg {
    box-shadow: 0 20px 50px rgba(13, 27, 42, 0.12);
}

/* ===================================
   Hero Slider 
   =================================== */

.hero-slider-container {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text overlay - positioned bottom-left */
.hero-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    max-width: 60%;
    padding: 32px 40px;
    background: rgba(11, 28, 58, 0.92);
    border-radius: 0 24px 0 24px;
    z-index: 10;
}

.hero-text-overlay .hero-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.hero-text-overlay .hero-description {
    font-size: clamp(14px, 1.5vw, 16px);
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.hero-text-overlay .hero-cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--wp--preset--color--orange-500, #F26B21);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-text-overlay .hero-cta-btn:hover {
    background: #e05a10;
    transform: translateY(-2px);
}

/* Navigation buttons */
.hero-nav-btn {
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 50% !important;
    color: var(--wp--preset--color--navy-900, #0B1C3A) !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.hero-nav-btn::after {
    font-size: 16px !important;
    font-weight: 700 !important;
}

.hero-nav-btn:hover {
    background: #fff !important;
    transform: scale(1.1);
}

.swiper-button-prev.hero-nav-btn {
    left: auto !important;
    right: 70px !important;
    bottom: 20px !important;
    top: auto !important;
}

.swiper-button-next.hero-nav-btn {
    right: 20px !important;
    bottom: 20px !important;
    top: auto !important;
}

/* Pagination dots */
.hero-pagination {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
}

.hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-text-overlay {
        max-width: 75%;
        padding: 24px 32px;
    }
}

@media (max-width: 768px) {
    .hero-slider-container {
        height: 400px !important;
    }
    
    .hero-text-overlay {
        max-width: 100%;
        left: 0;
        right: 0;
        border-radius: 0;
        padding: 20px 24px;
    }
    
    .hero-text-overlay .hero-title {
        font-size: 22px;
    }
    
    .hero-text-overlay .hero-description {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .swiper-button-prev.hero-nav-btn,
    .swiper-button-next.hero-nav-btn {
        display: none !important;
    }
    
    .hero-pagination {
        bottom: auto !important;
        top: 16px !important;
    }
}

@media (max-width: 480px) {
    .hero-slider-container {
        height: 350px !important;
    }
    
    .hero-text-overlay {
        padding: 16px 20px;
    }
    
    .hero-text-overlay .hero-title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .hero-text-overlay .hero-description {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .hero-text-overlay .hero-cta-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ===========================================
   Equipment Cards / Listing Grid
   =================================== */

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.equipment-card {
    background: var(--wp--preset--color--white, #fff);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(13, 27, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.equipment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(13, 27, 42, 0.12);
}

.equipment-card .wp-block-post-featured-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    margin: 0;
}

.equipment-card .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.equipment-card:hover .wp-block-post-featured-image img {
    transform: scale(1.05);
}

.equipment-card__content {
    padding: 20px;
    flex-grow: 1;
}

.equipment-card .wp-block-post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--wp--preset--color--navy-900, #0D1B2A);
}

.equipment-card .wp-block-post-title a {
    color: inherit;
    text-decoration: none;
}

.equipment-card .wp-block-post-title a:hover {
    color: var(--wp--preset--color--orange-500, #F26B21);
}

.equipment-card .wp-block-post-excerpt {
    font-size: 14px;
    color: var(--wp--preset--color--text-600, #4A5568);
    margin-bottom: 0;
}

.equipment-card__footer {
    padding: 0 20px 20px;
    margin-top: auto;
}

.equipment-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.equipment-card__specs span {
    background: var(--wp--preset--color--sky-050, #EEF2F8);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--wp--preset--color--text-600, #4A5568);
}

/* Filter Section */
.filter-section {
    background: var(--wp--preset--color--orange-500, #F26B21);
    border-radius: 24px;
    padding: 24px 32px;
}

.filter-group {
    margin-bottom: 16px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group__title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #fff;
    font-size: 14px;
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.3);
}

.filter-pill input[type="checkbox"] {
    accent-color: var(--wp--preset--color--navy-900, #0D1B2A);
}

/* Post template grid fix */
.wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 5px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wp-block-post-template > li {
    margin: 0 !important;
}

/* Shuffle.js layout overrides */
.wp-block-post-template.is-shuffle {
    display: block !important;
    position: relative;
    padding-top: 5px;
}

.wp-block-post-template.is-shuffle > li {
    position: absolute;
    width: calc(100% / 4); /* 4 cols, gaps via padding */
    margin: 0 !important;
    box-sizing: border-box;
    padding: 0 2.5px 5px;
}

/* Shuffle.js sizer controls column widths */
.wp-block-post-template.is-shuffle .shuffle-sizer {
    position: absolute;
    visibility: hidden;
    width: calc(100% / 4); /* 4 cols */
}

@media (max-width: 1200px) {
    .wp-block-post-template.is-shuffle .shuffle-sizer {
        width: calc(100% / 3); /* 3 cols */
    }
    .wp-block-post-template.is-shuffle > li {
        width: calc(100% / 3);
    }
}

@media (max-width: 720px) {
    .wp-block-post-template.is-shuffle .shuffle-sizer {
        width: calc(100% / 2); /* 2 cols */
    }
    .wp-block-post-template.is-shuffle > li {
        width: calc(100% / 2);
    }
}

@media (max-width: 600px) {
    .wp-block-post-template.is-shuffle .shuffle-sizer {
        width: 100%; /* 1 col */
    }
    .wp-block-post-template.is-shuffle > li {
        width: 100%;
    }
}
