/* base.css — global: zmienne, reset, przyciski, nawigacja, stopka (wszystkie strony) */

/* ==========================================================================
   1. ZMIENNE GLOBALNE (KOLORY, CZCIONKI, WYMIARY)
   ========================================================================== */
:root {
    --color-bg-light: #f7f7ed;      /* Jasne kremowe tło strony */
    --color-dark-green: #13301f;    /* Ciemna zieleń - główny akcent */
    --color-gold: #c4b677;          /* Złoty/Beżowy akcent (napisy, linie) */
    --color-text-dark: #303030;     /* Ciemnoszary do tekstu */
    --color-text-medium: #575757;   /* Szary do mniejszych opisów */
    --color-white: #ffffff;         /* Biały */
    --color-white1: #faf7f7;        /* Biały odcień kremowy */
    --color-border: #dbd5c5;        /* Kolor delikatnych linii i obramowań */

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --container-width: 1240px;
    --header-height: 90px;
}

/* ==========================================================================
   2. RESET I USTAWIENIA BAZOWE
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 16px;
    color: var(--color-white);
    background: var(--color-dark-green);
    transform: translateY(-180%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

main {
    flex: 1;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   3. WSPÓLNE KOMPONENTY (PRZYCISKI, ETYKIETY, NAGŁÓWKI)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-dark-green);
    color: var(--color-white);
    border: 1px solid var(--color-dark-green);
}

.btn-primary:hover {
    background-color: #0e2417;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-dark);
    border: 1px solid var(--color-text-dark);
}

.btn-outline:hover {
    background-color: var(--color-text-dark);
    color: var(--color-white);
}

.btn-gold {
    background-color: #b89b6a;
    color: var(--color-white);
    border: none;
    border-radius: 6px;
}

.btn-gold:hover {
    background-color: #a68a5b;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.section-heading {
    font-family: var(--font-heading);
    color: var(--color-dark-green);
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 25px;
}

.text-link {
    font-size: 1rem;
    font-weight: 550;
    color: var(--color-dark-green);
    display: inline-flex;
    align-items: center;
    border-bottom: 1px solid var(--color-gold);
    padding-bottom: 5px;
    margin-top: 20px;
}


/* ==========================================================================
   4. NAWIGACJA (Sekcja 1 - Header)
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    min-height: var(--header-height);
    padding: 20px 0;
    background-color: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-block {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.81rem;
    color: var(--color-dark-green);
    line-height: 1;
    margin-bottom: 5px;
}

.logo-subtitle {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
}

.nav-menu {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu a {
    font-size: 0.9rem;
    color: var(--color-text-dark);
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-dark-green);
}

.nav-menu a.active {
    font-weight: 600;
}

.nav-contact .btn {
    font-size: 0.85rem;
    padding: 12px 24px;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark-green);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.nav-cta-mobile {
    display: none;
}

/* ==========================================================================
   5. STOPKA (Footer)
   ========================================================================== */
.site-footer {
    margin-top: auto;
}

.footer-main {
    background-color: #0a1b11;
    color: rgba(255, 255, 255, 0.85);
    padding: 72px 0 56px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.footer-brand {
    max-width: 360px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.footer-logo-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 6px;
}

.footer-logo-subtitle {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-links a,
.footer-address a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-address a:hover {
    color: var(--color-gold);
}

.footer-address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-address p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-cta {
    display: inline-block;
    margin-top: 8px;
    font-weight: 500;
    color: var(--color-gold) !important;
    border-bottom: 1px solid rgba(196, 182, 119, 0.4);
    padding-bottom: 3px;
}

.footer-cta:hover {
    color: var(--color-white) !important;
    border-bottom-color: var(--color-white);
}

.footer-bar {
    background-color: #0a1b11;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
}

.footer-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.footer-copy,
.footer-credit {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s;
}

.footer-credit a:hover,
.footer-trust a:hover {
    color: var(--color-gold);
}

.footer-trust {
    font-size: 0.78rem;
    margin: 0;
}

.footer-trust a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.header-trust {
    background: var(--color-dark-green);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.header-trust-inner {
    padding: 8px 0;
    text-align: center;
}

.header-trust a {
    color: inherit;
    text-decoration: none;
}

.header-trust a:hover {
    color: var(--color-gold);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.breadcrumbs {
    padding: 18px 0 0;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    color: var(--color-text-medium);
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin: 0 8px;
    color: var(--color-gold);
}

.breadcrumbs a {
    color: var(--color-dark-green);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--color-gold);
}

.footer-up {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.3s;
    margin-left: auto;
}

.footer-up:hover {
    color: var(--color-gold);
}

/* ==========================================================================
   RESPONSYWNOŚĆ - elementy bazowe (nawigacja, stopka)
   ========================================================================== */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 14px;
    }

    .nav-menu a {
        font-size: 0.82rem;
    }

    .logo-title {
        font-size: 1.55rem;
    }

    .nav-contact .btn {
        padding: 11px 16px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}

@media (max-width: 968px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-contact {
        display: none;
    }

    .nav-cta-mobile {
        display: block;
        width: 100%;
        margin-top: 16px;
    }

    .nav-cta-mobile .btn.btn-primary {
        width: 100%;
        background-color: var(--color-dark-green);
        color: var(--color-gold);
        border-color: var(--color-gold);
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        z-index: 99;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 24px 20px 32px;
        background: var(--color-bg-light);
        border-bottom: 1px solid var(--color-border);
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu li:not(.nav-cta-mobile) {
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu a:not(.btn) {
        display: block;
        padding: 14px 0;
        white-space: normal;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-bar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-up {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 72px;
    }

    .header {
        min-height: var(--header-height);
        padding: 14px 0;
    }

    .logo-title {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }

    .logo-subtitle {
        display: block;
        font-size: 0.55rem;
        letter-spacing: 1.4px;
    }

    .container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .btn {
        min-height: 48px;
        padding: 13px 20px;
    }

    .footer-main {
        padding: 48px 0 36px;
    }

    .footer-bar-inner {
        gap: 8px;
    }

    .footer-copy,
    .footer-credit,
    .footer-trust {
        font-size: 0.72rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .nav-menu {
        padding: 8px 16px 20px;
    }

    .footer-main {
        padding: 40px 0 28px;
    }

    .footer-grid {
        gap: 28px;
    }
}

@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;
    }
}
