/* ============================================
   Świat oczami Tadeusza Kłapkowskiego
   Travel Journal — Warm & Earthy Design
   ============================================ */

:root {
    --sand: #D4A574;
    --sand-light: #E8D5B7;
    --sand-pale: #F5EDE0;
    --olive: #6B7B3A;
    --olive-dark: #4A5628;
    --olive-light: #8FA94E;
    --brown: #5C3D2E;
    --brown-warm: #8B5E3C;
    --cream: #FDF8F0;
    --cream-dark: #F0E6D6;
    --charcoal: #2C2C2C;
    --warm-gray: #6B6460;
    --warm-gray-light: #A09890;
    --gold: #C8963E;
    --gold-light: #E5C88A;
    --terra: #B85C38;
    --terra-light: #D4836A;
}

/* === BOOTSCORE FIXES === */
/* Fixed header — always visible on scroll, works with any overflow */
#masthead.sticky-top {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: box-shadow 0.3s ease;
}

/* Offset body content so it doesn't hide behind fixed header */
#page {
    padding-top: 66px;
}

/* Hero pulls up behind fixed header for fullscreen effect */
.hero-section {
    margin-top: -66px;
    padding-top: 0;
}

.country-hero {
    margin-top: -66px;
}

/* === GLOBAL === */
body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--charcoal);
    background-color: var(--cream) !important;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--brown);
}

p {
    line-height: 1.75;
    color: var(--warm-gray);
    font-weight: 300;
    font-size: 1.05rem;
}

a {
    color: var(--brown-warm);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--terra);
}

::selection {
    background: var(--sand-light);
    color: var(--brown);
}

/* === NAVBAR === */
.navbar {
    background: rgba(253, 248, 240, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--cream-dark);
    padding: 0.75rem 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 30px rgba(92, 61, 46, 0.08);
}

/* Mobile hamburger button — CSS icon (Font Awesome not loaded) */
.nav-toggler {
    border: 2px solid var(--brown) !important;
    color: var(--brown) !important;
    padding: 0.55rem 0.85rem;
    min-height: 44px;
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    background: transparent !important;
}

/* Show on mobile */
@media (max-width: 991.98px) {
    .nav-toggler {
        display: flex !important;
    }
}

/* Hide the missing FA icon */
.nav-toggler i,
.nav-toggler .fa-bars,
.nav-toggler > span {
    display: none !important;
}

/* Hamburger 3 lines — centered vertically */
.nav-toggler::before {
    content: '';
    display: block;
    width: 18px;
    height: 14px;
    border-top: 2px solid var(--brown);
    border-bottom: 2px solid var(--brown);
    background: linear-gradient(var(--brown), var(--brown)) center/100% 2px no-repeat;
    flex-shrink: 0;
}

/* "Menu" text — aligned to center with the lines */
.nav-toggler::after {
    content: 'MENU';
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brown);
    letter-spacing: 0.1em;
    line-height: 1;
}

.nav-toggler:hover,
.nav-toggler:focus {
    background: var(--sand-light) !important;
    border-color: var(--brown-warm) !important;
}

/* Offcanvas menu styling — warm theme */
.offcanvas {
    background: var(--cream) !important;
}

.offcanvas-header {
    border-bottom: 1px solid var(--cream-dark);
    padding: 1.25rem 1.5rem;
}

.offcanvas-header .offcanvas-title {
    font-family: 'Jost', sans-serif;
    color: var(--brown);
}

.offcanvas-body .navbar-nav .nav-link {
    font-size: 1.1rem !important;
    padding: 0.85rem 0 !important;
    border-bottom: 1px solid var(--cream-dark);
    color: var(--brown) !important;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
}

.offcanvas-body .navbar-nav .nav-link:hover {
    color: var(--terra) !important;
    padding-left: 0.5rem !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brown) !important;
    letter-spacing: -0.02em;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    padding: 0.25rem 0;
}

/* Hide SVG logos, show text */
.navbar-brand img {
    display: none !important;
}

.navbar-brand::before {
    content: 'Tadeusz Kłapkowski';
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--brown);
}

.navbar-brand::after {
    content: 'Podróże';
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sand);
    margin-top: -2px;
}

#nav-main .nav-link {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--warm-gray) !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.5rem 0.85rem !important;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brown) !important;
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--charcoal);
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.3) 50%,
        rgba(44,44,44,0.7) 100%
    );
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 2rem;
}

.hero-subtitle {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--sand-light);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-title {
    font-family: 'Jost', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s ease infinite;
}

.hero-scroll-indicator svg {
    width: 30px;
    height: 30px;
    stroke: var(--sand-light);
    opacity: 0.7;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* === ABOUT SECTION === */
.about-section {
    padding: 7rem 0;
    background: var(--cream);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--sand);
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--warm-gray);
    max-width: 700px;
    margin: 0 auto;
}

.about-quote {
    font-family: 'Jost', sans-serif;
    font-size: 1.6rem;
    font-weight: 300;
    font-style: italic;
    color: var(--brown);
    text-align: center;
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem 0;
    border-top: 1px solid var(--sand-light);
    border-bottom: 1px solid var(--sand-light);
    line-height: 1.5;
    letter-spacing: -0.01em;
}

/* === CONTINENT SECTION === */
.continent-section {
    padding: 6rem 0;
    position: relative;
}

.continent-section:nth-child(even) {
    background: var(--cream-dark);
}

.continent-section:nth-child(odd) {
    background: var(--cream);
}

.continent-header {
    text-align: center;
    margin-bottom: 4rem;
}

.continent-label {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 0.75rem;
}

.continent-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--brown);
    margin-bottom: 1rem;
}

.continent-desc {
    font-size: 1.1rem;
    color: var(--warm-gray-light);
    max-width: 600px;
    margin: 0 auto;
}

.continent-hero-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: 0 20px 60px rgba(92, 61, 46, 0.15);
}

/* === COUNTRY CARDS === */
.country-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(92, 61, 46, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 2rem;
    border: 1px solid rgba(212, 165, 116, 0.15);
}

.country-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(92, 61, 46, 0.18);
}

.country-card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.country-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.country-card:hover .country-card-img {
    transform: scale(1.08);
}

.country-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.25rem 1.25rem;
    background: linear-gradient(transparent, rgba(44, 44, 44, 0.85));
}

.country-card-name {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
}

.country-card-body {
    padding: 1.25rem;
}

.country-card-excerpt {
    font-size: 0.9rem;
    color: var(--warm-gray);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.country-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--warm-gray-light);
}

.country-card-meta svg {
    width: 14px;
    height: 14px;
    stroke: var(--sand);
}

.country-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--brown-warm);
    transition: all 0.3s ease;
}

.country-card-link:hover {
    color: var(--terra);
    gap: 0.75rem;
}

.country-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.country-card-link:hover svg {
    transform: translateX(4px);
}

/* === TIMELINE === */
.timeline-section {
    padding: 6rem 0;
    background: var(--brown);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.timeline-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.timeline-title {
    color: var(--sand-light);
    text-align: center;
    margin-bottom: 4rem;
}

.timeline-line {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--brown-warm);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: right;
}

.timeline-year {
    flex: 1;
    padding: 0 2rem;
}

.timeline-year-number {
    font-family: 'Jost', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--sand);
    line-height: 1;
}

.timeline-year-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.5rem;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--sand);
    border-radius: 50%;
    border: 3px solid var(--brown);
    z-index: 1;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    padding: 0 2rem;
}

/* === COUNTRY PAGE === */
.country-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    background: var(--charcoal);
}

.country-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.country-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.1) 0%,
        rgba(44,44,44,0.65) 100%
    );
}

.country-hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 3rem;
    color: #fff;
}

.country-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #fff;
    margin-bottom: 0.5rem;
}

.country-hero-subtitle {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--sand-light);
    letter-spacing: 0.1em;
}

/* === COUNTRY CONTENT === */
.country-content {
    padding: 4rem 0;
}

.country-description {
    font-size: 1.15rem;
    line-height: 2;
    max-width: 750px;
    margin: 0 auto 3rem;
}

.country-description p:first-of-type::first-letter {
    font-family: 'Jost', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    float: left;
    margin-right: 0.5rem;
    margin-top: 0.1rem;
    line-height: 1;
    color: var(--brown);
}

/* === PHOTO GALLERY === */
.gallery-section {
    padding: 4rem 0 6rem;
    background: var(--cream-dark);
}

.gallery-title {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:nth-child(3n+1) {
    grid-row: span 2;
    aspect-ratio: auto;
}

/* === LIGHTBOX === */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: #fff;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.lightbox-close:hover {
    opacity: 1;
}

/* === FOOTER === */
footer.site-footer,
.site-footer {
    background: var(--charcoal) !important;
    color: rgba(255,255,255,0.6);
    padding: 3rem 0 2rem;
}

.footer-quote {
    font-family: 'Jost', sans-serif;
    font-style: italic;
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--sand-light);
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* === BREADCRUMB === */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--sand);
}

/* === BUTTONS === */
.btn-travel {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: 2px solid var(--sand);
    color: var(--sand);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-travel:hover {
    background: var(--sand);
    color: var(--brown);
}

.btn-travel-solid {
    background: var(--sand);
    color: var(--brown);
    border-color: var(--sand);
}

.btn-travel-solid:hover {
    background: var(--brown-warm);
    border-color: var(--brown-warm);
    color: #fff;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .continent-hero-img {
        height: 220px;
    }

    .country-card-img-wrapper {
        height: 200px;
    }

    .timeline-line::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
        text-align: left;
        padding-left: 50px;
    }

    .timeline-dot {
        position: absolute;
        left: 12px;
    }

    .timeline-year,
    .timeline-content {
        padding: 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:nth-child(3n+1) {
        grid-row: span 1;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* === SMOOTH SCROLLING === */
html {
    scroll-behavior: smooth;
}

/* === PAGE TRANSITION === */
.page-content {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === UTILITIES === */
.text-sand { color: var(--sand); }
.text-olive { color: var(--olive); }
.text-brown { color: var(--brown); }
.text-terra { color: var(--terra); }
.bg-cream { background-color: var(--cream); }
.bg-cream-dark { background-color: var(--cream-dark); }
.bg-brown { background-color: var(--brown); }
.font-jost { font-family: 'Jost', sans-serif; }
