/*==========================================
  Desiwood — global footer (resources/views/frontend/components/footer.blade.php)
  Loaded after custom.css; every rule is scoped to .dw-footer.
==========================================*/

.dw-footer {
    --df-bg: #1d0732;
    --df-text: #b7aec8;
    --df-heading: #fff;
    --df-line: rgba(255, 255, 255, .09);
    --df-accent: #ff8a00;
    --df-accent-2: #ff006e;
    --df-ease: .25s ease;
    position: relative;
    padding: 64px 0 0;
    background: var(--df-bg);
    color: var(--df-text);
    font-size: 14.5px;
    line-height: 1.6;
}

/* Hairline in the brand colours along the top edge. */
.dw-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 138, 0, .45), rgba(255, 0, 110, .45), transparent);
}

.dw-footer a {
    transition: color var(--df-ease), background-color var(--df-ease), border-color var(--df-ease), transform var(--df-ease);
}

.dw-footer a:focus-visible,
.dw-footer button:focus-visible {
    outline: 2px solid var(--df-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/*------------------------------------------
  Columns
------------------------------------------*/

.dw-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr) minmax(0, .8fr) minmax(0, 1.25fr);
    gap: 40px 48px;
    align-items: start;
}

.dw-footer__title {
    margin: 0 0 16px;
    color: var(--df-heading);
    font-family: var(--default-font, "Poppins", sans-serif);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .01em;
    text-transform: none;
}

.dw-footer__text {
    max-width: 320px;
    margin: 0;
    color: var(--df-text);
    font-size: 14.5px;
    line-height: 1.65;
}

/* Brand */
.dw-footer__logo {
    display: inline-block;
    margin-bottom: 16px;
}

.dw-footer__logo img {
    display: block;
    width: 84px;
    height: auto;
    aspect-ratio: 580 / 581;
}

/* Contact */
.dw-footer__mail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--df-text);
    text-decoration: none;
    white-space: nowrap;
}

.dw-footer__mail i {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--df-line);
    border-radius: 50%;
    color: var(--df-accent);
    font-size: 16px;
    transition: border-color var(--df-ease), background-color var(--df-ease);
}

.dw-footer__mail:hover {
    color: #fff;
}

.dw-footer__mail:hover i {
    background: rgba(255, 138, 0, .1);
    border-color: rgba(255, 138, 0, .45);
}

/* Quick links: small accent bar instead of list bullets. */
.dw-footer__links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dw-footer__links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--df-text);
    text-decoration: none;
}

.dw-footer__links a::before {
    content: "";
    width: 0;
    height: 2px;
    margin-right: 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--df-accent), var(--df-accent-2));
    transition: width var(--df-ease), margin-right var(--df-ease);
}

.dw-footer__links a:hover,
.dw-footer__links a:focus-visible {
    color: #fff;
}

.dw-footer__links a:hover::before,
.dw-footer__links a:focus-visible::before {
    width: 10px;
    margin-right: 8px;
}

/* Newsletter */
.dw-footer__newsletter .dw-footer__text {
    margin-bottom: 14px;
}

.dw-footer__form {
    max-width: 340px;
}

.dw-footer__field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    transition: border-color var(--df-ease);
}

.dw-footer__field:focus-within {
    border-bottom-color: var(--df-accent);
}

.dw-footer__form.is-invalid .dw-footer__field {
    border-bottom-color: #ff6b7a;
}

.dw-footer__field > i {
    flex: none;
    color: var(--df-text);
    font-size: 17px;
    line-height: 1;
}

.dw-footer__field input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #fff;
    font: inherit;
    font-size: 14.5px;
    outline: none;
}

.dw-footer__field input::placeholder {
    color: #8d84a0;
}

.dw-footer__field input:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 40px var(--df-bg) inset;
}

.dw-footer__field button {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--df-line);
    border-radius: 50%;
    color: #fff;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--df-ease), border-color var(--df-ease), transform var(--df-ease);
}

.dw-footer__field button:hover {
    background: linear-gradient(90deg, var(--df-accent), var(--df-accent-2));
    border-color: transparent;
}

.dw-footer__field button:hover i {
    transform: translateX(1px);
}

.dw-footer__field button:active {
    transform: scale(.94);
}

.dw-footer__field button:focus-visible {
    border-radius: 50%;
}

.dw-footer__status {
    display: flex;
    gap: 6px;
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.45;
}

.dw-footer__status[hidden] {
    display: none;
}

.dw-footer__status::before {
    font-family: "remixicon";
    font-size: 15px;
    line-height: 1.3;
}

.dw-footer__status.is-error {
    color: #ff8b97;
}

.dw-footer__status.is-error::before {
    content: "\eca1"; /* ri-error-warning-line */
}

.dw-footer__status.is-info {
    color: #d9d2e4;
}

.dw-footer__status.is-info::before {
    content: "\ee59"; /* ri-information-line */
    color: var(--df-accent);
}

/*------------------------------------------
  Bottom bar
------------------------------------------*/

.dw-footer__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px 32px;
    margin-top: 48px;
    padding: 22px 0;
    border-top: 1px solid var(--df-line);
}

.dw-footer__copy {
    margin: 0;
    color: #9d94b0;
    font-size: 13.5px;
    font-weight: 400;
}

.dw-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 24px;
}

.dw-footer__legal a {
    color: var(--df-text);
    font-size: 13.5px;
    text-decoration: none;
}

.dw-footer__legal a:hover {
    color: #fff;
}

.dw-footer__social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.dw-footer__social-label {
    color: var(--df-heading);
    font-size: 13.5px;
    font-weight: 500;
}

.dw-footer__social ul {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dw-footer__social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--df-line);
    border-radius: 50%;
    color: #fff;
    font-size: 17px;
    line-height: 1;
    text-decoration: none;
}

.dw-footer__social a:hover {
    background: linear-gradient(135deg, var(--df-accent), var(--df-accent-2));
    border-color: transparent;
    transform: translateY(-2px);
}

.dw-footer__social a:focus-visible {
    border-radius: 50%;
}

/*------------------------------------------
  Responsive
------------------------------------------*/

/* Laptop: legal links move beside the copyright, social stays right. */
@media (max-width: 1199.98px) {
    /* Contact and links take their own width so the address never wraps. */
    .dw-footer__grid {
        grid-template-columns: minmax(0, 1.1fr) max-content max-content minmax(0, 1.2fr);
        gap: 36px 32px;
    }

    .dw-footer__bottom {
        grid-template-columns: auto auto minmax(0, 1fr);
    }
}

/* Tablet: two columns (brand | contact, links | newsletter). */
@media (max-width: 991.98px) {
    .dw-footer {
        padding-top: 52px;
    }

    .dw-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 40px;
    }

    .dw-footer__text,
    .dw-footer__form {
        max-width: 380px;
    }

    .dw-footer__bottom {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin-top: 40px;
    }

    .dw-footer__copy {
        order: 3;
        flex-basis: 100%;
    }
}

/* Mobile: one left-aligned column; legal, social, then copyright. */
@media (max-width: 575.98px) {
    .dw-footer {
        padding-top: 44px;
    }

    .dw-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .dw-footer__logo img {
        width: 72px;
    }

    .dw-footer__links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 20px;
    }

    .dw-footer__form {
        max-width: none;
    }

    .dw-footer__field {
        height: 48px;
    }

    .dw-footer__field button {
        width: 40px;
        height: 40px;
    }

    .dw-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        margin-top: 36px;
        padding: 22px 0 26px;
    }

    .dw-footer__social a {
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dw-footer a,
    .dw-footer button,
    .dw-footer__links a::before {
        transition: none;
    }
}
