/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brick: #B85C38;
    --brick-light: #C67A5A;
    --brick-dark: #A64B2A;
    --white: #FFFFFF;
    --warm-white: #FDFCFB;
    --text: #333333;
    --text-light: #555555;
    --shadow-light: rgba(184, 92, 56, 0.06);
    --shadow-dark: rgba(0, 0, 0, 0.03);
}

body {
    font-family: 'Satoshi', sans-serif;
    font-weight: 350;
    color: var(--text);
    background-color: var(--warm-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Neue Haas Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1.2rem;
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 1.5rem;
    transform: translateX(-1.5%);
}

p {
    margin-bottom: 1.8rem;
    font-size: 1rem;
    color: var(--text-light);
}

a {
    color: var(--brick);
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brick);
    transition: width 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

a:hover::after {
    width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--brick);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-radius: 4px;
}

.lang-switcher:hover {
    transform: scale(1.1);
}

.lang-text {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background-color: rgba(253, 252, 251, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar.scrolled {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Neue Haas Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--brick);
    text-decoration: none;
}

.logo span {
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text);
    font-weight: 420;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--brick);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text);
    margin: 3px 0;
    transition: 0.4s;
}

/* Hero Section */
.hero {
    padding: 8rem 0 5rem;
    position: relative;
    margin-top: 80px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.hero-image {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background-image: url('foto/tarantoga.jpg'); /* Zmienione na tarantoga.jpg */
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: 3px 6px 12px var(--shadow-light), -1px 2px 5px var(--shadow-dark);
    transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.hero-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(184, 92, 56, 0.12);
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: transparent;
    border: 2px solid var(--brick);
    color: var(--brick);
    font-weight: 420;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--brick);
    transition: width 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    z-index: -1;
}

.cta-button:hover {
    color: white;
}

.cta-button:hover::before {
    width: 100%;
}

/* Typewriter effect */
.typewriter {
    overflow: hidden;
    border-right: .15em solid var(--brick);
    white-space: nowrap;
    letter-spacing: .1em;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1.2rem;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--brick); }
}

/* Trust Section */
.trust {
    padding: 4rem 0;
    margin: 3rem 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.2rem;
    margin-top: 2.5rem;
}

.trust-card {
    background-color: white;
    padding: 2rem;
    box-shadow: 3px 6px 12px var(--shadow-light), -1px 2px 5px var(--shadow-dark);
    transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
    position: relative;
    overflow: hidden;
}

.trust-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--brick);
}

.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(184, 92, 56, 0.12);
}

.trust-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--brick-dark);
}

/* Video Section */
.video-section {
    padding: 4rem 0;
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin-top: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background-color: white;
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--brick-light);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background-color: white;
    padding: 1.5rem;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.8s forwards;
}

.testimonial-card:nth-child(odd) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(even) {
    animation-delay: 0.4s;
}

.testimonial-card:nth-child(3n+1) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(3n+2) {
    animation-delay: 0.4s;
}

.testimonial-card:nth-child(3n+3) {
    animation-delay: 0.6s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-author {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-source {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.testimonial-source svg {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
}

/* Action Section */
.action {
    padding: 5rem 0;
    background-color: var(--warm-white);
    position: relative;
}

.action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--brick-light);
}

.action-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.form-container {
    margin-top: 2.5rem;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.email-input {
    padding: 0.9rem 1.2rem;
    border: 1px solid #ddd;
    font-family: 'Satoshi', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--brick);
    box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.1);
}

.submit-button {
    padding: 0.9rem 1.2rem;
    background-color: var(--brick);
    color: white;
    border: none;
    font-family: 'Satoshi', sans-serif;
    font-weight: 420;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.submit-button:hover {
    background-color: var(--brick-dark);
}

/* Footer */
footer {
    padding: 2.5rem 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.2s;
}

.fade-in-delay-2 {
    animation-delay: 0.4s;
}

/* Language transition */
.lang-transition {
    transition: opacity 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--warm-white);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .hero {
        margin-top: 80px;
        padding: 6rem 0 3rem;
    }
    
    .lang-switcher {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .typewriter {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .testimonial-card {
        animation-delay: 0.2s;
    }

    .cookie-banner {
        width: 100%;
        border-radius: 0;
        left: 0;
        transform: translateX(0);
        bottom: 0;
        padding: 1.5rem 1rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner p {
        margin-bottom: 1rem;
    }

    .cookie-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .cookie-buttons button {
        width: 100%;
        margin: 0;
    }

    .cookie-options {
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 768px) {
    .hero {
        padding: 10rem 0 6rem;
    }
    
    .hero-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .hero-text {
        width: 45%;
    }
    
    .hero-image {
        width: 48%;
        height: 50vh;
    }
    
    .email-form {
        flex-direction: row;
    }
    
    .email-input {
        flex: 1;
    }

    .cookie-banner-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }

    .cookie-banner p {
        margin-bottom: 0;
    }

    .cookie-options {
        margin-right: 1rem;
        flex-grow: 1;
    }

    .cookie-buttons {
        flex-shrink: 0;
        min-width: 300px; /* Adjust as needed */
    }
}

@media (min-width: 1100px) {
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Loading Animation */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--brick);
    transform: scaleX(0);
    transform-origin: left;
    z-index: 1000;
}

.loading-bar.active {
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% {
        transform: scaleX(0);
    }
    50% {
        transform: scaleX(0.7);
    }
    100% {
        transform: scaleX(1);
    }
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 95%;
    width: 100%;
    display: none; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    border: 1px solid #eee;
    font-size: 0.95rem;
}

.cookie-banner.show {
    display: block;
    opacity: 1;
}

.cookie-banner-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem;
}

.cookie-banner p {
    flex-basis: 100%; /* Take full width */
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1; /* Allow it to grow */
    min-width: 250px;
}

.cookie-option-title {
    font-weight: 630;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.cookie-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
}

.cookie-checkbox input[type="checkbox"] {
    margin-right: 0.6rem;
    accent-color: var(--brick);
    transform: scale(1.1);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end; /* Align to the right on larger screens */
}

.cookie-buttons .cta-button {
    margin-top: 0;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    white-space: nowrap;
    border-radius: 4px;
}

.cookie-buttons .cta-button.reject {
    background-color: #ddd;
    color: var(--text);
    border-color: #ddd;
}

.cookie-buttons .cta-button.reject::before {
    background-color: #ccc;
}

.cookie-buttons .cta-button.reject:hover {
    color: var(--text);
}


.cookie-policy-link {
    flex-basis: 100%;
    text-align: center;
    margin-top: 1rem;
}

.cookie-contact {
    flex-basis: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
}