/*
 Theme Name:    Sylwia Patrycja Madejska
 Theme URI:     https://kursy.digitalgo.pl/
 Description:   Light and fast website, clean code.
 Author:        Daria Katarzyna Król
 Author URI:    https://dariakatarzynakrol.pl/
 Template:      astra
 Version:       1.0.0
 Text Domain:   madejska-child
*/

/* Tutaj dopisuj własny kod CSS */

/* GLOBALNE USTAWIENIA DLA TEKSTÓW RESPONSYWNYCH */
.s2-heading, .s2-heading span, .typewriter-wrap {
    /* Blokuje rozbijanie słów na pojedyncze litery */
    word-break: keep-all; 
    /* Blokuje automatyczne dodawanie dywizów (myślników) */
    hyphens: none; 
    /* Zapobiega zawijaniu wiersza wewnątrz słowa */
    overflow-wrap: normal; 
}

@media (max-width: 480px) {
    .s2-heading {
        /* 
           Skaluje font dynamicznie względem szerokości ekranu (vw).
           Dzięki temu długie słowo zawsze zmieści się w jednej linii, 
           bo "skurczy się" razem z ekranem telefonu.
        */
        font-size: clamp(28px, 8vw, 36px) !important;
        line-height: 1.2;
    }

    .typewriter-wrap {
        /* Upewniamy się, że animowane słowo nie wymusza stałej szerokości na małym ekranie */
        min-width: 0 !important; 
    }
}

/* ===== GŁÓWNY NAGŁÓWEK ===== */
.daria-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 28px 0 20px; /* góra większa, dół mniejsza */
    background-color: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    min-height: 100px;
}



/* ===== KONTENER — dwa rzędy: logo góra, menu dół ===== */
.header-container {
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;  /* logo nad menu */
    align-items: flex-start;
    width: 100%;
    gap: 18px;
}

/* MENU — wyśrodkowane w szerokości headera */
.navigation {
    width: 100%;
    display: flex;
    justify-content: center;
}



/* ===== LOGO ===== */
.logo a {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 20px;           /* zmniejszone z 24px */
    font-weight: 400;          /* lżejszy krój — elegancki, nie bold */
    letter-spacing: 4px;       /* szerokie spacje jak na screenie */
    text-transform: uppercase;
    transition: color 0.4s ease;
    display: block;
    margin-top: 2px;           /* drobna korekta optyczna */
}

/* ===== NAWIGACJA ===== */
.daria-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 50px;
}

.daria-menu-list li {
    position: relative;
}

.daria-menu-list li a {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 15px;           /* mniejszy, delikatniejszy */
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 0;
    display: block;
    transition: color 0.3s ease;
    position: relative;
}

/* ===== HOVER / AKTYWNA ZAKŁADKA — underline ===== */
.daria-menu-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.daria-menu-list li a:hover::after,
.daria-menu-list li.current-menu-item a::after,
.daria-menu-list li.current_page_item a::after {
    width: 100%;
}

/* Aktywna zakładka — nieco boldniejsza */
.daria-menu-list li.current-menu-item a,
.daria-menu-list li.current_page_item a {
    font-weight: 600;
}

/* ===== PO SCROLLU ===== */

/* Po scrollu — wracamy do jednej linii */
.daria-header.scrolled {
    background-color: #ffffff !important;
    padding: 18px 0;
    min-height: 64px;
}

/* PO SCROLLU — tylko tło, układ bez zmian */
.daria-header.scrolled {
    background-color: #ffffff !important;
    padding: 18px 0 14px;
    min-height: auto;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.daria-header.scrolled .logo a {
    color: #1a1a1a !important;
}

.daria-header.scrolled .daria-menu-list li a {
    color: #1a1a1a !important;
    font-size: 13px;
}

.daria-header.scrolled .hamburger span {
    background: #1a1a1a;
}


.daria-header.scrolled .logo a {
    color: #1a1a1a !important;
    font-size: 15px;
}

.daria-header.scrolled {
    background-color: #ffffff !important;
    padding: 18px 0;
    min-height: 64px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08); /* ← dodaj */
}

.daria-header.scrolled .daria-menu-list li a {
    color: #1a1a1a !important;
    font-size: 12px;
}

/* ===== globalny SCROLL do kotwic ===== */
html {
  scroll-behavior: smooth;
}

/* ===== HEADER TOP ROW (logo + hamburger w jednej linii) ===== */
.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    padding: 4px;
    z-index: 10000;
    color: inherit !important;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 1px;
    background: #ffffff;
    transition: all 0.3s ease;
    transform-origin: center;
}
.daria-header.scrolled .hamburger span {
    background: #1a1a1a;
}

/* Animacja X */
.hamburger.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
    opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .daria-header {
        padding: 20px 0;
        min-height: auto;
        align-items: center;
    }

    .header-container {
        gap: 0;
    }

    .hamburger {
        display: flex;
    }

    /* Nav schowany domyślnie */
    .navigation {
        display: none;
        width: 100%;
        padding: 20px 0 10px;
    }

    .navigation.is-open {
        display: flex;
    }

    .daria-menu-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        text-align: center;
    }

    .daria-menu-list li a {
        font-size: 13px;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .daria-header.scrolled .daria-menu-list li a {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        font-size: 13px;
    }

    /* Po scrollu — header jednolinijkowy */
    .daria-header.scrolled .header-container {
        flex-direction: column;
        gap: 0;
    }
}