/*
 Theme Name:   GeneratePress Child - Ozdoba
 Theme URI:    https://dev46.leowebmarketing.pro
 Description:  GeneratePress Child Theme - Pixel Perfect Divi Clone
 Author:       LeoWebMarketing
 Author URI:   https://leowebmarketing.pro
 Template:     generatepress
 Version:      2.0.0
 Text Domain:  generatepress-child-ozdoba
*/

/* ==========================================================================
   Google Fonts Import
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Lobster&family=Source+Sans+Pro:wght@300;400;600;700&display=swap");

/* ==========================================================================
   Variables (matching Divi original)
   ========================================================================== */
:root {
    --ozdoba-green: #3a6c35;
    --ozdoba-orange: #f5a623;
    --ozdoba-dark: #333333;
    --ozdoba-light: #ffffff;
    --ozdoba-gray: #666666;
}

/* ==========================================================================
   Global Resets for Pixel Perfect
   ========================================================================== */
.page-id-240850 .site-content {
    padding: 0 !important;
    margin: 0 !important;
}

.page-id-240850 .content-area {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.page-id-240850 #primary {
    margin: 0 !important;
    padding: 0 !important;
}

.page-id-240850 .inside-article {
    padding: 0 !important;
}

.page-id-240850 .entry-content {
    margin: 0 !important;
}

/* Remove sidebar on homepage */
.page-id-240850 #right-sidebar,
.page-id-240850 .sidebar,
.page-id-240850 .widget-area {
    display: none !important;
}

/* ==========================================================================
   Top Bar (Trust Bar)
   ========================================================================== */
.ozdoba-top-bar {
    background-color: var(--ozdoba-green);
    color: var(--ozdoba-light);
    padding: 10px 0;
    font-size: 14px;
    font-family: "Source Sans Pro", sans-serif;
}

.ozdoba-top-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    padding: 0 20px;
}

.ozdoba-top-bar .usp-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.ozdoba-top-bar a {
    color: var(--ozdoba-light);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.ozdoba-top-bar a:hover {
    opacity: 0.8;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: var(--ozdoba-light);
}

.main-navigation .main-nav ul li a {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 15px;
    text-transform: none;
    color: var(--ozdoba-dark);
}

.main-navigation .main-nav ul li a:hover {
    color: var(--ozdoba-green);
}

/* ==========================================================================
   Hero Slider Section - Full Width
   ========================================================================== */
.ozdoba-hero-slider-container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 0 !important;
    position: relative;
}

.ozdoba-hero-fullwidth-slider {
    margin: 0 !important;
    width: 100% !important;
}

.ozdoba-hero-fullwidth-slider .wp-block-image {
    margin: 0 !important;
}

.ozdoba-hero-fullwidth-slider .wp-block-image img {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* Phone overlay on hero - Divi style */
.hero-phones-overlay {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.hero-phones-overlay a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ozdoba-orange);
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 10px;
    font-family: "Source Sans Pro", sans-serif;
}

/* ==========================================================================
   Brand Logos Section - Grayscale Effect
   ========================================================================== */
.brand-logos-row {
    gap: 20px !important;
}

.brand-logo-grayscale img {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    max-height: 80px;
    width: auto;
}

.brand-logo-grayscale:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================================================
   About Section - Green Gradient
   ========================================================================== */
.ozdoba-about-section {
    font-family: "Source Sans Pro", sans-serif;
}

.ozdoba-about-section h4 {
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.ozdoba-about-section h2 {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 20px;
}

.ozdoba-about-section h2 span[style*="Lobster"] {
    font-family: "Lobster", cursive !important;
}

.ozdoba-about-section p {
    font-size: 16px;
    line-height: 1.8;
}

.ozdoba-about-section a {
    color: var(--ozdoba-light) !important;
    text-decoration: underline;
}

.ozdoba-about-section .wp-block-separator {
    border-color: rgba(255,255,255,0.3) !important;
    width: 100px;
    margin: 20px 0 30px 0;
}

/* ==========================================================================
   Stats Section - Dark Background
   ========================================================================== */
.ozdoba-stats-section {
    font-family: "Source Sans Pro", sans-serif;
}

.ozdoba-stats-section h2 {
    font-size: 72px !important;
    font-weight: 700 !important;
    margin-bottom: 10px;
}

.ozdoba-stats-section h3 {
    font-size: 18px !important;
    font-weight: 400 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Partners Section
   ========================================================================== */
.partners-logos .wp-block-column {
    text-align: center;
}

.partner-logo-grayscale img {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
    max-height: 100px;
    width: auto;
}

.partner-logo-grayscale:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.ozdoba-projects-gallery {
    gap: 5px !important;
}

.ozdoba-projects-gallery .wp-block-image {
    margin: 0 !important;
    overflow: hidden;
}

.ozdoba-projects-gallery .wp-block-image img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ozdoba-projects-gallery .wp-block-image:hover img {
    transform: scale(1.1);
    opacity: 0.8;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.ozdoba-contact-section {
    font-family: "Source Sans Pro", sans-serif;
}

.ozdoba-contact-section h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
}

.ozdoba-contact-section h3 a {
    color: var(--ozdoba-dark) !important;
    text-decoration: none;
}

.ozdoba-contact-section h3 a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Floating Buttons - Telegram & WhatsApp
   ========================================================================== */
#ozdoba-telegram-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #0088cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,136,204,0.4);
    z-index: 99998;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#ozdoba-telegram-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,136,204,0.5);
    color: #fff;
}

#ozdoba-telegram-btn svg {
    width: 28px;
    height: 28px;
}

#ozdoba-whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37,211,102,0.4);
    z-index: 99998;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#ozdoba-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37,211,102,0.5);
    color: #fff;
}

#ozdoba-whatsapp-btn svg {
    width: 28px;
    height: 28px;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
    .ozdoba-top-bar .container {
        gap: 15px;
    }
    
    .ozdoba-about-section h2 {
        font-size: 28px;
    }
    
    .ozdoba-stats-section h2 {
        font-size: 48px !important;
    }
}

@media (max-width: 768px) {
    .ozdoba-top-bar {
        padding: 8px 0;
        font-size: 12px;
    }
    
    .ozdoba-top-bar .container {
        gap: 10px;
    }
    
    .brand-logo-grayscale img {
        max-height: 50px;
    }
    
    .ozdoba-about-section {
        padding: 40px 20px !important;
    }
    
    .ozdoba-about-section h2 {
        font-size: 24px;
    }
    
    .ozdoba-stats-section h2 {
        font-size: 36px !important;
    }
    
    .ozdoba-stats-section h3 {
        font-size: 14px !important;
    }
    
    #ozdoba-telegram-btn,
    #ozdoba-whatsapp-btn {
        width: 45px;
        height: 45px;
    }
    
    #ozdoba-telegram-btn {
        bottom: 80px;
        right: 15px;
    }
    
    #ozdoba-whatsapp-btn {
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .ozdoba-top-bar .usp-item:nth-child(n+4) {
        display: none;
    }
    
    .ozdoba-about-section h2 {
        font-size: 20px;
    }
    
    .ozdoba-stats-section h2 {
        font-size: 28px !important;
    }
    
    .ozdoba-projects-gallery {
        columns: 3 !important;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .ozdoba-top-bar,
    #ozdoba-telegram-btn,
    #ozdoba-whatsapp-btn {
        display: none !important;
    }
}

/* ==========================================================================
   Header - Pixel Perfect Match to Divi
   ========================================================================== */
.site-header {
    background: #fff !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

/* Logo styling */
.site-logo img {
    max-height: 50px !important;
    width: auto !important;
}

/* Hide site title text next to logo */
.main-title,
.site-title,
.site-branding .site-title {
    display: none !important;
}

/* Navigation - single row like Divi */
.main-navigation {
    display: flex !important;
    align-items: center !important;
}

.main-navigation .menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 5px !important;
}

.main-navigation .menu > li {
    margin: 0 !important;
}

.main-navigation .menu > li > a {
    color: var(--ozdoba-green) !important;
    font-family: "Source Sans Pro", sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 10px 12px !important;
    text-transform: none !important;
}

.main-navigation .menu > li > a:hover {
    color: var(--ozdoba-orange) !important;
}

/* Compact header container */
.site-header .inside-header {
    padding: 10px 20px !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

/* Header layout - logo left, menu right */
.inside-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Navigation wrapper */
#site-navigation {
    flex-grow: 1 !important;
    display: flex !important;
    justify-content: flex-end !important;
}

/* Phone number in menu */
.main-navigation .menu > li.menu-item-has-children > a:before,
.main-navigation .menu-item a[href^="tel:"] {
    color: var(--ozdoba-green) !important;
}

/* Dropdown arrow styling */
.main-navigation .sf-arrow {
    font-size: 10px !important;
    margin-left: 5px !important;
}

/* Search icon */
.navigation-search {
    margin-left: 15px !important;
}

.navigation-search a {
    color: var(--ozdoba-green) !important;
    font-size: 18px !important;
}

/* Hide hamburger on desktop */
.menu-toggle {
    display: none !important;
}

@media (min-width: 1024px) {
    .main-navigation .menu {
        display: flex !important;
    }
}


/* ==========================================================================
   Hero Section - Full Width & Phone Overlay
   ========================================================================== */
.ozdoba-hero-slider-container,
.wp-block-group.ozdoba-hero-slider-container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 0 !important;
    position: relative !important;
}

.ozdoba-hero-slider-container figure,
.ozdoba-hero-slider-container img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Phone overlay on hero */
.ozdoba-hero-phones {
    position: absolute !important;
    left: 20px !important;
    top: 100px !important;
    z-index: 100 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.ozdoba-hero-phones a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: var(--ozdoba-orange) !important;
    text-decoration: none !important;
    font-family: "Source Sans Pro", sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.ozdoba-hero-phones a:hover {
    color: #fff !important;
}

.ozdoba-hero-phones .phone-icon {
    width: 35px !important;
    height: 35px !important;
    background: var(--ozdoba-orange) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
}

.ozdoba-hero-phones .phone-icon svg {
    width: 18px !important;
    height: 18px !important;
}

/* Make hero images stack for slider effect */
.ozdoba-hero-slider-container .wp-block-image {
    margin: 0 !important;
}

/* Hide second hero slide - create slider effect */
.ozdoba-hero-slider-container figure:not(:first-child) {
    display: none !important;
}


/* ==========================================================================
   Fix: Hero Full Width + Phone Overlay Position
   ========================================================================== */
/* Force hero container to be full-width */
.page-id-240850 .entry-content > .wp-block-group:first-child,
.wp-block-group.ozdoba-hero-slider-container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 0 !important;
    position: relative !important;
}

/* Fix phone overlay - single instance, proper positioning */
.ozdoba-hero-phones {
    position: fixed !important;
    left: 30px !important;
    top: 150px !important;
    z-index: 9999 !important;
}

/* Remove duplicate phone overlays if any */
.ozdoba-hero-phones + .ozdoba-hero-phones,
.ozdoba-hero-phones ~ .ozdoba-hero-phones {
    display: none !important;
}

/* Hero slider container fix */
.page-id-240850 .entry-content {
    overflow: visible !important;
}

.page-id-240850 .content-area {
    overflow: visible !important;
}


/* ==========================================================================
   Logo Override - Force Image Display
   ========================================================================== */
.site-logo a {
    display: block !important;
    background-image: url('https://dev46.leowebmarketing.pro/wp-content/uploads/2026/01/ozdoba-logo-geometric.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    width: 200px !important;
    height: 62px !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
}

.site-logo img {
    opacity: 0 !important;
    position: absolute !important;
}

/* If no logo tag, target site-branding */
.site-branding .site-title a,
.site-branding > a {
    display: block !important;
    background-image: url('https://dev46.leowebmarketing.pro/wp-content/uploads/2026/01/ozdoba-logo-geometric.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    width: 200px !important;
    height: 62px !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    font-size: 0 !important;
}


/* ==========================================================================
   Logo Fix - Show the actual image properly
   ========================================================================== */
/* Reset previous bad styles */
.site-logo a {
    text-indent: 0 !important;
    background-image: none !important;
    width: auto !important;
    height: auto !important;
}

.site-logo img {
    opacity: 1 !important;
    position: relative !important;
    max-height: 60px !important;
    width: auto !important;
    display: block !important;
}

.site-branding-container {
    display: flex !important;
    align-items: center !important;
}

/* Hide site title text, show only logo image */
.site-branding .main-title {
    display: none !important;
}

.site-branding {
    display: none !important;
}

/* Make sure logo container is visible */
.site-logo {
    display: block !important;
}

