/* ==========================================================================
   Michalik Tours - main stylesheet
   Loaded asynchronously (preload+onload) after inline critical CSS.
   Colors, layout building blocks: hero, parallax, N-column sections,
   tiles, accordions, tables, buttons, footer, responsive nav.
   ========================================================================== */

@font-face { font-family: 'Poppins'; src: url('vendor/fonts/poppins-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('vendor/fonts/poppins-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('vendor/fonts/poppins-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('vendor/fonts/poppins-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('vendor/fonts/poppins-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('vendor/fonts/poppins-900.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --accent-1: #585B9E;
  --accent-2: #CF434C;
  --link-color: #CF434C;
  --link-hover: #A6373B;
  --btn-bg: #585B9E;
  --btn-text: #FFFFFF;
  --topmenu-bg: #585B9E;
  --topmenu-link: #FFFFFF;
  --footer-bg: #3A3C6A;
  --footer-text: #FFFFFF;
  --footer-link: #FFFFFF;
  --accordion-bg: #F5F5F5;
  --accordion-text: #333333;
  --icon-color: #585B9E;
  --tint-1: #EEF0F8;
  --tint-2: #FBEEEF;
}

html { scroll-behavior: smooth; }

body { overflow-x: hidden; }

/* ---------- Typography diversification ---------- */
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', Arial, sans-serif; }
h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }
h4, h5, h6 { font-weight: 600; }
p { font-weight: 400; }
.lead { font-weight: 500; }
.fw-500 { font-weight: 500 !important; }
.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }
.text-accent-1 { color: var(--accent-1) !important; }
.text-accent-2 { color: var(--accent-2) !important; }
.section-title { margin-bottom: 1.75rem; }
.section-eyebrow { color: var(--accent-2); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }

/* ---------- Links & icons ---------- */
a { transition: color .2s ease; }
.fa-solid, .fa-regular, .fa-brands { color: var(--icon-color); }
.footer .fa-solid, .footer .fa-regular, .top-bar .contact-info .fa-solid { color: inherit; }
.top-bar .contact-info .fa-solid { color: var(--accent-1); margin-right: .3rem; }

/* ---------- Section background diversification (no gradients, no patterns) ---------- */
.section-white { background: #FFFFFF; }
.section-light { background: var(--accordion-bg); }
.section-tint-1 { background: var(--tint-1); }
.section-tint-2 { background: var(--tint-2); }
.section-dark { background: var(--accent-1); color: #fff; }
.section-dark h2, .section-dark h3, .section-dark p { color: #fff; }
.section-py { padding-top: 4rem; padding-bottom: 4rem; }
@media (max-width: 767.98px) { .section-py { padding-top: 2.5rem; padding-bottom: 2.5rem; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 500px; max-height: 500px; display: flex; align-items: center; background-color: var(--accent-1); overflow: hidden; }
@media (max-width: 767.98px) { .hero { max-height: none; min-height: 500px; } }
.hero-bg { position: absolute; inset: -12px; background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 0; animation: heroZoom 20s ease-in-out infinite alternate; will-change: transform; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.09); } }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } }
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(20, 20, 30, .38); z-index: 1; }
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 700px; animation: heroFadeUp .9s ease both; }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hero-content { animation: none; } }
@media (min-width: 992px) { .hero-content { min-width: 1000px; max-width: 1000px; } }
.hero h1 { font-weight: 800; text-shadow: 0 3px 12px rgba(0,0,0,.6); font-size: clamp(1.9rem, 4vw, 3.2rem); }
.hero p { text-shadow: 0 2px 8px rgba(0,0,0,.55); font-size: 1.15rem; font-weight: 500; }
.hero .btn { margin-top: .5rem; }

/* ---------- Page header (subpages, no hero background image) ---------- */
.page-header { background: var(--accent-1); color: #fff; padding: 3rem 0; }
.page-header h1 { font-weight: 800; margin: 0; }
.page-header p { font-weight: 500; opacity: .95; margin-top: .5rem; margin-bottom: 0; }

/* ---------- Parallax ---------- */
.parallax-section { position: relative; background-size: cover; background-position: center; background-attachment: fixed; padding: 5rem 0; color: #fff; text-align: center; }
.parallax-section::before { content: ''; position: absolute; inset: 0; background: rgba(20,20,30,.5); }
.parallax-section .container { position: relative; z-index: 2; }
.parallax-section h2 { font-weight: 800; color: #fff; }
.parallax-section p { font-size: 1.15rem; font-weight: 500; }
@media (max-width: 767.98px) { .parallax-section { background-attachment: scroll; padding: 3.5rem 0; } }

/* ---------- N-column layout helpers ---------- */
.section-2col { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .section-2col { grid-template-columns: 1fr 1fr; } }
.section-2col img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.section-2col .col-media { overflow: hidden; border-radius: 8px; }
.section-2col .col-media img { transition: transform .5s ease; }
.section-2col .col-media:hover img { transform: scale(1.06); }
.section-2col.reverse .col-media { order: 2; }
.section-2col.reverse .col-text { order: 1; }
@media (max-width: 767.98px) { .section-2col.reverse .col-media, .section-2col.reverse .col-text { order: initial; } }

.section-3col { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
@media (min-width: 576px) { .section-3col { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .section-3col { grid-template-columns: repeat(3, 1fr); } }

.section-4col { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 576px) { .section-4col { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .section-4col { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Tiles / cards ---------- */
.tile { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(20,20,30,.08); transition: transform .25s ease, box-shadow .25s ease; height: 100%; display: flex; flex-direction: column; }
.tile:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(20,20,30,.14); }
.tile.sidebar-box { height: auto; display: block; align-self: start; }
.sidebar-sticky-group { position: sticky; top: 1rem; align-self: start; }
.tile.sidebar-box:hover { transform: none; box-shadow: 0 2px 12px rgba(20,20,30,.08); }
.price-label { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; font-weight: 700; color: #888; margin-bottom: .1rem; }
.price-display { font-size: 2.5rem; font-weight: 900; color: var(--accent-2); line-height: 1.15; }
.contact-mini-card ul { list-style: none; padding: 0; margin: 0; }
.contact-mini-card li { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid #eee; }
.contact-mini-card li:last-child { border-bottom: none; }
.contact-mini-card .fa-solid { background: var(--tint-1); color: var(--accent-1); width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-mini-card a { color: #333; font-weight: 600; }
.contact-mini-card a:hover { color: var(--accent-2); }
.tile img { width: 100%; height: 210px; object-fit: cover; }
.tile-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.tile-body h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.tile-body .tile-price { color: var(--accent-2); font-weight: 800; font-size: 1.15rem; margin: .5rem 0; }
.tile-body p { flex: 1; }
.tile-meta { font-size: .85rem; color: #666; font-weight: 600; margin-bottom: .35rem; }

.tile-dark { background: #3A3C6A; color: #fff; }
.tile-dark .tile-meta { color: #C9CAE6; }
.tile-dark h3 { color: #fff; }
.tile-dark .tile-price { color: #fff; }
.tile-dark .tile-price small { color: #C9CAE6; }
.tile-dark p { color: #E4E4F2; }
.tile-dark .btn-outline-primary { color: #fff; border-color: #fff; }
.tile-dark .btn-outline-primary:hover, .tile-dark .btn-outline-primary:focus { background-color: #fff; border-color: #fff; color: #3A3C6A; }

.benefit-item { text-align: center; padding: 1.5rem 1rem; }
.benefit-item .icon-circle { width: 72px; height: 72px; border-radius: 50%; background: var(--tint-1); color: var(--accent-1); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.8rem; transition: transform .25s ease, background .25s ease; }
.benefit-item:hover .icon-circle { transform: scale(1.08); background: var(--accent-1); color: #fff; }
.benefit-item h3 { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn { font-weight: 700; border-radius: 6px; padding: .65rem 1.5rem; letter-spacing: .01em; transition: filter .2s ease, transform .18s ease, box-shadow .2s ease; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(20,20,30,.16); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn-primary, .btn-brand { background-color: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover, .btn-primary:focus, .btn-brand:hover, .btn-brand:focus { background-color: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); filter: brightness(.9); }
.btn-accent { background-color: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-accent:hover, .btn-accent:focus { background-color: var(--accent-2); border-color: var(--accent-2); color: #fff; filter: brightness(.9); }
.btn-outline-primary { color: var(--accent-1); border-color: var(--accent-1); background: transparent; }
.btn-outline-primary:hover, .btn-outline-primary:focus { background-color: var(--accent-1); border-color: var(--accent-1); color: #fff; }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--accent-1); }
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }
.btn-tile { width: 100%; margin-top: auto; }
.btn-purple { background-color: var(--accent-1); border-color: var(--accent-1); color: #fff; }
.btn-purple:hover, .btn-purple:focus { background-color: var(--accent-1); border-color: var(--accent-1); color: #fff; animation: btnPulse 1.1s ease infinite; }
@keyframes btnPulse { 0% { box-shadow: 0 0 0 0 rgba(88,91,158,.55); } 70% { box-shadow: 0 0 0 14px rgba(88,91,158,0); } 100% { box-shadow: 0 0 0 0 rgba(88,91,158,0); } }
.btn i, .btn .fa-solid { color: inherit; transition: transform .2s ease; }
.btn:hover i, .btn:hover .fa-solid { transform: translateX(3px); }

/* ---------- Cards (Bootstrap card-header override) ---------- */
.card-header { background-color: var(--accent-1); color: #fff; font-weight: 700; }
.text-primary { color: var(--accent-1) !important; }

/* ---------- Accordion ---------- */
.accordion-item { border: 1px solid #e7e7e7; margin-bottom: .6rem; border-radius: 8px !important; overflow: hidden; }
.accordion-button { background-color: var(--accordion-bg); color: var(--accordion-text); font-weight: 600; }
.accordion-button:not(.collapsed) { background-color: var(--accordion-bg); color: var(--accent-1); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem var(--tint-1); }
.accordion-button::after { filter: none; }
.accordion-body { background: #fff; color: var(--accordion-text); }

/* ---------- Tables ---------- */
.table { background: #fff; }
.table thead { background-color: var(--accent-1); color: #fff; }
.table thead th { font-weight: 700; border: none; }
.table-inclusions td:first-child i { color: #2e8b3d; margin-right: .5rem; }
.table-inclusions.excl td i { color: var(--accent-2); }
.table-bordered, .table-bordered td, .table-bordered th { border-color: #eee; }

/* ---------- Top bar / navbar ---------- */
.top-bar .logo-link { display: inline-block; background: #fff; }
.navbar-main { background-color: var(--topmenu-bg); }
.navbar-main .container { min-height: 40px; }
.navbar-main .navbar-nav { gap: 1.5rem; }
.navbar-main .nav-link { color: var(--topmenu-link) !important; font-weight: 600; font-size: 1.1rem; padding-top: .85rem; padding-bottom: .85rem; padding-left: .25rem; padding-right: .25rem; position: relative; transition: opacity .2s ease; }
.navbar-main .nav-item.active > .nav-link, .navbar-main .nav-link:hover { color: #fff !important; opacity: .85; }
.navbar-main .nav-link:not(.dropdown-toggle)::after { content: ''; position: absolute; left: .25rem; right: .25rem; bottom: .55rem; height: 2px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.navbar-main .nav-link:not(.dropdown-toggle):hover::after, .navbar-main .nav-item.active:not(.dropdown) > .nav-link::after { transform: scaleX(1); }
.navbar-main .nav-link.dropdown-toggle::after { transition: transform .25s ease; }
.navbar-main .dropdown.show .nav-link.dropdown-toggle::after { transform: rotate(180deg); }
.navbar-main .nav-item.dropdown.active > .nav-link { opacity: .85; }
.dropdown-menu { animation: dropdownIn .22s ease; }
@keyframes dropdownIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.navbar-toggler { border-color: rgba(255,255,255,.5); }
.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.9%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
.dropdown-menu { border: none; box-shadow: 0 10px 30px rgba(20,20,30,.15); border-radius: 8px; padding: .75rem; }
.dropdown-item { border-radius: 6px; font-weight: 500; padding: .5rem .75rem; }
.dropdown-item:hover, .dropdown-item:focus { background-color: var(--tint-1); color: var(--accent-1); }
.dropdown-menu-columns { columns: 2; column-gap: 1.25rem; min-width: 480px; }
.dropdown-menu-columns li { break-inside: avoid; }
.dropdown-menu-columns .dropdown-full { column-span: all; }
@media (max-width: 991.98px) {
  .dropdown-menu-columns { columns: 1; min-width: auto; }
  .navbar-collapse { background: var(--topmenu-bg); padding: 1rem; border-radius: 0 0 8px 8px; }
  .dropdown-menu { background: #fff; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb-nav { background: var(--accordion-bg); padding: .7rem 0; }
.breadcrumb { margin: 0; font-size: .9rem; }
.breadcrumb-item.active { color: #666; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.gallery-item { display: block; border-radius: 8px; overflow: hidden; position: relative; box-shadow: 0 2px 10px rgba(20,20,30,.08); }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: transform .35s ease; display: block; }
.gallery-item:hover img { transform: scale(1.07); }

/* ---------- Itinerary timeline ---------- */
.itinerary-list { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--tint-1); }
.itinerary-list li { position: relative; padding: 0 0 1.75rem 1.75rem; }
.itinerary-list li::before { content: ''; position: absolute; left: -9px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--accent-2); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent-2); }
.itinerary-list .day-label { color: var(--accent-1); font-weight: 800; display: block; margin-bottom: .15rem; }
.itinerary-list h3 { font-size: 1.05rem; margin-bottom: .35rem; }

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 0 !important; padding: 3.5rem 0 0; }
.footer a { color: var(--footer-link); }
.footer a:hover { color: var(--footer-link); text-decoration: underline; opacity: .85; }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; padding-bottom: 2.25rem; }
@media (max-width: 991.98px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-heading { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .55rem; }
.footer-logo-box { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 6px; line-height: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.3); padding: 1rem 0; font-size: .85rem; text-align: center; }

/* ---------- FAQ page ---------- */
.faq-accordion .accordion-button { font-size: 1.02rem; }

/* ---------- Misc ---------- */
.rounded-img { border-radius: 8px; }
.shadow-soft { box-shadow: 0 4px 18px rgba(20,20,30,.08); }
.badge-accent { background: var(--accent-2); color: #fff; font-weight: 700; padding: .4rem .75rem; border-radius: 999px; font-size: .78rem; }
address { font-style: normal; }
