/* ====== GLOBAL STYLES ====== */
:root {
    --primary: #1e3a8a;       /* Deep navy - trust, professionalism */
    --primary-dark: #0f2a6d;
    --accent: #f97316;        /* Vibrant orange - action, energy */
    --accent-dark: #ea580c;
    --background: #f8fafc;    /* Light gray background */
    --surface: #ffffff;       /* White for cards, sections */
    --text: #1f2937;         /* Dark gray for text */
    --text-light: #6b7280;
    --light-gray: #e5e7eb;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====== HEADER & NAVIGATION ====== */
.header {
    background-color: var(--primary);
    padding: 5px 0; /* Zmniejszone padding dla większego logo */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px; /* Zwiększona wysokość dla większego logo */
}

/* Logo container with text */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.company-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Header logo - 80px */
.header-logo {
    height: 80px;
    width: auto;
    max-width: 220px;
    display: block;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2)) brightness(1.1) contrast(1.1);
    object-fit: contain;
}

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

/* Usuń białe tło z logo PNG */
.header-logo[src*=".png"] {
    background: transparent;
    mix-blend-mode: multiply;
}

/* Usuń stary styl .logo */
.logo {
    display: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 8px 4px;
    position: relative;
    transition: var(--transition);
}

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

nav a:hover::after,
nav a:focus::after {
    width: 100%;
}

nav a:hover {
    color: #e0f2fe;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: var(--transition);
}

/* ====== HERO SECTION ====== */
.hero {
    background: linear-gradient(rgba(30, 58, 138, 0.85), rgba(11, 36, 92, 0.9)),
                url('./img/hero-bg.jpg') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    color: white;
}

.hero h2 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.05rem;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

.btn-block i {
    margin-right: 10px;
}

/* ====== SECTIONS COMMON ====== */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto 30px;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 60px;
}

/* ====== CARDS ====== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.card-icon {
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.card img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.card p {
    color: #4b5563;
    font-size: 0.98rem;
    flex-grow: 1;
    line-height: 1.6;
}

/* ====== CONTACT SECTION ====== */
.section-contact {
    background-color: #f1f5f9;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-form-container,
.contact-info-container {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

/* Nadpisanie starych styli .contact-box */
.contact-box {
    max-width: 100%;
    padding: 0;
    text-align: left;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

.contact-intro {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--text-light);
    text-align: center;
}

.contact-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231e3a8a' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

/* Contact Info Box */
.contact-info-box h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.contact-method:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-icon {
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-detail h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-detail a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.contact-detail a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.contact-detail p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Form Success/Error States */
.form-success {
    background-color: #d1fae5;
    color: #065f46;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.form-error {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

/* ====== FOOTER ====== */
.footer {
    background-color: var(--primary);
    color: white;
    padding: 50px 0 30px;
    text-align: center;
}

/* Footer logo */
.footer-logo {
    height: 40px;
    width: auto;
    max-width: 200px;
    margin: 0 auto 20px auto;
    display: block;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25)) brightness(0) invert(1);
    object-fit: contain;
}

.footer-text {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.footer-subtext {
    opacity: 0.8;
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ====== ANIMATIONS ====== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(25px);
    animation: slideUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animations for cards */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.7rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    
    .contact-wrapper {
        gap: 40px;
    }
    
    .contact-form-container,
    .contact-info-container {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 90px; /* Dopasowane do większego header */
        right: -100%;
        flex-direction: column;
        background-color: var(--primary);
        width: 280px;
        height: 100vh;
        padding: 40px 30px;
        gap: 2rem;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    nav ul.active {
        right: 0;
    }

    .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(7px, -6px);
    }

    .hero h2 {
        font-size: 2.4rem;
    }
    .hero-subtitle {
        font-size: 1.15rem;
        padding: 0 10px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }
    
    .company-name {
        font-size: 1.4rem;
    }
    
    .logo-container {
        gap: 8px;
    }
    
    .header-logo {
        height: 70px; /* Nieco mniejsze na mobile */
        max-width: 180px;
    }
    
    .footer-logo {
        height: 35px;
        max-width: 180px;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .btn {
        padding: 13px 28px;
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.9rem;
    }
    .cards {
        grid-template-columns: 1fr;
    }
    
    .company-name {
        font-size: 1.2rem;
    }
    
    .logo-container {
        gap: 6px;
    }
    
    .header-logo {
        height: 60px;
        max-width: 160px;
    }
    
    .footer-logo {
        height: 30px;
        max-width: 160px;
    }
    
    .contact-wrapper {
        gap: 30px;
    }
    
    .contact-form-container,
    .contact-info-container {
        padding: 25px 20px;
    }
}
/* ====== CCTV PACKAGES PAGE STYLES ====== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px auto;
    max-width: 900px;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.package-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    border: 2px solid var(--light-gray);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.package-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.package-icon {
    margin-bottom: 20px;
}

.package-icon div {
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.package-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
}

.package-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
    flex-grow: 1;
}

.package-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features i {
    color: #10b981;
    margin-right: 10px;
}

.packages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.comparison-table {
    overflow-x: auto;
    margin-top: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.comparison-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    background: var(--primary);
    color: white;
}

.comparison-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--light-gray);
}

.comparison-table tr:nth-child(even) {
    background: #f8fafc;
}

.comparison-table tfoot {
    background: #f1f5f9;
    font-weight: 600;
}

/* Active navigation link */
nav a.active {
    color: var(--accent) !important;
}

nav a.active::after {
    width: 100% !important;
}