/* ============================================
   KOLOUSZEK — Global Styles (Modern 2026)
   ============================================ */

/* --- CSS Variables --- */
:root {
    --color-forest:  #42513c;   /* ciemna zieleń — baza */
    --color-pine:    #5a6e52;   /* sosnowy */
    --color-oak:     #8b8566;   /* dębowy — ciepła, brązowa harmonia */
    --color-mint:    #8fb8a3;   /* miętowy — łagodzony, mniej jaskrawy */
    --color-mint-lt: #c5ddd2;   /* jasny miętowy / tło sekcji — łagodzony */
    --color-gold:    #c6a96b;   /* złota/beżowa — akcenty eleganckie */
    --color-white:   #ffffff;
    --color-grey-lt: #f5f5f3;   /* bardzo jasna szarość — tło */
    --color-grey:    #e8e4df;   /* szarość */
    --color-grey-md: #9a9a96;   /* średnia szarość — teksty pomocnicze */
    --color-text:    #2a2a28;   /* główny tekst */

    --font-serif:  'Playfair Display', Georgia, serif;
    --font-sans:   'Inter', system-ui, sans-serif;

    --container:   1100px;
    --section-pad: clamp(4rem, 8vw, 7rem);
    --radius:      16px;
    --radius-lg:   28px;

    --shadow-sm:  0 2px 8px rgba(66,81,60,.08);
    --shadow-md:  0 8px 32px rgba(66,81,60,.12);

    --transition: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Glass & Glow */
    --glass-bg: rgba(255,255,255,0.04);
    --glass-border: rgba(255,255,255,0.08);
    --glow-mint: rgba(143,184,163,0.1);
    --noise-opacity: 0.025;

    /* Cursor glow (changed by JS) */
    --cursor-x: 0;
    --cursor-y: 0;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
    background: #0e0f0d;
    overflow-x: hidden;
    position: relative;
}

/* Grain/noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' seed='1' /%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noiseFilter)' opacity='0.5'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: var(--noise-opacity);
    pointer-events: none;
    z-index: 1;
}

/* Ambient cursor glow */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(
        circle 600px at var(--cursor-x) var(--cursor-y),
        rgba(143,184,163,0.05) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
    transition: background 0.1s linear;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    line-height: 1.25;
    color: var(--color-forest);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 400; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }

p { font-size: clamp(0.95rem, 1.7vw, 1.05rem); color: rgba(255,255,255,0.75); }

/* --- Container --- */
.container {
    width: min(var(--container), 92%);
    margin-inline: auto;
}

/* --- Section base --- */
.section {
    padding-block: var(--section-pad);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-oak);
    background: rgba(139,133,102,0.1);
    border: 1px solid rgba(139,133,102,0.2);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.section-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-oak);
    border-radius: 50%;
    display: block;
}

/* Alternate label style with mint accent */
.section-label--mint {
    color: var(--color-mint);
    background: var(--glow-mint);
    border-color: rgba(168,213,181,0.2);
}

.section-label--mint::before {
    background: var(--color-mint);
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-gold) 30%, var(--color-gold) 70%, transparent 100%);
    border-radius: 2px;
    margin: 0 0 2.5rem 0;
}

.section-divider--mint {
    background: var(--color-mint);
}

/* --- Animations --- */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate.visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-delay-1 { transition-delay: 0.15s; }
.animate-delay-2 { transition-delay: 0.3s; }
.animate-delay-3 { transition-delay: 0.45s; }
.animate-delay-4 { transition-delay: 0.6s; }

/* Hero title slide-in animation */
.section-title {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

/* Hero name slide-in animation */
.ks-hero__name {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

/* Hero title slide-in animation */
.ks-hero__title {
    animation: slideInFromLeft 0.8s ease-out forwards;
    animation-delay: 0.15s;
}

/* Hero description slide-in animation */
.ks-hero__description {
    animation: slideInFromLeft 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

/* Hero photo fade-in animation */
.ks-hero__photo {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: 0.3s;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background: rgba(14,15,13,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: rgba(168,213,181,0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.header-inner {
    width: min(var(--container), 92%);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 80px;
    gap: 2rem;
}

.site-logo {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 0.02em;
    transition: color var(--transition);
    margin-left: -2rem;
}
.site-header.scrolled .site-logo { color: var(--color-white); }

.site-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 1.4rem;
}

.nav-menu a {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    transition: color var(--transition);
}
.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1.5px;
    background: var(--color-mint);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.3s ease;
}
.nav-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}
.site-header.scrolled .nav-menu a { color: rgba(255,255,255,0.75); }

.nav-menu a:hover { color: var(--color-mint); }

.nav-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(168,213,181,0.1);
    border: 1px solid rgba(168,213,181,0.2);
    color: var(--color-mint);
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    flex-shrink: 0;
}

.nav-phone:hover {
    background: rgba(168,213,181,0.15);
    border-color: rgba(168,213,181,0.3);
    transform: scale(1.1);
}

.phone-icon {
    width: 16px;
    height: 16px;
    color: var(--color-mint);
}

.site-header.scrolled .nav-phone {
    background: rgba(168,213,181,0.08);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition), background var(--transition);
    transform-origin: center;
}

.nav-toggle span:nth-child(1) {
    transform: translateY(0);
}

.nav-toggle span:nth-child(2) {
    opacity: 1;
}

.nav-toggle span:nth-child(3) {
    transform: translateY(0);
}

/* Hamburger animation when menu is open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-header.scrolled .nav-toggle span {
    background: rgba(255,255,255,0.8);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #0e0f0d;
    border-top: 1px solid rgba(168,213,181,0.1);
    color: rgba(255,255,255,0.65);
    padding-block: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(66,81,60,0.12) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.footer-inner {
    width: min(var(--container), 92%);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 3.5rem;
    position: relative;
    z-index: 1;
}

/* --- Col 1: Brand --- */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-logo:hover { color: var(--color-mint); }

.footer-tagline {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-oak);
    margin: 0;
}

.footer-bio {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.65;
    margin: 0.4rem 0 0 0;
    max-width: 300px;
}

/* --- Col 2 & 3: Columns --- */
.footer-col-heading {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin: 0 0 1.1rem 0;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(168,213,181,0.1);
}

/* --- Navigation column --- */
.footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-nav a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color var(--transition), padding-left var(--transition);
    display: inline-block;
}

.footer-nav a:hover {
    color: var(--color-mint);
    padding-left: 4px;
}

/* --- Contact column --- */
.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.footer-contact-list svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--color-oak);
    opacity: 0.8;
}

.footer-contact-list div,
.footer-contact-list address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-contact-list a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-contact-list a:hover { color: var(--color-mint); }

.footer-contact-list address {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}

/* --- Bottom bar --- */
.footer-bottom {
    width: min(var(--container), 92%);
    margin-inline: auto;
    border-top: 1px solid rgba(168,213,181,0.08);
    padding-top: 1.5rem;
    margin-top: 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-copy {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    margin: 0;
    letter-spacing: 0.02em;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bio { max-width: 100%; }
}

@media (max-width: 640px) {
    .site-footer { padding-block: 2.5rem 1.5rem; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom { margin-top: 2rem; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .header-inner {
        height: 80px;
    }

    .site-logo {
        margin-left: 0;
    }

    .nav-toggle {
        display: flex;
        order: 2;
        margin-left: 1rem;
    }

    .nav-phone {
        display: flex;
        order: 1;
        margin-left: auto;
    }

    .nav-menu {
        display: none !important;
    }

    /* Gdy menu jest otwarte — nagłówek ma solidne tło */
    body.nav-open .site-header {
        background: rgba(14,15,13,0.95) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .nav-menu.is-open {
        display: flex !important;
        position: fixed;
        top: 80px; left: 0; right: 0; bottom: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: linear-gradient(180deg, rgba(14,15,13,0.98) 0%, rgba(14,15,13,0.96) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
        border-bottom: 1px solid rgba(168,213,181,0.08);
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        z-index: 99;
        overflow-y: auto;
        align-items: center;
        justify-content: flex-start;
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu li a {
        display: block;
        padding: 1rem 2rem;
        font-size: 0.85rem;
        color: rgba(255,255,255,0.75);
        letter-spacing: 0.08em;
        text-transform: uppercase;
        font-weight: 500;
    }

    .nav-menu li a:hover {
        color: var(--color-mint);
    }

}

/* ============================================
   404 PAGE
   ============================================ */

.error-404-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-pad) 1.5rem;
    text-align: center;
}

.error-404-inner {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.error-404-code {
    font-family: var(--font-serif);
    font-size: clamp(6rem, 20vw, 11rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-mint), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.error-404-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.error-404-text {
    font-size: 1rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    max-width: 420px;
}

.error-404-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.85rem 2.2rem;
    background: var(--color-forest);
    color: rgba(255,255,255,0.9);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.08);
    transition: background var(--transition), color var(--transition);
}

.error-404-btn:hover {
    background: var(--color-pine);
    color: var(--color-mint-lt);
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(66, 81, 60, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(143, 184, 163, 0.2);
    padding: clamp(1rem, 4vw, 2rem);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.hidden {
    display: none;
}

.cookie-container {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    flex-wrap: wrap;
}

.cookie-content {
    flex: 1;
    min-width: 250px;
}

.cookie-content p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition);
}

.cookie-content a:hover {
    color: var(--color-mint);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-sans);
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--color-mint);
    color: var(--color-forest);
}

.cookie-btn-accept:hover {
    background: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(143, 184, 163, 0.25);
}

.cookie-btn-reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(143, 184, 163, 0.4);
}

.cookie-btn-reject:hover {
    background: rgba(143, 184, 163, 0.15);
    border-color: rgba(143, 184, 163, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}

/* ============================================
   POLICY PAGES
   ============================================ */

.policy-page {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--section-pad) clamp(1rem, 4vw, 2rem);
}

.policy-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--color-mint-lt);
}

.policy-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-forest);
    margin-bottom: 0.5rem;
}

.policy-date {
    font-size: 0.95rem;
    color: var(--color-grey-md);
    margin: 0;
}

.policy-content {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.policy-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-gold);
    margin: 2rem 0 1rem 0;
    padding-top: 1rem;
}

.policy-content h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--color-mint);
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
}

.policy-content p {
    margin: 1rem 0;
    color: rgba(255, 255, 255, 0.85);
}

.policy-content ul,
.policy-content ol {
    margin: 1rem 0 1rem 2rem;
    color: rgba(255, 255, 255, 0.85);
}

.policy-content li {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.85);
}

.policy-content a {
    color: var(--color-mint);
    text-decoration: none;
    transition: color var(--transition);
    font-weight: 500;
}

.policy-content a:hover {
    color: var(--color-gold);
    text-decoration: underline;
}
