/*
Theme Name: Londyn Turysta
Theme URI: https://londynturysta.com/
Author: Londyn Turysta
Description: Autorski motyw blokowy inspirowany historią i architekturą Londynu.
Version: 2.0.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: londyn-turysta
*/

/* ==================================================
   1. ZMIENNE MOTYWU – KOLORY
   Źródłem kolorów i ich przypisań jest theme.json.
   ================================================== */

:root {

    /* Tła ciemne */
    --lt-background-dark-1: var(--wp--custom--background-color--dark-1);
    --lt-background-dark-2: var(--wp--custom--background-color--dark-2);

    /* Tła jasne */
    --lt-background-light-1: var(--wp--custom--background-color--light-1);
    --lt-background-light-2: var(--wp--custom--background-color--light-2);

    /* Tekst ciemny */
    --lt-text-dark-1: var(--wp--custom--text-color--dark-1);
    --lt-text-dark-2: var(--wp--custom--text-color--dark-2);

    /* Tekst jasny */
    --lt-text-light-1: var(--wp--custom--text-color--light-1);
    --lt-text-light-2: var(--wp--custom--text-color--light-2);

    /* Kolory akcentowe */
    --lt-accent-1: var(--wp--custom--accent-color--1);
    --lt-accent-2: var(--wp--custom--accent-color--2);
    --lt-accent-3: var(--wp--custom--accent-color--3);
    --lt-accent-4: var(--wp--custom--accent-color--4);

    /* Zgodność ze starszymi nazwami zmiennych */
    --lt-neutral-1: var(--lt-text-dark-1);
    --lt-neutral-2: var(--lt-text-light-1);
    --lt-nature-1: var(--lt-accent-4);
}

/* ==================================================
   2. PODSTAWOWE USTAWIENIA
   ================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ==================================================
   3. TYPOGRAFIA
   ================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-variant: small-caps;
}

/* ==================================================
   4. NAGŁÓWEK – TRANSPARENT STICKY HEADER
   ================================================== */

.lt-site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;

    width: 100%;

    background-color: transparent !important;

    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Nagłówek po przewinięciu strony */

.lt-site-header.is-scrolled {
    background-color: var(--lt-background-dark-1) !important;
    box-shadow: 0 0.1875rem 0.75rem rgb(0 0 0 / 20%);
}

/* Nazwa strony */

.lt-site-header .wp-block-site-title a {
    color: var(--lt-accent-1);
    text-decoration: none;
}

/* Menu */

.lt-site-header .wp-block-navigation a {
    color: var(--lt-text-light-1);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lt-site-header .wp-block-navigation a:hover {
    color: var(--lt-accent-1);
}

/* ==================================================
   5. WIKTORIAŃSKI SEPARATOR
   ================================================== */

.lt-victorian-divider {
    width: 100%;
    max-width: 43.75rem;
    margin: 0.3125rem auto;
    text-align: center;
}

.lt-divider-decoration {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

/* ==================================================
   6. WIKTORIAŃSKI PRZYCISK
   ================================================== */

.lt-victorian-button .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 3.375rem;
    padding: 0.875rem 2.375rem;

    color: var(--lt-accent-1) !important;

    font-family: var(--wp--preset--font-family--fira-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1125rem;
    text-transform: uppercase;

    text-decoration: none;

    border: 0.09375rem solid var(--lt-accent-1) !important;
    border-radius: 0.7rem !important;
    corner-shape: scoop;

    background: var(--lt-background-dark-1) !important;

    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease;
}

/* Efekt po najechaniu */

.lt-victorian-button .wp-block-button__link:hover {
    color: var(--lt-background-dark-1) !important;
    background: var(--lt-accent-1) !important;
    border-color: var(--lt-accent-1) !important;
}

/* Fokus klawiatury */

.lt-victorian-button .wp-block-button__link:focus-visible {
    outline: 0.125rem solid var(--lt-accent-1);
    outline-offset: 0.25rem;
}

/* ==================================================
   7. WIKTORIAŃSKIE ZDJĘCIA
   ================================================== */

.lt-victorian-photo {
    overflow: hidden;

    border: 0.09375rem solid var(--lt-accent-1);
    border-radius: 1.5rem;

    corner-shape: scoop;
}

.lt-victorian-photo img {
    display: block;
    width: 100%;
    height: auto;
}

/* ==================================================
   8. OGRANICZENIE ANIMACJI
   ================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}