/* ============================================
   assets/css/footer.css — La Casa Modular Footer
   ============================================ */

.lcm-footer {
    background-color: #2D2210;
    color: var(--lcm-text-nav);
    font-family: var(--lcm-font-garamond);
}

/* ============================================
   GRID UTAMA — Desktop
   3 kolom: [Logo] [Desc + Links + Socials] [Newsletter + Form]
   Semua sejajar di baris yang sama (1 baris grid)
   ============================================ */
.lcm-footer__inner {
    width: var(--lcm-container);
    margin-left: auto;
    margin-right: auto;
    padding-top: 40px;
    padding-bottom: 60px;

    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr minmax(280px, 400px);
    grid-template-areas: "logo middle right";
    column-gap: clamp(40px, 5vw, 100px);
    align-items: start;
}
@media (max-width: 768px) {
    .lcm-footer__inner {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ============================================
   KOLOM KIRI — Logo
   ============================================ */
.lcm-footer__logo-col {
    grid-area: logo;
    align-self: start;
}

.lcm-footer__logo {
    display: flex;
    justify-content: center;
}

.lcm-footer__logo img.custom-logo {
    width: 138.46px;
    height: 120px;
    object-fit: contain;
    display: block;

    filter: brightness(0) saturate(100%)
            invert(82%)
            sepia(24%)
            saturate(500%)
            hue-rotate(350deg)
            brightness(105%)
            contrast(90%);
}

.lcm-footer__logo--text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.lcm-footer__logo-name {
    font-family: var(--lcm-font-logo);
    font-size: clamp(9px, 0.67vw, 13px);
    font-weight: 500;
    letter-spacing: 0.28em;
    color: var(--lcm-gold);
    margin-top: 6px;
    white-space: nowrap;
}

.lcm-footer__logo-tagline {
    font-family: var(--lcm-font-garamond);
    font-size: clamp(7.5px, 0.52vw, 10px);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.15em;
    color: var(--lcm-text-nav);
    opacity: 0.65;
    white-space: nowrap;
}

/* ============================================
   KOLOM TENGAH — Desc + Links + Socials (flex column)
   ============================================ */
.lcm-footer__middle {
    grid-area: middle;
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2vw, 36px);
    max-width: 480px;
    margin: 0 auto;
}

/* Desc langsung di dalam .lcm-footer__middle */
.lcm-footer__desc {
    font-family: var(--lcm-font-garamond);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.8;
    color: #FBF5EE;
    opacity: 0.85;
    margin: 0;
}

@media (max-width: 768px) {
    .lcm-footer__desc {
        font-size: 14px;
        line-height: 1.4;           
        letter-spacing: 0.03em;     
        text-align: justify;        
        color: #FBF5EE;
        opacity: 1;                 
        max-width: 382px;
        margin-top: 40px;
    }
}

.lcm-footer__bottom-left {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(16px, 2vw, 32px);
}

/* Nav: 2-column grid */
.lcm-footer__links {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: clamp(6px, 0.52vw, 10px) clamp(16px, 1.875vw, 36px);
    align-items: start;
    justify-content: start;
}

.lcm-footer__link {
    font-family: var(--lcm-font-garamond);
    font-size: 20px;
    font-weight: 700;
    color: var(--lcm-text-nav);
    text-decoration: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color 0.2s ease;
    position: relative;
}

.lcm-footer__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--lcm-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.lcm-footer__link:hover { color: var(--lcm-gold-light); }
.lcm-footer__link:hover::after { transform: scaleX(1); }

.lcm-footer__socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(6px, 0.6vw, 12px);
    align-self: flex-start;   
}
.lcm-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(201, 169, 110, 0.12);
    color: var(--lcm-text-nav);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lcm-footer__social-link:hover {
    background: var(--lcm-gold);
    color: #2D2210;
    transform: translateY(-2px);
}

/* ============================================
   KOLOM KANAN — Newsletter + Form (flex column)
   ============================================ */
.lcm-footer__right {
    grid-area: right;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lcm-footer__newsletter-title {
    font-family: var(--lcm-font-playfair);
    font-size: clamp(18px, 1.25vw, 24px);
    font-weight: 400;
    font-style: italic;
    color: #E3C49A;
    letter-spacing: 0.02em;
    margin: 0;
}

.lcm-footer__iframe {
    width: 100%;
    min-height: 300px;
    border: none;
    display: block;
}

.lcm-footer__right .ef-label,
.lcm-footer__right label,
.lcm-footer__right input,
.lcm-footer__right textarea,
.lcm-footer__right select {
    color: var(--lcm-white) !important;
    background: transparent !important;
    border-color: rgba(201, 169, 110, 0.35) !important;
    font-family: var(--lcm-font-garamond) !important;
}

.lcm-footer__right input::placeholder,
.lcm-footer__right textarea::placeholder {
    color: rgba(232, 221, 208, 0.4) !important;
    font-style: italic;
}

.lcm-footer__right button[type="submit"],
.lcm-footer__right input[type="submit"] {
    background: var(--lcm-gold-light) !important;
    color: #2D2210 !important;
    border: none !important;
    font-family: var(--lcm-font-garamond) !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    width: 100% !important;
    padding: 14px 28px !important;
    border-radius: 2px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.lcm-footer__right button[type="submit"]:hover,
.lcm-footer__right input[type="submit"]:hover {
    background: var(--lcm-gold) !important;
}

/* ============================================
   PARALLAX TEXT — Footer bottom reveal animation
   ============================================ */
.lcm-footer__parallax-wrap {
    width: var(--lcm-container);
    margin-left: auto;
    margin-right: auto;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    container-type: inline-size;      
}

.lcm-footer__parallax-text {
    font-family: "Kinfolk", Georgia, serif;
    font-weight: 400;
    font-size: 10.08cqw !important;
    line-height: 1;
    letter-spacing: 0;
    color: #B78758;
    display: flex;                    
    white-space: nowrap;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 24px;
    border-bottom: 2px solid #B78758;
}

.lcm-footer__parallax-text .lcm-letter {
    display: inline-block;
    color: #B78758;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.6s ease-out;
    transition-delay: calc(var(--i) * 30ms);
    will-change: transform, opacity;
}
.lcm-footer__parallax-text .lcm-letter--space {
    width: 0.28em;
    flex: 1 1 auto; 
}
.lcm-footer__parallax-text.is-revealed .lcm-letter {
    transform: translateY(0);
    opacity: 1;
}
@media (max-width: 768px) {
    .lcm-footer__parallax-wrap {
        width: 100%;
        height: auto;
        padding: 20px;
    }
    .lcm-footer__parallax-text {
        font-size: clamp(28px, 10vw, 56px);
    }
}


/* ============================================
   BOTTOM BAR
   ============================================ */
.lcm-footer__bottom {
    padding-top: 24px;
}

.lcm-footer__bottom-inner {
    width: var(--lcm-container);
    margin-left: auto;
    margin-right: auto;
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .lcm-footer__bottom-inner {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

.lcm-footer__copy {
    font-family: var(--lcm-font-garamond);
    font-size: 14px;
    color: var(--lcm-gold);
    letter-spacing: 0.04em;
    opacity: 0.75;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet 768–1024px */
@media (max-width: 1024px) {
    .lcm-footer__inner {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "logo  middle"
            "right right";
        row-gap: 36px;
    }

    .lcm-footer__right {
        border-top: 1px solid rgba(201, 169, 110, 0.15);
        padding-top: 28px;
    }
}

/* Mobile <768px */
@media (max-width: 768px) {
    .lcm-footer__inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "desc"
            "right"
            "links";
        row-gap: 28px;
    }

    .lcm-footer__middle {
        display: contents;
    }

    .lcm-footer__desc {
        grid-area: desc;
    }

    .lcm-footer__bottom-left {
        grid-area: links;
        flex-direction: column;
        gap: 20px;
    }

    .lcm-footer__right {
        grid-area: right;
        border-top: none;
        padding-top: 0;
    }

    .lcm-footer__newsletter-title {
        font-size: 20px;
        text-align: center;
    }

    .lcm-footer__socials { flex-wrap: wrap; gap: 10px; }
}
/* ============================================
   STICKY FLOATING BUTTONS
   ============================================ */
.lcm-sticky-btns {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    gap: 10px;
    z-index: 9998;
    align-items: center;
}

.lcm-sticky-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    background: #3a2710;
    color: #e8ddd0;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 6px 24px rgba(0,0,0,0.45);
}

.lcm-sticky-btn:hover {
    transform: translateY(-2px);
    background: #4a3318;
    color: #f0e4d0;
    box-shadow: 0 10px 32px rgba(0,0,0,0.55);
}

.lcm-sticky-btn svg { flex-shrink: 0; opacity: 0.9; }

@media (max-width: 768px) {
    .lcm-sticky-btns { bottom: 16px; right: 16px; gap: 8px; }
    .lcm-sticky-btn { padding: 14px 18px; font-size: 14px; gap: 10px; border-radius: 8px; }
    .lcm-sticky-btn svg { width: 17px; height: 17px; }
}

@media (max-width: 768px) {
    .lcm-footer__link {
        white-space: normal;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.4;
        letter-spacing: 0.03em;
    }

    .lcm-footer__bottom-left {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding-left: 56px;
        padding-right: 56px;
    }

        .lcm-footer__links {
        position: relative;
        grid-template-columns: max-content 110px;
        justify-content: space-between;
        row-gap: 24px;
        width: 100%;
    }

    .lcm-footer__links::before,
    .lcm-footer__links::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #fff;
    }

    .lcm-footer__links::before { left: 0; }
    .lcm-footer__links::after  { left: calc(100% - 110px); }

    .lcm-footer__links .lcm-footer__link {
        padding-left: 24px;
    }

        .lcm-footer__socials {
        justify-content: space-around;   
        width: 100%;
        gap: 53px;
    }

    .lcm-footer__social-link,
    .lcm-footer__social-link:hover {
        width: 32px;
        height: 32px;
        background: transparent;         
        transform: none;
        color: #E3C49A;
    }

    .lcm-footer__social-link svg {
        width: 100%;
        height: 100%;
    }
}

.lcm-footer__social-link[href*="pinterest"] {
    display: none;
}

.lcm-footer__social-link img {
    filter: brightness(0) saturate(100%) invert(60%) sepia(41%) saturate(809%) hue-rotate(322deg) brightness(165%) contrast(78%);
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================
   PARALLAX TEXT — Mobile (sesuai Figma)
   LA / CASA / MODULAR bertumpuk, Kinfolk 73.35px
   ============================================ */
@media (max-width: 768px) {
    .lcm-footer__parallax-wrap {
        width: calc(100% - 40px);
        max-width: 382px;
        height: auto;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
        justify-content: flex-start;
    }

    .lcm-footer__parallax-text {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
        text-align: left;
        white-space: normal;
        font-size: clamp(40px, 16.6vw, 73.35px) !important;  
        line-height: 1;
        letter-spacing: 0;
        padding-bottom: 20px;
        border-bottom: 2px solid #B78758;
    }

    .lcm-footer__parallax-text .lcm-letter {
        color: #B78758;
    }

    /* spasi (anak ke-3 dan ke-8) jadi pemisah baris: LA / CASA / MODULAR */
    .lcm-footer__parallax-text .lcm-letter:nth-child(3),
    .lcm-footer__parallax-text .lcm-letter:nth-child(8) {
        flex: 0 0 100%;
        width: 100%;
        height: 0;
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .lcm-footer__link {
        white-space: normal;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.4;
        letter-spacing: 0.03em;
    }

    .lcm-footer__bottom-left {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding-left: 56px;
        padding-right: 56px;
    }

        .lcm-footer__links {
        position: relative;
        grid-template-columns: max-content 110px;
        justify-content: space-between;
        row-gap: 24px;
        width: 100%;
    }

    .lcm-footer__links::before,
    .lcm-footer__links::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #fff;
    }

    .lcm-footer__links::before { left: 0; }
    .lcm-footer__links::after  { left: calc(100% - 110px); }

    .lcm-footer__links .lcm-footer__link {
        padding-left: 24px;
    }

        .lcm-footer__socials {
        justify-content: space-around;   
        width: 100%;
        gap: 53px;
    }

    .lcm-footer__social-link,
    .lcm-footer__social-link:hover {
        width: 32px;
        height: 32px;
        background: transparent;         
        transform: none;
        color: #E3C49A;
    }

    .lcm-footer__social-link svg {
        width: 100%;
        height: 100%;
    }
}

.lcm-footer__social-link[href*="pinterest"] {
    display: none;
}

.lcm-footer__social-link img {
    filter: brightness(0) saturate(100%) invert(60%) sepia(41%) saturate(809%) hue-rotate(322deg) brightness(165%) contrast(78%);
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================
   PARALLAX TEXT — Mobile (sesuai Figma)
   LA / CASA / MODULAR bertumpuk, Kinfolk 73.35px
   ============================================ */
@media (max-width: 768px) {
    .lcm-footer__parallax-wrap {
        width: calc(100% - 40px);
        max-width: 382px;
        height: auto;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
        justify-content: flex-start;
    }

    .lcm-footer__parallax-text {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
        text-align: left;
        white-space: normal;
        font-size: clamp(40px, 16.6vw, 73.35px) !important;  
        line-height: 1;
        letter-spacing: 0;
        padding-bottom: 20px;
        border-bottom: 2px solid #B78758;
    }

    .lcm-footer__parallax-text .lcm-letter {
        color: #B78758;
    }

    /* spasi (anak ke-3 dan ke-8) jadi pemisah baris: LA / CASA / MODULAR */
    .lcm-footer__parallax-text .lcm-letter:nth-child(3),
    .lcm-footer__parallax-text .lcm-letter:nth-child(8) {
        flex: 0 0 100%;
        width: 100%;
        height: 0;
        overflow: hidden;
    }
}

@media (max-width: 420px) {
    .lcm-footer__socials {
        gap: 16px !important;
        flex-wrap: nowrap !important;
    }

    .lcm-footer__social-link {
        width: 28px !important;
        height: 28px !important;
    }
}

.lcm-footer__parallax-wrap {
    height: auto;
    padding-bottom: 0;
}

.lcm-footer__bottom {
    padding-top: 24px;
}

.lcm-footer__bottom-inner {
    padding-top: 0;
}

@media (min-width: 1025px) {
    .lcm-footer__inner {
        grid-template-columns: 9.6% 45.14% 1fr;      /* 138 / 650 / sisa dari 1440 */
        column-gap: clamp(24px, 3.125vw, 60px);       /* 60px antar kolom */
    }

    .lcm-footer__middle {
        max-width: none;
        margin: 0;
        gap: clamp(24px, 2.1875vw, 42px);             /* paragraf → baris link */
        padding-top: clamp(8px, 0.8333vw, 16px);
        padding-bottom: clamp(4px, 0.4167vw, 8px);
    }

    .lcm-footer__desc {
        font-size: clamp(14px, 1.0417vw, 20px);
        line-height: 1.4;
        letter-spacing: 0.03em;
        text-align: justify;
        opacity: 1;
    }

    .lcm-footer__links {
        grid-template-columns: 11.67vw auto;          /* kolom kedua ±224px @1920 */
        row-gap: clamp(10px, 1.0417vw, 20px);         /* 20px antar baris link */
    }

    .lcm-footer__link {
        line-height: 1.4;
    }

    .lcm-footer__socials {
        gap: clamp(16px, 1.67vw, 32px);
    }

    .lcm-footer__social-link {
        width: clamp(20px, 1.67vw, 32px);
        height: clamp(20px, 1.67vw, 32px);
        background: transparent;
        color: #E3C49A;
    }

        .lcm-footer__logo {
        justify-content: flex-start;
    }

    .lcm-footer__logo img.custom-logo {
        width: 100%;
        max-width: 138.46px;
        height: auto;
        aspect-ratio: 138.46 / 120;
    }
}

@media (min-width: 769px) {
    .lcm-footer__middle {
        min-width: 0;
    }

    .lcm-footer__bottom-left {
        flex-wrap: wrap;
        row-gap: clamp(16px, 1.5vw, 28px);
    }
}

@media (min-width: 1025px) {
    .lcm-footer__links {
        grid-template-columns: minmax(max-content, 11.67vw) max-content;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .lcm-footer__desc {
        font-family: "Adobe Garamond Pro", "EB Garamond", Garamond, serif !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        font-style: normal;
        line-height: 1.4 !important;       
        letter-spacing: 0.03em !important;  
        text-align: justify !important;
        color: #FBF5EE !important;
        opacity: 1 !important;
        width: 100%;
        max-width: 382px;
        margin: 12px auto 0 !important;     
    }
}

@media (max-width: 768px) {

    .lcm-footer__bottom-left {
        margin-top: 12px;
        gap: 40px;                 
        padding-left: 32px;       
        padding-right: 32px;
    }

    .lcm-footer__inner {
        padding-bottom: 40px;
    }

    .lcm-footer__parallax-wrap {
        margin-top: 0;
    }
}