/* ==========================================================================
   1. ZMIENNE GLOBALNE I KOLORYSTYKA
   ========================================================================== */
:root {
    /* Paleta kolorów */
    --color-primary-dark: #0d1b2a;
    /* Głęboki elegancki granat */
    --color-hero-bg: #1b3b2f;
    /* Ciemna zieleń */
    --color-bg-light: #f9f9f9;
    /* Jasne tło strony */
    --color-bg-dark: #1b263b;
    /* Ciemniejsze tło sekcji */
    --color-logo-bg: #f6ede4;
    /* Jasne kremowe tło pod logo */

    /* Odcienie złota */
    --gold-muted: #c5a880;
    /* Stonowane złoto */
    --gold-active: #e9c087;
    /* Jasne aktywne złoto */
    --gold-icon: #d4af37;
    /* Prestiżowe złoto ikon */
    --gold-hover: #b3956b;
    /* Ciemniejsze złoto po najechaniu */

    /* Typografia i neutralne */
    --text-dark: #333333;
    --text-muted: #a0a0a0;
    --text-light: #e0e0e0;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

/* ==========================================================================
   2. RESET I USTAWIENIA PODSTAWOWE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
    /* Margines na komputerze pod wysokość menu */
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--color-bg-light);
}

/* Typografia */
h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: var(--color-primary-dark);
}

.gold-text {
    color: var(--gold-muted);
}

.text-center {
    text-align: center;
}

/* Kontenery i układy */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ==========================================================================
   3. NAWIGACJA (MENU)
   ========================================================================== */
header {
    background-color: var(--color-primary-dark);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid rgb(69, 59, 45);
    box-shadow: 0px 6px 15px 2px rgba(0, 0, 0, 0.4);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

/* Stan aktywny (dodawany przez JS) */
.nav-links a.active {
    color: var(--gold-active) !important;
}

/* Stan najechania myszką (wyłącznie desktopy) */
@media (hover: hover) {
    .nav-links a:hover {
        color: var(--gold-active);
    }
}

/* ==========================================================================
   4. SEKCJA GŁÓWNA (HERO) & LOGO
   ========================================================================== */
.hero-wrapper {
    background-color: var(--color-hero-bg);
}

.hero-logo-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-logo-bg);
    padding: 20px 0;
    box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.4);
}

.hero-logo {
    max-width: 270px;
    height: auto;
    display: block;
}

.hero {
    color: var(--white);
    padding: 80px 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 300;
}

/* ==========================================================================
   5. PRZYCISKI I ORNAMENTY
   ========================================================================== */
.btn {
    display: inline-block;
    background-color: var(--gold-muted);
    color: var(--color-primary-dark);
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--gold-hover);
}

/* Domyślnie ukrywamy ornamenty (podejście Mobile-First) */
.ornament-box {
    display: none !important;
}

/* Ornamenty na desktopy */
@media (min-width: 769px) {
    .ornament-box {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 40px;
        margin-bottom: 0px;
    }

    .ornament-img {
        max-width: 550px;
        height: auto;
        display: block;
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }

    .ornament-img:hover {
        opacity: 0.55;
    }
}

/* Ornament na samym dole sekcji kontakt */
.bottom-ornament {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 5px;
}

.bottom-ornament-img {
    width: 120px;
    height: auto;
    display: block;
}

/* ==========================================================================
   6. SEKCJE (WSPÓLNE, O NAS, SPECJALIZACJE)
   ========================================================================== */
.section-padding {
    padding: 120px 0;
}

.bg-dark {
    background-color: var(--color-bg-dark);
    color: var(--white);
}

.bg-dark h2 {
    color: var(--white);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    margin-bottom: 50px;
    color: var(--text-muted);
}

/* Sekcja O nas */
.about-text p {
    margin-top: 20px;
    font-size: 1.1rem;
}

.image-box {
    background-color: var(--text-light);
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #666666;
    border-radius: 4px;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* Karty specjalizacji */
.card {
    background-color: var(--color-primary-dark);
    padding: 5px 30px 40px;
    border-radius: 4px;
    border-top: 4px solid var(--gold-muted);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card h3 {
    color: var(--gold-muted);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
    display: block;
}

/* ==========================================================================
   7. SEKCJA KONTAKT & FORMULARZ
   ========================================================================== */
#kontakt {
    padding-bottom: 0 !important;
}

.info-item {
    margin-bottom: 20px;
}

.info-item strong {
    display: block;
    color: var(--color-primary-dark);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.contact-icon {
    width: 16px;
    height: 16px;
    color: var(--gold-icon);
    flex-shrink: 0;
}

.contact-link {
    color: var(--gold-muted);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--color-primary-dark);
}

.map-container {
    margin-top: 30px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Formularz */
.contact-form-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-primary-dark);
    font-weight: 700;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-muted);
}

.btn-submit {
    border: none;
    width: 100%;
    text-align: center;
    cursor: pointer;
}

/* ==========================================================================
   8. STOPKA, COOKIES I PRZYCISK POWROTU
   ========================================================================== */
footer {
    background-color: var(--color-primary-dark);
    color: #888888;
    padding: 30px 0;
    margin-top: 60px;
    font-size: 0.9rem;
    box-shadow: 0px -6px 15px 2px rgba(0, 0, 0, 0.4);
    border-top: 2px solid rgb(197, 168, 128);
}

.studio-signature {
    font-size: 8px;
    color: #2e2e2e !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    text-align: center;
}

.studio-signature a {
    color: #2e2e2e !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.studio-signature a:hover {
    color: #504433 !important;
}

/* Przycisk powrotu do góry */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--gold-muted);
    color: var(--white);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--gold-hover);
    transform: translateY(-3px);
}

/* Pasek Cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-primary-dark);
    border-top: 2px solid var(--gold-muted);
    color: var(--white);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    display: none;
}

.cookie-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

.cookie-banner p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-light);
}

.cookie-link {
    color: var(--gold-muted);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: var(--gold-hover);
}

.btn-cookie {
    background-color: var(--gold-muted);
    color: var(--color-primary-dark);
    border: none;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.btn-cookie:hover {
    background-color: var(--gold-hover);
}

/* ==========================================================================
   9. RESPONSYWNOŚĆ (MEDIA QUERIES) - ZBIORCZE DLA URZĄDZEŃ MOBILNYCH
   ========================================================================== */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 130px;
        /* Większy margines na mobile */
    }

    .header-flex {
        flex-direction: column;
        gap: 15px;
    }

    header {
        position: sticky;
        top: 0;
        z-index: 100;
        width: 100%;
        padding: 10px 0;
    }

    .nav-links {
        justify-content: center;
        width: 100%;
        gap: 15px;
    }

    .hero {
        padding: 60px 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .image-box {
        height: auto;
        aspect-ratio: 4 / 3;
        max-width: 100%;
        margin: 20px auto 0 auto;
    }

    .back-to-top {
        display: none !important;
        /* Ukrywanie strzałki na telefonach */
    }

    .cookie-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .btn-cookie {
        width: 100%;
    }
}