:root {
    --primary-blue: #2B4C7E;
    --accent-red: #C8102E;
    --text-dark: #333333;
    --text-muted: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
}

/* Reset & Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { 
    background-color: var(--bg-light); 
    color: var(--text-dark); 
    line-height: 1.6; 
    overflow-x: hidden; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; /* Keeps footer at the bottom */
}

/* --- THE GRID SYSTEM --- */
.section-padding { padding: 5rem 5%; }
.container { max-width: 1400px; margin: 0 auto; }

/* The magic grid: Side-by-side on desktop, automatically stacks on mobile */
.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

/* Footer Grid specifically */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

/* --- STANDARD UI ELEMENTS --- */
.text-center { text-align: center; }
.section-title { color: var(--primary-blue); margin-bottom: 2rem; font-size: 2.5rem; font-weight: 800; }

.btn {
    background-color: var(--accent-red); color: var(--white);
    padding: 12px 30px; text-decoration: none; border-radius: 50px;
    font-weight: bold; display: inline-flex; align-items: center; gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(200, 16, 46, 0.4); color: var(--white); }

/* Image wrappers for the grid */
.grid-image {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}
.grid-image:hover { transform: scale(1.02); }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-up { animation: fadeInUp 0.8s ease forwards; }

/* --- HEADER & NAVIGATION --- */
header {
    background-color: var(--white); padding: 1rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.logo-img { max-height: 55px; width: auto; display: block; }

nav ul { list-style: none; display: flex; gap: 2rem; align-items: center; }
nav ul li a { color: var(--primary-blue); text-decoration: none; font-weight: 600; transition: color 0.3s; }
nav ul li a:hover { color: var(--accent-red); }

.mobile-menu-btn { display: none; font-size: 1.8rem; color: var(--primary-blue); cursor: pointer; }

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(43, 76, 126, 0.8), rgba(200, 16, 46, 0.6)), url('https://imagerenderer.com/images/rendered/default/metal-print/8/8/break/images/artworkimages/medium/2/fire-and-ice-abstract-background-red-wektorygrafika.jpg') center/cover;
    height: 70vh; display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white); padding: 0 20px;
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; text-shadow: 2px 2px 5px rgba(0,0,0,0.3); }
.hero p { font-size: clamp(1rem, 2vw, 1.2rem); max-width: 800px; margin: 0 auto 2rem auto; }

/* --- GRID CARDS --- */
.card {
    background: var(--white); padding: 2.5rem; border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05); border-top: 4px solid var(--accent-red);
    display: flex; flex-direction: column;
}
.card i { font-size: 3.5rem; color: var(--accent-red); margin-bottom: 1.5rem; }
.card h3 { color: var(--primary-blue); margin-bottom: 1rem; font-size: 1.5rem; }

/* --- FOOTER --- */
footer {
    background-color: #1a2e4c; color: var(--white);
    padding: 4rem 5% 1.5rem; margin-top: auto;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #cbd5e1; text-decoration: none; transition: color 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--accent-red); transform: translateX(5px); }
.contact-highlight { font-size: 1.2rem; font-weight: bold; color: var(--white); display: block; margin-top: 5px; }

/* =========================================
   MOBILE RESPONSIVENESS (SMARTPHONES/TABLETS)
   ========================================= */
@media (max-width: 768px) {
    .section-padding { padding: 3rem 5%; }
    
    /* Fix Mobile Menu */
    nav ul {
        display: none; flex-direction: column; position: absolute;
        top: 100%; left: 0; width: 100%; background: var(--white);
        padding: 1.5rem 0; box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        text-align: center;
    }
    nav ul li { margin-bottom: 1rem; }
    nav ul.active { display: flex; }
    .mobile-menu-btn { display: block; }

    /* Ensure Grids stack perfectly vertically on phones */
    .grid-auto { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    
    /* Center footer links on mobile */
    .footer-links a { justify-content: center; transform: none !important; } 
    
    /* Shrink grid images slightly on phones */
    .grid-image { min-height: 250px; height: 250px; }
}