/* === HOME GUARDS SERWIS — STYLE.CSS === */
/* === Premium Design with Accent Color System === */

/* --- DESIGN TOKENS --- */
:root {
    --color-primary: #0a1128;
    --color-primary-light: #1a2744;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-accent-glow: rgba(37, 99, 235, 0.25);
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-text: #1e272e;
    --color-text-light: #64748b;
    --color-bg: #ffffff;
    --color-bg-subtle: #f8fafc;
    --color-border: #e2e8f0;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
    --transition: 0.3s ease;
}

/* --- RESET & BASE --- */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6; 
    color: var(--color-text); 
    background-color: var(--color-bg); 
}

/* --- NAWIGACJA --- */
header { 
    background: rgba(255,255,255,0.95); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 2000; 
    box-shadow: none;
    transition: box-shadow 0.4s ease;
}
header.scrolled { 
    box-shadow: 0 2px 20px rgba(0,0,0,0.1); 
}
nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}
.logo-img { height: 65px; }
.logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-text { color: var(--color-primary); font-size: 1.4rem; font-weight: 700; }
.nav-links a { 
    color: var(--color-primary); 
    text-decoration: none; 
    margin-left: 20px; 
    font-weight: 700; 
    font-size: 0.9rem; 
    transition: var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--color-accent); }
.nav-links a:hover::after { width: 100%; }
.nav-phone { color: var(--color-accent) !important; }
.nav-phone::after { display: none !important; }

/* --- HERO SLIDER z KEN BURNS --- */
.hero { 
    height: 85vh; 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    text-align: center;
    margin-top: 85px;
}
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 1;
    transform: scale(1);
}
.slide.active { 
    opacity: 1; 
    animation: kenBurns 7s ease-out forwards;
}
@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}
.photo-camera-slider { background-position: 50% 40%; }

/* Gradient overlay instead of flat black */
.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 17, 40, 0.75) 0%,
        rgba(10, 17, 40, 0.35) 45%,
        rgba(10, 17, 40, 0.65) 100%
    );
    z-index: 2;
}
.hero-content { 
    position: relative; 
    z-index: 3; 
    max-width: 850px; 
    padding: 20px; 
    animation: fadeInUp 1.5s ease;
}
.hero h1 { 
    font-size: 3.8rem; 
    margin-bottom: 20px; 
    font-weight: 900; 
    line-height: 1.1; 
    text-shadow: 2px 4px 20px rgba(0,0,0,0.4);
    letter-spacing: -0.02em;
}
.hero p { 
    font-size: 1.3rem; 
    margin-bottom: 40px; 
    text-shadow: 1px 2px 8px rgba(0,0,0,0.4);
    opacity: 0.95;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}
@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(30px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* --- PRZYCISKI --- */
.btn-more { 
    background: var(--color-accent); 
    color: white; 
    padding: 16px 40px; 
    text-decoration: none; 
    border-radius: 6px; 
    font-weight: 700; 
    display: inline-block; 
    border: 2px solid var(--color-accent);
    transition: all 0.3s ease;
    text-transform: uppercase;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    letter-spacing: 0.5px;
}
.btn-more:hover { 
    background: var(--color-accent-hover); 
    border-color: var(--color-accent-hover); 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}
.btn-hero {
    background: var(--color-accent);
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-hero:hover {
    background: var(--color-accent-hover);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}
.btn-sm { padding: 12px 24px; font-size: 0.8rem; }
.btn-full { width: 100%; }
.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}
.btn-outline:hover {
    background: var(--color-accent);
    color: white;
}

/* --- USŁUGI --- */
.services { 
    padding: 100px 20px; 
    max-width: 1200px; 
    margin: 0 auto; 
    background: var(--color-bg);
}
.section-title { 
    text-align: center; 
    margin-bottom: 20px; 
    font-size: 2.8rem; 
    color: var(--color-primary); 
    font-weight: 900;
    letter-spacing: -0.02em;
}
.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.15rem;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 35px; }
.card { 
    background: white; 
    border-radius: var(--radius); 
    overflow: hidden; 
    box-shadow: var(--shadow-sm); 
    transition: all 0.4s ease; 
    border: 1px solid var(--color-border); 
    text-align: center; 
}
.card:hover { 
    transform: translateY(-12px); 
    box-shadow: var(--shadow-lg); 
}
.img-box { width: 100%; height: 260px; overflow: hidden; background: #1a1a2e; }
.card-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.6s ease;
}
.card:hover .card-img { transform: scale(1.08); }
.card-body { padding: 30px; border-top: 4px solid var(--color-accent); }
.card h3 { 
    font-size: 1.4rem; 
    margin-bottom: 12px; 
    color: var(--color-primary); 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}
.card p { 
    color: var(--color-text-light); 
    margin-bottom: 20px; 
    line-height: 1.7; 
}

/* --- MODALE --- */
.modal { 
    display: none; position: fixed; z-index: 5000; 
    left: 0; top: 0; width: 100%; height: 100%; 
    background-color: rgba(10,17,40,0.85); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.modal-content { 
    background-color: white; 
    margin: 5% auto; 
    padding: 45px; 
    border-radius: var(--radius-lg); 
    max-width: 700px; 
    width: 90%; 
    position: relative; 
    animation: slideIn 0.4s ease;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}
@keyframes slideIn { 
    from { opacity: 0; transform: translateY(-30px) scale(0.95); } 
    to { opacity: 1; transform: translateY(0) scale(1); } 
}
.close { 
    position: absolute; right: 20px; top: 12px; 
    font-size: 32px; cursor: pointer; color: #aaa; 
    background: none; border: none; padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}
.close:hover { color: var(--color-primary); background: var(--color-bg-subtle); }
.modal h2 { 
    margin-bottom: 25px; 
    color: var(--color-primary); 
    border-bottom: 4px solid var(--color-accent); 
    display: inline-block; 
    padding-bottom: 8px; 
}
.modal ul { margin: 20px 0; padding-left: 25px; text-align: left; }
.modal li { margin-bottom: 15px; font-size: 1.1rem; line-height: 1.6; color: var(--color-text); }

/* --- SEKCJA ZAUFANIA (TRUST) --- */
.trust {
    padding: 80px 20px;
    background: var(--color-bg-subtle);
    text-align: center;
}
.trust .section-title { margin-bottom: 50px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 50px;
}
.stat {
    padding: 30px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}
.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}
.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    display: block;
    font-size: 0.95rem;
    color: var(--color-text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.brands {
    max-width: 700px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}
.brands-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.brands-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}
.brands-list a {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--color-primary);
    opacity: 0.35;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s;
}
.brands-list a:hover { opacity: 1; color: var(--color-accent); }

/* --- KONTAKT --- */
.contact { 
    background: var(--color-primary); 
    color: white; 
    padding: 100px 20px; 
    text-align: center; 
}
.contact-inner { max-width: 600px; margin: 40px auto; }
.contact-title { 
    font-size: 2.5rem; 
    margin-bottom: 15px; 
    font-weight: 900; 
    letter-spacing: -0.02em;
}
.contact-subtitle { 
    margin-bottom: 35px; 
    opacity: 0.85; 
    font-size: 1.1rem;
}
.contact-inner input, .contact-inner textarea { 
    width: 100%; 
    padding: 16px 18px; 
    margin-bottom: 15px; 
    border-radius: 8px; 
    border: 2px solid transparent; 
    font-size: 1rem; 
    font-family: inherit;
    background: rgba(255,255,255,0.95);
    color: var(--color-text);
    transition: all 0.3s ease;
}
.contact-inner input:focus, .contact-inner textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px var(--color-accent-glow);
    background: #fff;
    transform: translateY(-1px);
}
.contact-inner input::placeholder, .contact-inner textarea::placeholder {
    color: #94a3b8;
}
.contact-links { margin-top: 35px; font-weight: bold; }
.contact-links p { margin-bottom: 8px; font-size: 1.05rem; }
.contact-links a { color: #fff; text-decoration: none; transition: color 0.3s; }
.contact-links a:hover { color: var(--color-accent); }

/* --- HONEYPOT --- */
.honeypot { display: none; }

/* --- STOPKA --- */
footer { 
    background: #050a1a; 
    color: white; 
    text-align: center; 
    padding: 60px 20px; 
}
.footer-logo { 
    height: 60px; 
    filter: grayscale(1) brightness(3); 
    margin-bottom: 25px; 
    opacity: 0.8;
    transition: opacity 0.3s;
}
.footer-logo:hover { opacity: 1; }
.footer-info { margin-top: 15px; font-size: 0.95rem; opacity: 0.6; }
.footer-copy { font-size: 0.8rem; opacity: 0.3; margin-top: 35px; }

/* --- HAMBURGER MENU --- */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.hamburger span { display: block; width: 28px; height: 3px; background: var(--color-primary); margin: 5px 0; border-radius: 3px; transition: 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- TOAST NOTIFICATIONS --- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 18px 28px;
    border-radius: var(--radius);
    color: #fff;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    z-index: 9999;
    animation: toastIn 0.5s ease forwards;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 420px;
}
.toast.hide {
    animation: toastOut 0.4s ease forwards;
}
.toast-success { background: var(--color-success); }
.toast-error { background: var(--color-error); }
@keyframes toastIn { 
    from { transform: translateX(120%); opacity: 0; } 
    to { transform: translateX(0); opacity: 1; } 
}
@keyframes toastOut { 
    from { transform: translateX(0); opacity: 1; } 
    to { transform: translateX(120%); opacity: 0; } 
}

/* --- SCREEN READER ONLY --- */
.sr-only { 
    position: absolute; width: 1px; height: 1px; 
    padding: 0; margin: -1px; overflow: hidden; 
    clip: rect(0,0,0,0); border: 0; 
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero { height: 75vh; margin-top: 80px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.05rem; }
    .section-title { font-size: 2rem; }
    .hamburger { display: block; }
    .nav-links {
        display: none;
        position: fixed;
        top: 85px;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 25px 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        text-align: center;
    }
    .nav-links.active { display: flex; }
    .nav-links a { margin: 12px 0; font-size: 1.1rem; }
    .nav-links a::after { display: none; }
    .photo-camera-slider { background-position: 50% 50%; }
    .grid { grid-template-columns: 1fr; gap: 25px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .stat-number { font-size: 2.2rem; }
    .brands-list a { font-size: 1rem; }
    .contact-title { font-size: 2rem; }
    .toast { left: 15px; right: 15px; bottom: 15px; max-width: none; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .grid { grid-template-columns: 1fr; gap: 25px; }
}
