/* ============================================
   ROWLAND VC - WIX TEMPLATE RECREATION
   ============================================ */

/* === CSS VARIABLES === */
:root {
    /* Colors - Rowland VC Green Theme */
    --color-primary: #00A651;
    /* Intense Green */
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-light: #f5f5f5;
    --color-gray: #666666;
    --color-gray-dark: #333333;
    --color-overlay: rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-primary: Arial, Helvetica, sans-serif;

    /* Font Sizes */
    --fs-xs: 0.75rem;
    /* 12px */
    --fs-sm: 0.875rem;
    /* 14px */
    --fs-base: 1rem;
    /* 16px */
    --fs-lg: 1.125rem;
    /* 18px */
    --fs-xl: 1.5rem;
    /* 24px */
    --fs-2xl: 1.875rem;
    /* 30px */
    --fs-3xl: 2.25rem;
    /* 36px */
    --fs-4xl: 3rem;
    /* 48px */
    --fs-5xl: 3.75rem;
    /* 60px */

    /* Spacing */
    --space-xs: 0.5rem;
    /* 8px */
    --space-sm: 1rem;
    /* 16px */
    --space-md: 1.5rem;
    /* 24px */
    --space-lg: 2rem;
    /* 32px */
    --space-xl: 3rem;
    /* 48px */
    --space-2xl: 5rem;
    /* 80px */
    --space-3xl: 7.5rem;
    /* 120px */

    /* Container */
    --container-width: 1200px;

    /* Transitions */
    --transition: 300ms ease-in-out;
}

/* === RESET & BASE STYLES === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--color-gray-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    opacity: 0.8;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* === UTILITY CLASSES === */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.text-center {
    text-align: center;
}

.uppercase {
    text-transform: uppercase;
}

.letter-spacing {
    letter-spacing: 3px;
}

.letter-spacing-lg {
    letter-spacing: 5px;
}

/* === ANIMATIONS === */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-primary);
    padding: var(--space-sm) 0;
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    padding: var(--space-xs) 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: rgba(0, 166, 81, 0.95);
    /* Slightly transparent on scroll */
    backdrop-filter: blur(5px);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.nav-link {
    color: var(--color-white);
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: var(--space-xs) 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-white);
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--color-white);
    transition: all var(--transition);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 60px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?w=1600') center/cover;
    filter: grayscale(100%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-overlay);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--color-white);
}

.hero-title {
    font-size: var(--fs-5xl);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 8px;
    line-height: 1.2;
    margin: 0;
}

.hero-subtitle {
    font-size: var(--fs-lg);
    margin-top: var(--space-md);
}

.hero-cta {
    display: inline-block;
    margin-top: var(--space-lg);
    padding: var(--space-sm) var(--space-xl);
    background-color: var(--color-primary);
    color: var(--color-white);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    border: 2px solid var(--color-primary);
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* === SECTION STYLES === */
.section {
    padding: var(--space-3xl) 0;
}

.section-white {
    background: var(--color-white);
}

.section-gray {
    background: var(--color-gray-light);
}

.section-green {
    background: var(--color-primary);
    color: var(--color-white);
}

.section-black {
    background: var(--color-black);
    color: var(--color-white);
    padding: var(--space-lg) 0;
}

.section-title {
    font-size: var(--fs-3xl);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-subtitle {
    font-size: var(--fs-lg);
    color: var(--color-gray);
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.8;
}

/* === DESCRIPTION SECTION === */
.description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.description h2 {
    font-size: var(--fs-2xl);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--space-lg);
}

.description p {
    font-size: var(--fs-base);
    color: var(--color-gray);
    line-height: 1.8;
}

/* === PORTFOLIO BANNER === */
.portfolio-banner {
    text-align: center;
    font-size: var(--fs-lg);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* === PORTFOLIO GRID === */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.portfolio-item {
    position: relative;
    height: 450px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* === WHY SECTION === */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

.why-item {
    background: rgba(255, 255, 255, 0.85);
    /* półprzezroczyste */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.why-item h3 {
    font-size: var(--fs-lg);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.why-item p {
    font-size: var(--fs-sm);
    color: var(--color-gray-dark);
    line-height: 1.8;
}

.why-item ol {
    text-align: left;
    padding-left: 20px;
    list-style-type: disc;
}

.why-item ol li {
    margin-bottom: 5px;
    font-size: var(--fs-sm);
    color: var(--color-gray-dark);
}

/* === NEWS SECTION === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.news-card {
    background: var(--color-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-card-content {
    padding: var(--space-lg);
}

.news-card h3 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-black);
}

.news-card p {
    font-size: var(--fs-sm);
    color: var(--color-gray);
    line-height: 1.6;
}

.btn-view-all {
    display: inline-block;
    padding: var(--space-sm) var(--space-xl);
    border: 2px solid var(--color-white);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: var(--fs-sm);
    font-weight: 700;
    transition: all var(--transition);
    background: transparent;
}

.btn-view-all:hover {
    background: var(--color-white);
    color: var(--color-primary);
    opacity: 1;
}

/* === PARTNERSHIP IMAGE === */
.partnership-image {
    height: 500px;
    background: url('https://images.unsplash.com/photo-1521791136064-7986c2920216?w=1600') center/cover;
    filter: grayscale(100%);
    background-attachment: fixed;
    /* Parallax effect */
}

/* === CONTACT SECTION === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    margin-top: var(--space-2xl);
}

.contact-info h3 {
    font-size: var(--fs-lg);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.contact-info p {
    font-size: var(--fs-sm);
    color: var(--color-gray);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

/* === FORMS (Neumorphism) === */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-sm);
    border: none;
    font-size: var(--fs-base);
    transition: all var(--transition);
    background: #f0f0f0;
    border-radius: 10px;
    box-shadow: inset 5px 5px 10px #d1d1d1, inset -5px -5px 10px #ffffff;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    box-shadow: inset 2px 2px 5px #d1d1d1, inset -2px -2px 5px #ffffff;
    background: #f5f5f5;
}

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

.form-error {
    color: #e74c3c;
    font-size: var(--fs-sm);
    margin-top: var(--space-xs);
    display: none;
}

.form-group.error .form-error {
    display: block;
}

.form-success {
    background: var(--color-primary);
    color: white;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    text-align: center;
    display: none;
    border-radius: 8px;
}

.form-success.show {
    display: block;
}

.btn-submit {
    width: 100%;
    padding: var(--space-md);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: var(--fs-base);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    transition: all var(--transition);
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 5px 5px 10px #d1d1d1, -5px -5px 10px #ffffff;
}

.btn-submit:hover {
    background: #008f45;
    transform: translateY(-2px);
    box-shadow: 8px 8px 15px #d1d1d1, -8px -8px 15px #ffffff;
}

/* === FOOTER === */
.footer {
    background: var(--color-gray-light);
    padding: var(--space-2xl) 0;
    text-align: center;
}

.footer-content {
    margin-bottom: var(--space-lg);
}

.footer p {
    font-size: var(--fs-sm);
    color: var(--color-gray);
    margin-bottom: var(--space-md);
}

.social-links {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-lg);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-dark);
    color: var(--color-white);
    border-radius: 50%;
    font-size: var(--fs-lg);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--color-primary);
    opacity: 1;
    transform: translateY(-3px);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    :root {
        --fs-5xl: 3rem;
        --fs-4xl: 2.5rem;
        --fs-3xl: 2rem;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --fs-5xl: 2.5rem;
        --fs-4xl: 2rem;
        --fs-3xl: 1.75rem;
        --space-2xl: 3rem;
        --space-3xl: 4rem;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--color-primary);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--space-xl);
        transition: left var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        height: 400px;
    }

    .hero-title {
        font-size: var(--fs-4xl);
        letter-spacing: 4px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .portfolio-item {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero-title {
        font-size: var(--fs-3xl);
        letter-spacing: 2px;
    }

    .section-title {
        font-size: var(--fs-2xl);
        letter-spacing: 2px;
    }
}

.static-photo-section {
    width: 100%;
    min-height: 500px;
    /* możesz zmienić wysokość */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* statyczne tło */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.why-overlay {
    width: 100%;
    max-width: var(--container-width);
}

/* COOKIE CONSENT */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-md);
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    font-size: var(--fs-sm);
}

.cookie-consent.show {
    opacity: 1;
    visibility: visible;
}

.cookie-consent p {
    margin: 0;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-buttons .btn-submit,
.cookie-buttons .btn-view-all {
    padding: var(--space-xs) var(--space-lg);
    font-size: var(--fs-sm);
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    transition: all var(--transition);
}

.cookie-buttons .btn-submit {
    background: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-white);
    box-shadow: none;
}

.cookie-buttons .btn-submit:hover {
    background: transparent;
    color: var(--color-white);
    transform: none;
}

.btn-cookie-info {
    color: var(--color-white);
    text-decoration: underline;
    font-size: var(--fs-sm);
    margin-top: 5px;
}

/* 3D Section Styles */
.section-3d-container {
    position: relative;
    width: 100%;
    min-height: 800px;
    /* Increased height for better visibility */
    overflow: hidden;
    /* Crucial for hiding the iframe overflow */
}

.layer-3d-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Allow clicking through if needed, or remove if interaction is desired */
}

.layer-3d-background iframe {
    width: 100%;
    height: calc(100% + 100px);
    /* Increase height to push logo out */
    transform: translateY(-50px);
    /* Move up to hide bottom logo */
    border: none;
}

.layer-3d-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    /* High contrast overlay */
    z-index: 2;
}

.layer-3d-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.15);
    /* More transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-panel h2,
.glass-panel h3,
.glass-panel p,
.glass-panel li {
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    /* Stronger shadow for readability */
}

.glass-panel .why-item {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.glass-panel .why-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.glass-panel .why-item ol li {
    color: #e0e0e0;
    /* Slightly off-white for list items */
}

/* SVG Icon Styles */
.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    fill: var(--color-primary);
    /* Default color */
    transition: transform 0.4s ease, fill 0.4s ease;
}

.glass-panel .service-icon {
    fill: var(--color-white);
    /* White icons in 3D section */
}

.why-item:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
    fill: #00ff73;
    /* Brighter green on hover */
}