/* Custom styles for PrintMii theme */
/* ================================ */

/* CSS Custom Properties */
:root {
    --pm-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --pm-shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.08);
    --pm-shadow-md: 0 10px 40px rgba(0, 0, 0, 0.12);
    --pm-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography Enhancements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--wp--preset--color--light) !important;
}

/* Page background consistency */
.wp-site-blocks {
    background-color: var(--wp--preset--color--light);
}

/* Add padding for fixed header */
.wp-site-blocks>main,
.wp-site-blocks>.wp-block-group:first-of-type {
    padding-top: 70px;
}

/* Admin bar support */
.admin-bar .wp-site-blocks>main,
.admin-bar .wp-site-blocks>.wp-block-group:first-of-type {
    padding-top: 102px;
    /* 70px navbar + 32px admin bar */
}

@media (max-width: 782px) {

    .admin-bar .wp-site-blocks>main,
    .admin-bar .wp-site-blocks>.wp-block-group:first-of-type {
        padding-top: 116px;
        /* 70px navbar + 46px mobile admin bar */
    }
}

/* Layout widths */
.alignwide {
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.alignfull {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* ================================ */
/* HEADER STYLES */
/* ================================ */

/* Modern Yellow Navbar */
.pm-navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--wp--preset--color--primary) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, top 0.3s ease;
}

/* Admin bar support for navbar */
.admin-bar .pm-navbar {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .pm-navbar {
        top: 46px;
    }
}

.pm-navbar.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Logo styling */
.pm-navbar__logo {
    flex-shrink: 0;
}

.pm-navbar__logo img,
.pm-navbar__logo .wp-block-site-logo img {
    height: auto;
    max-height: 45px;
    width: auto;
    display: block;
}

.pm-navbar__logo .custom-logo-link {
    display: flex;
    align-items: center;
}

/* Logo image/text fallback logic */
/* If site logo exists, hide text */
.pm-navbar__logo .wp-block-site-logo+.pm-logo-text {
    display: none !important;
}

/* Text logo styling */
.pm-logo-text {
    margin: 0 !important;
    line-height: 1;
}

.pm-logo-text a {
    text-decoration: none;
    color: inherit;
}

.pm-logo-text a:hover {
    opacity: 0.8;
}

/* Desktop Navigation Links */
.pm-navbar__menu .wp-block-navigation {
    gap: 35px;
}

.pm-navbar__menu .wp-block-navigation-item__content {
    color: var(--wp--preset--color--accent) !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.pm-navbar__menu .wp-block-navigation-item__content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--wp--preset--color--accent);
    transition: width 0.3s ease;
}

.pm-navbar__menu .wp-block-navigation-item__content:hover::after {
    width: 100%;
}

/* Classic Editor wp_nav_menu styles */
.pm-navbar__menu .wp-block-navigation__container {
    display: flex;
    gap: 35px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pm-navbar__menu .wp-block-navigation__container li {
    display: block;
}

.pm-navbar__menu .wp-block-navigation__container a {
    color: var(--wp--preset--color--accent);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    display: inline-block;
    transition: color 0.3s ease;
}

.pm-navbar__menu .wp-block-navigation__container a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--wp--preset--color--accent);
    transition: width 0.3s ease;
}

.pm-navbar__menu .wp-block-navigation__container a:hover::after {
    width: 100%;
}

/* Phone number */
.pm-navbar__phone {
    white-space: nowrap;
}

/* CTA Button in navbar */
.pm-navbar__cta .wp-block-button__link {
    background: var(--wp--preset--color--accent) !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.pm-navbar__cta .wp-block-button__link:hover {
    background: #ffffff !important;
    color: var(--wp--preset--color--accent) !important;
    transform: none;
    box-shadow: none !important;
}

/* ================================ */
/* SEARCH - Fixed Overlay (navbar doesn't move) */
/* ================================ */

.pm-search {
    display: flex;
    align-items: center;
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

/* Search Icon Button */
.pm-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--wp--preset--color--accent);
    padding: 0;
    position: relative;
    z-index: 10;
}

.pm-search-btn:hover {
    opacity: 0.7;
}

/* Search Form - absolute overlay, expands left */
.pm-search__form {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--wp--preset--color--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.3s ease;
}

/* Admin bar offset */
.admin-bar .pm-search__form {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .pm-search__form {
        top: 46px;
    }
}

.pm-search.is-open .pm-search__form {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pm-search__input {
    width: 100%;
    max-width: 500px;
    height: 44px;
    padding: 0 15px;
    border: 2px solid var(--wp--preset--color--accent);
    background: #fff;
    font-size: 16px;
    color: var(--wp--preset--color--accent);
    outline: none;
}

.pm-search__input::placeholder {
    color: var(--wp--preset--color--secondary);
}

/* Submit button */
.pm-search__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--wp--preset--color--accent);
    border: none;
    cursor: pointer;
    color: #fff;
    flex-shrink: 0;
}

.pm-search__submit:hover {
    opacity: 0.8;
}

/* Close button */
.pm-search__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid var(--wp--preset--color--accent);
    cursor: pointer;
    color: var(--wp--preset--color--accent);
    margin-left: 10px;
    flex-shrink: 0;
}

.pm-search__close:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 991px) {
    .pm-search__form {
        height: 60px;
        padding: 0 15px;
    }

    .pm-search__input {
        height: 40px;
        font-size: 14px;
    }

    .pm-search__close {
        width: 40px;
        height: 40px;
    }
}

/* Hamburger Button */
.pm-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.pm-hamburger__line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--wp--preset--color--accent);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger animation to X */
.pm-hamburger.is-active .pm-hamburger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.pm-hamburger.is-active .pm-hamburger__line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.pm-hamburger.is-active .pm-hamburger__line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.pm-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--wp--preset--color--primary);
    z-index: 998;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    padding: 100px 30px 50px;
}

/* Only show mobile menu on mobile screens when open */
@media (max-width: 991px) {
    .pm-mobile-menu {
        display: flex;
    }

    .pm-mobile-menu.is-open {
        opacity: 1;
        visibility: visible;
    }
}

/* Always hide mobile menu on desktop */
@media (min-width: 992px) {
    .pm-mobile-menu {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

/* Admin bar support for mobile menu */
.admin-bar .pm-mobile-menu {
    top: 32px;
    height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .pm-mobile-menu {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

.pm-mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.pm-mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pm-mobile-menu__link {
    font-size: 28px;
    font-weight: 600;
    color: var(--wp--preset--color--accent);
    text-decoration: none;
    padding: 15px 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.pm-mobile-menu__link::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--wp--preset--color--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pm-mobile-menu__link:hover::after {
    transform: scaleX(1);
}

.pm-mobile-menu__footer {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pm-mobile-menu__phone {
    font-size: 18px;
    font-weight: 600;
    color: var(--wp--preset--color--secondary);
    text-decoration: none;
}

.pm-mobile-menu__cta {
    display: inline-block;
    padding: 16px 40px;
    background: var(--wp--preset--color--accent);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pm-mobile-menu__cta:hover {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--accent);
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 991px) {
    .pm-navbar__menu {
        display: none !important;
    }

    .pm-navbar__phone {
        display: none !important;
    }

    .pm-navbar__cta {
        display: none !important;
    }

    .pm-hamburger {
        display: flex !important;
    }
}

@media (min-width: 992px) {
    .pm-hamburger {
        display: none !important;
    }
}

/* ================================ */
/* HERO GRID - 2x2 Symmetric */
/* ================================ */

.pm-hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    height: 420px;
    width: 100%;
}

.pm-hero-grid>.wp-block-group {
    width: 100%;
    height: 100%;
    margin-block-start: 0 !important;
}

.pm-hero-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.pm-hero-card .wp-block-image {
    width: 100%;
    height: 100%;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.pm-hero-card .wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pm-hero-card figure {
    margin: 0;
    width: 100%;
    height: 100%;
}

.pm-hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pm-hero-card:hover img {
    transform: scale(1.08);
}

.pm-hero-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    transition: var(--pm-transition);
}

.pm-hero-card:hover .pm-hero-card__overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 80%, transparent 100%);
}

.pm-hero-card__title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Yellow accent line on hover */
.pm-hero-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--wp--preset--color--primary);
    transition: width 0.4s ease;
    z-index: 10;
}

.pm-hero-card:hover::after {
    width: 100%;
}

/* Responsive hero grid */
@media (max-width: 900px) {
    .pm-hero-grid {
        height: auto;
    }

    .pm-hero-card {
        min-height: 180px;
    }
}

@media (max-width: 600px) {
    .pm-hero-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pm-hero-card {
        min-height: 160px;
    }
}

/* Navigation Hover Effects */
.wp-block-navigation-item__content {
    position: relative;
    transition: var(--pm-transition);
}

.wp-block-navigation-item__content::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--wp--preset--color--accent);
    transition: width 0.3s ease;
}

.wp-block-navigation-item__content:hover::after {
    width: 100%;
}

/* ================================ */
/* BUTTON STYLES */
/* ================================ */

.wp-block-button__link {
    transition: var(--pm-transition);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.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 ease;
}

.wp-block-button__link:hover::before {
    left: 100%;
}

.wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.is-style-outline .wp-block-button__link {
    border: 2px solid var(--wp--preset--color--accent);
    background: transparent !important;
    color: var(--wp--preset--color--accent) !important;
}

.is-style-outline .wp-block-button__link:hover {
    background: var(--wp--preset--color--accent) !important;
    color: var(--wp--preset--color--white) !important;
}

/* Services section button - ensure white text on black */
.wp-block-button__link[style*="background-color:#1B1B1B"],
.wp-block-button__link[style*="background-color: #1B1B1B"],
.has-accent-background-color .wp-block-button__link {
    color: #ffffff !important;
}

/* ================================ */
/* SERVICE CARDS */
/* ================================ */

.pm-service-card {
    transition: var(--pm-transition);
    position: relative;
    overflow: hidden;
}

.pm-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--wp--preset--color--primary);
    transition: height 0.4s ease;
}

.pm-service-card:hover::before {
    height: 100%;
}

.pm-service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--pm-shadow-lg) !important;
}

/* ================================ */
/* HERO SECTION */
/* ================================ */

.pm-hero {
    position: relative;
}

.pm-hero__image {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Hero animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 50px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-50px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(50px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.pm-hero .wp-block-heading {
    animation: fadeInLeft 0.8s ease-out both;
}

.pm-hero .wp-block-paragraph {
    animation: fadeInLeft 0.8s ease-out 0.2s both;
}

.pm-hero .wp-block-buttons {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.pm-hero .pm-hero__image {
    animation: fadeInRight 1s ease-out 0.3s both, float 6s ease-in-out 1s infinite;
}

/* ================================ */
/* FOOTER STYLES */
/* ================================ */

footer.has-accent-background-color {
    background: var(--wp--preset--color--accent) !important;
}

footer.has-accent-background-color,
footer.has-accent-background-color p,
footer.has-accent-background-color li,
footer.has-accent-background-color a,
footer.has-accent-background-color span {
    color: #ffffff !important;
}

footer.has-accent-background-color h1,
footer.has-accent-background-color h2,
footer.has-accent-background-color h3,
footer.has-accent-background-color h4,
footer.has-accent-background-color h5,
footer.has-accent-background-color h6,
footer.has-accent-background-color .has-primary-color {
    color: var(--wp--preset--color--primary) !important;
}

footer ul {
    list-style: none !important;
}

footer li {
    transition: var(--pm-transition);
    cursor: pointer;
}

footer li:hover {
    color: var(--wp--preset--color--primary) !important;
    transform: translateX(5px);
}

/* ================================ */
/* SECTION SPACING - FULL HEIGHT */
/* ================================ */

/* Reduce gaps between sections */
.wp-site-blocks>.wp-block-group,
.wp-site-blocks>section,
.wp-site-blocks>.wp-block-cover,
.wp-site-blocks>.wp-block-columns {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Full viewport height sections */
.pm-hero,
.pm-services-section,
.pm-products-section,
.pm-contact-section,
.pm-stats-section,
.pm-testimonials-section,
.pm-cta-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

/* Hero needs navbar offset */
.pm-hero {
    min-height: calc(100vh - 70px);
}

/* Admin bar offset */
.admin-bar .pm-hero {
    min-height: calc(100vh - 70px - 32px);
}

@media (max-width: 782px) {
    .admin-bar .pm-hero {
        min-height: calc(100vh - 70px - 46px);
    }
}

/* Ensure inner content is centered */
.pm-hero>.wp-block-group,
.pm-services-section>.wp-block-group,
.pm-products-section>.wp-block-group,
.pm-contact-section>.wp-block-group,
.pm-contact-section>.wp-block-columns {
    width: 100%;
}

/* Mobile: allow content to determine height if taller than viewport */
@media (max-width: 768px) {

    .pm-hero,
    .pm-services-section,
    .pm-products-section,
    .pm-contact-section,
    .pm-stats-section,
    .pm-testimonials-section,
    .pm-cta-section,
    .pm-seo-section {
        min-height: auto;
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
}

/* ================================ */
/* SEO CONTENT SECTION */
/* ================================ */

.pm-seo-section {
    min-height: auto !important;
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

/* Typography */
.pm-seo-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--wp--preset--color--accent);
    margin-bottom: 30px;
}

.pm-seo-intro {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    color: var(--wp--preset--color--text);
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.pm-seo-subtitle {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--wp--preset--color--accent);
    margin-top: 50px;
    margin-bottom: 30px;
}

.pm-seo-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--wp--preset--color--text);
    margin-bottom: 30px;
}

.pm-seo-footer {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.8;
    color: var(--wp--preset--color--accent);
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Dividers */
.pm-seo-divider {
    margin: 40px auto;
    max-width: 80px;
    height: 4px;
    opacity: 1 !important;
}

.pm-seo-divider-light {
    margin: 50px auto;
    max-width: 100%;
    height: 1px;
    opacity: 0.3 !important;
}

/* Products Grid */
.pm-products-grid {
    margin: 40px 0;
}

/* Single list with CSS columns for 2-column layout */
.pm-products-list-full {
    list-style: none;
    padding: 0;
    margin: 0;
    column-count: 2;
    column-gap: 40px;
}

.pm-products-column {
    min-width: 0;
    /* Fix text overflow on mobile */
}

.pm-products-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pm-products-list li,
.pm-products-list-full li {
    padding: 14px 0 14px 35px;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--wp--preset--color--text);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    word-wrap: break-word;
    break-inside: avoid;
    /* Prevent items from breaking across columns */
}

.pm-products-list li:last-child,
.pm-products-list-full li:last-child {
    border-bottom: none;
}

.pm-products-list li::before,
.pm-products-list-full li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 14px;
    width: 24px;
    height: 24px;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--accent);
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Service Cards */
.pm-services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.pm-service-card-seo {
    background: var(--wp--preset--color--light);
    padding: 40px 35px;
    border-left: 5px solid var(--wp--preset--color--primary);
    transition: all 0.3s ease;
}

.pm-service-card-seo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left-color: var(--wp--preset--color--accent);
}

.pm-service-card-seo__icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.pm-service-card-seo__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--wp--preset--color--accent);
    margin: 0 0 15px 0;
}

.pm-service-card-seo__desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--wp--preset--color--text-muted);
    margin: 0;
}

/* CTA Button */
.pm-seo-cta {
    margin-top: 50px;
}

.pm-seo-cta .wp-block-button__link {
    border-radius: 0 !important;
    padding: 16px 50px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    background: var(--wp--preset--color--accent) !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.pm-seo-cta .wp-block-button__link:hover {
    background: #ffffff !important;
    color: var(--wp--preset--color--accent) !important;
    box-shadow: 0 0 0 2px var(--wp--preset--color--accent) inset !important;
}

/* Responsive */
@media (max-width: 768px) {
    .pm-seo-section {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .pm-seo-section .wp-block-group {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Single column on mobile */
    .pm-products-list-full {
        column-count: 1;
        column-gap: 0;
    }

    .pm-products-grid {
        margin: 30px 0;
    }

    .pm-products-column {
        margin-bottom: 0;
        /* No extra margin between columns */
    }

    .pm-services-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pm-service-card-seo {
        padding: 30px 25px;
    }

    .pm-products-list li,
    .pm-products-list-full li {
        font-size: 0.92rem;
        padding: 10px 0 10px 32px;
        line-height: 1.5;
    }

    .pm-products-list li::before,
    .pm-products-list-full li::before {
        width: 22px;
        height: 22px;
        font-size: 12px;
        top: 10px;
    }

    /* Better mobile spacing */
    .pm-seo-section h2 {
        font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
        margin-bottom: 15px !important;
    }

    .pm-seo-section h3 {
        font-size: clamp(1.3rem, 4vw, 1.7rem) !important;
        margin-bottom: 25px !important;
    }

    .pm-seo-section .wp-block-separator {
        margin-top: 30px !important;
        margin-bottom: 30px !important;
    }

    /* Service cards on mobile - stack properly */
    .pm-seo-section .wp-block-columns {
        flex-direction: column;
        gap: 20px !important;
    }

    .pm-seo-section .wp-block-column {
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex-basis: 100% !important;
    }
}

@media (max-width: 480px) {
    .pm-products-list li {
        font-size: 0.88rem;
        padding: 8px 0 8px 28px;
    }

    .pm-products-list li::before {
        width: 20px;
        height: 20px;
        font-size: 11px;
        top: 8px;
    }

    .pm-service-card-seo {
        padding: 25px 20px;
    }

    .pm-service-card-seo__icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .pm-service-card-seo__title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .pm-service-card-seo__desc {
        font-size: 0.92rem;
        line-height: 1.6;
    }
}

/* ================================ */
/* GENERAL ENHANCEMENTS */
/* ================================ */

/* Image hover effects */
.wp-block-image img {
    transition: var(--pm-transition);
}

.wp-block-image:hover img {
    transform: scale(1.02);
}

/* Separator styling */
.wp-block-separator {
    opacity: 0.3 !important;
}

/* Selection colors */
::selection {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--accent);
}

/* Focus states */
a:focus,
button:focus,
input:focus {
    outline: 3px solid var(--wp--preset--color--primary);
    outline-offset: 2px;
}

/* ================================ */
/* RESPONSIVE ADJUSTMENTS */
/* ================================ */

@media (max-width: 782px) {
    .pm-hero .wp-block-columns {
        flex-direction: column;
    }

    .pm-hero__image {
        animation: none !important;
    }

    .pm-service-card:hover {
        transform: none;
    }
}

@media (max-width: 600px) {
    .wp-block-button__link:hover {
        transform: none;
    }
}

/* ================================ */
/* PRODUCTS HIGHLIGHT BAR */
/* ================================ */

.pm-products-bar {
    position: relative;
}

.pm-product-item {
    cursor: pointer;
    transition: var(--pm-transition);
}

.pm-product-item:hover {
    background: var(--wp--preset--color--light);
}

.pm-product-item img {
    transition: var(--pm-transition);
}

.pm-product-item:hover img {
    transform: scale(1.1);
}

.pm-product-item:hover p:first-child {
    color: var(--wp--preset--color--primary-dark) !important;
}

/* Products bar responsive */
@media (max-width: 900px) {
    .pm-products-bar .wp-block-group.alignwide {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pm-product-item {
        padding: 15px 25px !important;
        border-right: none !important;
        border-bottom: 1px solid var(--wp--preset--color--light);
    }
}

@media (max-width: 600px) {
    .pm-products-bar .wp-block-group.alignwide {
        flex-direction: column;
    }

    .pm-product-item {
        width: 100%;
        justify-content: center;
    }
}

/* ================================ */
/* FEATURED PRODUCTS SECTION */
/* ================================ */

.pm-featured-products {
    position: relative;
}

.pm-product-card {
    cursor: pointer;
    transition: var(--pm-transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.pm-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--pm-shadow-md);
}

.pm-product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--wp--preset--color--primary);
    transition: width 0.4s ease;
}

.pm-product-card:hover::after {
    width: 100%;
}

.pm-product-card img {
    transition: var(--pm-transition);
}

.pm-product-card:hover img {
    transform: scale(1.08);
}

/* Featured products responsive */
@media (max-width: 900px) {
    .pm-featured-products .wp-block-columns {
        flex-wrap: wrap;
    }

    .pm-featured-products .wp-block-column {
        flex-basis: calc(50% - 15px) !important;
        margin-bottom: 30px;
    }
}

@media (max-width: 600px) {
    .pm-featured-products .wp-block-column {
        flex-basis: 100% !important;
    }

    .pm-product-card:hover {
        transform: none;
    }
}

/* ================================ */
/* PRODUCTS HIGHLIGHT SECTION */
/* ================================ */

.pm-products-section {
    background-color: #fff;
}

.pm-products-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.pm-product-card {
    width: 280px;
    transition: var(--pm-transition);
    overflow: hidden;
}

.pm-product-card:hover {
    box-shadow: var(--pm-shadow-md);
    transform: translateY(-4px);
}

.pm-product-card__image {
    margin: 0 !important;
    overflow: hidden;
}

.pm-product-card__image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pm-product-card:hover .pm-product-card__image img {
    transform: scale(1.05);
}

.pm-product-card h3 {
    margin: 0 0 8px 0 !important;
}

.pm-product-card__link a {
    color: var(--wp--preset--color--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--pm-transition);
}

.pm-product-card__link a:hover {
    color: var(--wp--preset--color--primary);
}

.pm-view-all-link a {
    color: var(--wp--preset--color--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--pm-transition);
}

.pm-view-all-link a:hover {
    color: var(--wp--preset--color--primary);
}

/* Responsive Products Grid */
@media (max-width: 1200px) {
    .pm-products-grid {
        flex-wrap: wrap;
    }

    .pm-product-card {
        width: calc(50% - 12px);
        max-width: 280px;
    }
}

@media (max-width: 600px) {
    .pm-products-grid {
        flex-direction: column;
        align-items: center;
    }

    .pm-product-card {
        width: 100%;
        max-width: 320px;
    }
}

/* ================================ */
/* MINIMALISTIC 8-PRODUCT GRID */
/* ================================ */

.pm-products-grid-8 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.pm-product-minimal {
    text-align: center;
    cursor: pointer;
    transition: var(--pm-transition);
    padding: 16px;
}

.pm-product-minimal:hover {
    transform: translateY(-8px);
}

.pm-product-minimal__img {
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    transition: var(--pm-transition);
}

.pm-product-minimal:hover .pm-product-minimal__img {
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.pm-product-minimal__img .wp-block-image {
    margin: 0;
    width: 100%;
    height: 100%;
}

.pm-product-minimal__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pm-product-minimal:hover .pm-product-minimal__img img {
    transform: scale(1.1);
}

.pm-product-minimal h3 {
    margin: 0 0 4px 0 !important;
    transition: color 0.3s ease;
}

.pm-product-minimal:hover h3 {
    color: var(--wp--preset--color--primary) !important;
}

.pm-product-minimal p {
    margin: 0 !important;
}

/* Responsive 8-product grid */
@media (max-width: 1024px) {
    .pm-products-grid-8 {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .pm-product-minimal__img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .pm-products-grid-8 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pm-product-minimal__img {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 480px) {
    .pm-products-grid-8 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .pm-product-minimal {
        padding: 12px;
    }

    .pm-product-minimal__img {
        width: 100px;
        height: 100px;
    }
}

/* ================================ */
/* PRODUCTS SLIDER - DRAGGABLE CAROUSEL WITH VILKT CURSOR */
/* ================================ */

/* Custom "Vilkt" cursor element */
.pm-drag-cursor {
    position: fixed;
    width: 80px;
    height: 80px;
    background: var(--wp--preset--color--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 700;
    font-size: 14px;
    color: var(--wp--preset--color--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 40px rgba(255, 230, 0, 0.4);
}

.pm-drag-cursor.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.pm-drag-cursor.is-dragging {
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--primary);
}

.pm-products-slider {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    cursor: none;
}

/* Gradient fade edges for polished look */
.pm-products-slider::before,
.pm-products-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.pm-products-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--wp--preset--color--light) 0%, transparent 100%);
}

.pm-products-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--wp--preset--color--light) 0%, transparent 100%);
}

.pm-products-slider__track {
    display: flex;
    gap: 24px;
    width: max-content;
    cursor: none;
    /* GPU-accelerated smooth transform */
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    /* Allow dragging */
    user-select: none;
    -webkit-user-select: none;
    /* Smooth transitions when not dragging */
    transition: none;
}

.pm-products-slider__track.is-dragging {
    cursor: none;
}

.pm-products-slider__track.is-dragging {
    animation-play-state: paused;
    cursor: none;
}

/* Seamless infinite scroll - 50% for duplicated content */
@keyframes pm-slide-infinite {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.pm-slider-card {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
    cursor: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
    background: #fff;
}

.pm-slider-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.pm-slider-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

/* Image overlay on hover */
.pm-slider-card__image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pm-slider-card:hover .pm-slider-card__image::after {
    opacity: 1;
}

.pm-slider-card__image .wp-block-image {
    margin: 0;
    width: 100%;
    height: 100%;
}

.pm-slider-card__image figure {
    margin: 0;
    width: 100%;
    height: 100%;
}

.pm-slider-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pm-slider-card:hover .pm-slider-card__image img {
    transform: scale(1.1);
}

.pm-slider-card h3 {
    margin: 0 0 6px 0 !important;
    transition: color 0.3s ease;
}

.pm-slider-card:hover h3 {
    color: var(--wp--preset--color--primary) !important;
}

.pm-slider-card__link {
    cursor: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pm-slider-card__link:hover {
    color: var(--wp--preset--color--primary) !important;
    transform: translateX(4px);
}

/* Yellow accent line on hover - animated from center */
.pm-slider-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background: var(--wp--preset--color--primary);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
    z-index: 5;
}

.pm-slider-card:hover::before {
    width: 100%;
}

/* Top corner badge indicator */
.pm-slider-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent var(--wp--preset--color--primary) transparent transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pm-slider-card:hover::after {
    opacity: 1;
}

/* Responsive slider */
@media (max-width: 1024px) {
    .pm-slider-card {
        flex: 0 0 250px;
        min-width: 250px;
        max-width: 250px;
    }

    .pm-products-slider::before,
    .pm-products-slider::after {
        width: 50px;
    }

    .pm-drag-cursor {
        width: 70px;
        height: 70px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .pm-slider-card {
        flex: 0 0 220px;
        min-width: 220px;
        max-width: 220px;
    }

    .pm-slider-card__image {
        height: 160px;
    }

    .pm-products-slider::before,
    .pm-products-slider::after {
        width: 30px;
    }

    /* Hide custom cursor on touch devices */
    .pm-drag-cursor {
        display: none;
    }

    .pm-products-slider,
    .pm-products-slider__track,
    .pm-slider-card,
    .pm-slider-card__link {
        cursor: grab;
    }

    .pm-products-slider__track.is-dragging,
    .pm-products-slider__track.is-dragging .pm-slider-card {
        cursor: grabbing;
    }
}

@media (max-width: 480px) {
    .pm-products-slider__track {
        gap: 16px;
    }

    .pm-slider-card {
        flex: 0 0 200px;
        min-width: 200px;
        max-width: 200px;
    }

    .pm-slider-card__image {
        height: 140px;
    }

    .pm-products-slider::before,
    .pm-products-slider::after {
        display: none;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .pm-products-slider__track {
        animation: none;
    }
}

/* ================================ */
/* SERVICES PAGE STYLES */
/* ================================ */

/* Services page transitions */
.pm-service-detail-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pm-service-detail-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15) !important;
}

/* Services page list styling */
.pm-service-detail-card ul {
    list-style: none;
    padding-left: 0;
}

.pm-service-detail-card ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.pm-service-detail-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--accent);
    font-weight: bold;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    top: 2px;
}

/* Services columns on mobile */
@media (max-width: 768px) {
    .pm-service-detail-card {
        padding: 30px 25px !important;
        margin-bottom: 50px !important;
    }

    .pm-service-detail-card h2 {
        font-size: clamp(1.5rem, 4vw, 2rem) !important;
    }

    .pm-service-detail-card ul li {
        font-size: 0.95rem;
        padding-left: 28px;
    }
}

/* ================================ */
/* Filterable Services Grid */
/* ================================ */

/* Filter Navigation */
.pm-services-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 60px;
}

.pm-filter-btn {
    background: transparent;
    border: 2px solid var(--wp--preset--color--accent);
    color: var(--wp--preset--color--accent);
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
}

.pm-filter-btn:hover {
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--white);
    transform: translateY(-2px);
}

.pm-filter-btn.active {
    background: var(--wp--preset--color--primary);
    border-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--accent);
}

/* Services Grid */
.pm-services-grid-filterable {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    transition: all 0.3s ease;
}

/* Service Card with Hover */
.pm-service-card-hover {
    position: relative;
    overflow: hidden;
    background: var(--wp--preset--color--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
    display: block;
}

.pm-service-card-hover.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    height: 0;
    min-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-shadow: none;
}

.pm-service-card-hover__image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.pm-service-card-hover__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pm-service-card-hover:hover .pm-service-card-hover__image img {
    transform: scale(1.1);
}

/* Overlay that appears on hover */
.pm-service-card-hover__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 27, 27, 0.95);
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-sizing: border-box;
}

.pm-service-card-hover:hover .pm-service-card-hover__overlay {
    opacity: 1;
}

.pm-service-card-hover__title {
    color: var(--wp--preset--color--primary);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.3;
}

.pm-service-card-hover__desc {
    color: var(--wp--preset--color--white);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pm-service-card-hover__btn {
    display: inline-block;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--accent);
    padding: 12px 30px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 0;
    margin-top: auto;
}

.pm-service-card-hover__btn:hover {
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 230, 0, 0.3);
}

/* Static title below image (visible by default) */
.pm-service-card-hover__title-static {
    padding: 25px;
    background: var(--wp--preset--color--white);
}

.pm-service-card-hover__title-static h3 {
    margin: 0;
    font-size: clamp(1.125rem, 1.8vw, 1.375rem);
    font-weight: 700;
    color: var(--wp--preset--color--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* Hover effect on entire card */
.pm-service-card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .pm-services-grid-filterable {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .pm-services-grid-filterable {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pm-service-card-hover__overlay {
        padding: 20px 15px;
        text-align: center;
    }

    .pm-service-card-hover__title {
        font-size: 1.125rem;
        margin-bottom: 10px;
        line-height: 1.2;
    }

    .pm-service-card-hover__desc {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 15px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .pm-service-card-hover__btn {
        padding: 10px 25px;
        font-size: 0.8125rem;
    }
}

@media (max-width: 768px) {
    .pm-services-filter {
        gap: 10px;
        margin-bottom: 40px;
    }

    .pm-filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .pm-services-grid-filterable {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pm-service-card-hover__image {
        aspect-ratio: 16/10;
    }

    .pm-service-card-hover__title-static {
        padding: 20px;
    }

    .pm-service-card-hover__title-static h3 {
        font-size: 1.125rem;
    }
}

/* ========================================
   SINGLE SERVICE PAGE STYLES
   ======================================== */

/* Hero Section - Make responsive */
@media (max-width: 768px) {
    .pm-service-single [style*="grid-template-columns: 1fr 1fr"] {
        display: block !important;
    }

    .pm-service-single [style*="padding: 60px 20px"] {
        padding: 40px 20px !important;
    }

    .pm-service-single h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
    }
}

/* Related Services Grid - Responsive */
.pm-service-single [style*="grid-template-columns: repeat(3, 1fr)"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

@media (max-width: 640px) {
    .pm-service-single [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr;
    }
}

/* Gallery Grid - Responsive already handled by auto-fill */

/* Button Hover States */
.pm-btn-primary:hover {
    background: var(--wp--preset--color--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 230, 0, 0.3);
}

.pm-btn-secondary:hover {
    background: var(--wp--preset--color--accent) !important;
    color: var(--wp--preset--color--white) !important;
    transform: translateY(-2px);
}

/* Content Styling */
.pm-service-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 40px 0 20px 0;
    color: var(--wp--preset--color--accent);
}

.pm-service-content h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    margin: 30px 0 15px 0;
    color: var(--wp--preset--color--accent);
}

.pm-service-content ul,
.pm-service-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.pm-service-content li {
    margin: 10px 0;
    line-height: 1.8;
}

.pm-service-content strong {
    color: var(--wp--preset--color--accent);
    font-weight: 700;
}

.pm-service-content a {
    color: var(--wp--preset--color--primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.pm-service-content a:hover {
    color: var(--wp--preset--color--accent);
}

/* ========================================
   LIGHTBOX STYLES
   ======================================== */

.pm-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.pm-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(10px);
}

.pm-lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.pm-lightbox-image {
    max-width: 85%;
    max-height: 85vh;
    width: auto;
    height: auto;
    display: block;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pm-lightbox-close {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: #FFE600;
    border: none;
    border-radius: 50%;
    color: #1B1B1B;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    box-shadow: 0 4px 20px rgba(255, 230, 0, 0.4);
}

.pm-lightbox-close:hover {
    background: #E6CF00;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 230, 0, 0.6);
}

.pm-lightbox-prev,
.pm-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background: #FFE600;
    border: none;
    border-radius: 50%;
    color: #1B1B1B;
    font-size: 2.5rem;
    line-height: 0.8;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255, 230, 0, 0.4);
}

.pm-lightbox-prev {
    left: 40px;
    padding-right: 3px;
}

.pm-lightbox-next {
    right: 40px;
    padding-left: 3px;
}

.pm-lightbox-prev:hover,
.pm-lightbox-next:hover {
    background: #E6CF00;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 30px rgba(255, 230, 0, 0.6);
}

.pm-lightbox-counter {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFE600;
    color: #1B1B1B;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    z-index: 100001;
    box-shadow: 0 4px 20px rgba(255, 230, 0, 0.4);
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .pm-lightbox-content {
        padding: 60px 15px;
    }

    .pm-lightbox-image {
        max-width: 92%;
        max-height: 75vh;
    }

    .pm-lightbox-close {
        top: 15px;
        right: 15px;
        width: 48px;
        height: 48px;
        font-size: 2rem;
    }

    .pm-lightbox-prev,
    .pm-lightbox-next {
        width: 48px;
        height: 48px;
        font-size: 2rem;
    }

    .pm-lightbox-prev {
        left: 15px;
    }

    .pm-lightbox-next {
        right: 15px;
    }

    .pm-lightbox-counter {
        bottom: 20px;
        padding: 10px 24px;
        font-size: 0.875rem;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 480px) {
    .pm-lightbox-content {
        padding: 50px 10px;
    }

    .pm-lightbox-image {
        max-width: 95%;
        max-height: 70vh;
    }

    .pm-lightbox-close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 1.75rem;
    }

    .pm-lightbox-prev,
    .pm-lightbox-next {
        width: 42px;
        height: 42px;
        font-size: 1.75rem;
    }

    .pm-lightbox-prev {
        left: 10px;
    }

    .pm-lightbox-next {
        right: 10px;
    }

    .pm-lightbox-counter {
        bottom: 15px;
        padding: 8px 20px;
        font-size: 0.8125rem;
    }
}

/* Related Services - Responsive */
@media (max-width: 992px) {
    .pm-service-hero {
        padding: 60px 20px !important;
    }

    /* Content grid - Stack on tablet */
    article .wp-block-group.alignwide>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* Related services - 2 columns on tablet */
    .wp-block-group.alignfull>.wp-block-group.alignwide>div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .pm-service-hero {
        padding: 40px 20px !important;
    }

    .pm-service-hero h1 {
        font-size: 2rem !important;
        margin-bottom: 20px !important;
    }

    .pm-service-hero p {
        font-size: 1.125rem !important;
    }

    /* Button stack on mobile */
    .pm-service-hero div[style*="display:flex"] {
        flex-direction: column !important;
        width: 100%;
    }

    .pm-service-hero .wp-block-button__link {
        width: 100% !important;
        text-align: center;
    }

    /* Main content padding */
    article.wp-block-group.alignfull {
        padding: 40px 20px !important;
    }

    article .wp-block-group.alignwide h2 {
        font-size: 1.75rem !important;
    }

    article .wp-block-group.alignwide h3 {
        font-size: 1.375rem !important;
    }

    /* Sidebar sticky disabled on mobile */
    article .wp-block-group.alignwide>div>div[style*="position:sticky"] {
        position: relative !important;
        top: auto !important;
    }

    /* Related services - 1 column on mobile */
    .wp-block-group.alignfull>.wp-block-group.alignwide>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Related services padding */
    .wp-block-group.alignfull:has(h2:contains("Citi pakalpojumi")) {
        padding: 60px 20px !important;
    }

    .wp-block-group.alignfull h2 {
        font-size: 2rem !important;
        margin-bottom: 40px !important;
    }
}

/* Keyframe animation for filter fade-in */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================= */
/* GLOBAL RESPONSIVE OVERRIDES */
/* ========================================= */

@media (max-width: 992px) {

    /* Main Product Grid (Single Product Page) */
    .pm-product-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* Hero Grid (Service Pages) */
    .pm-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center;
    }

    /* Center align content in hero on mobile */
    .pm-hero-grid>div:first-child {
        order: 2;
        /* Put image on top? No, usually text first or image first depending on preference. Let's keep order but align center */
    }

    .pm-hero-grid h1 {
        font-size: 2.5rem !important;
    }

    .pm-hero-grid .wp-block-buttons,
    .pm-hero-grid div[style*="display:flex"] {
        justify-content: center !important;
    }

    /* Footer Grid */
    .pm-footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* 2 columns on tablet */
    }

    /* Product Archive Grid */
    .pm-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {

    /* Product Archive Grid */
    .pm-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    /* Related Products Grid */
    .pm-related-products {
        grid-template-columns: repeat(2, 1fr) !important;
        /* 2 cols on mobile for related */
    }

    /* Footer Grid */
    .pm-footer-grid {
        grid-template-columns: 1fr !important;
        /* 1 column on mobile */
        text-align: center;
        gap: 30px !important;
    }

    .pm-footer-grid h3,
    .pm-footer-grid h4 {
        text-align: center;
    }

    /* General Typography */
    h1 {
        font-size: 2.25rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    /* Adjust buttons on small screens to stack */
    .pm-hero-grid div[style*="display:flex"] {
        flex-direction: column;
        align-items: stretch !important;
    }

    .pm-hero-grid a {
        justify-content: center;
    }
}

@media (max-width: 480px) {

    /* Small mobile tweaks */
    .pm-products-grid,
    .pm-related-products {
        grid-template-columns: 1fr !important;
        /* 1 col on very small screens */
    }
}

/* ========================================= */
/* DEFAULT PAGE CONTENT TYPOGRAPHY (.pm-content) */
/* ========================================= */

.pm-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--wp--preset--color--accent);
    margin-top: 50px;
    margin-bottom: 25px;
    line-height: 1.2;
    position: relative;
    padding-bottom: 15px;
}

.pm-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--wp--preset--color--primary);
}

.pm-content h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--wp--preset--color--accent);
    margin-top: 40px;
    margin-bottom: 20px;
}

.pm-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pm-content ul,
.pm-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.pm-content li {
    margin-bottom: 10px;
}

.pm-content p {
    margin-bottom: 25px;
}

/* Strengthened Typography for Pages */
.pm-content h2,
.pm-content .wp-block-heading {
    margin-top: 50px !important;
    margin-bottom: 25px !important;
    position: relative;
    padding-bottom: 15px;
}

.pm-content h2::after,
.pm-content .wp-block-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--wp--preset--color--primary);
}

/* Ensure mobile responsiveness for the new banner image */
@media (max-width: 768px) {
    .post-thumbnail {
        height: 250px !important;
    }
}

/* ========================================= */
/* CONTACT FORM 7 STYLES */
/* ========================================= */

.pm-contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.pm-form-row {
    margin-bottom: 20px;
}

.pm-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--wp--preset--color--accent);
}

.pm-contact-form input[type="text"],
.pm-contact-form input[type="email"],
.pm-contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    background: #f8f9fa;
    border-radius: 0;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--wp--preset--color--accent);
}

.pm-contact-form input[type="text"]:focus,
.pm-contact-form input[type="email"]:focus,
.pm-contact-form textarea:focus {
    border-color: var(--wp--preset--color--primary);
    background: #fff;
    outline: none;
}

.pm-contact-form textarea {
    height: 150px;
}

.pm-contact-form input[type="file"] {
    padding: 10px 0;
}

.pm-contact-form input[type="submit"] {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--accent);
    border: none;
    padding: 15px 40px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.pm-contact-form input[type="submit"]:hover {
    background-color: var(--wp--preset--color--accent);
    color: #fff;
}

/* Quiz field matching input style */
.wpcf7-quiz {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    background: #f8f9fa;
}

/* ========================================= */
/* CONTACT FORM 7 DISABLED SUBMIT STYLE */
/* ========================================= */

.wpcf7-submit:disabled,
.wpcf7-submit[disabled] {
    opacity: 0.6;
    cursor: not-allowed !important;
    background-color: #ccc !important;
    color: #666 !important;
    pointer-events: none;
}

/* ========================================= */
/* FILE UPLOAD DRAG & DROP STYLES */
/* ========================================= */

/* Hide default file input wrapper from CF7 */
.wpcf7-form-control-wrap.your-file {
    display: block !important;
    width: 100%;
}

.pm-file-drop-zone {
    position: relative;
    width: 100%;
    min-height: 180px;
    padding: 40px 30px;
    border: 3px dashed #d1d5db;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pm-file-drop-zone:hover {
    border-color: var(--wp--preset--color--primary);
    background: linear-gradient(135deg, rgba(255, 230, 0, 0.1) 0%, rgba(255, 230, 0, 0.05) 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(255, 230, 0, 0.2);
}

.pm-file-drop-zone.dragover {
    border-color: var(--wp--preset--color--primary);
    background: rgba(255, 230, 0, 0.15);
    border-style: solid;
    border-width: 4px;
    transform: scale(1.03);
    box-shadow: 0 16px 32px rgba(255, 230, 0, 0.3);
}

.pm-file-drop-zone input[type="file"] {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0 !important;
    cursor: pointer;
    z-index: 10;
    padding: 0 !important;
    margin: 0 !important;
}

.pm-file-drop-content {
    pointer-events: none;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pm-file-icon {
    color: var(--wp--preset--color--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.pm-file-drop-zone:hover .pm-file-icon {
    transform: scale(1.2) translateY(-5px);
    filter: drop-shadow(0 8px 16px rgba(255, 230, 0, 0.4));
}

.pm-file-drop-zone.dragover .pm-file-icon {
    animation: bounce 0.6s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.pm-file-text {
    font-weight: 700;
    color: var(--wp--preset--color--accent);
    font-size: 1.125rem;
    margin: 0;
    line-height: 1.4;
}

.pm-file-text-hint {
    font-size: 0.875rem;
    color: var(--wp--preset--color--text-muted);
    font-weight: 500;
    margin: 0;
}

.pm-file-name {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #059669;
    font-weight: 700;
    display: none;
    background: #ecfdf5;
    padding: 14px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
    border: 2px solid #10b981;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    word-break: break-all;
}

.pm-file-name::before {
    content: "✓";
    display: inline-flex;
    width: 24px;
    height: 24px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Hide the Contact Form 7 label for file upload */
.pm-form-row:has(.pm-file-drop-zone)>label,
.wpcf7-form-control-wrap:has(.pm-file-drop-zone)+br {
    display: none !important;
}

/* Force hide the default "Choose File" button that shows when file input is visible */
.pm-file-drop-zone input[type="file"]::-webkit-file-upload-button {
    display: none !important;
    visibility: hidden !important;
}

.pm-file-drop-zone input[type="file"]::file-selector-button {
    display: none !important;
    visibility: hidden !important;
}

/* Hide any visible text from the file input */
.pm-file-drop-zone input[type="file"] {
    color: transparent !important;
    font-size: 0 !important;
}

/* Ensure small text below stays visible */
.pm-form-row small {
    display: block !important;
    margin-top: 8px;
    font-size: 0.8125rem;
    color: var(--wp--preset--color--text-muted);
}

/* Force hide all default file input elements globally in CF7 forms */
.wpcf7-form input[type="file"] {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 10 !important;
}

/* Hide the wrapper that CF7 creates */
.wpcf7-form .wpcf7-form-control-wrap {
    position: relative;
    display: block !important;
}

/* Create a fallback styled button if JS doesn't load */
.wpcf7-form .wpcf7-form-control-wrap:has(input[type="file"])::before {
    content: '📤 Velciet failu šeit vai noklikšķiniet';
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 40px 30px;
    border: 3px dashed #d1d5db;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    font-weight: 700;
    color: var(--wp--preset--color--accent);
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7-form .wpcf7-form-control-wrap:has(input[type="file"]):hover::before {
    border-color: var(--wp--preset--color--primary);
    background: linear-gradient(135deg, rgba(255, 230, 0, 0.1) 0%, rgba(255, 230, 0, 0.05) 100%);
}

/* Hide the pseudo-element when JS has created the proper drop zone */
.wpcf7-form .wpcf7-form-control-wrap:has(.pm-file-drop-zone)::before {
    display: none !important;
}