/*
Theme Name: Pomiary YDI PRO
Theme URI: http://pomiary.ydi.pl
Author: Łukasz
Description: Profesjonalny motyw dla usług pomiarów elektrycznych z ostatecznymi poprawkami układu.
Version: 5.1
Text Domain: pomiary-ydi
*/

/* --- USTAWIENIA GŁÓWNE --- */
html {
    scroll-behavior: smooth;
}

:root {
    --primary-yellow: #ffcc00;
    --primary-blue: #0056b3; 
    --bg-light: #f4f7f6; 
    --text-dark: #333333; 
    --card-bg: #ffffff; 
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- NAWIGACJA I LOGO --- */
.main-nav {
    position: fixed; top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 50px; box-sizing: border-box;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.8em; font-weight: 900;
    color: var(--primary-blue); text-decoration: none;
    letter-spacing: 2px;
    display: flex; align-items: center; gap: 10px;
}

@keyframes pulseGlow {
    0% { transform: scale(1); color: var(--primary-yellow); text-shadow: 0 0 5px rgba(255,204,0,0.5); }
    50% { transform: scale(1.1); color: #ff9900; text-shadow: 0 0 15px rgba(255,153,0,0.8); }
    100% { transform: scale(1); color: var(--primary-yellow); text-shadow: 0 0 5px rgba(255,204,0,0.5); }
}

.logo i { animation: pulseGlow 2s infinite; }

.nav-links { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav-links a { color: var(--text-dark); text-decoration: none; font-weight: 600; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary-blue); }

/* --- SEKCJA GŁÓWNA (WIDEO) --- */
.hero-section {
    position: relative; height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden; color: white;
}

.background-video {
    position: absolute; top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    transform: translate(-50%, -50%); z-index: -1; object-fit: cover;
    filter: brightness(0.6);
}

.hero-content {
    background: rgba(0, 86, 179, 0.6); padding: 50px;
    border-radius: 20px; border-bottom: 6px solid var(--primary-yellow);
    backdrop-filter: blur(5px);
}

.hero-content h1 { font-size: 3.5em; margin: 0 0 15px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.3em; margin-bottom: 30px; }

.btn {
    display: inline-block; background-color: var(--primary-yellow);
    color: var(--text-dark); padding: 15px 40px;
    font-size: 1.2em; font-weight: bold; text-decoration: none;
    border-radius: 50px; transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4);
}
.btn:hover {
    transform: translateY(-5px); background-color: var(--primary-blue);
    color: white; box-shadow: 0 8px 25px rgba(0, 86, 179, 0.4);
}

/* --- WSPÓLNE STYLE DLA SEKCJI (Bardziej zwarte) --- */
.section { padding: 65px 20px; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2.5em; margin-bottom: 40px; color: var(--primary-blue); }
.section-title::after { content: ''; display: block; width: 80px; height: 4px; background: var(--primary-yellow); margin: 15px auto 0; border-radius: 2px; }

/* --- KAFELKI (Usługi i Cennik) --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }

.card {
    background: var(--card-bg); padding: 40px; border-radius: 15px;
    text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 5px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-icon {
    font-size: 3.5em; color: var(--primary-blue); margin-bottom: 20px;
    transition: transform 0.4s ease, color 0.4s ease;
}

.card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 86, 179, 0.15);
    border-top: 5px solid var(--primary-blue);
}
.card:hover .card-icon { transform: scale(1.2) rotate(5deg); color: var(--primary-yellow); }

.card h3 { font-size: 1.5em; color: var(--primary-blue); margin-bottom: 15px; }
.price { font-size: 2.5em; color: var(--text-dark); font-weight: 900; margin: 20px 0; }
.price span { color: var(--primary-yellow); }

/* --- PANEL INFORMACJI DODATKOWYCH --- */
.info-banner {
    margin-top: 40px;
    background: var(--card-bg);
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: left;
    border-left: 6px solid var(--primary-yellow);
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px 40px; 
}

.info-banner p {
    margin: 10px 0;
    font-size: 1.1em;
    display: flex;
    align-items: flex-start; 
    gap: 15px; 
}

.info-banner i {
    color: var(--primary-blue);
    font-size: 1.5em;
    width: 30px;
    text-align: center;
    flex-shrink: 0; 
    margin-top: 3px; 
}

/* --- SEKCJA KONTAKT (Z formularzem) --- */
.contact-box {
    background: var(--primary-blue); color: white; padding: 50px;
    border-radius: 20px; box-shadow: 0 10px 30px rgba(0,86,179,0.3);
}

.contact-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    text-align: left; align-items: center;
}

.contact-info h3 { margin-top: 0; font-size: 2.2em; }
.contact-phone {
    font-size: 3.5em; color: var(--primary-yellow); text-decoration: none;
    font-weight: 900; display: inline-block; margin: 20px 0; transition: transform 0.3s;
}
.contact-phone:hover { transform: scale(1.1) rotate(2deg); }

.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px; border: 2px solid transparent; border-radius: 8px;
    font-size: 1em; font-family: inherit; box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--primary-yellow); box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-form button {
    background-color: var(--primary-yellow); color: var(--text-dark);
    border: none; padding: 15px; font-size: 1.2em; font-weight: bold;
    border-radius: 8px; cursor: pointer; transition: background-color 0.3s, transform 0.3s;
}
.contact-form button:hover {
    background-color: white; color: var(--primary-blue); transform: translateY(-3px);
}

/* --- STOPKA I ANIMACJE --- */
.site-footer { 
    background: #ffffff; text-align: center; padding: 30px 20px; 
    border-top: 1px solid #eaeaea; color: #666; font-size: 1.1em;
}

@keyframes heartbeat {
    0% { transform: scale(1); color: #ff4d4d; }
    30% { transform: scale(1.3); color: #ff1a1a; }
    50% { transform: scale(1); color: #ff4d4d; }
    70% { transform: scale(1.3); color: #ff1a1a; }
    100% { transform: scale(1); color: #ff4d4d; }
}
.footer-heart { display: inline-block; animation: heartbeat 1.5s infinite; margin: 0 5px; }
.footer-coffee { color: #6f4e37; margin: 0 5px; }
.footer-author-link { color: var(--primary-blue); text-decoration: none; font-weight: 800; transition: color 0.3s; }
.footer-author-link:hover { color: var(--primary-yellow); }

/* --- WERSJA MOBILNA --- */
@media (max-width: 768px) {
    .main-nav { flex-direction: column; padding: 15px; }
    .nav-links { margin-top: 15px; gap: 15px; flex-wrap: wrap; justify-content: center; }
    .hero-content { padding: 30px; margin: 0 20px; }
    .hero-content h1 { font-size: 2.2em; }
    .info-banner { grid-template-columns: 1fr; padding: 20px; }
    .contact-wrapper { grid-template-columns: 1fr; text-align: center; }
    .contact-phone { font-size: 2.5em; }
}