/* ============================================================
   LUMEN — Pokoje nad Dunajcem (theme; loaded after bundle.css)
   Palette: Thé au lait cream · Espresso · Lierre olive · Bleu fané
   Type: Cormorant (display serif) + Inter (UI / body)
   ============================================================ */

:root{
    --brown:       #38302A;   /* Espresso — dark panels, buttons, text */
    --brown-2:     #4A4138;
    --cream:       #DFD7C7;   /* Thé au lait — page background */
    --cream-2:     #ECE7DB;   /* lighter — cards */
    --cream-text:  #E6E0D1;   /* light text on dark */
    --olive:       #5F5D38;   /* Lierre stats panel — deepened for AA contrast */
    --accent:      #7A774A;   /* Lierre — hairlines, icons */
    --accent-soft: #9A9768;
    --accent-ink:  #5C5A38;   /* olive dark enough for text/hover on cream (AA) */
    --blue:        #A1AFB8;   /* Bleu fané — booking + cool accents */
    --blue-deep:   #8A99A4;
    --ink:         #38302A;   /* body text on cream */
    --ink-soft:    #5A5238;   /* muted reading text — AA on cream */
    --muted-cream: #BCB39E;   /* muted text on dark */
    --line-cream:  rgba(56,48,42,.16);
    --line-dark:   rgba(223,215,199,.18);

    /* legacy tokens the base stylesheet still references */
    --gold:        #7A774A;
    --gold-light:  #9A9768;
    --dark:        #38302A;
    --dark-2:      #4A4138;
    --text:        #38302A;
    --muted:       #5A5238;
    --bg:          #DFD7C7;
    --white:       #ECE7DB;

    --radius:      18px;
    --radius-lg:   34px;
    --shadow:      0 14px 44px rgba(56,48,42,.12);
    --shadow-lg:   0 30px 70px rgba(56,48,42,.18);

    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

/* ── BASE / TYPE ───────────────────────────────────────────── */
html{ overflow-x: clip; }
body{
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background: var(--cream) var(--grain);
    background-blend-mode: multiply;
    overflow-x: clip;
}
h1,h2,h3,h4,h5,h6,
.section-title,.stat-num,.stat-suffix,
.contact-form-box h3,.directions-box h3{
    font-family: 'Cormorant', Georgia, serif;
    font-optical-sizing: auto;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: .004em;
}
p{ line-height: 1.78; }
.fr-italic{ font-family:'Cormorant',serif; font-style:italic; font-weight:400; }

/* ── ACCESSIBILITY — skip link · focus · reduced motion ─────── */
.skip-link{
    position: absolute; left: -999px; top: 8px; z-index: 2000;
    background: var(--brown); color: var(--cream-text);
    padding: 10px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
}
.skip-link:focus{ left: 8px; }

:where(a,button,input,textarea,.btn-gold,.faq-q,.masonry-item,.hero-booking,.back-top,.navbar-toggler):focus-visible{
    outline: 2px solid var(--brown);
    outline-offset: 3px;
    border-radius: 4px;
}
#footer :focus-visible,#call-to-action :focus-visible,#stats :focus-visible{ outline-color: var(--cream-text); }

@media (prefers-reduced-motion: reduce){
    *,*::before,*::after{
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal-up,.reveal-left,.reveal-right{ opacity: 1 !important; transform: none !important; }
    .animate-fade{ opacity: 1 !important; animation: none !important; }
}

/* ── NAVBAR ────────────────────────────────────────────────── */
#navbar{ padding: 26px 0; }
#navbar.scrolled{
    padding: 14px 0;
    background: rgba(56,48,42,.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 6px 30px rgba(60,34,22,.26);
}
/* logo hidden over the cream hero, fades in once the sygnet is scrolled past */
#navbar .navbar-brand img{
    height: 54px; width: auto;
    opacity: 0; pointer-events: none;
    transition: opacity .45s ease;
    filter: brightness(0) invert(1) sepia(.16) saturate(1.4) brightness(1.02) drop-shadow(0 2px 8px rgba(20,18,12,.45));
}
#navbar.scrolled .navbar-brand img{ opacity: 1; pointer-events: auto; }
.nav-link{
    font-family: 'Inter', sans-serif;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 2.4px !important;
    text-transform: uppercase !important;
}
.nav-link::after{ background: var(--accent); }
.nav-cta{ border: 1px solid; border-radius: 50px !important; }
.nav-cta:hover{ background: var(--accent) !important; border-color: var(--accent) !important; color: var(--brown) !important; }
.nav-hamburger span{ background: var(--ink); }
/* colour states: dark text over the cream hero → cream once the bar darkens */
#navbar .nav-link{ color: var(--ink) !important; }
#navbar.scrolled .nav-link{ color: rgba(250,243,224,.88) !important; }
#navbar.scrolled .nav-link:hover{ color: var(--accent-soft) !important; }
#navbar.scrolled .nav-hamburger span{ background: var(--cream-text); }
#navbar .nav-cta{ border-color: rgba(56,48,42,.40) !important; }
#navbar.scrolled .nav-cta{ border-color: rgba(250,243,224,.45) !important; }

/* ── LANGUAGE TOGGLE ──────────────────────────────────────── */
.lang-toggle{
    background: transparent;
    border: 1px solid rgba(56,48,42,.35);
    border-radius: 50px;
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1;
    padding: 5px 11px;
    cursor: pointer;
    transition: background .22s, border-color .22s, color .22s;
    /* sits right of the logo, left of the hamburger / nav links */
    margin-left: 20px;
    flex-shrink: 0;
}
.lang-toggle:hover{
    background: var(--accent);
    border-color: var(--accent);
    color: var(--cream-text);
}
#navbar.scrolled .lang-toggle{
    border-color: rgba(250,243,224,.40);
    color: rgba(250,243,224,.88);
}
#navbar.scrolled .lang-toggle:hover{
    background: var(--accent);
    border-color: var(--accent);
    color: var(--cream-text);
}
@media (max-width: 991px){
    .lang-toggle{
        margin-left: auto;
        margin-right: 10px;
        border-color: rgba(56,48,42,.35);
        color: var(--ink);
    }
    #navbar.scrolled .lang-toggle{
        border-color: rgba(250,243,224,.40);
        color: rgba(250,243,224,.88);
    }
}

@media (max-width: 991px){
    #navbarNav{ background: rgba(56,48,42,.97); }
    #navbar .nav-link{ color: rgba(250,243,224,.88) !important; }
    #navbar .nav-cta{ border-color: rgba(250,243,224,.40) !important; }
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-gold{
    background: var(--brown);
    color: var(--cream-text);
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    padding: 15px 38px;
}
.btn-gold:hover{ background: var(--brown-2); color: var(--cream-text); box-shadow: 0 14px 34px rgba(56,48,42,.28); }
.btn-ghost{
    border: 1px solid rgba(236,227,200,.6);
    color: var(--cream-text);
    border-radius: 50px;
    font-size: 12px;
    letter-spacing: 2px;
}
.btn-ghost:hover{ background: var(--cream-text); border-color: var(--cream-text); color: var(--brown); }
.btn-booking{ background: var(--blue); color: var(--ink); border-radius: 50px; font-size: 12px; letter-spacing: 1.5px; }
.btn-booking:hover{ background: var(--blue-deep); color: var(--ink); box-shadow: 0 14px 30px rgba(56,48,42,.22); }
.btn-booking i{ color: var(--ink); }

/* ── SYGNET HERO — emblem on cream, no photo/text/buttons ───── */
#hero{
    background: var(--bg) var(--grain);
    background-blend-mode: multiply;
    min-height: 100vh;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
}
#hero .hero-content{ max-width: none; width: auto; margin: 0; padding: 0 24px; text-align: center; }
.hero-cta{ display: inline-block; margin-top: 36px; }
.hero-sygnet{
    width: clamp(220px, 70vw, 560px);
    height: auto; display: block; margin: 0 auto;
}
/* Booking — text link pinned bottom-right, 44px tap target */
.hero-booking{
    position: absolute;
    right: clamp(8px, 3vw, 40px);
    bottom: clamp(10px, 3vw, 30px);
    z-index: 4;
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 11px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    color: var(--ink); background: transparent; border: none;
    transition: color .3s ease;
}
.hero-booking:hover{ color: var(--accent-ink); }
.hero-booking i{ font-size: 14px; }
.scroll-line{ display: block; background: linear-gradient(to bottom, transparent, var(--ink)); }
.scroll-arrow{ display: none; }

/* ── SECTION HEADERS ───────────────────────────────────────── */
.section-center{ margin-bottom: 64px; }
.section-title{ font-size: clamp(2.5rem, 5.2vw, 4.3rem); line-height: 1.05; color: var(--ink); }
.section-title.center::after{
    content:''; display:block; width: 58px; height: 1px;
    background: var(--accent); margin: 22px auto 0;
}
.eyebrow{ color: var(--accent); }
.eyebrow::before{ background: var(--accent); }
.section-sub{ color: var(--ink-soft); font-size: 16px; }

/* ── ABOUT — cream panel curving over the hero ─────────────── */
#about{
    background: var(--cream) var(--grain);
    background-blend-mode: multiply;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: -40px;
    position: relative; z-index: 3;
    padding-top: 140px;
}
.lead-copy,.body-copy{ color: var(--ink); font-size: 17px; line-height: 1.85; font-weight: 400; }
.feature-grid{ gap: 12px; }
.feat{
    background: transparent; border: none;
    border-bottom: 1px solid var(--line-cream);
    border-radius: 0; padding: 14px 6px;
}
.feat:hover{ background: transparent; transform: none; box-shadow: none; }
.feat:hover strong{ color: var(--accent-ink); }
.feat i{ color: var(--accent); }
.feat strong{ color: var(--ink); font-size: 13px; }
.feat span{ color: var(--ink-soft); }
.about-img{
    aspect-ratio: 1; height: auto; max-width: 520px;
    margin: 0 auto; border-radius: 50%;
    box-shadow: var(--shadow-lg);
}
.about-img-wrap::after{ display: none; }
@media (max-width: 767px){ .about-img{ max-width: 86%; } }

/* ── STATS — deep olive panel ──────────────────────────────── */
#stats{ background: var(--olive) var(--grain); background-blend-mode: multiply; padding: 76px 0; }
.stat-item{ border-right-color: var(--line-dark); }
.stat-num,.stat-suffix{ color: var(--cream-text); font-weight: 500; }
.stat-item p{ color: var(--cream-text); letter-spacing: 2px; }
@media (max-width: 600px){
    .stats-grid{ grid-template-columns: 1fr; }
    .stat-item{ border-right: none; border-bottom: 1px solid var(--line-dark); }
    .stat-item:last-child{ border-bottom: none; }
}

/* ── ATTRACTIONS — cream ───────────────────────────────────── */
#services{ background: var(--cream) var(--grain); background-blend-mode: multiply; }
.attr-card{
    background: var(--cream-2);
    border: 1px solid var(--line-cream);
    border-radius: 22px; box-shadow: none;
}
.attr-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow); }
.attr-img{ height: 230px; border-radius: 22px 22px 0 0; }
.attr-icon{ background: var(--brown); }
.attr-icon i{ color: var(--cream-text); }
.attr-body h4{ font-family:'Cormorant',serif; font-weight:500; font-size: 23px; color: var(--ink); }
.attr-body p{ color: var(--ink-soft); font-size: 14px; }

/* ── CTA — editorial statement on espresso ─────────────────── */
#call-to-action{
    background: var(--brown) var(--grain);
    background-blend-mode: multiply;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: -40px;
    position: relative; z-index: 3;
    padding: 150px 0;
}
.cta-overlay{ display: none; }
#call-to-action h2{
    font-family:'Cormorant',serif; font-weight: 500;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.02; color: var(--cream-text);
    max-width: 16ch; margin: 0 auto 22px;
}
#call-to-action p{ color: var(--cream-text); opacity: .82; font-family:'Cormorant',serif; font-style:italic; font-size: 19px; }
#call-to-action .btn-gold{ background: var(--cream-2); color: var(--brown); }
#call-to-action .btn-gold:hover{ background: #fff; color: var(--brown); }

/* ── GALLERY — editorial mosaic ────────────────────────────── */
#portfolio{ background: var(--cream) var(--grain); background-blend-mode: multiply; }
.masonry-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 215px;
    grid-auto-flow: dense;
    gap: 14px;
    column-count: auto;          /* cancel the base multicol layout */
}
.masonry-item{
    position: relative; display: block;
    overflow: hidden; border-radius: 16px;
    margin: 0; box-shadow: var(--shadow);
}
.masonry-item img{
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.masonry-item:hover img{ transform: scale(1.07); }
/* featured tiles for editorial rhythm */
.masonry-item:nth-child(1){ grid-column: span 2; grid-row: span 2; }
.masonry-item:nth-child(8){ grid-column: span 2; }
.masonry-item:nth-child(11){ grid-row: span 2; }
.masonry-item:nth-child(14){ grid-column: span 2; grid-row: span 2; }
/* hover veil + caption + view button */
.gal-hover{
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(40,34,28,.74) 0%, rgba(40,34,28,.12) 46%, rgba(40,34,28,0) 72%);
    opacity: 0; transition: opacity .45s ease;
    display: flex; align-items: flex-end; padding: 18px;
}
.masonry-item:hover .gal-hover{ opacity: 1; }
.gal-cap{
    color: var(--cream-text);
    font-family: 'Cormorant', serif; font-weight: 500;
    font-size: 19px; line-height: 1.15; padding-right: 42px;
    transform: translateY(8px); transition: transform .45s ease;
}
.masonry-item:hover .gal-cap{ transform: translateY(0); }
.gal-hover i{
    position: absolute; top: 14px; right: 14px;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(230,224,209,.92); color: var(--brown);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    transform: scale(.7); transition: transform .45s ease;
}
.masonry-item:hover .gal-hover i{ transform: scale(1); }
@media (max-width: 991px){
    .masonry-grid{ grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
    .masonry-item:nth-child(14){ grid-row: span 1; }
}
@media (max-width: 575px){
    .masonry-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 148px; gap: 10px; }
    .masonry-item{ grid-column: auto; grid-row: auto; }
    .masonry-item:nth-child(1){ grid-column: span 2; grid-row: span 2; }
    .gal-cap{ font-size: 16px; padding-right: 0; }
}

/* ── OFERTA — menu-style price card ────────────────────────── */
#oferta{ background: var(--cream) var(--grain); background-blend-mode: multiply; padding-bottom: 120px; }
.price-card{
    max-width: 640px; margin: 0 auto;
    background: var(--cream-2);
    border: 1px solid var(--line-cream);
    border-radius: 26px;
    padding: clamp(28px, 5vw, 52px);
    box-shadow: var(--shadow);
    text-align: center;
}
.price-list{ list-style: none; margin: 0 0 30px; padding: 0; text-align: left; }
.price-row{ display: flex; align-items: baseline; gap: 14px; padding: 16px 2px; border-bottom: 1px solid var(--line-cream); }
.price-row:last-child{ border-bottom: none; }
.price-name{ font-family:'Cormorant',serif; font-weight: 500; font-size: 24px; color: var(--ink); white-space: nowrap; }
.price-dots{ flex: 1 1 auto; min-width: 16px; border-bottom: 1px dotted rgba(56,48,42,.35); transform: translateY(-5px); }
.price-val{ font-family:'Cormorant',serif; font-weight: 600; font-size: 24px; color: var(--ink); white-space: nowrap; }
.price-val em{ font-style: normal; font-family:'Inter',sans-serif; font-size: 12px; letter-spacing: .5px; color: var(--ink-soft); }
.price-note{ font-size: 14px; color: var(--ink-soft); line-height: 1.7; margin: 0 auto 14px; max-width: 52ch; }
.price-cta{ font-size: 15px; color: var(--ink); line-height: 1.7; margin: 0 auto 26px; max-width: 50ch; }
.price-call{ display: inline-flex; align-items: center; gap: 9px; }
@media (max-width: 480px){
    .price-name,.price-val{ font-size: 20px; }
}

/* ── REZERWACJA ONLINE — booking engine ────────────────────── */
#rezerwacja{
    background: var(--cream-2) var(--grain);
    background-blend-mode: multiply;
    padding: 130px 0;
}
.booking-engine{
    max-width: 960px; margin: 0 auto;
    background: var(--cream);
    border: 1px solid var(--line-cream);
    border-radius: 26px;
    padding: clamp(18px, 3vw, 34px);
    box-shadow: var(--shadow);
}
.booking-engine .iai-search{ width: 100%; }
#iai_book_se.iai_horizontal{ width: 100% !important; display: block !important; }
#iai_book_se form{ display: flex !important; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 0 10px; }
#iai_book_se form > div{ flex: 1 1 186px !important; width: auto !important; margin: 0 0 10px 0 !important; }
@media (max-width: 575px){
    #rezerwacja{ padding: 88px 0; }
}

/* ── FAQ — cream ───────────────────────────────────────────── */
#faq{ background: var(--cream) var(--grain); background-blend-mode: multiply; }
.faq-item{
    background: transparent; border: none;
    border-bottom: 1px solid var(--line-cream);
    border-radius: 0; box-shadow: none;
}
.faq-q{ font-family:'Inter',sans-serif; font-size: 16px; color: var(--ink); padding: 24px 4px; }
.faq-q:hover{ color: var(--accent-ink); }
.faq-q i{ color: var(--accent); }
.faq-a{ padding: 0 4px; }
.faq-item.open .faq-a{ padding: 0 4px 24px; }
.faq-a p{ color: var(--ink-soft); }

/* ── CONTACT — cream ───────────────────────────────────────── */
#contact{ background: var(--cream) var(--grain); background-blend-mode: multiply; padding-bottom: 80px; }
.contact-cards{ grid-template-columns: repeat(4, 1fr); }
.contact-card{
    background: var(--cream-2);
    border: 1px solid var(--line-cream);
    border-radius: 22px; box-shadow: none;
}
.contact-card:hover{ transform: translateY(-5px); box-shadow: var(--shadow); }
.cc-icon{ background: var(--brown); }
.cc-icon i{ color: var(--cream-text); }
.contact-card h5{ color: var(--ink); }
.contact-card p,.contact-card a{ color: var(--ink-soft); }
.contact-card a:hover{ color: var(--accent-ink); }
.contact-form-box,.directions-box{
    background: var(--cream-2);
    border: 1px solid var(--line-cream);
    border-radius: 26px; box-shadow: none;
}
.contact-form-box h3,.directions-box h3{ font-weight: 500; font-size: 34px; color: var(--ink); }
.form-field input,.form-field textarea{
    background: var(--cream);
    border: 1px solid var(--line-cream);
    color: var(--ink); border-radius: 12px;
}
.form-field input:focus,.form-field textarea:focus{ border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px rgba(56,48,42,.30); }
.form-field label{ color: var(--ink-soft); }
.dir-icon{ background: var(--cream); }
.dir-icon i{ color: var(--accent); }
.direction-item strong{ color: var(--ink); }
.direction-item p{ color: var(--ink-soft); }
.map-inner{ border-radius: 26px; }
.map-inner iframe{ filter: grayscale(1) sepia(.12) contrast(.93) brightness(1.04); }

/* ── FOOTER — espresso, script wordmark ────────────────────── */
#footer{
    background: var(--brown) var(--grain);
    background-blend-mode: multiply;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: -40px;
    position: relative; z-index: 3;
    padding: 34px 0 26px;
}
.footer-name{ display: block; text-align: center; line-height: 0; margin-bottom: 4px; transition: opacity .3s ease; }
.footer-name img{
    height: clamp(46px, 7vw, 66px); width: auto;
    display: block; margin: 0 auto;
    filter: brightness(0) invert(1) sepia(.16) saturate(1.5) brightness(1.03);
    opacity: .9;
}
.footer-name:hover{ opacity: .75; }
.footer-logo{ display: none; }
.footer-info p,.footer-info a,#footer p{ color: var(--muted-cream); }
.footer-info i{ color: var(--accent-soft); }
.footer-info a:hover{ color: var(--cream-text); }
.footer-fb{ background: rgba(236,227,200,.12); color: var(--muted-cream); }
.footer-fb:hover{ background: var(--accent); color: var(--brown); }

/* ── BACK TO TOP ───────────────────────────────────────────── */
.back-top{ background: var(--brown); color: var(--cream-text); box-shadow: var(--shadow); }
.back-top:hover{ background: var(--accent); color: var(--brown); }

/* ── RESPONSIVE PANELS ─────────────────────────────────────── */
@media (max-width: 991px){ #about,#call-to-action,#footer{ border-radius: 26px 26px 0 0; } }
@media (max-width: 767px){ #about{ padding-top: 96px; } }
