/* =====================================================
   Kohl's Malerei — Artisan Avant-Garde
   "Beyond the Regular Website"
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700;1,900&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --slate: #162431;
    /* Deepened for elite contrast */
    --canvas: #FFFFFF;
    --accent: #20B2AA;
    --accent-vibrant: #FFD700;
    --accent-muted: rgba(32, 178, 170, 0.1);
    --border: rgba(0, 0, 0, 0.08);
    --text: #1A1A1A;
    --text-muted: rgba(0, 0, 0, 0.5);
    --white: #FFFFFF;
    --transition: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    font-size: 80%;
    /* Global 90% scale for rem units */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--canvas);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zM34 44c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zM9 57c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zM47 95c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zM85 37c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zM62 74c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zM74 19c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zM54 44c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zM100 0V20c0 11.046-8.954 20-20 20s-20-8.954-20-20V0h20zM0 20V0h20c11.046 0 20 8.954 20 20s-8.954 20-20 20S0 31.046 0 20zM0 80c0-11.046 8.954-20 20-20s20 8.954 20 20v20H20c-11.046 0-20-8.954-20-20zM100 80v20H80c-11.046 0-20-8.954-20-20s8.954-20 20-20 20 8.954 20 20z' fill='%23000000' fill-opacity='0.01' fill-rule='evenodd'/%3E%3C/svg%3E");
    /* Subtle artisan texture */
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}

/* =====================================================
   Unconventional Layout Helpers
   ===================================================== */
.section-label {
    position: absolute;
    left: 80px;
    /* Further increased for even more breathing room */
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.8em;
    /* More airy */
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.6;
    /* Increased visibility */
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

/* =====================================================
   Navigation (Minimalist Overlay)
   ===================================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    /* Reduced from 40px */
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: difference;
    color: white;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 60px;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* =====================================================
   Avant-Garde Hero
   ===================================================== */
.hero {
    height: 120vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 10vw;
    perspective: 1000px;
}

.hero-bg {
    position: absolute;
    top: 10vh;
    right: 5vw;
    width: 60vw;
    height: 80vh;
    background: url('./assets/hero.png');
    background-size: cover;
    background-position: center;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    /* Asymmetric Mask */
    z-index: 1;
    filter: brightness(1.1);
}

.hero-title-container {
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: clamp(3.5rem, 13vw, 11rem);
    /* Scaled down for imposing feel */
    font-weight: 900;
    line-height: 0.85;
    color: var(--slate);
    transition: transform 0.1s ease-out;
    /* For JS parallax */
}

.hero h1 .overlap {
    display: block;
    margin-left: 20%;
    font-style: italic;
    color: var(--accent);
    margin-top: -0.1em;
}

.hero-subtext {
    position: absolute;
    bottom: 12vh;
    /* Adjusted from 20vh */
    left: 10vw;
    max-width: 400px;
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.6;
}

/* =====================================================
   Asymmetric Services Section
   ===================================================== */
.services-section {
    position: relative;
    padding: 20px 0 100px;
    /* Highly compressed top padding to balance the layout */
    scroll-margin-top: 50px;
}

.asymmetric-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    padding: 0 10vw;
}

.service-block {
    grid-column: span 5;
    margin-bottom: 20px;
    /* Ultra compressed */
}

.service-block:nth-child(even) {
    margin-top: 40px;
    /* Minimal offset for elite rhythm while maintaining centering */
    grid-column: 8 / span 5;
    /* Offset to the right */
}

.block-index {
    font-family: 'Playfair Display', serif;
    font-size: 10rem;
    /* Even larger */
    font-weight: 900;
    opacity: 0.18;
    /* More present */
    margin-bottom: -2.5rem;
    display: block;
    color: var(--accent);
    transition: var(--transition);
}

.service-block {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-block.reveal {
    opacity: 1;
    transform: translateY(0);
}

.block-content {
    position: relative;
    z-index: 2;
}

.block-content h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--slate);
}

.block-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 400px;
}

.accent-line {
    width: 100px;
    height: 4px;
    background: var(--accent);
    margin-top: 40px;
}

/* =====================================================
   Immersive Contact Section
   ===================================================== */
.contact-immersive {
    background: var(--accent);
    color: white;
    padding: 100px 10vw 200px;
    /* Balanced padding */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    position: relative;
    z-index: 5;
}

.contact-immersive h2 {
    font-size: clamp(2.5rem, 9vw, 7.5rem);
    /* Scaled down */
    line-height: 0.9;
    font-weight: 900;
}

.contact-box {
    background: white;
    padding: 60px;
    transform: translateY(20px);
    /* Reduced from 50px to prevent bottom clipping */
    box-shadow: 30px 30px 0 var(--accent-vibrant);
    color: var(--text);
    position: relative;
    z-index: 10;
}

/* =====================================================
   Elements
   ===================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #25D366;
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 5px;
    /* Unconventional Square style */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: rotate(-10deg) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        height: 100vh;
        padding: 20px;
    }

    .hero-bg {
        width: 90vw;
        opacity: 0.3;
    }

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

    .service-block,
    .service-block:nth-child(even) {
        margin: 0 0 80px 0;
        grid-column: 1;
    }

    .contact-immersive {
        grid-template-columns: 1fr;
        padding: 100px 20px;
        gap: 40px;
    }

    .contact-box {
        transform: none;
        padding: 40px 20px;
    }
}

/* Photo Preview Queue (Artisan Technical) */
@keyframes revealPreview {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#preview-container {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.preview-item {
    position: relative;
    width: 55px;
    /* Close to 25x25, but usable for deletion */
    height: 55px;
    animation: revealPreview 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid var(--border);
}

.remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--slate);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: 0.2s ease;
}

.remove-btn:hover {
    background: #ff4d4d;
    transform: scale(1.1);
}