/*
Theme Name: Alfa Biro Theme
Theme URI: https://alfabl.com
Author: Alfa Biro
Author URI: https://alfabl.com
Description: Moderna WordPress tema za Alfa Biro - knjigovodstvo, konsalting, pravne usluge, IT i web. Potpuna podrška za višejezično (4 jezika), PHP 7.3+ i WordPress 5.0+. SVE dinamično, CAPTCHA zaštita, poruke u bazi, Google Maps, anti-scraping email/phone zaštita.
Version: 1.4.0
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alfa-biro
Domain Path: /languages
Tags: business, multilingual, accounting, consulting, legal, responsive, customizable, admin-editable, secure
*/

/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #C41E3A;
    --secondary-black: #1a1a1a;
    --dark-gray: #333333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --accent-red: #e02040;
    --text-gray: #555555;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 'Arial Unicode MS', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* Cyrillic font support */
body[lang*="sr-Cyrl"],
.lang-sr-cyrl {
    font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'DejaVu Sans', sans-serif;
}

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

a {
    text-decoration: none;
    color: var(--primary-red);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-red);
}

/* ===== HEADER STYLES ===== */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 60px;
    width: auto;
}

/* ===== NAVIGATION ===== */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-navigation a {
    color: var(--secondary-black);
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-black);
}

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher {
    position: relative;
    margin-left: 1rem;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    border: 2px solid var(--primary-red);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary-black);
    transition: all 0.3s ease;
}

.lang-current:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

.lang-flag {
    font-size: 1.2rem;
}

.lang-code {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.lang-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.language-switcher:hover .lang-arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: var(--white);
    border: 2px solid var(--primary-red);
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    list-style: none;
    padding: 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-switcher:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li {
    margin: 0;
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--secondary-black);
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--light-gray);
}

.lang-menu li:last-child a {
    border-bottom: none;
}

.lang-menu a:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

.lang-name {
    font-size: 0.95rem;
}

/* ===== SLIDESHOW ===== */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: var(--light-gray);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 3rem;
    border-radius: 10px;
    max-width: 800px;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.slideshow-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot.active {
    background-color: var(--primary-red);
    transform: scale(1.2);
}

/* ===== MAIN CONTENT ===== */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    color: var(--secondary-black);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-red);
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.2);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-black);
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===== CONTACT FORM ===== */
.contact-section {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-black);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 1rem 3rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--secondary-black);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
    color: #cccccc;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 1rem;
    }

    .main-navigation ul.active {
        display: flex;
    }

    .hero-slideshow {
        height: 400px;
    }

    .slide-content {
        padding: 2rem 1.5rem;
        max-width: 90%;
        width: 90%;
    }

    .slide-content h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .slide-content p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 1rem;
    }

    .site-logo img {
        height: 45px;
    }

    .hero-slideshow {
        height: 350px;
    }

    .slide-content {
        padding: 1.5rem 1rem;
        max-width: 95%;
        width: 95%;
    }

    .slide-content h2 {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }

    .slide-content p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .btn-primary {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .slideshow-controls {
        bottom: 15px;
    }

    .slide-dot {
        width: 10px;
        height: 10px;
    }

    .site-main {
        padding: 2rem 1rem;
    }
}