/* ===== OMRA VISA - CUSTOM STYLES ===== */

/* Zmienne CSS dla kolorów */
:root {
    --primary-color: #1A2A40;
    --secondary-color: #D4B483;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* ===== TYPOGRAPHY ===== */
body {
    font-family: 'Nanito Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    font-weight: 400;
}

h1 {
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

h2 {
    font-weight: 600;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

h3 {
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h4 {
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

h5 {
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: var(--light-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    max-width: 300px;
    max-height: 120px;
    height: auto;
    width: auto;
    /* Usunięcie szarego tła z logo */
    background: transparent;
    mix-blend-mode: multiply;
    filter: contrast(1.2) brightness(1.1);
}

/* Alternatywne podejście - usunięcie szarego tła */
.logo-container {
    
    border-radius: 8px;
    padding: 10px;
}

.logo-container .logo {
    background: transparent;
    /* Usunięcie szarego tła poprzez CSS */
    filter:
        contrast(1.3)
        brightness(1.2)
        saturate(1.1)
        drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-link {
    text-decoration: none;
}

.contact-info {
    font-size: 14px;
}

.contact-item {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-item i {
    color: var(--primary-color);
}

/* ===== COUNTRY FLAGS STYLING ===== */
.country-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    transition: var(--transition);
    margin-bottom: 8px;
}

.country-item:hover {
    background: var(--light-bg);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.flag-icon {
    width: 24px;
    height: auto;
    margin-right: 10px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.country-item span {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.card-header h3 {
    color: inherit !important;
}

.card-header .badge {
    font-size: 0.75rem;
}

/* Footer contact items - override for better visibility */
.footer .contact-item {
    color: #e8e8e8;
}

.footer .contact-item i {
    color: var(--secondary-color);
}

.footer .contact-item p {
    color: #e8e8e8;
}

.footer .contact-item .small {
    color: #d0d0d0;
}

.contact-hours {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== NAVIGATION MENU ===== */
.top-menu {
    background-color: var(--primary-color);
    min-height: 60px;
    padding: 0;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1000;
}

.top-menu .navbar-nav .nav-link {
    color: #ffffff;
    font-weight: 500;
    padding: 20px 15px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.top-menu .navbar-nav .nav-link:hover,
.top-menu .navbar-nav .nav-link:focus {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.top-menu .navbar-toggler {
    border-color: var(--secondary-color);
}

.top-menu .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%28212, 180, 131, 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: var(--text-light);
    border: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 30px 0;
    margin-top: 0;
    z-index: 1001;
}

.mega-menu .dropdown-header {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
}

.mega-menu .dropdown-item {
    padding: 8px 15px;
    color: var(--text-dark);
    transition: var(--transition);
    border-radius: 5px;
    margin-bottom: 5px;
}

.mega-menu .dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    transform: translateX(5px);
}

.mega-menu .dropdown-item i {
    color: var(--secondary-color);
    width: 20px;
}

/* ===== STANDARD DROPDOWN MENU ===== */
.dropdown-menu {
    z-index: 1001;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 10px 0;
}

.dropdown-item {
    padding: 8px 20px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.dropdown-item i {
    color: var(--secondary-color);
    width: 20px;
}

/* ===== BUTTONS ===== */
.btn-apply {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #1A2A40;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 25px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-apply:hover {
    background-color: #c19a6b;
    border-color: #c19a6b;
    color: #1A2A40;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 180, 131, 0.4);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    font-weight: 500;
    border-radius: 5px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #0f1a2a;
    border-color: #0f1a2a;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-outline-light {
    border-color: var(--text-light);
    color: var(--text-light);
    font-weight: 500;
}

.btn-outline-light:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* ===== PULSE ANIMATION ===== */
.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 180, 131, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 180, 131, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 180, 131, 0);
    }
}

/* ===== BREADCRUMBS ===== */
.breadcrumb-nav {
    background-color: var(--light-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    background-color: transparent;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    height: 430px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 42, 64, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    color: var(--text-light);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons .btn {
    margin: 0 10px 10px 0;
}

/* ===== SECTIONS ===== */
.section {
    padding: 60px 0;
}

.section.bg-light {
    background-color: var(--light-bg);
}

.section.section-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.section.section-primary h2,
.section.section-primary h3,
.section.section-primary h4 {
    color: #ffffff;
}

/* ===== TILES/CARDS ===== */
.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tile {
    background-color: var(--text-light);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.tile-icon {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: block;
}

.tile h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.tile p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ===== ACCORDION ===== */
.accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-button {
    background-color: var(--light-bg);
    color: var(--primary-color);
    font-weight: 600;
    border: none;
    padding: 20px;
    transition: var(--transition);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--secondary-color);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23D4B483'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 20px;
    background-color: var(--text-light);
}

/* ===== LISTS ===== */
.list-numbered {
    counter-reset: item;
    padding-left: 0;
}

.list-numbered li {
    display: block;
    margin-bottom: 20px;
    padding-left: 60px;
    position: relative;
    list-style: none;
}

.list-numbered li::before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--secondary-color);
    color: #1A2A40;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

ul.list-styled {
    list-style: none;
    padding-left: 0;
}

ul.list-styled li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

ul.list-styled li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* ===== IMAGES ===== */
.img-fluid {
    border-radius: 8px;
}

.shadow {
    box-shadow: var(--shadow);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    color: #e8e8e8;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-menu a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
    text-shadow: 0 0 3px rgba(212, 180, 131, 0.5);
}

.footer-menu a:focus {
    color: var(--secondary-color);
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.footer-content {
    font-size: 14px;
    color: #e8e8e8;
}

.footer-content h6 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-content p {
    color: #e8e8e8;
}

.footer-content .small {
    color: #d0d0d0;
}

.footer-link {
    color: #e8e8e8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 3px rgba(212, 180, 131, 0.5);
}

.footer-link:focus {
    color: var(--secondary-color);
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(212, 180, 131, 0.3);
    padding-top: 20px;
    margin-top: 30px;
    font-size: 14px;
    color: #e8e8e8;
}

.footer-bottom p {
    color: #e8e8e8;
}

.footer-bottom .small {
    color: #d0d0d0;
}

.company-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(212, 180, 131, 0.3);
}

.company-info p {
    color: #e8e8e8;
}

.company-info .small {
    color: #d0d0d0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .mega-dropdown .mega-menu {
        position: static;
        width: 100%;
        transform: none;
        left: auto;
        border-radius: 0;
        margin-top: 0;
        padding: 20px;
    }
    
    .top-menu .navbar-nav .nav-link {
        padding: 15px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .top-menu .navbar-nav .nav-link:hover {
        border-left-color: var(--secondary-color);
        border-bottom-color: transparent;
    }
    
    .contact-info {
        text-align: center !important;
        margin-top: 15px;
    }
    
    .tiles-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .logo {
        max-width: 250px;
        max-height: 100px;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 10px 0;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .list-numbered li {
        padding-left: 50px;
    }
    
    .list-numbered li::before {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer .col-lg-2,
    .footer .col-lg-3 {
        margin-bottom: 30px;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.border-secondary {
    border-color: var(--secondary-color) !important;
}

/* ===== LOADING OPTIMIZATION ===== */
.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.dropdown-item:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .top-bar,
    .top-menu,
    .breadcrumb-nav,
    .footer,
    .btn,
    .pulse-button {
        display: none !important;
    }
    
    .hero-section {
        height: auto;
        padding: 20px;
        background: none !important;
    }
    
    .hero-section::before {
        display: none;
    }
    
    .hero-content {
        color: var(--text-dark) !important;
    }
    
    .section {
        padding: 20px 0;
    }
}