/* ===============================
   Transport Koni Trójmiasto - public site
   =============================== */

:root {
    --tk-black:  #0d0d0d;
    --tk-dark:   #1a1a1a;
    --tk-gold:   #c9a96e;
    --tk-cream:  #f7f3ee;
    --tk-gray:   #6b6b6b;
    --tk-line:   rgba(13, 13, 13, 0.08);
}

html { scroll-behavior: smooth; }

body.public {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--tk-black);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
}

body.public h1, body.public h2, body.public h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

body.public p, body.public li, body.public a, body.public span,
body.public input, body.public textarea, body.public button, body.public select {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* === HEADER === */
.tk-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: all .3s ease;
}
.tk-header.scrolled {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 2px 24px rgba(0,0,0,0.06);
    padding: 12px 0;
}
.tk-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tk-black);
    text-decoration: none;
    display: flex; align-items: center; gap: 12px;
}

.tk-nav { display: flex; align-items: center; gap: 32px; }
.tk-nav a {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--tk-black);
    text-decoration: none;
    letter-spacing: 0.02em;
    position: relative;
    padding: 4px 0;
    transition: color .2s ease;
}
.tk-nav a::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--tk-gold);
    transition: width .25s ease;
}
.tk-nav a:hover::after, .tk-nav a.active::after { width: 100%; }
.tk-nav a:hover { color: var(--tk-gold); }

.tk-lang {
    font-size: 0.85rem;
    border: 1px solid var(--tk-line);
    padding: 6px 12px;
    border-radius: 999px;
    background: transparent;
    text-decoration: none;
    color: var(--tk-black);
    transition: all .2s;
}
.tk-lang:hover { background: var(--tk-black); color: #fff; }

.tk-cta {
    background: var(--tk-black);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 999px;
    transition: all .25s;
}
.tk-cta:hover { background: var(--tk-gold); }
.tk-cta::after { display: none !important; }

/* === HERO === */
.tk-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #f7f3ee 0%, #e8e0d3 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}
/* Hero tło: jeśli logo wgrane -> użyj go, inaczej delikatny gradient bez SVG */
.tk-hero::before {
    content: '';
    position: absolute;
    right: -10%; bottom: -10%;
    width: 70%; height: 130%;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(201,169,110,0.08) 0%, transparent 60%);
    animation: tk-float 8s ease-in-out infinite;
}
.tk-hero-with-logo::before {
    background-image: var(--tk-logo);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
    opacity: 0.92;
}

/* Brand mark - wspólny dla wszystkich sekcji */
.tk-brand-mark {
    transition: transform .3s ease, opacity .3s ease;
}
.tk-brand:hover .tk-brand-mark { transform: translateX(4px); }

/* Placeholder z inicjałami gdy brak wgranego logo */
.tk-brand-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--tk-black);
    color: var(--tk-cream);
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.tk-brand-placeholder-dark {
    background: var(--tk-cream);
    color: var(--tk-black);
}
@keyframes tk-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
.tk-hero-content { position: relative; z-index: 2; max-width: 640px; }
.tk-hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 28px;
}
.tk-hero h1 em {
    font-style: italic;
    color: var(--tk-gold);
    font-weight: 400;
}
.tk-hero p { font-size: 1.2rem; color: var(--tk-gray); margin-bottom: 36px; max-width: 540px; }

.tk-hero-cta {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 16px 32px;
    background: var(--tk-black);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all .3s ease;
    box-shadow: 0 8px 32px rgba(13,13,13,0.15);
}
.tk-hero-cta:hover {
    background: var(--tk-gold);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(201,169,110,0.4);
    color: #fff;
}
.tk-hero-cta i { font-size: 1.1rem; transition: transform .3s; }
.tk-hero-cta:hover i { transform: translateX(4px); }

.tk-scroll-indicator {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    color: var(--tk-gray); font-size: 0.85rem; letter-spacing: 0.1em;
    text-transform: uppercase; animation: tk-bounce 2s infinite;
}
@keyframes tk-bounce {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
    50%      { transform: translate(-50%, 8px); opacity: 1; }
}

/* === SECTIONS === */
.tk-section { padding: 100px 0; position: relative; }
.tk-section.dark  { background: var(--tk-black); color: #fff; }
.tk-section.cream { background: var(--tk-cream); }

.tk-eyebrow {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
    color: var(--tk-gold);
    margin-bottom: 16px;
    font-weight: 600;
}
.tk-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 24px;
}
.tk-section-lead { font-size: 1.15rem; color: var(--tk-gray); max-width: 620px; margin-bottom: 48px; }
.tk-section.dark .tk-section-lead { color: rgba(255,255,255,0.7); }

/* === SERVICES === */
.tk-service {
    background: #fff;
    padding: 40px 32px;
    border-radius: 4px;
    border: 1px solid var(--tk-line);
    height: 100%;
    transition: all .35s ease;
    position: relative;
    overflow: hidden;
}
.tk-service::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--tk-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}
.tk-service:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.08);
    border-color: transparent;
}
.tk-service:hover::before { transform: scaleX(1); }
.tk-service-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--tk-cream);
    display: flex; align-items: center; justify-content: center;
    color: var(--tk-black);
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: all .35s;
}
.tk-service:hover .tk-service-icon { background: var(--tk-black); color: var(--tk-gold); }
.tk-service h3 { font-size: 1.4rem; margin-bottom: 12px; }
.tk-service p { color: var(--tk-gray); font-size: 0.95rem; margin: 0; }

/* === STATS COUNTER === */
.tk-stat { text-align: center; }
.tk-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--tk-gold);
    line-height: 1;
    margin-bottom: 8px;
}
.tk-stat-label {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* === MINI CALCULATOR === */
.tk-calc {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.12);
    margin-top: -120px;
    position: relative;
    z-index: 5;
}
.tk-calc h3 { font-size: 1.6rem; margin-bottom: 8px; }
.tk-calc-result {
    background: var(--tk-cream);
    border-radius: 4px;
    padding: 24px;
    margin-top: 16px;
    transition: all .3s ease;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}
.tk-calc-result.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.tk-calc-distance { font-size: 2rem; font-weight: 700; color: var(--tk-black); }
.tk-calc-note { color: var(--tk-gray); font-size: 0.9rem; }

/* === ABOUT === */
.tk-about-img {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--tk-black) 0%, var(--tk-dark) 100%);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.tk-about-img img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}
.tk-about-img.has-logo img {
    filter: none;
    opacity: 1;
    background: rgba(255,255,255,0.04);
    padding: 24px;
    border-radius: 4px;
}
.tk-about-img-placeholder {
    color: var(--tk-cream);
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    opacity: 0.3;
}
.tk-signature {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--tk-gold);
    margin-top: 24px;
}

/* === TESTIMONIALS === */
.tk-testimonial {
    background: #fff;
    padding: 40px 36px;
    border-left: 3px solid var(--tk-gold);
    margin-bottom: 24px;
    position: relative;
}
.tk-testimonial::before {
    content: '"';
    position: absolute;
    top: -20px; left: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: var(--tk-gold);
    opacity: 0.3;
    line-height: 1;
}
.tk-testimonial-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--tk-dark);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.tk-testimonial-author { font-weight: 600; }
.tk-testimonial-role { color: var(--tk-gray); font-size: 0.9rem; }

/* === GALLERY === */
.tk-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4px;
}
.tk-gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.tk-gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s ease;
}
.tk-gallery-item:hover img { transform: scale(1.08); }
.tk-gallery-item::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(13,13,13,0);
    transition: background .3s;
}
.tk-gallery-item:hover::after { background: rgba(13,13,13,0.3); }

/* === CONTACT === */
.tk-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}
@media (max-width: 768px) {
    .tk-contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
.tk-contact-item {
    display: flex; gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--tk-line);
}
.tk-contact-item i {
    width: 40px; height: 40px;
    background: var(--tk-cream);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--tk-black);
    flex-shrink: 0;
}
.tk-contact-item-label { font-size: 0.85rem; color: var(--tk-gray); text-transform: uppercase; letter-spacing: 0.1em; }
.tk-contact-item-value { font-size: 1.05rem; color: var(--tk-black); text-decoration: none; font-weight: 500; }

/* === FORM === */
.tk-form input, .tk-form textarea, .tk-form select {
    border: none;
    border-bottom: 1px solid var(--tk-line);
    border-radius: 0;
    padding: 14px 0;
    background: transparent;
    width: 100%;
    transition: border-color .2s;
    box-shadow: none !important;
}
.tk-form input:focus, .tk-form textarea:focus, .tk-form select:focus {
    border-bottom-color: var(--tk-gold);
    outline: none;
}
.tk-form label { font-size: 0.78rem; color: var(--tk-gray); text-transform: uppercase; letter-spacing: 0.1em; }
.tk-form-submit {
    background: var(--tk-black);
    color: #fff;
    border: none;
    padding: 16px 40px;
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all .3s;
}
.tk-form-submit:hover { background: var(--tk-gold); transform: translateY(-2px); }
.tk-form-msg { padding: 14px; border-radius: 4px; margin-top: 16px; display: none; }
.tk-form-msg.show { display: block; }
.tk-form-msg.ok { background: rgba(40,167,69,0.1); color: #157347; }
.tk-form-msg.err { background: rgba(220,53,69,0.1); color: #b02a37; }

/* === FOOTER === */
.tk-footer {
    background: var(--tk-black);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 32px;
    font-size: 0.92rem;
}
.tk-footer h4 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.tk-footer a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color .2s; }
.tk-footer a:hover { color: var(--tk-gold); }
.tk-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
    margin-top: 48px;
    font-size: 0.82rem;
}

/* === ANIMATIONS ON SCROLL === */
.tk-fade { opacity: 0; transform: translateY(24px); transition: all .8s ease; }
.tk-fade.in { opacity: 1; transform: translateY(0); }

/* === REVEAL HORSE STAMPEDE (interactive easter egg on hero click) === */
.tk-stampede {
    position: fixed; pointer-events: none;
    width: 80px; height: 80px;
    background: var(--tk-black);
    -webkit-mask: url('/assets/img/horse.svg') center/contain no-repeat;
            mask: url('/assets/img/horse.svg') center/contain no-repeat;
    opacity: 0;
    z-index: 9999;
    animation: tk-gallop 1.2s cubic-bezier(0.5, 0, 0.5, 1) forwards;
}
@keyframes tk-gallop {
    0%   { opacity: 0; transform: translateX(-100px) scale(0.5); }
    20%  { opacity: 1; }
    100% { opacity: 0; transform: translateX(calc(100vw + 100px)) scale(1.2) rotate(-2deg); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .tk-nav { display: none; }
    .tk-section { padding: 64px 0; }
    .tk-hero { padding: 100px 0 60px; min-height: 90vh; }
    .tk-hero::before { opacity: 0.25; right: -30%; }
    .tk-calc { margin-top: -60px; padding: 28px; }
}
