/* ═══════════════════════════════════════════════════════════
   NOWA STRONA GŁÓWNA - Style bazowane na wzorze SM Centrum I
   Kolory: #1c193d (primary), #f59e0b (accent)
   ═══════════════════════════════════════════════════════════ */

/* CSS Variables */
:root,
[data-bs-theme=light] {
    --font: "DM Sans", sans-serif;
    --font-serif: "DM Serif Display", serif;

    --primary-color: #1c193d;
    --primary-color-light: #2a2650;
    --primary-color-dark: #14112d;

    --accent-color: #f59e0b;
    --accent-color-light: #fbbf24;
    --accent-color-dark: #d97706;

    --xxl: 9.375rem;
    --xl: 4.6875rem;

    --bs-primary: #1c193d;
    --bs-primary-rgb: 28, 25, 61;

    --bs-light: hsl(210 29% 93%);
    --bs-light-rgb: 233, 238, 243;

    --bs-dark: #1c193d;
    --bs-dark-rgb: 28, 25, 61;

    --bs-body-color: #1c193d;

    --h1: clamp(3.125rem, 4.5vw, 5.6125rem);
    --h2: clamp(2.36875rem, 4vw, 4.20625rem);
    --h3: clamp(1.775rem, 3vw, 3.15625rem);
    --h4: clamp(1.33125rem, 2.4vw, 2.36875rem);
    --h5: clamp(1.25rem, 1.7vw, 1.775rem);
    --h6: clamp(1.15rem, 1.3vw, 1.33125rem);
    --lead: clamp(1.1rem, 1.25vw, 1.25rem);
}

/* Body & Typography */
body {
    font-family: var(--font);
    line-height: 1.7;
    font-size: 1.125rem;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-serif);
    margin-bottom: 1rem;
    font-weight: 400;
}

h1, .h1 { font-size: var(--h1) !important; }
h2, .h2 { font-size: var(--h2) !important; }
h3, .h3 { font-size: var(--h3) !important; }
h4, .h4 { font-size: var(--h4) !important; }
h5, .h5 { font-size: var(--h5) !important; }
h6, .h6 { font-size: var(--h6) !important; }

.lead {
    font-size: var(--lead);
    padding: 1rem 0 1rem 2rem;
    border-left: 5px solid var(--accent-color);
}

b,
strong {
    font-weight: 700;
}

/* Spacing utilities */
@media (min-width: 1330px) {
    .container {
        max-width: 1280px;
    }
}

.p-xxl {
    padding: var(--xxl);
}

.p-xl {
    padding: var(--xl);
}

.px-xxl {
    padding-inline: var(--xxl);
}

.px-xl {
    padding-inline: var(--xl);
}

.pt-xxl {
    padding-top: var(--xxl);
}

.pb-xxl {
    padding-bottom: var(--xxl);
}

.py-xxl {
    padding-top: var(--xxl);
    padding-bottom: var(--xxl);
}

.mt-xxl {
    margin-top: var(--xxl);
}

.mb-xxl {
    margin-bottom: var(--xxl);
}

.my-xxl {
    margin-top: var(--xxl);
    margin-bottom: var(--xxl);
}

.pt-xl {
    padding-top: var(--xl);
}

.pb-xl {
    padding-bottom: var(--xl);
}

.py-xl {
    padding-top: var(--xl);
    padding-bottom: var(--xl);
}

.mt-xl {
    margin-top: var(--xl);
}

.mb-xl {
    margin-bottom: var(--xl);
}

.my-xl {
    margin-top: var(--xl);
    margin-bottom: var(--xl);
}

/* NAVBAR */
.navbar {
    --bs-navbar-padding-x: 0;
    --bs-navbar-padding-y: 0;
    --bs-navbar-active-color: var(--accent-color);
    --bs-navbar-nav-link-padding-x: 0.75rem;
    transition: padding 200ms, box-shadow 200ms, top 200ms;
    font-size: 1rem;
    background-color: white;
}

.navbar.affix {
    top: -60px;
    box-shadow: 0 0 2rem hsl(0 0% 0% / .15);
}

.navbar-top {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar-top a {
    color: var(--bs-body-color);
    text-decoration: none;
}

.navbar-top a:hover,
.navbar-top a:focus {
    text-decoration: underline;
    opacity: 0.8;
}

#search {
    border: 0;
    background-color: transparent;
    width: 6.5em;
    padding-left: 22px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.35-4.35"></path></svg>');
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: left center;
    text-align: right;
    color: #ffffff;
}

.navbar-brand {
    margin: 0;
    padding: 0;
}

.navbar-brand-image {
    height: 190px;
    transition: height 200ms;
}

.affix .navbar-brand-image {
    height: 100px;
}

.navbar-bottom .container {
    transition: height 200ms;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 1200px) {
    .navbar-bottom .container {
        height: 90px;
    }

    .navbar-brand {
        margin-top: 20px;
    }

    .affix .navbar-brand {
        margin-top: 10px;
    }

    .affix .navbar-bottom .container {
        height: 75px;
    }

    /* Offcanvas on desktop - inline display */
    .navbar-bottom .offcanvas {
        position: static;
        flex-grow: 1;
        display: flex;
        justify-content: flex-end;
    }

    .navbar-bottom .offcanvas-body {
        padding: 0;
        display: flex;
        justify-content: flex-end;
    }
}

.navbar-nav .nav-link {
    font-size: clamp(1rem, 1.125vw, 1.125rem);
    opacity: 0.72;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show,
.navbar-nav .nav-link.open {
    opacity: 1;
}

.dropdown-menu {
    border: 0;
    padding: 0.75rem;
    border-radius: 0;
    box-shadow: 0 1rem 2.5rem -0.5rem hsl(0 0% 0% / .25);
    background-color: var(--bs-body-color);
}

.dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown-menu .dropdown:hover > a {
    background-color: var(--primary-color);
    color: var(--bs-body-color);
}

.dropdown-item {
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 0.125rem;
    margin-bottom: 0.15rem;
    transition: color 200ms, background-color 200ms;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
    color: var(--bs-body-color);
    background-color: var(--accent-color);
}

/* Enhanced dropdown menu */
.dropdown-menu--enhanced {
    min-width: 280px;
    padding: 0.5rem;
}

.dropdown-item--enhanced {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.75rem 0.875rem !important;
    border-radius: 0.25rem;
}

.dropdown-item__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 0.375rem;
    transition: background-color 200ms, transform 200ms;
}

.dropdown-item__icon svg {
    opacity: 0.85;
    transition: opacity 200ms;
}

.dropdown-item--enhanced:hover .dropdown-item__icon,
.dropdown-item--enhanced:focus .dropdown-item__icon {
    background: rgba(255,255,255,0.15);
    transform: scale(1.05);
}

.dropdown-item--enhanced:hover .dropdown-item__icon svg,
.dropdown-item--enhanced:focus .dropdown-item__icon svg {
    opacity: 1;
}

.dropdown-item__content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.dropdown-item__title {
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.dropdown-item__desc {
    font-size: 0.75rem;
    opacity: 0.6;
    line-height: 1.35;
    font-weight: 400;
}

.dropdown-item--enhanced:hover .dropdown-item__desc,
.dropdown-item--enhanced:focus .dropdown-item__desc {
    opacity: 0.85;
}

/* HEADER */
header img,
header video {
    height: 100dvh;
}

/* MAIN CONTENT */

/* Centrum section */
#centrum .row::after {
    content: 'Centrum';
    position: absolute;
    top: calc(1.5 * var(--xxl));
    left: 0;
    z-index: -1;
    color: var(--bs-light);
    font-size: clamp(15rem, 25vw, 25rem);
    font-family: var(--font-serif);
}

#centrum p,
.lead {
    padding: 2rem 0 2rem 4rem;
    border-left: 5px solid var(--accent-color);
}

.lead {
    padding: 1rem 0 1rem 2rem;
}

p .btn:only-child {
    margin-top: 0.5rem;
}

/* Dobre miejsce section */
#dobre-miejsce {
    isolation: isolate;
    position: relative;
    background-repeat: no-repeat;
    background-position: right bottom;
}

#dobre-miejsce::before {
    content: '';
    display: block;
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: linear-gradient(to right, var(--bs-light), transparent 65%);
}

/* Shortcuts */
a.shadow-lg {
    text-decoration: none;
    color: var(--bs-body-color);
    transition: transform 300ms;
}

a.shadow-lg .h5 {
    transition: color 200ms;
}

a.shadow-lg:hover {
    transform: scale(1.03);
}

a.shadow-lg:hover .h5 {
    color: var(--accent-color);
}

/* News Cards */
#news .card {
    padding: 40px;
    border-bottom: 10px solid var(--accent-color) !important;
}

#news .card .card-date {
    opacity: 0.7;
    margin-bottom: 0.75rem;
    display: block;
}

#news .card .card-text {
    display: block;
    position: relative;
    overflow: hidden;
    height: 9rem;
}

#news .card .card-text::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3rem;
    background-image: linear-gradient(to top, white, transparent);
}

.card {
    cursor: pointer;
    transition: transform 300ms, box-shadow 300ms;
    border-radius: 0 !important;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 1rem 1.5rem -0.5rem hsl(0 0% 0% / .25) !important;
}

.card-title-link {
    color: var(--bs-body-color);
    text-decoration: none;
    transition: color 200ms;
}

.card-title-link:hover,
.card-title-link:focus {
    color: var(--accent-color);
}

/* Mapa */
#mapa iframe {
    display: block;
    border: 0;
    width: 100%;
    height: 600px;
}

/* BUTTONS */
.btn {
    --bs-btn-padding-x: 1.875rem;
    --bs-btn-padding-y: 1.35rem;
    --bs-btn-font-size: 1rem;
    --bs-btn-font-weight: 700;
    --bs-btn-line-height: 1.5;
    border-radius: 0;
    color: var(--bs-body-color);
}

.btn-primary {
    color: var(--bs-body-color) !important;
    --bs-btn-bg: var(--accent-color);
    --bs-btn-border-color: var(--accent-color);
    --bs-btn-hover-bg: var(--accent-color-light);
    --bs-btn-hover-border-color: var(--accent-color-light);
    --bs-btn-active-bg: var(--accent-color-dark);
    --bs-btn-active-border-color: var(--accent-color-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--accent-color);
    --bs-btn-border-color: var(--accent-color);
    --bs-btn-hover-bg: var(--accent-color);
    --bs-btn-hover-border-color: var(--accent-color);
    --bs-btn-active-bg: var(--accent-color);
    --bs-btn-active-border-color: var(--accent-color);
}

/* FOOTER */
footer {
    color: hsl(0 0% 100% / .5) !important;
}

footer h2 {
    color: white !important;
}

footer a {
    text-decoration: none;
    color: inherit;
    transition: color 200ms;
}

footer a:hover,
footer a:focus {
    color: white;
}

footer .accordion-item,
footer .accordion-button {
    color: white !important;
    background-color: transparent !important;
    border: 0 !important;
    font-size: var(--h5);
    border-radius: 0 !important;
}

footer .accordion-button {
    border-bottom: 1px solid hsl(0 0% 100% / .25) !important;
}

.accordion-button {
    font-size: var(--h5);
}

footer .accordion-button::after,
footer .accordion-button:not(.collapsed)::after {
    content: '';
    display: block;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="8" viewBox="0 0 16 8"><path d="M1 1l7 6 7-6" fill="none" stroke="white" stroke-width="2"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    width: 1rem;
    height: 0.5rem;
}

footer .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

footer .list-group-flush {
    font-size: 1rem;
}

footer .list-group-item {
    background-color: transparent;
}

footer .list-group-item a {
    color: hsl(0 0% 100% / .5);
    transition: color 200ms;
}

footer .list-group-item a:hover,
footer .list-group-item a:focus {
    color: white;
}

footer .list-group-flush > .list-group-item {
    border-color: hsl(0 0% 100% / .25);
}

.madeby {
    display: flex;
    align-items: center;
}

.madeby small {
    font-size: 0.625rem;
    margin: 0.2em 0.2em 0 0;
}

/* UTILITIES */
.invert {
    filter: invert(1);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* RESPONSIVE */
@media (max-width: 1329px) {
    .navbar-brand-image {
        height: 160px;
    }

    .navbar-brand {
        margin-top: 36px;
    }
}

@media (max-width: 1199px) {
    .navbar-brand {
        margin-top: 25px;
    }

    .navbar-brand-image {
        height: 100px;
    }

    .navbar-bottom .container {
        height: 75px;
    }

    #centrum img {
        max-height: 520px;
    }

    #dobre-miejsce::before {
        background-image: linear-gradient(to right, var(--bs-light) 50%, transparent 80%);
    }

    .navbar-nav .nav-link {
        color: white;
        font-size: var(--h5);
        padding-inline: 0.5rem;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link.active,
    .navbar-nav .nav-link.show,
    .navbar-nav .nav-link.open {
        color: var(--bs-body-color);
        background-color: #fff;
    }

    .dropdown-menu {
        background-color: hsl(0 0% 100% / .1);
    }

    /* Enhanced dropdown mobile styles */
    .dropdown-menu--enhanced {
        min-width: 100%;
        padding: 0.5rem 0;
    }

    .dropdown-item--enhanced {
        padding: 0.625rem 1rem !important;
    }

    .dropdown-item__icon {
        width: 32px;
        height: 32px;
        background: rgba(255,255,255,0.1);
    }

    .dropdown-item__title {
        font-size: 0.9rem;
    }

    .dropdown-item__desc {
        font-size: 0.7rem;
    }
}

@media (max-width: 991px) {
    :root {
        --xxl: 4rem;
    }

    #dobre-miejsce::before {
        background-image: linear-gradient(to right, var(--bs-light), hsl(210 29% 93% / .75));
    }

    footer .row-cols-1 .col + .col {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    #mapa iframe {
        height: 400px;
        min-height: 250px;
        max-height: 50dvh;
    }

    .copy {
        font-size: 0.75rem;
    }

    #centrum .row::after {
        display: none;
    }

    #centrum img {
        max-width: 100%;
    }

    #news .card {
        padding: 30px;
    }
}
