/*
Theme Name: iPhone Duo Test Theme (Z menu językowym)
Author: Jacek Jamroz
Description: Motyw z kuloodpornym menu rozwijanym oraz wyborem języka.
Version: 1.11
License: GNU General Public License v2 or later
Text Domain: iphone-duo-theme
*/

body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #f9fafb; color: #111827; line-height: 1.5; }
*, *::before, *::after { box-sizing: border-box; }
.dt-wrapper { width: 100%; padding-top: 70px; }
.dt-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dt-section { padding: 80px 0; }
.dt-bg-gray { background-color: #f3f4f6; }
.dt-bg-dark { background-color: #18181b; color: #ffffff; }
.dt-hero { text-align: center; padding: 100px 20px 60px; }
.dt-title { font-size: 3.5rem; font-weight: 700; margin-bottom: 20px; letter-spacing: -0.02em; }
.dt-title span { color: #2563eb; }
.dt-desc { max-width: 800px; margin: 0 auto 40px; color: #4b5563; font-size: 1.125rem; }
.dt-btn-blue { background: #2563eb; color: #fff; padding: 12px 32px; border-radius: 6px; text-decoration: none; font-weight: 600; display: inline-block; transition: background 0.3s; border: none; cursor: pointer; }
.dt-btn-blue:hover { background: #1d4ed8; color: #fff; }
.dt-hero-stats { display: flex; justify-content: center; gap: 80px; margin-top: 60px; text-align: left; }
.dt-hero-stats h3 { font-size: 2.5rem; margin: 0 0 10px 0; font-weight: 500; }
.dt-hero-stats p { color: #6b7280; margin: 0; font-size: 0.875rem; }
.dt-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; margin-bottom: 10px; display: block; }
.dt-section-title { font-size: 2.5rem; font-weight: 600; margin: 0 0 40px 0; }
.dt-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dt-stat-item i { color: #2563eb; font-size: 1.5rem; margin-bottom: 15px; display: block; font-style: normal;}
.dt-stat-value { font-size: 2.5rem; font-weight: 500; margin-bottom: 10px; }
.dt-stat-desc { color: #6b7280; font-size: 0.75rem; }

/* --- Menu Nawigacyjne (Sticky) --- */
.dt-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
    height: 70px; 
    transition: all 0.3s ease;
}

.dt-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.dt-header-left, .dt-header-right {
    display: flex;
    align-items: center;
}

.dt-logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2563eb;
    text-decoration: none;
    letter-spacing: -0.03em;
}

.dt-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}

.dt-nav-link {
    background: none;
    border: none;
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
    height: 100%; /* Aktywny hover na całej wysokości belki */
}
.dt-nav-link:hover, .dt-dropdown:hover .dt-nav-link {
    color: #000000; 
}

/* --- KULOODPORNE MENU ROZWIJANE --- */
.dt-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%; 
}

/* Niewidzialny Wrapper (Mostek) */
.dt-dropdown-content-wrapper {
    position: absolute;
    top: 100%;
    right: -10px;
    padding-top: 10px; 
    display: none;
}

.dt-dropdown:hover .dt-dropdown-content-wrapper {
    display: block;
}

/* Właściwe okienko menu */
.dt-dropdown-content {
    background-color: #ffffff;
    min-width: 210px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0,0,0,0.03); 
    border-radius: 12px;
    border: 1px solid #f3f4f6;
    overflow: hidden;
}

/* Nieco węższe okienko dla wyboru języka */
.dt-lang-content {
    min-width: 130px;
}

.dt-dropdown-content a {
    color: #4b5563;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f9fafb;
}

.dt-dropdown-content a:last-child {
    border-bottom: none;
}

/* Efekt wjeżdżania przy najechaniu na opcję */
.dt-dropdown-content a:hover {
    background-color: #f9fafb;
    color: #2563eb;
    padding-left: 24px; 
}

@media (max-width: 768px) { 
    .dt-header-inner {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }
    .dt-header {
        height: auto;
        padding: 10px 0;
    }
    .dt-wrapper {
        padding-top: 120px;
    }
    .dt-nav-link {
        height: auto;
    }
    .dt-dropdown-content-wrapper {
        right: 50%;
        transform: translateX(50%);
    }
    .dt-lang-wrapper {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}
