/*
Theme Name: Puzzi Rent
Theme URI: https://puzzi.rent
Author: Puzzi Rent Team
Author URI: https://puzzi.rent
Description: Profesionalna tema za najam Kärcher opreme
Version: 1.0.0
License: GPL v2 or later
Text Domain: puzzi-rent
*/

/* Base Styles */
body {
    font-family: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1D1D1D;
    background: #fff;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

h2 {
    font-size: clamp(32px, 4vw, 48px);
}

h3 {
    font-size: clamp(24px, 3vw, 32px);
}

p {
    margin-bottom: 1rem;
}

a {
    color: #FCE414;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

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

/* Lists */
ul, ol {
    padding-left: 20px;
    margin-bottom: 1rem;
}

/* Forms */
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* Buttons - Global Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
    text-align: center;
    position: relative;
}

.btn--primary {
    background: #FCE414;
    color: #1D1D1D;
    box-shadow: 0 4px 15px rgba(252, 228, 20, 0.3);
}

.btn--primary:hover {
    background: #f5d800;
    color: #1D1D1D;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 228, 20, 0.4);
    text-decoration: none;
}

.btn--secondary {
    background: transparent;
    color: #1D1D1D;
    border: 2px solid #1D1D1D;
}

.btn--secondary:hover {
    background: #1D1D1D;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pt-5 { padding-top: 3rem; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
.pb-5 { padding-bottom: 3rem; }

/* Sections */
.section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

/* Page Title */
.page-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 20px;
    color: #666;
}

/* Page Templates - Dodaj padding da sadržaj ne ide ispod headera */
.page .site-main {
    padding-top: 25px;
}

/* Blog i archive stranice */
.blog .site-main {
    padding-top: 54px;
}
.archive .site-main,
.single .site-main {
    padding-top: 120px;
}

/* SPECIFIČNI STILOVI ZA STRANICE */

/* Blog stranica */
.blog .blog-page-header {
    padding-top: 65px;
}

/* Paketi stranica */
.page-template-page-paketi .packages-page-content {
    padding-top: 110px;
}

/* FAQ stranica */
.page-template-page-faq .faq-page-content {
    padding-top: 110px;
}
.faq-page-content {
    padding-top: 110px;
}

/* Uređaji stranica */
.page-template-page-uredaji .devices-page-content {
    padding-top: 110px;
}
.devices-page-content {
    padding-top: 110px;
}

/* Kontakt stranica */
.page-template-page-kontakt .contact-page-content {
    padding-top: 65px;
}

/* Za mobilne uređaje */
@media (max-width: 768px) {
    .page .site-main {
        /* padding-top: 100px; */
    }
    
    /* Home page - nema padding */
    .home .site-main {
        padding-top: 0 !important;
    }
    
    /* Blog na mobitelu */
    .blog .site-main {
        padding-top: 64px;
    }
    
    /* Archive i single na mobitelu */
    .archive .site-main,
    .single .site-main {
        padding-top: 100px;
    }
    
    /* Blog page header */
    .blog .blog-page-header {
        padding-top: 35px;
    }
    
    /* Ostale stranice na mobitelu - koristi iste klase */
    .page-template-page-paketi .packages-page-content,
    .page-template-page-faq .faq-page-content,
    .page-template-page-uredaji .devices-page-content,
    .page-template-page-kontakt .contact-page-content {
        padding-top: 63px;
    }
}

/* Screen reader only */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* WordPress Core Styles */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #FCE414;
    color: #1D1D1D;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

.back-to-top:hover {
    background: #1D1D1D;
    color: #FCE414;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    stroke-width: 3;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Print styles */
@media print {
    .back-to-top {
        display: none !important;
    }
}

/* Hide Unajmi page title */
.page-title[data-content-id="page-title-27"] {
    display: none !important;
}

/* Padding for legal pages */
.page-id-izjava-o-privatnosti-puzzi-rent .site-main,
.page-id-opci-uvjeti-poslovanja-puzzi-rent .site-main,
body.page-slug-izjava-o-privatnosti-puzzi-rent .site-main,
body.page-slug-opci-uvjeti-poslovanja-puzzi-rent .site-main {
    padding-top: 25px;
    padding-bottom: 25px;
}

/* Padding for specific pages */
.page-id-3559 .content,
.page-id-3564 .content {
    padding-top: 25px;
    padding-bottom: 25px;
}

/* Fix for vacuum animation on mobile */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden !important;
        position: relative;
    }
    
    /* Fix for elements jumping during animation */
    .site-header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000 !important;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    .cookie-notice {
        position: fixed !important;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    .whatsapp-button,
    .whatsapp-float {
        position: fixed !important;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    /* Lower z-index for animation containers on mobile */
    .carpet-brush-container {
        z-index: 500 !important;
    }
    
    .vacuum-particles {
        z-index: 499 !important;
    }
    
    /* Ensure main content stays in place */
    main,
    .site-main {
        position: relative;
        z-index: 1;
    }
}