:root {
    --wood-deep: #6f4518;
    --wood-deep-hover: #5a3a14;
    --wood-surface: #f2efea;
    --wood-accent: #e7bc91;
    --wood-accent-hover: #a39a8c;
    --wood-shadow: 111, 69, 24;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.site-logo {
    width: auto;
    height: 2.75rem;
    max-width: min(220px, 55vw);
    object-fit: contain;
}

.hero-sygnet {
    width: 300px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.hero {
    overflow: visible;
}

.hero__content {
    padding-top: 6rem;
    padding-bottom: 5rem;
}

.hero__bg {
    z-index: 0;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--wood-deep);
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--wood-deep-hover);
}

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

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

.btn-primary {
    background: var(--wood-deep);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--wood-deep-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(var(--wood-shadow), 0.28);
}

.btn-secondary {
    color: var(--wood-deep);
    border: 2px solid var(--wood-deep);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--wood-deep);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(var(--wood-shadow), 0.28);
}

.social-icon {
    color: var(--wood-deep);
    transition: color 0.2s;
}

.social-icon:hover {
    color: var(--wood-deep-hover);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.product-card {
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
}

.gallery-item {
    cursor: pointer;
}

.faq-question svg {
    transition: transform 0.3s;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--wood-deep);
    box-shadow: 0 0 0 3px rgba(var(--wood-shadow), 0.14);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 60px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid #e5e7eb;
    background: white;
    color: #4b5563;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--wood-deep);
    color: white;
    border-color: var(--wood-deep);
}

/* Gallery filter dropdown (mobile / tablet) */
.gallery-filter-mobile {
    max-width: 22rem;
    margin: 0 auto;
}

.gallery-filter-mobile__label {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7280;
}

.gallery-filter-dropdown {
    position: relative;
}

.gallery-filter-dropdown__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 3rem;
    padding: 0.875rem 1.125rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    color: var(--wood-deep, #6f4518);
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.gallery-filter-dropdown__trigger:hover,
.gallery-filter-dropdown.is-open .gallery-filter-dropdown__trigger {
    border-color: var(--wood-deep, #6f4518);
    box-shadow: 0 4px 14px rgba(53, 34, 8, 0.08);
}

.gallery-filter-dropdown__chevron {
    flex-shrink: 0;
    margin-left: 0.75rem;
    color: #6b7280;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-filter-dropdown.is-open .gallery-filter-dropdown__chevron {
    transform: rotate(180deg);
}

.gallery-filter-dropdown__menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    z-index: 50;
    margin: 0;
    padding: 0.375rem;
    list-style: none;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px rgba(53, 34, 8, 0.12);
    max-height: min(18rem, 50vh);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem) scale(0.98);
    transform-origin: top center;
    transition:
        opacity 0.25s ease,
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.25s ease;
}

.gallery-filter-dropdown.is-open .gallery-filter-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.gallery-filter-dropdown__option {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: #4b5563;
    font-weight: 500;
    font-size: 0.9375rem;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.gallery-filter-dropdown__option:hover {
    background: #f9fafb;
    color: var(--wood-deep, #6f4518);
}

.gallery-filter-dropdown__option.is-selected {
    background: var(--wood-deep, #6f4518);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .gallery-filter-dropdown__menu,
    .gallery-filter-dropdown__chevron {
        transition: none;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
}

@media (max-width: 750px) {
    html,
    body {
        overflow-x: clip;
    }

    body {
        min-width: 0;
    }

    img,
    svg,
    video {
        max-width: 100%;
    }

    .hero-sygnet,
    .site-logo {
        height: auto;
    }

    .hero {
        min-height: 100svh;
        min-height: 100dvh;
        align-items: flex-start;
        padding-top: 4.5rem;
        padding-bottom: 3.5rem;
        overflow: visible;
    }

    .hero__content {
        padding-top: 1.5rem;
        padding-bottom: 3rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero-sygnet {
        width: min(300px, calc(100vw - 2.5rem));
        max-width: min(300px, calc(100vw - 2.5rem));
        height: auto;
        object-fit: contain;
        flex-shrink: 0;
    }

    .hero h1 {
        font-size: clamp(1.625rem, 6.5vw, 2.25rem);
        line-height: 1.25;
        margin-bottom: 1rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .hero p {
        font-size: 1.0625rem;
        line-height: 1.55;
        margin-bottom: 1.5rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .hero__scroll {
        bottom: 1.25rem;
    }

    .site-logo {
        height: 2.25rem;
        max-width: min(190px, 52vw);
    }

    section.py-24 {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .max-w-7xl.mx-auto,
    .max-w-4xl.mx-auto {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .text-center.mb-16 {
        margin-bottom: 2.5rem;
    }

    .font-serif.text-4xl,
    .font-serif.text-5xl,
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        line-height: 1.25;
    }

    .text-xl {
        font-size: 1.0625rem;
        line-height: 1.55;
    }

    .grid.gap-8,
    .grid.gap-12 {
        gap: 1.5rem;
    }

    .grid.grid-cols-2 {
        gap: 0.75rem;
    }

    .product-card .font-serif.text-3xl {
        font-size: 1.5rem;
    }

    .product-card .h-80 {
        height: 14rem;
    }

    .bg-white.p-8 {
        padding: 1.25rem;
    }

    .btn-primary,
    .btn-secondary {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .page-hero {
        min-height: auto;
        height: auto;
        padding-top: 5.5rem;
        padding-bottom: 2.5rem;
        overflow: visible;
    }

    .page-hero .content {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .page-hero .content h1 {
        font-size: clamp(1.75rem, 6.5vw, 2.5rem);
        line-height: 1.25;
    }

    .page-hero .content p {
        font-size: 1.0625rem;
        line-height: 1.5;
    }

    footer.py-16 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    footer .grid {
        gap: 2rem;
    }

    .gallery-filter-mobile {
        max-width: 100%;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    nav .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 751px) {
    .hero {
        min-height: 100vh;
    }

    .hero__content {
        padding-top: 5rem;
        padding-bottom: 4rem;
    }
}

.page-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

.page-hero .content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 1rem;
}

.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s;
    border: 1px solid #f3f4f6;
}

.feature-card:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.image-hover-zoom {
    overflow: hidden;
}

.image-hover-zoom img {
    transition: transform 0.5s ease;
}

.image-hover-zoom:hover img {
    transform: scale(1.1);
}

.loading {
    opacity: 0.5;
    pointer-events: none;
}
