* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}


/*
body {
    background-color: #f4f6f8;
    color: #333;
}
*/

body {
    background-image: url('../images/background.jpg'); 
    background-size: cover;        
    background-position: center;   
    background-repeat: no-repeat;  
    background-attachment: fixed;  
    color: #333;                   
    font-family: Arial, Helvetica, sans-serif;
}

/* HEADER */
.main-header {
    background: #003087;
    color: #fff;

    height: 140px;              /* HEADER controls height */
    padding: 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* LEFT SIDE (logo + FB) */
.header-left {
    position: absolute;
    left: 0px;

    display: flex;
    align-items: center;
    gap: 15px;

    height: 100%;
}

/* LOGO fits header */
.logo {
    height: 100%;         
    object-fit: contain;
}

/* FB button matches logo height */
.fb-link {
    height: 90%;
    aspect-ratio: 1 / 1;   /* keeps it square */

    display: flex;
    align-items: center;
    justify-content: center;

    background: #1877F2;
    color: white;

    font-size: 2.5rem;
    border-radius: 10px;
    transition: 0.3s;
}

.fb-link:hover {
    background: #0d5dc4;
}

/* CENTER TEXT */
.header-text {
    text-align: center;
}

.header-text h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.header-text p {
    font-size: 1rem;
}

@media (max-width: 768px) {

    .main-header {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 15px;
    }

    .header-left {
        position: static;
        height: auto;
        flex-direction: column;
    }

    .logo {
        height: 110px;
    }

    .fb-link {
        height: 110px;
        font-size: 2.2rem;
    }
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.printers {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, 1fr);  
}

@media (max-width: 1200px) {
    .printers {
        grid-template-columns: repeat(3, 1fr); 
    }
}

@media (max-width: 900px) {
    .printers {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 600px) {
    .printers {
        grid-template-columns: 1fr;           
    }
}

.printer-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.printer-card:hover {
    transform: translateY(-5px);
}

.printer-card h2 {
    margin-bottom: 15px;
    color: #003087;
}

.printer-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.printer-card img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;    
    display: block;
    margin: 0 auto 15px;
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: #003087;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #001f5f;
}


.contact {
    background: #fff;
    padding: 40px 20px;
    margin-top: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
}

.contact h2 {
    color: #003087;
    margin-bottom: 15px;
}

.contact p {
    font-size: 1rem;
    line-height: 1.6;
}

.contact a {
    color: #003087;
    text-decoration: none;
    font-weight: 600;
}

.contact a:hover {
    text-decoration: underline;
}

.contact i {
    margin-right: 5px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.modal-content h2 {
    margin-bottom: 10px;
    color: #003087;
    font-size: 1.5rem;
}

.modal-content hr {
    border: 0;
    height: 2px;
    background-color: #003087;
    margin-bottom: 20px;
    border-radius: 2px;
}

.modal-content ul {
    list-style-type: none; 
    padding-left: 0;
}

.modal-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.5;
}

.modal-content ul li::before {
    content: "•"; 
    position: absolute;
    left: 0;
    color: #003087;
    font-weight: bold;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 1rem;
}

.close {
    color: #333;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #ff0000;
}


footer {
    text-align: center;
    padding: 20px;
    background: #eaeaea;
    margin-top: 40px;
    font-size: 0.9rem;
}
