/* =========================================================
   FOOTER + CREDITS
   - MOBILE (base, ispod 768px): NETAKNUTO, radi kako treba.
   - TABLET (768–1023): kolona, uvećane veličine, devojka sedi na credits baru.
   - DESKTOP (1024+): red (tekst levo / slika desno), devojka sedi na credits baru.
   - LARGE (1600+): samo uvećane veličine.

   Kako "sedi na credits sekciji":
   .credits je zaseban div ODMAH ispod </footer>. Slika dobija negativan
   donji margin (uvuče se u credits) + veći z-index od credits-a, pa
   izgleda kao da doslovno sedi na tamnom baru. Zato je i credits-u dat
   position:relative sa nižim z-index-om.
   ========================================================= */

footer {
    background: #f4eade;
    padding: 0;
    overflow-x: clip; /* strelica/mail ne smeju da naprave horizontalni scroll */
}

.footer_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    margin: 0 auto;
}

.footer_text {
    margin-top: 40px;
    max-width: 320px;
    text-align: center;
}

.footer_text h1 {
    font-family: TheSeasonsBold;
    color: #745852;
    /* fluid: raste glatko od telefona do desktopa, bez skoka na 1000px */
    font-size: clamp(1.6em, 1.35em + 1.6vw, 2.4em);
    text-align: center;
}

.footer_text p.footer_script {
    font-family: RomateHood;
    color: #745852;
    font-size: clamp(1.9em, 1.55em + 2vw, 2.8em);
    margin: 14px 0;
    text-align: left;
}

.footer_text p.footer_desc {
    font-family: CormorantGaramond;
    font-size: 1em;
    color: #745852;
}

.footer_text p.footer_desc.italic {
    font-style: italic;
    margin-top: 10px;
}

.footer_icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    margin-top: 28px;
    position: relative;
}

.footer_icons p.email {
    font-family: CormorantGaramond;
    font-size: clamp(1.4em, 1.84em - 0.58vw, 1.7em);
    color: #745852;
    background-color: #d6bdae;
    padding: 14px 26px;
    border-radius: 50px;
    transition: 0.3s all;
    white-space: nowrap;
}

.footer_icons:hover p.email {
    color: white;
}

.icons {
    display: flex;
    align-items: center;
    position: relative;
}

.arrow-container {
    position: absolute;
    top: 10px;
    left: 70px;
    width: clamp(120px, 111px + 2.42vw, 140px);
    transform: rotate(-90deg) scaleX(-1);
    z-index: 1;
}

.arrow-svg {
    width: 100%;
    height: 100%;
}

#mailIconFooter {
    width: clamp(80px, 66px + 3.64vw, 110px);
    position: absolute;
    top: 110px;
    left: 80px;
    transform: rotate(-20deg);
    opacity: 0;
    margin-left: -10px;
    z-index: 1;
}

.footer_img {
    width: 100%;
    max-width: 400px;
    display: block;
    object-fit: cover;
    z-index: 0;
}

/* credits: baza + priprema za "sedenje" slike preko njega */
.credits {
    position: relative;
    z-index: 1; /* niže od slike (koja na tablet/desktop dobija z-index:2) */
}


/* ==== animacije (nepromenjeno) ==== */

#arrowBody {
    stroke-dasharray: 2500;
    stroke-dashoffset: 2500;
}

#arrowHead1,
#arrowHead2 {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
}

#arrowHead1 {
    animation-delay: 1s;
}

#arrowHead2 {
    animation-delay: 1.1s;
}

.animate-arrow {
    animation: drawBody 2s cubic-bezier(.55, 0, .25, 1) forwards;
}

.animate-arrow-head {
    animation: drawHead 0.6s cubic-bezier(.55, 0, .25, 1) forwards;
}

@keyframes drawBody {
    to { stroke-dashoffset: 0; }
}

@keyframes drawHead {
    to { stroke-dashoffset: 0; }
}

.animate_footer_img {
    animation: mailOnStage 0.6s cubic-bezier(.55, 0, .25, 1) forwards;
    animation-delay: 1.5s;
}

@keyframes mailOnStage {
    to {
        margin-left: 0;
        opacity: 1;
    }
}


/* =========================================================
   TABLET (768–1023): i dalje kolona, samo veće i devojka sedi na credits
   ========================================================= */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .footer_inner {
        gap: 20px;
        padding: 60px 32px 0; /* bez donjeg paddinga -> slika dodiruje dno footera */
    }

    .footer_text {
        max-width: 620px;
        padding: 0 10px;
    }

    .footer_text h1 {
        font-size: 2.4em;
    }

    .footer_text p.footer_script {
        font-size: 3em;
        text-align: center;
    }

    .footer_text p.footer_desc {
        font-size: 1.5em;
    }

    .footer_text p.footer_desc.italic {
        margin-top: 14px;
    }

    .footer_icons {
        margin-top: 36px;
    }

    .footer_icons p.email {
        font-size: 2em;
        padding: 18px 32px;
    }

    .arrow-container {
        top: 6px;
        left: 90px;
        width: 150px;
    }

    #mailIconFooter {
        width: 120px;
        top: 120px;
        left: 100px;
    }

    /* devojka: centrirana, sedi na credits baru (uvuče se ~28px) */
    .footer_img {
        max-width: 460px;
        width: 70%;
        position: relative;
        z-index: 2;
        margin: 10px auto -28px;
    }
}


/* =========================================================
   DESKTOP (1024+): red — tekst levo, slika desno, sedi na credits
   ========================================================= */
@media (min-width: 1024px) {
    footer {
        position: relative; /* bez z-index-a -> slika i dalje može preko credits-a */
    }

    .footer_inner {
        flex-direction: row;
        align-items: flex-end;      /* i tekst i slika poravnati na dno */
        justify-content: center;
        gap: 40px;
        max-width: 1300px;
        margin: 0 auto;
        padding: 70px 40px 0;        /* bez donjeg paddinga -> slika dodiruje dno footera */
    }

    .footer_text {
        flex: 1 1 520px;
        max-width: 620px;
        align-self: center;          /* tekst vertikalno centriran u redu */
        text-align: left;
        padding: 0;
    }

    .footer_text h1 {
        font-size: 2.2em;
        text-align: left;
    }

    .footer_text p.footer_script {
        font-size: 2.6em;
        margin: 12px 0;
        text-align: left;
    }

    .footer_text p.footer_desc {
        font-size: 1.4em;
        margin-top: 30px;
    }

    .footer_text p.footer_desc.italic {
        margin-top: 14px;
    }

    .footer_icons {
        align-items: flex-start;     /* email dugme levo, uz tekst */
        margin-top: 40px;
    }

    .footer_icons p.email {
        font-size: 1.9em;
        padding: 18px 34px;
        margin:50px
    }

    .arrow-container {
        top: -200px;
        left: 500px;
        width: 170px;
        transform: rotate(10deg) scaleX(1) scaleY(-1);
    }

    #mailIconFooter {
        width: 130px;
        top: -180px;
        left: 660px;
        z-index: 3;
        transform: rotate(-20deg);
    }

    /* devojka: desno, poravnata na dno, uvuče se u credits ~40px */
    .footer_img {
        flex: 0 1 500px;
        width: clamp(320px, 34vw, 520px);
        max-width: 46%;
        align-self: flex-end;
        position: relative;
        z-index: 2;
        margin: 0 0 0px 0;
    }
}


/* =========================================================
   LARGE (1600+): iste proporcije, samo veće
   ========================================================= */
@media (min-width: 1600px) {
    .footer_inner {
        max-width: 1500px;
        gap: 60px;
        padding: 90px 60px 0;
    }

    .footer_text {
        flex: 1 1 640px;
        max-width: 760px;
    }

    .footer_text h1 {
        font-size: 2.8em;
    }

    .footer_text p.footer_script {
        font-size: 3.4em;
    }

    .footer_text p.footer_desc {
        font-size: 1.7em;
    }

    .footer_icons p.email {
        font-size: 2.3em;
        padding: 22px 40px;
    }


    .footer_img {
        width: clamp(480px, 34vw, 640px);
        max-width: 44%;
        margin-bottom: 0px;
    }




    .arrow-container {
        top: -200px;
        left: 500px;
        width: 170px;
        z-index: 3;

        transform: rotate(10deg) scaleX(1) scaleY(-1);
    }

    #mailIconFooter {
        width: 130px;
        top: -180px;
        left: 660px;
        z-index: 3;
        transform: rotate(-20deg);
    }
}