/* --- CSS Variables & Reset (Axsol Inspired Palette) --- */
:root {
    /* Deep Navy/Grey for authority - Axsol Style */
    --primary-dark: #0a192f; 
    --primary-blue: #003366; 
    
    /* APP Red accent, used sparingly for high impact */
    --accent-red: #e63946; 
    --accent-hover: #c02532;
    
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #a0a0a0;
    --white: #ffffff;
    --off-white: #f8f9fa;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-medium);
    background-color: var(--white);
    overflow-x: hidden;
}

/* --- Utilities --- */
section {
    scroll-margin-top: 100px; 
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 800px; }
.container-fluid { width: 100%; padding: 0; }
.section-padding { padding: 120px 0; }
.text-center { text-align: center; }
.dark-bg { background-color: var(--primary-dark); color: var(--text-light); }
.light-bg { background-color: var(--off-white); }
.mt-4 { margin-top: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.p-0 { padding: 0 !important; }

.heading-underline {
    width: 80px; height: 3px; background-color: var(--accent-red); margin: 20px auto 40px auto;
}
.heading-underline.underline-white { background-color: var(--white); margin: 0 auto 30px auto; }
.section-title-axsol { margin-bottom: 20px; }

/* --- Typography --- */
h1, h2, h3, h5 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

h1 { font-weight: 800; font-size: 3.5rem; line-height: 1.1; }
h2 { font-weight: 700; font-size: 2.5rem; }
h3 { font-weight: 700; font-size: 1.5rem; }
h5 { font-weight: 400; letter-spacing: 2px; font-size: 1rem; color: var(--accent-red); margin-bottom: 10px; }
p.lead-text { font-size: 1.2rem; font-weight: 300; color: var(--text-dark); max-width: 800px; margin: 0 auto; }
.text-white { color: var(--white) !important; }
.text-light-grey { color: var(--text-light) !important; }

a { text-decoration: none; transition: all 0.3s ease; }
img { max-width: 100%; display: block; }

/* --- Buttons --- */
.hero-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;              
    height: 55px;              
    padding: 0;
    border-radius: 0;
    font-family: var(--font-heading); 
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 1px; 
    font-size: 0.9rem; 
    cursor: pointer; 
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    box-sizing: border-box;
}

.btn-axsol-primary { 
    background-color: var(--accent-red); 
    color: var(--white); 
    border-color: var(--accent-red);
}
.btn-axsol-primary:hover { 
    background-color: var(--accent-hover); 
    border-color: var(--accent-hover); 
}

.btn-axsol-outline { 
    background-color: transparent; 
    border: 2px solid var(--white); 
    color: var(--white); 
}
.btn-axsol-outline:hover { 
    background-color: var(--white); 
    color: var(--primary-dark); 
}

.btn-sm { 
    width: auto; height: auto; padding: 5px 15px; font-size: 0.8rem; 
}

/* --- Header & Nav --- */
header {
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    height: 90px;
    transition: all 0.3s ease;
    background-color: var(--primary-dark); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

header.header-transparent { 
    background-color: rgba(10, 25, 47, 0.3); 
    box-shadow: none;
    backdrop-filter: blur(3px);
}

header.header-solid { 
    background-color: rgba(10, 25, 47, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    height: 80px;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo {
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800;
    color: var(--white); text-transform: uppercase; letter-spacing: 1px;
}
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 40px; }
.nav-links a {
    color: var(--white); font-family: var(--font-heading); font-weight: 700;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9;
}
.nav-links a:hover { opacity: 1; color: var(--accent-red); }

/* Mobile Menu Toggle */
.menu-toggle { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 2px; margin: 6px auto; transition: all 0.3s ease; background-color: var(--white); }

/* --- HERO SECTION --- */
.hero-axsol {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh; min-height: 700px; 
    position: relative; 
    display: flex; 
    align-items: center;
    justify-content: center; 
}

.hero-overlay-gradient {
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, 
        rgba(10, 25, 47, 0.4) 0%, 
        rgba(10, 25, 47, 0.8) 100%);
    box-shadow: inset 0 0 100px rgba(0,0,0,0.8);
}

.hero-content-axsol { 
    position: relative; 
    z-index: 2; 
    max-width: 900px; 
    color: var(--white);
    text-align: center; 
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content-axsol h1 { 
    color: #ffffff !important; 
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    margin-bottom: 25px;
    font-size: 3rem; 
    line-height: 1.2;
}

.hero-content-axsol p { 
    font-size: 1.1rem; 
    margin: 0 auto 40px auto; 
    font-weight: 500; 
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.9);
    background-color: rgba(10, 25, 47, 0.7); 
    padding: 30px;
    border-left: none; 
    border-bottom: 3px solid var(--accent-red); 
    backdrop-filter: blur(4px);
    max-width: 800px;
    border-radius: 4px;
}

.hero-content-axsol h5 {
    color: var(--accent-red);
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.5);
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* --- Solutions Grid --- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: 600px; 
}

.solution-item {
    position: relative;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    height: 100%; width: 100%;
}

.solution-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 25, 47, 0.6);
    display: flex; align-items: flex-end;
    padding: 40px;
    transition: background 0.3s ease;
}
.solution-item:hover .solution-overlay { background: rgba(10, 25, 47, 0.85); }

.solution-content { color: var(--white); transform: translateY(20px); transition: transform 0.3s ease; }
.solution-item:hover .solution-content { transform: translateY(0); }
.solution-content h3 { color: var(--white); font-size: 1.8rem; margin-bottom: 15px; }
.solution-content p { font-size: 1rem; opacity: 0.9; max-width: 500px; margin-bottom: 25px; color: #eee; }
.read-more { color: var(--accent-red); font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }
.read-more:hover { color: var(--white); }

/* --- Technology Section (Image Background) --- */
.tech-axsol-bg {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; 
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-overlay-dark {
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 25, 47, 0.85); 
}

.tech-content-centered {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 20px;
    max-width: 1100px;
}

.tech-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.tech-box {
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-top: 3px solid var(--accent-red);
}

.tech-box strong {
    display: block;
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.tech-box p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* --- Contact CTA Box --- */
.contact-cta-box {
    background: var(--white); padding: 50px; border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); display: inline-block; min-width: 300px;
    width: 100%; max-width: 600px;
}
.contact-cta-box h3 { font-size: 1.3rem; margin-bottom: 10px; }
.contact-email { color: var(--accent-red); font-weight: 700; font-size: 1.1rem; }

/* --- Footer (POPRAWIONE FORMATOWANIE: CSS GRID) --- */
.footer-axsol { 
    background-color: var(--primary-dark); 
    color: var(--text-light); 
    padding: 80px 0 30px; 
}

/* Grid Layout dla równych kolumn */
.footer-grid {
    display: grid;
    /* Automatyczne kolumny, minimum 220px szerokości, wypełniają przestrzeń */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    align-items: start; /* Wyrównanie do góry */
}

.footer-column {
    /* Dzięki grid nie musimy tu nic więcej ustawiać */
}

.logo-footer { 
    font-family: var(--font-heading); 
    font-weight: 800; 
    color: var(--white); 
    font-size: 1.5rem; 
    text-transform: uppercase; 
    display: block;
    margin-bottom: 15px;
}

.footer-desc {
    color: #a0a0a0; 
    font-size: 0.9rem; 
    line-height: 1.6;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-column p, 
.footer-column a {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 5px;
}

.footer-mail-link {
    color: var(--accent-red) !important;
    font-weight: 700;
}

.footer-legal-info p {
    font-size: 0.85rem;
    margin-top: 5px;
    opacity: 0.7;
}

/* Linki w stopce */
.footer-nav { list-style: none; padding: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { 
    color: #a0a0a0; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    font-weight: 700;
}
.footer-nav a:hover { color: var(--accent-red); }

.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; font-size: 0.85rem; }

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed; bottom: -100%; left: 0; width: 100%;
    background-color: var(--primary-dark); color: var(--white);
    padding: 20px; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2); z-index: 9999;
    transition: bottom 0.5s ease-in-out;
}
.cookie-banner.show { bottom: 0; }
.cookie-banner p { margin-right: 20px; font-size: 0.9rem; }

/* --- Responsive Design --- */
@media screen and (max-width: 1024px) {
    h1 { font-size: 2.8rem; }
    .hero-axsol { min-height: 600px; }
    .solutions-grid { height: auto; grid-template-columns: 1fr; } 
    .solution-item { height: 400px; } 
    .tech-grid-three { grid-template-columns: 1fr; gap: 20px; }
}

@media screen and (max-width: 768px) {
    .menu-toggle { display: block; z-index: 1001; }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 85%; height: 100vh;
        background-color: var(--primary-dark); padding-top: 100px; transition: 0.4s;
    }
    .nav-menu.active { right: 0; }
    .nav-links { flex-direction: column; align-items: center; }
    .nav-links li { margin: 20px 0; }

    h1 { font-size: 2rem; }
    .hero-content-axsol p { font-size: 1rem; }
    
    /* Przyciski mobilne */
    .hero-btns { flex-direction: column; gap: 15px; }
    .btn { width: 100%; max-width: 300px; }
    
    .section-padding { padding: 80px 0; }
    
    /* Stopka na mobile: jedna kolumna */
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    
    .cookie-banner { flex-direction: column; text-align: center; }
    .cookie-banner p { margin: 0 0 15px 0; }
}