/* ========================================
   GLOBAL STYLES
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --color-primary-green: #0b5843;
    --color-primary-blue: #004c97;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-bg: #f5f5f5;
    --color-light-green-bg: #f7fbf8;
    --color-text-gray: #787878;

    /* Font Family */
    --font-poppins: 'Poppins', sans-serif;

    /* Container Max Width */
    --container-max-width: 144rem;

    /* Spacing */
    --container-padding: 4rem;
}

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

/* Base - 1rem = 10px */
html {
    font-size: 62.5%; /* 10px base */
    scroll-behavior: smooth;
}

/* Offset dla fixed headera – wartość ustawiana dynamicznie przez JS */
main {
    padding-top: var(--header-height, 5rem);
}

body {
    font-family: var(--font-poppins);
    font-size: 1.6rem; /* 16px */
    line-height: 1.5;
    color: var(--color-black);

}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: inherit;
}

p {
    margin: 0;
}

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

ul, ol {
    list-style: none;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Utility Classes */
.text-white {
    color: var(--color-white);
}

.text-black {
    color: var(--color-black);
}

.text-primary-green {
    color: var(--color-primary-green);
}

.text-primary-blue {
    color: var(--color-primary-blue);
}

.bg-white {
    background-color: var(--color-white);
}

.bg-primary-green {
    background-color: var(--color-primary-green);
}

.bg-primary-blue {
    background-color: var(--color-primary-blue);
}

/* Common Transitions */
.transition {
    transition: all 0.3s ease;
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 0.3rem;
    background-color: var(--color-primary-green);
    z-index: 10000;
    transform-origin: left;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ========================================
   ARROW TO TOP
   ======================================== */

.arrow-top {
    position: fixed;
    bottom: 3.2rem;
    right: 3.2rem;
    z-index: 999;
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 50%;
    background-color: var(--color-primary-green);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.4rem 1.6rem rgba(11, 88, 67, 0.35);
    opacity: 0;
    transform: translateY(1.2rem) scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.arrow-top--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.arrow-top:hover {
    background-color: #0d6b52;
    box-shadow: 0 0.6rem 2.4rem rgba(11, 88, 67, 0.45);
    transform: translateY(-0.3rem) scale(1);
}

.arrow-top:active {
    transform: translateY(0) scale(0.95);
}

@media (max-width: 768px) {
    .arrow-top {
        bottom: 2rem;
        right: 2rem;
        width: 4.2rem;
        height: 4.2rem;
    }
}


/* ACF section blocks — full-width override.
   Gdy bloki renderują się przez the_content(), WordPress opakowuje je w div
   .wp-block-acf-{name}. Poniższe reguły usuwają ewentualne ograniczenia
   szerokości narzucone przez Gutenberg/WP block library. */
.wp-block-acf-post-hero,
.wp-block-acf-post-content,
.wp-block-acf-post-split,
.wp-block-acf-post-related {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
}