/* Arena Mocy - Custom CSS Styles */

/* ============================================
   ROOT VARIABLES & BOOTSTRAP OVERRIDES
============================================ */

:root {
    /* Kolory główne */
    --primary-color: #D81C24;
    --text-color: #223645;
    --bg-white: #ffffff;
    --bg-light: #EFEFEF;
    --footer-bg: #D81C24;
    
    /* Czcionka */
    --font-family: 'Montserrat', sans-serif;
    
    /* Bootstrap overrides */
    --bs-primary: #D81C24;
    --bs-text: #223645;
    --bs-light: #EFEFEF;
}

/* ============================================
   GLOBAL STYLES
============================================ */

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    margin: 0;
    padding: 0;
}

/* ============================================
   TYPOGRAPHY
============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    color: var(--text-color);
    margin-bottom: 1rem;
}

h1 {
    font-weight: 700;
    font-size: 2.75rem;
}

h2 {
    font-weight: 800;
    font-size: 2.25rem;
}

h3 {
    font-weight: 700;
    font-size: 2rem;
}

h4 {
    font-weight: 500;
    font-size: 1.75rem;
}

h5 {
    font-weight: 300;
    font-size: 1.5rem;
}

h6 {
    font-weight: 400;
    font-size: 1.25rem;
}

p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 1rem;
}

strong {
    font-weight: 600;
}

/* ============================================
   TOP SECTION
============================================ */

.top-section {
    background-color: var(--bg-light);
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
}

.top-logo .logo-image {
    max-width: 300px;
    max-height: 120px;
    width: auto;
    height: auto;
}

.top-contact {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--text-color);
}

.contact-icon {
    margin-right: 8px;
    color: var(--primary-color);
    width: 16px;
}

/* ============================================
   NAVIGATION
============================================ */

.main-navbar {
    background-color: var(--primary-color) !important;
    min-height: 50px;
    max-height: 70px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-navbar .navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 15px 20px;
    transition: background-color 0.3s ease;
}

.main-navbar .navbar-nav .nav-link:hover,
.main-navbar .navbar-nav .nav-link:focus {
    background-color: rgba(255,255,255,0.1);
    color: white !important;
}

.navbar-toggler {
    border-color: white;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   MEGA MENU
============================================ */

.mega-dropdown {
    position: static;
}

.mega-dropdown .mega-menu {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1140px;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 2rem 0;
    margin-top: 0;
    z-index: 1000;
}

.mega-menu .dropdown-header {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.mega-menu .dropdown-item {
    color: var(--text-color);
    padding: 0.5rem 1rem;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mega-menu .dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Standardowe dropdown menu */
.dropdown-menu {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    color: var(--text-color);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* ============================================
   BREADCRUMBS
============================================ */

.breadcrumb-nav {
    background-color: var(--bg-light);
    padding: 0.75rem 0;
}

.breadcrumb {
    background-color: transparent;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--text-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 500;
}

/* ============================================
   HERO SECTION
============================================ */

.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    height: 400px;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
    margin-top: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    min-width: 300px;
    max-width: 90%;
}

.hero-content h1 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    line-height: 1.2;
}

.hero-content .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    line-height: 1.4;
}

.hero-buttons .btn {
    margin: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SECTIONS
============================================ */

.section {
    padding: 4rem 0;
}

.section.bg-light {
    background-color: var(--bg-light);
}

.section-primary {
    background-color: var(--primary-color);
    color: white;
}

.section-primary h1,
.section-primary h2,
.section-primary h3,
.section-primary h4,
.section-primary h5,
.section-primary h6 {
    color: white;
}

.main-content {
    min-height: calc(100vh - 300px);
}

/* ============================================
   BUTTONS
============================================ */

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #b01419;
    border-color: #b01419;
    color: white;
}

.btn-apply {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--text-color);
}

.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ============================================
   TILES/CARDS
============================================ */

.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tile {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.tile-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.tile h3 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.tile p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.card-title a {
    font-weight: 500;
    color: #D81C24 !important;
}

/* ============================================
   TESTIMONIALS
============================================ */

.testimonial-card {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.testimonial-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card blockquote {
    margin: 0;
    padding: 0;
    border: none;
    font-style: italic;
    flex-grow: 1;
    color: var(--text-color);
}

.testimonial-card blockquote p {
    margin-bottom: 0;
    line-height: 1.5;
}

.testimonial-card .stars {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
}

.testimonial-card .stars i {
    font-size: 1rem;
    color: #ffc107;
}

.testimonial-card .reviewer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.testimonial-card .reviewer strong {
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.testimonial-card .reviewer .text-muted {
    color: #6c757d;
    font-size: 0.875rem;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* ============================================
   ACCORDION
============================================ */

.accordion-item {
    border: 1px solid #dee2e6;
    margin-bottom: 0.5rem;
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-button {
    background-color: var(--bg-light);
    color: var(--text-color);
    font-weight: 500;
    border: none;
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(216, 28, 36, 0.25);
}

.accordion-body {
    padding: 1.25rem;
    background-color: white;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

/* ============================================
   LISTS
============================================ */

.list-numbered {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.list-numbered li {
    counter-increment: step-counter;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 3rem;
}

.list-numbered li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

ul.list-styled {
    list-style: none;
    padding-left: 0;
}

ul.list-styled li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

ul.list-styled li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ============================================
   IMAGES
============================================ */

img {
    max-width: 100%;
    height: auto;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded {
    border-radius: 0.375rem;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* ============================================
   ICONS
============================================ */

.fas, .far, .fab {
    font-size: 1em;
}

/* Ikony w sekcjach/bokach - duże */
.section .fas,
.tile .fas,
.feature-icon {
    font-size: 3em;
    color: var(--primary-color);
}

/* Ikony obok tekstu - normalne */
.fas.me-2,
.far.me-2,
.fab.me-2 {
    font-size: 1em;
}

/* ============================================
   FOOTER
============================================ */

.footer {
    background-color: #A2080E;
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 0px !important;
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-link:hover {
    color: white;
    text-decoration: underline;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    font-size: 16px;
}

.footer-contact .fas {
    color: white;
    margin-right: 0.5rem;
    width: 16px;
}

.footer-info p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem 0;
}

.footer-disclaimer,
.footer-cookies {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-cookies .fas {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */

/* Mobile */
@media (max-width: 767px) {
    .hero-section {
        height: auto;
        min-height: 400px;
        padding: 3rem 1rem;
        margin-top: 0;
    }
    
    .hero-content {
        min-width: 100%;
        max-width: 100%;
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .top-contact {
        margin-top: 1rem;
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
        font-size: 14px;
    }
    
    /* Mobile menu background */
    .navbar-collapse {
        background-color: var(--primary-color);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 0.375rem;
    }
    
    /* Mobile mega menu */
    .mega-dropdown .mega-menu {
        position: static;
        transform: none;
        width: 100%;
        left: 0;
        margin: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.98);
    }
    
    .mega-menu {
        width: 100%;
        padding: 1rem 0;
    }
    
    .mega-menu .col-lg-3 {
        margin-bottom: 1.5rem;
    }
    
    /* Mobile dropdown fix */
    .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin: 0;
        background-color: rgba(255, 255, 255, 0.95);
        border: none;
    }
    
    .dropdown-item {
        padding: 0.75rem 1.25rem;
        white-space: normal;
    }
    
    /* Mobile nav links */
    .main-navbar .navbar-nav .nav-link {
        padding: 10px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .tiles-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-content {
        min-width: 600px;
    }
    
    .tiles-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 992px) {
    .hero-content {
        min-width: 1000px;
    }
    
    .mega-dropdown:hover .mega-menu {
        display: block;
    }
}

/* ============================================
   UTILITIES
============================================ */

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* ============================================
   TABLE STYLES
============================================ */

.table {
    color: var(--text-color);
}

.table-striped > tbody > tr:nth-of-type(odd) > td,
.table-striped > tbody > tr:nth-of-type(odd) > th {
    background-color: var(--bg-light);
}

.table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-color: var(--primary-color);
}

/* ============================================
   LAZY LOADING
============================================ */

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ============================================
   ACCESSIBILITY & CONTRAST
============================================ */

/* Zapewnienie odpowiednich kontrastów */
.bg-light {
    color: var(--text-color);
}

.bg-primary,
.section-primary {
    color: white;
}

/* Focus states */
.btn:focus,
.nav-link:focus,
.dropdown-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast dla tekstów */
.text-white-50 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* ============================================
   PRINT STYLES
============================================ */

@media print {
    .navbar,
    .footer,
    .breadcrumb-nav {
        display: none;
    }
    
    .hero-section {
        height: auto;
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}