/*
Theme Name: Wiewiór Wycinka
Author: Amadeusz Perz
Description: Wiewiór Wyczinka converted HTML theme.
Version: 1.0
*/
:root {
    --primary: #f05a28;
    --primary-dark: #d94a15;
    --accent-green: #22593b;
    --accent-green-dark: #164028;
    --secondary: #2C3E50;
    --text-dark: #333333;
    --text-light: #777777;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --card-bg: #FFFFFF;
    --input-bg: #fdfdfd;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="dark"] {
    --primary: #f05a28;
    --primary-dark: #cc491f;
    --accent-green: #22593b;
    --accent-green-dark: #164028;
    --secondary: #e6e0d8;
    --text-dark: #fbf9f6;
    --text-light: #b0a89d;
    --bg-white: #242220;
    --bg-light: #2c2927;
    --nav-bg: rgba(36, 34, 32, 0.95);
    --card-bg: #2c2927;
    --input-bg: #242220;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary: #f05a28;
        --primary-dark: #cc491f;
        --accent-green: #22593b;
        --accent-green-dark: #164028;
        --secondary: #e6e0d8;
        --text-dark: #fbf9f6;
        --text-light: #b0a89d;
        --bg-white: #242220;
        --bg-light: #2c2927;
        --nav-bg: rgba(36, 34, 32, 0.95);
        --card-bg: #2c2927;
        --input-bg: #242220;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-white);
    transition: background-color 0.4s ease, color 0.4s ease;
    min-height: 100dvh;
}

.site-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

main {
    flex-grow: 1;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 800;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-primary {
    color: var(--primary);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-primary:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 89, 59, 0.4);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: white;
}

.full-width {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-logo-title {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-logo-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-top: -2px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn) {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
    width: 100%;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary);
}

.mobile-menu-text {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--secondary);
    cursor: pointer;
    margin-left: 20px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Hero Slider */
.hero {
    height: 100dvh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Hide the sliding overflow */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a252f;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: heroFade 18s infinite;
}

.slide.bg-1 {
    background-image: url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=1080&w=1920&q=80');
    animation-delay: 0s;
}

.slide.bg-2 {
    background-image: url('images/hm2.jpg');
    animation-delay: 6s;
}

.slide.bg-3 {
    background-image: url('images/hm3.jpg');
    animation-delay: 12s;
}

@keyframes heroFade {
    0% {
        opacity: 1;
        transform: scale(1.03);
    }

    20% {
        opacity: 1;
        transform: scale(1.07);
    }

    35% {
        opacity: 0;
        transform: scale(1.1);
    }

    85% {
        opacity: 0;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.03);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(44, 62, 80, 0.9) 0%, rgba(44, 62, 80, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    max-width: 800px;
}

.hero-corner-contacts {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.corner-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition);
    opacity: 0.9;
}

.corner-link i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.corner-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    opacity: 0.9;
    cursor: default;
}

.corner-info i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.corner-link:hover {
    opacity: 1;
    color: var(--primary);
    transform: translateX(5px);
}

.corner-link:hover i {
    background: var(--primary);
    color: white;
}

.corner-link.facebook:hover {
    color: #1877F2;
}

.corner-link.facebook:hover i {
    background: #1877F2;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 22px;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Section Heading */
.section-heading {
    margin-bottom: 60px;
}

.section-heading h2 {
    font-size: 36px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.heading-line {
    height: 4px;
    width: 60px;
    background: var(--accent-green);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.heading-line.left {
    margin: 0 0 20px 0;
}

.section-heading p {
    color: var(--text-light);
    font-size: 18px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-slow);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background-color: var(--accent-green);
}

.service-card:hover .service-content h3,
.service-card:hover .service-content p {
    color: white;
    transition: var(--transition-slow);
}

.service-card:hover .service-img .main-img {
    opacity: 0;
    transform: scale(1.05);
}

.service-card:hover .service-img .hover-img {
    opacity: 1;
    transform: scale(1);
}

.service-img {
    position: relative;
    height: 240px;
    width: 100%;
    overflow: hidden;
}

.service-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-img .main-img {
    opacity: 1;
    transform: scale(1);
}

.service-img .hover-img {
    opacity: 0;
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
    position: relative;
    transition: var(--transition-slow);
}

.service-icon {
    position: absolute;
    top: -25px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(240, 90, 40, 0.4);
}

.service-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary);
    transition: var(--transition-slow);
}

.service-content p {
    color: var(--text-light);
    transition: var(--transition-slow);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.about-text p {
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 30px;
}

.about-features {
    list-style: none;
}

.about-features li {
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.about-features i {
    color: var(--accent-green);
    background: rgba(34, 89, 59, 0.1);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.about-img {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-img::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary);
    border-radius: 12px;
    z-index: -1;
}

/* Contact */
.contact-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.contact-info {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 60px 40px;
}

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.contact-info p {
    opacity: 0.8;
    margin-bottom: 40px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    color: var(--primary);
}

.info-text strong {
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.info-text a,
.info-text span {
    color: var(--text-dark);
    opacity: 0.8;
    text-decoration: none;
    transition: var(--transition);
}

.info-text a:hover {
    color: var(--primary);
    opacity: 1;
}

.contact-form-container {
    padding: 60px 40px;
    background: var(--card-bg);
}

.contact-form h3 {
    margin-bottom: 30px;
    font-size: 24px;
    color: var(--secondary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    transition: var(--transition);
    background: var(--input-bg);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 4px rgba(34, 89, 59, 0.2);
    background: var(--card-bg);
}

/* Footer */
footer {
    background: #1a252f;
    padding: 30px 0;
    color: white;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-logo-img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.footer-logo-title {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-text {
    opacity: 0.6;
    font-size: 14px;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.appear,
.fade-in-right.appear {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 42px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        flex-direction: column;
        align-items: center;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .theme-toggle {
        margin: 15px auto;
        align-self: center;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        height: auto;
        /* Allow height to fit content naturally on mobile */
        min-height: 100dvh;
        min-height: 100dvh;
        flex-direction: column;
        justify-content: center;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero-content {
        margin-top: 0;
        padding-top: 0;
        margin-bottom: 30px;
    }

    .hero h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-corner-contacts {
        position: relative;
        /* Break out of absolute positioning */
        bottom: auto;
        left: auto;
        gap: 15px;
        margin-top: 20px;
        width: 100%;
        max-width: 800px;
        padding: 0 20px;
        z-index: 10;
        align-items: flex-start;
    }

    .section-padding {
        padding: 40px 0;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .corner-link,
    .corner-info {
        font-size: 15px;
    }

    .corner-link i,
    .corner-info i {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .btn {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
    }

    /* Prevent animations from causing horizontal scroll on mobile */
    .fade-in-left:not(.appear),
    .fade-in-right:not(.appear) {
        transform: translateY(30px) !important;
    }

    .fade-in-left.appear,
    .fade-in-right.appear {
        transform: translateY(0) !important;
    }
}

/* Partners Section */
.partners {
    padding-top: 20px;
    padding-bottom: 60px;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partner-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.partner-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.partner-btn img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

[data-theme="dark"] .partner-btn {
    background: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .partners-grid {
        gap: 20px;
    }

    .partner-btn {
        padding: 15px 30px;
    }
}