/*
Theme Name: Kiru-Fon Kft.
Author: Synetiq it
Description: Kiru-Fon Kft.
Version: 1
*/

:root {
    --color-anthracite: #383e42;
    --color-yellow: #f7a600;
    --color-light: #f4f4f4;
    --color-white: #ffffff;
    --transition-smooth: all 0.4s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-anthracite);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

.animate-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    background-color: rgba(56, 62, 66, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0;
    gap: 60px;
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-logo {
    display: block;
    height: 88px;
    width: auto;
    margin: 0;
    padding: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.desktop-nav ul {
    display: flex;
    gap: 60px;
    align-items: center;
}

.desktop-nav a {
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.15rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

.desktop-nav a:hover {
    color: var(--color-yellow);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-yellow);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.mobile-menu-icon {
    display: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-anthracite);
    z-index: 2000;
    transition: right 0.4s ease;
    padding: 60px 0 0;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px 20px;
    flex: 1;
    overflow-y: auto;
}

.mobile-sidebar ul a {
    color: var(--color-white);
    font-size: 1.2rem;
    display: block;
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-sidebar ul a:hover {
    color: var(--color-yellow);
    padding-left: 15px;
}

.mobile-sidebar-bottom {
    width: 100%;
    margin-top: auto;
}

.mobile-sidebar-bottom a {
    display: block;
    width: 100%;
}

.mobile-sidebar-bottom img {
    width: 100%;
    height: auto;
    max-height: 25vh;
    object-fit: contain;
    display: block;
    transition: transform 0.3s;
}

.mobile-sidebar-bottom a:hover img {
    transform: scale(1.03);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--color-white);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 2010;
}

.close-btn:hover {
    color: var(--color-yellow);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1500;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.overlay.active {
    display: block;
    opacity: 1;
}

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 90px;
}

.info-block-desktop {
    position: absolute;
    top: 90px;
    left: 0;
    z-index: 10;
}

.info-block-desktop img {
    height: 120px;
    width: auto;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    display: block;
}

.info-block-desktop:hover img {
    transform: scale(1.03);
}

.hero-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.4);
    z-index: -1;
}

.hero-content {
    color: var(--color-white);
    z-index: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -15vh;
}

.hero-logo {
    max-width: 600px;
    margin-top: 0;
    margin-bottom: -80px;
    padding: 0;
    display: block;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--color-yellow);
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    line-height: 0.8;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: 15px;
    position: relative;
    z-index: 2;
}

.content-section {
    padding: 100px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2.5rem;
    color: var(--color-anthracite);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-yellow);
    margin: 15px auto 0;
    border-radius: 2px;
}

.bg-light { background-color: var(--color-light); }
.bg-dark { background-color: var(--color-anthracite); }
.text-white { color: var(--color-white); }
.text-white h2 { color: var(--color-white); }
.text-yellow { color: var(--color-yellow); }

.intro-box {
    background: linear-gradient(135deg, var(--color-anthracite), #2c3135);
    border-left: 8px solid var(--color-yellow);
    padding: 40px 50px;
    margin-bottom: 60px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.intro-box::before {
    content: '\f0a1';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 150px;
    color: rgba(255,255,255,0.03);
    transform: rotate(-15deg);
}

.intro-box h3 {
    color: var(--color-yellow);
    font-size: 2.4rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 2;
}

.intro-box p {
    font-size: 1.4rem;
    line-height: 1.8;
    font-weight: 400;
    color: #f4f4f4;
    position: relative;
    z-index: 2;
}

.service-alternating {
    margin-bottom: 80px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    width: 100%;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-text {
    width: calc(50% - 25px);
    padding: 0;
    text-align: left;
}

.service-row.reverse .service-text {
    text-align: right;
}

.service-text h3 {
    font-size: 2.2rem;
    color: var(--color-anthracite);
    margin-bottom: 5px;
}

.service-text p {
    font-size: 1.3rem;
    color: #555;
    font-weight: 500;
}

.service-image {
    width: calc(50% - 25px);
    display: flex;
    justify-content: flex-end;
}

.service-row.reverse .service-image {
    justify-content: flex-start;
}

.service-image img {
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: block;
    transition: transform 0.4s ease;
    margin: 0;
}

.service-image img:hover {
    transform: scale(1.03);
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-item {
    background: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 4px solid var(--color-yellow);
    transition: transform 0.3s;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.grid-item h4 {
    color: var(--color-anthracite);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.grid-item ul {
    list-style-type: none;
}

.grid-item ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.grid-item ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--color-yellow);
}

.info-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    font-size: 1.2rem;
}

.info-card p {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.map-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.contact-item {
    padding: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: background 0.3s;
}

.contact-item:hover {
    background: rgba(255,255,255,0.1);
}

.contact-item i {
    color: var(--color-yellow);
    margin-bottom: 15px;
}

.btn-yellow {
    display: inline-block;
    margin-top: 10px;
    background: var(--color-yellow);
    color: var(--color-anthracite);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}

.btn-yellow:hover {
    background: #ffb82e;
    color: var(--color-anthracite);
}

.site-footer {
    background-color: #222;
    color: #888;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .header-container {
        justify-content: space-between;
        width: 92%;
        gap: 0;
    }

    .header-logo {
        height: 55px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-icon {
        display: block;
    }

    .info-block-desktop {
        display: none;
    }
    
    .hero-logo {
        max-width: 320px;
        margin-bottom: -30px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        margin-top: -10px;
        line-height: 1;
    }
    
    .content-section {
        padding: 60px 20px;
    }

    .service-row, .service-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .service-text, .service-row.reverse .service-text {
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .service-image, .service-row.reverse .service-image {
        width: 100%;
        justify-content: center;
    }
}