/* ===== ZMIENNE CSS ===== */
:root {
    --primary: #3BD80D;
    --accent-green: #3BD80D;
    --accent-yellow: #FDD835;
    --accent-blue: #00BCD4;
    --dark-gray: #2C2C2C;
    --light-gray: #8F8F8F;
    --bg-light: #FAFAF8;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ===== RESET & PODSTAWOWE STYLE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--dark-gray);
    background-color: var(--bg-light);
    background-image: url('../images/castle-bg.svg');
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: auto 75vh;
    background-position: right 110%;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== TYPOGRAFIA ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-gray);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.8rem; margin-bottom: 0.8rem; }
h4 { font-size: 1.4rem; }
p { margin-bottom: 1rem; font-size: 1rem; }

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-blue);
}

/* ===== KONTENERY ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-full {
    width: 100%;
}

/* ===== SEKCJE ===== */
section {
    padding: 5rem 2rem;
}

section.hero {
    padding: 6rem 2rem;
}

/* ===== PRZYCISKI ===== */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Lato', sans-serif;
}

.btn-primary {
    background: var(--accent-blue);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-yellow);
    border: 2px solid var(--accent-yellow);
}

.btn-secondary:hover {
    background: var(--accent-yellow);
    color: var(--white);
    border-color: transparent;
}

/* ===== HEADER & NAWIGACJA ===== */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-wrapper a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-yellow), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-wrapper .custom-logo-link img {
    max-height: 60px;
    width: auto;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-yellow), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--light-gray);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.site-nav a {
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    color: var(--dark-gray);
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-yellow), var(--accent-blue));
    transition: width 0.3s ease;
}

.site-nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, rgba(61, 216, 13, 0.08), rgba(0, 188, 212, 0.08));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(253, 216, 53, 0.12), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.10), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text h1 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: 3.5rem;
}

.hero-text .highlight {
    color: var(--accent-yellow);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
    position: relative;
}

.hero-image-placeholder {
    display: block;
    width: 100%;
    max-width: 400px;
    height: 400px;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(236, 245, 226, 0.98), rgba(228, 241, 214, 0.96));
    border: 1px solid rgba(61, 216, 13, 0.10);
    border-radius: 20px;
    object-fit: contain;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

/* ===== OFERTA SECTION ===== */
.section-oferta {
    background: linear-gradient(180deg, var(--white), rgba(253, 216, 53, 0.05));
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-yellow), var(--accent-blue));
    border-radius: 2px;
}

.section-title p {
    color: var(--light-gray);
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.offer-card {
    background: linear-gradient(135deg, var(--white), rgba(61, 216, 13, 0.04));
    border: 2px solid rgba(61, 216, 13, 0.15);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-blue);
}

.offer-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.offer-card h3 {
    margin-bottom: 0.8rem;
    color: black;
}

.offer-card p {
    color: var(--light-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* ===== AKTUALNOŚCI SECTION ===== */
.section-aktualnosci {
    background: linear-gradient(135deg, rgba(61, 216, 13, 0.04), rgba(0, 188, 212, 0.05));
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green), var(--accent-yellow));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
    opacity: 0.9;
}

.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-date {
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark-gray);
}

.news-card p {
    color: var(--light-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 4.5em;
    line-height: 1.5;
}

.news-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: auto;
    padding-top: 1rem;
}

.news-link:hover {
    color: var(--accent-blue);
    margin-left: 5px;
}

/* ===== KONTAKT SECTION ===== */
.section-kontakt {
    background: linear-gradient(135deg, var(--dark-gray), #3a3a3a);
    color: var(--white);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-kontakt h2 {
    text-align: center;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.section-kontakt > p {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    color: var(--accent-yellow);
    min-width: 50px;
    text-align: center;
}

.contact-item h4 {
    color: var(--white);
    margin-bottom: 0.3rem;
}

.contact-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item a {
    color: var(--accent-yellow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 3px rgba(253, 216, 53, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 3rem 2rem;
    border-top: 4px solid var(--primary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-yellow);
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-yellow), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }

    body {
        background-size: auto 55vh;
        background-position: right 125%;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 60px;
        right: 1rem;
        background: var(--white);
        padding: 1rem;
        border-radius: 8px;
        box-shadow: var(--shadow-md);
        display: none;
        min-width: 200px;
    }

    .site-nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    section {
        padding: 3rem 1rem;
    }

    .section-title h2::after {
        width: 80px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .header-content {
        padding: 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }

    body {
        background-size: auto 45vh;
        background-position: right 130%;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo-wrapper a {
        font-size: 1.3rem;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .offers-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== UTILITY CLASSES ===== */
.wp-block-button__link {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-yellow), var(--accent-blue));
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 4px;
    display: inline-block;
    text-decoration: none;
}

.wp-block-button__link:hover {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: white;
}