/* --- 1. Konfiguracja Fontu Runalto (TYLKO dla akronimu SFBT) --- */
/* Plik fontu: fonts/runalto.regular.otf */
@font-face {
    font-family: 'Runalto';
    src: url('fonts/runalto.regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #004d40;  /* Głęboka zieleń/turkus - nadzieja, wzrost */
    --accent-color: #4db6ac;   /* Jasny turkus */
    --secondary-color: #e0f2f1;/* Jasne tło akcentowe */
    --text-color: #333;
    --light-bg: #f5f5f5;
    --font-base: 'Inter', system-ui, sans-serif; /* Font dla treści */
}

/* --- 2. Reset i Podstawowe Style --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-base);
    line-height: 1.6;
    color: var(--text-color);
}

h1, h2, h3 {
    color: var(--primary-color);
    line-height: 1.2;
}

/* Klasa używana TYLKO dla logo i głównego H1 (SFBT) */
.runalto-font {
    font-family: 'Runalto', cursive;
    font-weight: normal;
    font-size: 3.5rem;
    margin-bottom: 5px;
}

/* --- 3. Header i Nawigacja (Desktop) --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: baseline;
}

.runalto-logo {
    font-family: 'Runalto', cursive;
    font-size: 2rem;
    color: var(--primary-color);
}

.sfbt-tagline {
    font-family: var(--font-base);
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 300;
    margin-left: 5px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 25px;
    padding: 8px 15px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.cta-button {
    background-color: var(--accent-color);
    color: white !important;
    border-radius: 5px;
}

.cta-button:hover {
    background-color: var(--primary-color);
}

/* Ukrywamy hamburger na desktopie */
.hamburger-menu {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 200;
}

/* --- 4. Sekcje Główne i CTA --- */
.content-section {
    padding: 60px 15%;
    text-align: center;
}

.hero-section {
    background-color: var(--light-bg);
    padding: 100px 10%;
    text-align: center;
    background-image: url('img/dialog_minimalistyczny_placeholder.jpg'); /* Zmień na własne zdjęcie lub usuń */
    background-size: cover;
    background-position: center;
    color: var(--text-color);
    position: relative;
}

.hero-section::before {
    /* Delikatny overlay dla lepszej czytelności tekstu */
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 25px;
}

.main-cta-button,
.secondary-cta-button {
    display: inline-block;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 15px;
}

.main-cta-button {
    background-color: var(--primary-color);
    color: white;
}
.main-cta-button:hover {
    background-color: #00695c;
}

.secondary-cta-button {
    background-color: var(--light-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.secondary-cta-button:hover {
    background-color: var(--primary-color);
    color: white;
}

.about-section {
    background-color: white;
}

.invite-section {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}
.invite-section h3 {
    color: var(--primary-color);
}

/* --- 5. Formularz Kontaktowy --- */
.main-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    padding: 30px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: white;
}

.main-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
}

.main-form input[type="text"],
.main-form input[type="email"],
.main-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-base);
}

.main-form textarea {
    resize: vertical;
}

.antispam-box {
    margin: 20px 0;
    padding: 10px;
    background: #e6f7ff;
    border-left: 3px solid var(--accent-color);
}

.antispam-input {
    width: 100px !important; /* Małe pole dla akronimu */
    text-transform: uppercase;
}

.rodo-consent {
    margin-top: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
}

.rodo-consent input {
    margin-right: 10px;
    margin-top: 2px;
}

/* KOMUNIKAT (BŁĄD / SUKCES) NAD PRZYCISKIEM */
.form-message {
    display: none;
    margin-top: 20px;
    margin-bottom: 15px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    position: relative;
}

.form-message.visible {
    display: block;
}

.form-message.error {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ffcdd2;
}

.form-message.success {
    background: #c0f0c3 !important;
    color: #0c4a0c !important;
    border: 2px solid #7ccc7f !important;
    font-weight: 600;
    border-radius: 6px;
}


.form-message::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 30px;
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent currentColor transparent;
    opacity: 0.25;
}

/* --- 6. Footer --- */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
}

/* --- 7. ZASADY RWD I HAMBURGER MENU --- */
@media (max-width: 768px) {
    
    /* Pokaż przycisk hamburgera */
    .hamburger-menu {
        display: block;
    }
    
    header {
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        padding: 15px 5%;
    }

    /* Styl pasków w hamburgerze */
    .hamburger-menu .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--primary-color);
        transition: all 0.3s ease-in-out;
    }
    
    /* Ukryj menu domyślnie i przygotuj je jako panel rozwijany */
    #main-nav {
        position: absolute;
        top: 60px; /* Poniżej nagłówka */
        left: 0;
        width: 100%;
        max-height: 0;  /* Ukryte */
        overflow: hidden;
        background-color: var(--primary-color);
        transition: max-height 0.3s ease-in-out;
        z-index: 150;
    }

    #main-nav ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
        padding: 20px 0;
    }

    #main-nav ul li {
        margin: 15px 0;
    }
    
    #main-nav ul li a {
        color: white;
        padding: 15px 0;
        display: block;
    }

    /* Rozwinięte menu – dynamiczna wysokość */
    #main-nav.active {
        max-height: 500px; 
        overflow-y: auto;
    }

    /* Animacja krzyżyka (X) */
    .hamburger-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mniejszy padding dla sekcji na mobile */
    .content-section {
        padding: 40px 5%;
    }
    
    .hero-section {
        padding: 80px 5%;
    }

    /* Formularz dopasowany do szerokości ekranu */
    .main-form {
        padding: 20px;
        margin: 0 10px;
        width: calc(100% - 20px);
    }
}
