/* ===== VISA MAROC - CUSTOM STYLES ===== */

/* CSS Variables dla kolorów */
:root {
    --primary-color: #7A4B36;
    --secondary-color: #CA8931;
    --font-family: 'Rubik', sans-serif;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --black: #000000;
}

/* ===== GLOBAL STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-weight: 400;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

h5 {
    font-weight: 300;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

/* ===== BOOTSTRAP COLOR OVERRIDES ===== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white) !important;
}

.btn-primary:hover {
    background-color: #654032;
    border-color: #654032;
    color: var(--white) !important;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white) !important;
}

.btn-secondary:hover {
    background-color: #b8792a;
    border-color: #b8792a;
    color: var(--white) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
    color: var(--white) !important;
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: var(--light-gray);
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #dee2e6;
}

.top-contact a {
    color: var(--primary-color);
    text-decoration: none;
}

.top-contact a:hover {
    color: var(--secondary-color);
}

.top-info {
    color: var(--dark-gray);
}

/* ===== HEADER ===== */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-img {
    max-width: 300px;
    max-height: 120px;
    height: auto;
}

.header-features {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    color: var(--dark-gray);
}

.feature-item i {
    font-size: 1.2em;
}

/* ===== NAVIGATION ===== */
.main-navigation {
    background-color: var(--primary-color);
    min-height: 60px;
    padding: 0;
}

.main-navigation .navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
}

.main-navigation .navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--white) !important;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}

.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, 0.8%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(--white);
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 2rem;
    margin-top: 0;
}

/* Zapewnij że mega-menu działa jak dropdown-menu dla Bootstrap */
@media (max-width: 768px) {
    .mega-dropdown .mega-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
        left: auto !important;
        padding: 1rem !important;
    }
}

.mega-menu .dropdown-header {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.mega-menu .dropdown-item {
    padding: 0.5rem 0;
    color: #333;
    border: none;
    transition: all 0.3s ease;
}

.mega-menu .dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding-left: 0.5rem;
}

/* ===== BUTTONS ===== */
.btn-apply {
    background: linear-gradient(45deg, var(--secondary-color), #e09635);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-apply:hover {
    background: linear-gradient(45deg, #b8792a, var(--secondary-color));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(202, 137, 49, 0.3);
}

.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(202, 137, 49, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(202, 137, 49, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(202, 137, 49, 0);
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    width: 100%;
    height: 430px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.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;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    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 {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
.section {
    padding: 4rem 0;
}

.section:nth-child(even) {
    
}
.section.section-primary .container .row h2
{
  color: #343434 !important;
}
.section.section-primary .container .row h2
{
  color: #343434 !important;
}
.section.section-primary .container .row h2
{
  color: #343434 !important;
}
.section.section-primary .container .row p
{
  color: #343434 !important;
}

.section.section-primary .container .row p {
    color:#fff !important
    }
    .section.section-primary .container .row h2 {
    color:#fff !important
    }


.section-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.section-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.step-number {
  /* wielkość kółka – zmień, jeśli potrzebujesz większego/mniejszego */
  width: 40px;
  height: 40px;

  /* zaokrąglenie w 100 % tworzy idealne koło */
  border-radius: 50%;

  /* kolory */
  background-color: #7A4B36; /* brązowe tło */
  color: #ffffff;            /* biały tekst */

  /* centrowanie cyfry */
  display: flex;
  align-items: center;
  justify-content: center;

  /* drobne dodatki (opcjonalnie) */
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
}

/* ===== TILES/CARDS ===== */
.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tile {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tile-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.tile h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tile p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

/* ===== CARDS ===== */
.card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-header {
    background-color: var(--primary-color);
    color: var(--white) !important;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-bottom: none;
}

.card-body {
    padding: 1.5rem;
}

/* ===== ACCORDION ===== */
.accordion-item {
    border: 1px solid #e9ecef;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-button {
    background-color: var(--light-gray);
    color: var(--primary-color);
    font-weight: 600;
    border: none;
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white) !important;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(122, 75, 54, 0.25);
    color: var(--primary-color);
}

.accordion-button:hover {
    color: var(--primary-color);
}

.accordion-body {
    padding: 1.5rem;
    background-color: var(--white);
}

/* ===== LISTS ===== */
.list-numbered {
    counter-reset: item;
    padding-left: 0;
}

.list-numbered li {
    display: block;
    margin-bottom: 1rem;
    padding-left: 3rem;
    position: relative;
    counter-increment: item;
}

.list-numbered li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--secondary-color);
    color: color-contrast(var(--secondary-color));
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

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: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* ===== BREADCRUMBS ===== */
.breadcrumb-nav {
    background-color: var(--light-gray);
    padding: 1rem 0;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: var(--dark-gray);
}

/* ===== FOOTER ===== */
.main-footer {
    background-color: var(--primary-color);
    color: color-contrast(var(--primary-color));
    padding: 3rem 0 1rem;
   
}

.main-footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.contact-info {
    color: rgba(255,255,255,0.9);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.2em;
    margin-top: 0.2rem;
    min-width: 20px;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.footer-separator {
    border-color: rgba(255,255,255,0.2);
    margin: 2rem 0 1rem;
}

.footer-disclaimer {
    color: rgba(255,255,255,0.7);
    font-style: italic;
}

.cookies-info {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.cookies-link {
    color: var(--secondary-color);
    text-decoration: none;
}

.cookies-link:hover {
    color: var(--white);
}

/* ===== TABLES ===== */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    font-weight: 600;
}

.table tbody tr:nth-child(even) {
    background-color: var(--light-gray);
}

.table tbody tr:hover {
    background-color: rgba(122, 75, 54, 0.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-content .lead {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 240px;
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .hero-buttons .btn-lg {
        padding: 0.65rem 1.3rem;
        font-size: 1rem;
    }
    
    .header-features {
        justify-content: center;
        gap: 1rem;
    }
    
    .feature-item {
        font-size: 12px;
    }
    
    .mega-menu {
        width: 95vw !important;
        padding: 1rem !important;
    }
    
    .tiles-container {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Minimalne poprawki dla dropdown menu na mobile - pozwól Bootstrap obsłużyć resztę */
    .navbar-collapse .dropdown-menu {
        border: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        background-color: rgba(255,255,255,0.98);
    }
    
    .navbar-collapse .mega-menu {
        border: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        background-color: rgba(255,255,255,0.98);
        padding: 1rem;
    }
    
    /* Style dla dropdown items na mobile */
    .navbar-collapse .dropdown-item {
        padding: 0.75rem 1rem;
        color: #333;
        transition: all 0.3s ease;
    }
    
    .navbar-collapse .dropdown-item:hover,
    .navbar-collapse .dropdown-item:focus {
        background-color: rgba(122, 75, 54, 0.1);
        color: var(--primary-color);
    }
    
    /* Animacja dla dropdown toggle */
    .dropdown-toggle::after {
        transition: transform 0.3s ease;
    }
    
    .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
}

@media (max-width: 576px) {
    .section {
        padding: 2rem 0;
    }
    
    .tile {
        padding: 1.5rem;
    }
    
    .hero-section {
        height: 400px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-content .lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons .btn {
        max-width: 220px;
        padding: 0.55rem 1.1rem;
        font-size: 0.9rem;
    }
    
    .hero-buttons .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-contrast-primary {
    color: var(--white) !important;
}

.text-contrast-secondary {
    color: var(--white) !important;
}

.shadow-custom {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.border-secondary {
    border-color: var(--secondary-color) !important;
}

/* ===== LOADING STATES ===== */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

img.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 states for accessibility */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .top-bar,
    .main-navigation,
    .breadcrumb-nav,
    .main-footer,
    .btn,
    .pulse-button {
        display: none !important;
    }
    
    .hero-section {
        height: auto !important;
        background: none !important;
        color: var(--black) !important;
    }
    
    .hero-section::before {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}