/* =========================================
   CONTACT PAGE STYLES (KOLORYT)
========================================= */

:root {
    --spotlight-size: 400px;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

html {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.contact-page-main {
    width: 100%;
    position: relative;
    display: block;
}

/* =========================================
   HERO SECTION WITH BIG PHOTO
========================================= */
.contact-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 720px;
    display: flex;
    overflow: hidden;
}

.contact-hero-bg-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.contact-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    will-change: transform;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(2, 2, 2, 0.4) 0%,
        rgba(2, 2, 2, 0.25) 35%,
        rgba(2, 2, 2, 0.55) 75%,
        rgba(2, 2, 2, 0.95) 100%
    );
    pointer-events: none;
    z-index: 2;
}

.contact-hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1720px;
    margin: 0 auto;
    padding: 14vh 4vw 4vw 4vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 3;
}

/* =========================================
   HERO EDITORIAL TYPOGRAPHY
========================================= */
.hero-editorial-typography {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    margin-top: 1vh;
}

.hero-typo-line {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.hero-typo-line.typo-top-left {
    justify-content: flex-start;
}

.hero-typo-line.typo-mid-left {
    justify-content: flex-start;
    padding-left: 2.5vw;
}

.hero-typo-line.typo-right {
    justify-content: flex-end;
    padding-right: 2vw;
}

.hero-typo-word {
    font-family: 'Inter', sans-serif;
    font-size: clamp(3.8rem, 8.8vw, 10.5rem);
    font-weight: 300;
    line-height: 0.88;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #faf8f5;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    will-change: transform, opacity;
}

/* =========================================
   BOTTOM-LEFT INFO CARD (ATELIER STYLE)
========================================= */
.hero-info-card {
    position: relative;
    width: 100%;
    max-width: 390px;
    background: rgba(18, 16, 14, 0.86);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 5;
    margin-top: auto;
    will-change: transform, opacity;
}

/* Architectural corner dots */
.card-corner {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.card-corner.corner-tl {
    top: 6px;
    left: 6px;
}

.card-corner.corner-tr {
    top: 6px;
    right: 6px;
}

.card-corner.corner-bl {
    bottom: 6px;
    left: 6px;
}

.card-corner.corner-br {
    bottom: 6px;
    right: 6px;
}

.info-card-header {
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-header-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.info-card-body {
    padding: 1.6rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.info-brand-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-color);
}

.info-address {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
}

.info-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.2rem;
}

.info-link {
    display: inline-block;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.info-phone {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.info-email {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.info-link:hover {
    color: var(--accent-color);
}

/* =========================================
   FORM SECTION (SPOTLIGHT & FORM)
========================================= */
.contact-form-section-wrapper {
    position: relative;
    width: 100%;
    padding: 14vh 0 12vh 0;
    background: var(--bg-color);
}

.form-section-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-section-header {
    text-align: center;
    margin-bottom: 4.5rem;
    max-width: 640px;
}

.form-section-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.8rem;
}

.form-section-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-color);
    margin-bottom: 1.2rem;
}

.form-section-desc {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* =========================================
   FLASHLIGHT FORM WRAPPER & LAYERS
========================================= */
.spotlight-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #090909;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 4.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.spotlight-wrapper:hover {
    border-color: rgba(178, 213, 229, 0.25);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(178, 213, 229, 0.04);
}

.form-flashlight-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.form-flashlight-layer.before-bg {
    z-index: 1;
    background: radial-gradient(circle at 50% 50%, rgba(26, 25, 24, 0.6) 0%, rgba(9, 9, 9, 0.95) 100%);
}

.form-flashlight-layer.after-bg {
    z-index: 2;
    mask-image: radial-gradient(
        circle 580px at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.85) 35%,
        rgba(0,0,0,0) 75%
    );
    -webkit-mask-image: radial-gradient(
        circle 580px at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.85) 35%,
        rgba(0,0,0,0) 75%
    );
    opacity: var(--flashlight-opacity, 0);
    transition: opacity 0.6s ease;
}

.form-flashlight-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    transition: transform 0.8s ease;
}

.spotlight-wrapper:hover .form-flashlight-img {
    transform: scale(1);
}

.form-flashlight-tint {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.38);
}

.form-flashlight-glow {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: var(--flashlight-opacity, 0);
    transition: opacity 0.6s ease;
    background: radial-gradient(
        circle 420px at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(178, 213, 229, 0.1) 0%,
        rgba(220, 200, 170, 0.04) 40%,
        transparent 70%
    );
}

/* Premium Form */
.premium-form {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 2.8rem;
    margin-top: 0;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 1.35rem;
    font-weight: 300;
    padding: 0.6rem 0;
    font-family: inherit;
    resize: none;
}

.form-group textarea {
    min-height: 44px;
    overflow: hidden;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-group textarea ~ label {
    top: 1rem;
    transform: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    transform: translateY(0);
}

.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -20px;
}

.form-group .line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.form-group .line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--text-color);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-group input:focus ~ .line::after,
.form-group textarea:focus ~ .line::after {
    width: 100%;
}

/* =========================================
   MAGNETIC BUTTON
========================================= */
.magnetic-btn-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.8rem;
}

.magnetic-btn {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    height: 100%;
    background: var(--text-color);
    border-radius: 50%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 0;
}

.magnetic-btn:hover::before {
    transform: translateX(-50%) translateY(0%);
    border-radius: 0;
}

.magnetic-btn:hover {
    color: var(--bg-color);
    border-color: var(--text-color);
}

.btn-text {
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    pointer-events: none;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1024px) {
    .contact-hero {
        height: auto;
        min-height: 90vh;
    }

    .contact-hero-container {
        padding: 14vh 5vw 3rem 5vw;
        gap: 5vh;
    }

    .hero-typo-word {
        font-size: clamp(3.2rem, 11vw, 6.5rem);
    }

    .hero-info-card {
        max-width: 100%;
    }

    .contact-form-section-wrapper {
        padding: 10vh 0 8vh 0;
    }

    .spotlight-wrapper {
        padding: 3.5rem 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-editorial-typography {
        gap: 1.5vh;
    }

    .hero-typo-line.typo-mid-left {
        padding-left: 0;
    }

    .hero-typo-line.typo-right {
        padding-right: 0;
    }

    .hero-typo-word {
        font-size: clamp(2.6rem, 12vw, 4.5rem);
    }

    .form-section-header {
        margin-bottom: 3rem;
    }

    .spotlight-wrapper {
        padding: 2.8rem 1.8rem;
        border-radius: 20px;
    }

    .premium-form {
        gap: 2.2rem;
    }
}

/* =========================================
   CONTACT PAGE FOOTER (All Devices)
========================================= */
.footer {
    min-height: 70vh;
    padding: 8vh 4vw 4vh 4vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: var(--bg-color);
}

.footer-bg-img {
    object-position: center 85%;
    filter: brightness(0.68) contrast(1.12);
}

.footer-bottom {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1024px) {
    .footer {
        min-height: 60vh;
        padding: 6vh 5vw 4vh 5vw;
    }
}

@media (max-width: 600px) {
    .contact-hero {
        min-height: 100svh;
    }

    .contact-hero-container {
        padding: 13vh 4vw 2rem 4vw;
    }

    .hero-typo-word {
        font-size: clamp(2.2rem, 13vw, 3.6rem);
    }

    .info-card-header {
        padding: 0.8rem 1.2rem;
    }

    .info-card-body {
        padding: 1.25rem;
        gap: 0.9rem;
    }

    .spotlight-wrapper {
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }

    .form-group input, .form-group textarea, .form-group label {
        font-size: 1.15rem;
    }

    .magnetic-btn {
        width: 120px;
        height: 120px;
    }

    .footer {
        min-height: auto;
        padding: 6vh 4vw 3vh 4vw;
        background-color: var(--bg-color);
    }

    .footer-bg-img {
        object-position: center 85%;
        filter: brightness(0.65) contrast(1.15);
    }

    .footer-top {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }

    .footer-huge-text {
        font-size: clamp(2rem, 11vw, 3.2rem);
        line-height: 0.95;
        letter-spacing: -0.01em;
    }

    .footer-bottom {
        background: transparent;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 3.5vh 0 1vh 0;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* =========================================
   GLOBAL CUSTOM SCROLLBAR
========================================= */
.koloryt-global-scrollbar {
    position: fixed !important;
    right: 3px !important;
    top: 0 !important;
    width: 8px !important;
    height: 100vh !important;
    background: transparent !important;
    z-index: 99999 !important;
    pointer-events: none !important;
}

.koloryt-global-scrollbar .swiper-scrollbar-drag {
    background: rgba(255, 255, 255, 0.35) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: background 0.2s ease !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.koloryt-global-scrollbar .swiper-scrollbar-drag:hover {
    background: rgba(255, 255, 255, 0.6) !important;
}
