/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;600&family=Epilogue:wght@600&display=swap');

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

html {
    width: 100%;
    overflow-x: hidden;
}

:root {
    --primary-color: #97BF33;
    --text-color: #000080;
    --blue-gradient-start: #000080;
    --blue-gradient-end: #0066CC;
    --primary-gradient: linear-gradient(to right, #92C01F, #00A3A3);
    --white: #FFFFFF;
    --overlay-color: rgba(255, 255, 255, 0.75);
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5em;
    color: var(--text-color);
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Header */
.site-header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .logo img {
    max-width: 75px;
    width: 75px;
    transition: transform 0.3s ease;
}

.site-header .logo img:hover {
    transform: scale(1.1);
}

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

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-menu a:hover {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.nav-menu a:focus {
    outline: none;
}

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

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    min-height: 70vh;
    background-image: url('assets/images/hero-bg.webp');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 5%;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Fix parallax on touch devices (iOS/iPad) */
@media (hover: none) and (pointer: coarse) {
    .hero {
        background-attachment: scroll;
    }
}

.hero-content {
    max-width: 460px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
}

.hero-title {
    font-family: 'Epilogue', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1em;
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 15px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3em;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 25px;
    opacity: 0.85;
}

.hero-description {
    text-align: justify;
    max-width: 460px;
    margin: 0 auto 30px;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5em;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 35px;
    border-radius: 50px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1em;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: none;
    background: linear-gradient(135deg, var(--blue-gradient-start), var(--blue-gradient-end));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 0, 128, 0.2);
    position: relative;
    isolation: isolate;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover {
    box-shadow: 0 8px 24px rgba(151, 191, 51, 0.4);
    transform: scale(1.05);
}

.btn svg {
    fill: currentColor;
    width: 16px;
    height: 16px;
}

/* Sections */
.section {
    padding: 0;
    margin-top: 100px;
    margin-bottom: 0;
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    min-height: 600px;
}

.section:first-of-type {
    margin-top: 100px;
}

/* Mountain divider - removed for clean white spacing */

/* Section with background image */
.section-with-bg {
    flex: 1;
    min-height: 600px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 12px;
    overflow: hidden;
}

.section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 5%;
    background-color: var(--white);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    width: fit-content;
}

.section-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: var(--text-color);
}

.section-badge span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-color);
    white-space: nowrap;
}

.section h2 {
    font-family: 'Epilogue', sans-serif;
    font-size: 3.5vw;
    font-weight: 600;
    line-height: 1em;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--text-color);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.section p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5em;
    margin-bottom: 20px;
    color: var(--text-color);
}

.section-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Two-column sections */
#kawiarnia .section-content,
#malpi-gaj .section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

#kawiarnia .gallery,
#malpi-gaj .gallery {
    padding: 0;
}

/* Małpi gaj - gallery on left on desktop */
#malpi-gaj .gallery-container {
    order: 1;
}

#malpi-gaj .section-content > div:not(.gallery-container) {
    order: 2;
}

/* Gallery - Carousel */
.gallery {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-item {
    min-width: 100%;
    position: relative;
    display: block;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.gallery-dot.active {
    background: var(--primary-gradient);
    transform: scale(1.2);
}

.gallery-dot:hover:not(.active) {
    background: var(--white);
}

/* Contact Section */
.contact {
    background: var(--white);
    margin-top: 0;
    padding: 60px 5%;
}

.contact::after {
    display: none;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h2 {
    font-family: 'Epilogue', sans-serif;
    font-size: 3.5vw;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 5px 0;
    border: none;
    line-height: 1.2;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.contact-header p {
    font-size: 18px;
    font-weight: 300;
    color: rgba(0, 0, 128, 0.7);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    height: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-card-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-card-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-gradient-start), var(--blue-gradient-end));
}

.contact-icon svg {
    color: var(--white);
}

.contact-card-content {
    flex: 1;
}

.contact-label {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 5px;
}

.contact-label-small {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 5px;
}

.contact-value {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 0;
}

.contact-value a,
a.contact-value {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover,
a.contact-value:hover {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.contact-sublabel {
    font-size: 0.875rem;
    color: rgba(0, 0, 128, 0.7);
    margin-top: 2px;
}

.contact-hours {
    font-size: 0.875rem;
}

.contact-hours p {
    color: var(--text-color);
    margin-bottom: 8px;
}

.contact-hours p:last-child {
    margin-bottom: 0;
}

.contact-hours strong {
    font-weight: 500;
}

.contact-note {
    font-size: 0.75rem !important;
    color: rgba(0, 0, 128, 0.7) !important;
    font-style: italic;
    margin-top: 10px !important;
}

.contact-card-business {
    padding: 25px 30px;
}

.contact-card-business h3 {
    font-family: 'Epilogue', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.contact-card-business .contact-card-item {
    margin-bottom: 15px;
}

.contact-card-business .contact-icon {
    width: 40px;
    height: 40px;
}

.contact-card-business .contact-card-content p {
    font-size: 0.875rem;
    color: rgba(0, 0, 128, 0.7);
    margin-bottom: 5px;
}

.contact-card-business .contact-card-content strong {
    color: var(--text-color);
    font-weight: 500;
}

.contact-bank {
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    color: var(--text-color);
    font-weight: 400;
}

/* Footer */
.site-footer {
    background: var(--text-color);
    color: var(--white);
    padding: 60px 5%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 48px;
    width: auto;
}

.footer-logo-text {
    line-height: 1.2;
}

.footer-logo-main {
    font-size: 14px;
    color: var(--white);
    margin: 0;
}

.footer-logo-sub {
    font-size: 16px;
    font-weight: 500;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-gradient);
}

.footer-social svg {
    color: var(--white);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.footer-contact li {
    display: flex;
    align-items: start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-contact svg {
    flex-shrink: 0;
    color: #92C01F;
    margin-top: 2px;
}

.footer-contact span,
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .section h2 {
        font-size: 6vw;
    }

    body {
        font-size: 14px;
    }

    .btn {
        font-size: 14px;
    }

    .section {
        flex-wrap: wrap;
    }

    #kawiarnia .section-content,
    #malpi-gaj .section-content {
        grid-template-columns: 1fr;
    }

    /* On mobile, always show text first, then gallery */
    #malpi-gaj .section-content > div:not(.gallery-container) {
        order: 1;
    }

    #malpi-gaj .gallery-container {
        order: 2;
    }

    .section-with-bg,
    .section-content {
        flex: 1 1 100%;
    }

    /* Księgarnia and Zajęcia - show text first, then background image on mobile */
    #ksiegarnia .section-content,
    #zajecia .section-content {
        order: 1;
    }

    #ksiegarnia .section-with-bg,
    #zajecia .section-with-bg {
        order: 2;
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    /* Mobile navigation */
    .mobile-menu-toggle {
        display: flex;
    }

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

    .footer-brand {
        grid-column: 1;
    }

    .nav-menu {
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 0 5%;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
    }

    .nav-menu.active {
        max-height: 400px;
        padding: 20px 5%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        opacity: 1;
        visibility: visible;
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0s 0s;
    }

    .nav-menu li {
        border-bottom: 1px solid #eee;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 15px 0;
        font-size: 18px;
    }

    .hero {
        min-height: 50vh;
        background-attachment: scroll;
        background-position: center center;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section h2 {
        font-size: 8vw;
        letter-spacing: -1.8px;
    }

    .contact-header h2 {
        font-size: 8vw;
        letter-spacing: -1.8px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-map {
        height: 300px;
        order: 2;
    }

    .contact-cards {
        order: 1;
    }

    .gallery {
        max-width: 100%;
    }

    .btn {
        font-size: 12px;
        padding: 15px 25px;
    }

    .section {
        flex-wrap: wrap;
    }

    .section-with-bg,
    .section-content {
        flex: 1 1 100%;
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .site-header .logo img {
        max-width: 60px;
        width: 60px;
    }


    .hero-buttons,
    .section-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.btn:focus,
a:focus {
    outline: 2px solid #92C01F;
    outline-offset: 2px;
}
