/* ============================================
   SZALMA HAND MADE - Premium Handcrafted Slippers
   Color palette inspired by workshop photography
   ============================================ */

:root {
    /* Primary colors - warm earth tones from workshop */
    --color-primary: #8B7355;
    --color-primary-dark: #6B5344;
    --color-primary-light: #A89078;

    /* Accent colors from slippers */
    --color-accent: #C4A35A;
    --color-accent-dark: #9E833A;

    /* Neutrals */
    --color-cream: #FAF8F5;
    --color-warm-white: #FFFDF9;
    --color-beige: #E8E2D9;
    --color-dark: #2C2824;
    --color-dark-soft: #4A4540;
    --color-text: #3D3832;
    --color-text-light: #7A746C;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-warm-white);
    overflow-x: hidden;
}

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

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

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

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
.section-header {
    margin-bottom: 60px;
}

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

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 500;
    color: var(--color-dark);
    line-height: 1.2;
}

.section-desc {
    font-size: 18px;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 20px auto 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 253, 249, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-dark);
    letter-spacing: 1px;
}

.logo-subtext {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 8px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width var(--transition-smooth);
}

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 8px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--color-beige);
}

.lang-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 4px;
    color: var(--color-text-light);
    transition: var(--transition-fast);
}

.lang-btn:hover {
    color: var(--color-primary);
}

.lang-btn.active {
    background: var(--color-primary);
    color: white;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 500;
    color: white;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    padding: 18px 40px;
    border: 2px solid white;
    border-radius: 4px;
    transition: var(--transition-smooth);
    background: transparent;
}

.hero-cta:hover {
    background: white;
    color: var(--color-dark);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(10px);
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: var(--section-padding) 0;
    background: var(--color-warm-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text {
    padding-right: 40px;
}

.about-intro {
    font-family: var(--font-display);
    font-size: 24px;
    font-style: italic;
    color: var(--color-dark-soft);
    line-height: 1.6;
    margin-bottom: 24px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--color-primary);
}

.feature h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.feature p {
    font-size: 13px;
    color: var(--color-text-light);
}

/* About Gallery */
.about-gallery {
    position: sticky;
    top: 100px;
}

.gallery-main {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.gallery-img.active {
    opacity: 1;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.5;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.thumb:hover {
    opacity: 0.8;
}

.thumb.active {
    opacity: 1;
    border-color: var(--color-primary);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   DETAIL SHOWCASE
   ============================================ */
.detail-showcase {
    background: var(--color-dark);
    padding: 0;
    overflow: hidden;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.showcase-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-dark);
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
    filter: brightness(0.9);
}

.showcase-item:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

.showcase-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.showcase-item:hover::after {
    opacity: 0;
}

@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
    }
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products {
    padding: var(--section-padding) 0;
    background: var(--color-cream);
}

/* Product Block - Alternating Layout */
.product-block {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    margin-bottom: 60px;
}

.product-block.reversed {
    grid-template-columns: 1fr 1.4fr;
}

.product-block.reversed .product-main {
    order: 2;
}

.product-block.reversed .product-side {
    order: 1;
}

/* Main Product Image */
.product-main {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.product-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 40px;
    transition: transform var(--transition-smooth);
}

.product-main:hover img {
    transform: scale(1.05);
}

.product-main .product-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.product-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
    padding: 10px 16px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Side Layout - 2 on top, 1 wide below */
.product-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 0.5fr 0.9fr;
    gap: 20px;
}

.thumb-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
}

.thumb-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform var(--transition-smooth);
}

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

.thumb-item.wide {
    grid-column: 1 / -1;
}

/* Products CTA */
.products-cta {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.products-cta p {
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 115, 85, 0.3);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: var(--section-padding) 0;
    background: var(--color-warm-white);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.contact-item {
    text-align: center;
    padding: 40px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--color-primary);
}

.contact-text h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.contact-text a,
.contact-text p {
    font-size: 16px;
    color: var(--color-dark);
    font-weight: 500;
}

.contact-text a:hover {
    color: var(--color-primary);
}

.contact-note {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: var(--color-cream);
    border-radius: 12px;
    border-left: 4px solid var(--color-accent);
}

.note-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--color-accent-dark);
}

.contact-note p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 60px 0;
    background: var(--color-dark);
    text-align: center;
}

.footer-content {
    color: rgba(255, 255, 255, 0.8);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.footer-logo .logo-text {
    color: white;
    font-size: 32px;
}

.footer-logo .logo-subtext {
    color: var(--color-accent);
}

.footer-tagline {
    font-size: 14px;
    margin-bottom: 24px;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .hero {
        min-height: 100vh;
    }

    .hero-content {
        padding: 40px 24px;
    }

    .hero-title {
        font-size: clamp(36px, 10vw, 60px);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-text {
        padding-right: 0;
    }

    .about-gallery {
        position: relative;
        top: 0;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-features {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-block {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .product-block.reversed {
        grid-template-columns: 1fr 1fr;
    }

    .product-side {
        gap: 16px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 50px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-container {
        height: 70px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--color-warm-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: right var(--transition-smooth);
    }

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

    .nav-menu a {
        font-size: 24px;
    }

    .lang-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 20px;
    }

    .lang-btn {
        font-size: 14px;
        padding: 10px 16px;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: clamp(32px, 10vw, 48px);
    }

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

    .scroll-indicator {
        bottom: 24px;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 20px;
        gap: 16px;
    }

    .feature-icon {
        margin: 0;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

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

    .section-desc {
        font-size: 16px;
    }

    .products-cta {
        padding: 30px 20px;
    }

    .products-cta p {
        font-size: 16px;
    }

    .contact-note {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-block {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }

    .product-block.reversed {
        grid-template-columns: 1fr;
    }

    .product-block.reversed .product-main,
    .product-block.reversed .product-side {
        order: unset;
    }

    .product-side {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
    }

    .thumb-item.wide {
        grid-column: 1 / -1;
    }

    .product-main img {
        padding: 24px;
    }

    .thumb-item img {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        width: 100%;
        justify-content: center;
    }

    .gallery-thumbs {
        gap: 8px;
    }

    .thumb {
        width: 60px;
        height: 60px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 13px;
    }
}

/* Smooth scroll offset for fixed header */
section[id] {
    scroll-margin-top: 80px;
}

@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 70px;
    }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 32px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 36px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.lightbox-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.lightbox-dot.active {
    background: white;
}

/* Make product images clickable */
.product-main img,
.thumb-item img {
    cursor: pointer;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        font-size: 28px;
    }
}
