/* =========================================
   BOOK NEST FOOTER — SCREENSHOT MATCH
========================================= */

.site-footer {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #171916;
    font-family: "DM Sans", Arial, sans-serif;
}

.site-footer,
.site-footer * {
    box-sizing: border-box;
}

/* =========================================
   TESTIMONIAL AREA
========================================= */

.footer-testimonial-area {
    width: 100%;
    height: 115px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
    background: #f7f3ee;
}

.footer-testimonial-card {
    width: var(--iner-container);
    min-height: 180px;
    padding: 30px 36px;
    position: relative;
    top: 0;
    left: auto;
    z-index: 20;
    transform: none;
    display: flex;
    
    align-items: center;
    gap: 36px;
    background: #ffffff;
    border: 1px solid #d3d3d3;
    border-radius: 20px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.17);
}

.footer-testimonial-title {
    height: 100%;
    padding-right: 28px;
    display: flex;
    align-items: center;
    border-right: 1px solid #dedede;
}

.footer-testimonial-title h2 {
    margin: 0;
    color: #2c2d30;
    /* font-size: 26px; */
    /* font-weight: 700; */
    line-height: 1.08;
}

.footer-testimonial-content {
    width: 100%;
    min-width: 0;
    min-height: 122px;
    position: relative;
    padding: 35px 15px 28px 0;
    overflow: hidden;
}

.footer-quote-icon {
    position: absolute;
    top: -18px;
    left: 0;
    z-index: 3;
    color: #111111;
    font-family: Georgia, serif;
    font-size: 82px;
    font-weight: 700;
    line-height: 1;
}

/* Testimonial slider wrapper */
.footer-testimonial-slider {
    width: 100%;
    min-height: 74px;
    position: relative;
}

/* Hide every testimonial except the active one */
.footer-testimonial-slide {
    width: 100%;
    display: none;
    opacity: 0;
}

.footer-testimonial-slide.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    animation: footerTestimonialFade 0.5s ease both;
}

/* Supports the old single-paragraph HTML as a fallback */
.footer-testimonial-slide p,
.footer-testimonial-content > p {
    max-width: 680px;
    margin: 0;
    color: #111111;
    font-size: 21px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.65;
}

.footer-client-name {
    display: block;
    margin-top: 15px;
    color: #ff4b0b;
    font-size: 20px;
    font-weight: 700;
}

@keyframes footerTestimonialFade {
    from {
        opacity: 0;
        transform: translateX(14px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slider navigation dots */
.footer-testimonial-dots {
    position: absolute;
    right: 4px;
    bottom: 2px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 7px;
}

.footer-testimonial-dot {
    width: 9px;
    height: 9px;
    min-width: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #bdbdbd;
    cursor: pointer;
    transition:
        width 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease;
}

.footer-testimonial-dot:hover {
    transform: scale(1.12);
}

.footer-testimonial-dot.active {
    width: 25px;
    border-radius: 20px;
    background: #ff4b0b;
}

/* =========================================
   MAIN FOOTER
========================================= */

.footer-main {
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    background-color: #171916;
    padding-top: 22vh;

    /* Triangle-pattern look from the reference */
    background-image:
        linear-gradient(60deg, transparent 49%, rgba(0, 0, 0, .55) 50%, transparent 51%),
        linear-gradient(-60deg, transparent 49%, rgba(0, 0, 0, .55) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(0, 0, 0, .36) 50%, transparent 51%);
    background-size: 105px 91px, 105px 91px, 105px 91px;
    background-position: 0 0, 52px 0, 0 45px;
}

.footer-main::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(10, 12, 10, 0.04) 0%,
        rgba(10, 12, 10, 0.10) 55%,
        rgba(10, 12, 10, 0.38) 100%
    );
}

.footer-main-inner {
    width: var(--iner-container);
    min-height: 680px;
    padding: 105px 0 45px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
}

.footer-left {
    width: 48%;
    max-width: 565px;
    flex: 0 1 565px;
}

/* =========================================
   FORM
========================================= */

.footer-form-wrapper {
    width: 100%;
}

.footer-form-heading {
    margin: 0 0 17px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.02;
}

.footer-form-heading span {
    display: block;
}

.footer-contact-form,
.footer-form-row,
.footer-message-row {
    width: 100%;
}

.footer-form-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-form-row input {
    flex: 1 1 0;
    min-width: 0;
}

.footer-contact-form input,
.footer-contact-form textarea {
    width: 100%;
    border: 0;
    outline: 0;
    box-sizing: border-box;
    background: #f8f8f8;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 14px;
    border-radius: 3px;
}

.footer-contact-form input {
    height: 41px;
    padding: 10px 14px;
}

.footer-contact-form textarea {
    height: 53px;
    padding: 10px 14px;
    resize: none;
}

.footer-contact-form input::placeholder,
.footer-contact-form textarea::placeholder {
    color: #707070;
    opacity: 1;
}

.footer-message-row {
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-message-row textarea {
    flex: 1 1 auto;
    min-width: 0;
}

.footer-contact-form button {
    width: 181px;
    height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: #ff4b08;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: .25s ease;
}

.footer-contact-form button:hover {
    background: #df3d00;
    transform: translateY(-2px);
}

/* =========================================
   CONTACT DETAILS
========================================= */

.footer-contact-list {
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.footer-contact-double {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-contact-list a,
.footer-address {
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
}

.footer-contact-list a:hover {
    color: #f0b632;
}

.footer-contact-icon {
    width: 28px;
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    color: #f0b632;
    font-size: 25px;
    line-height: 1;
}

.footer-contact-icon i {
    font-size: 23px;
}

/* =========================================
   ABOUT
========================================= */

.footer-about {
    width: 100%;
    margin-top: 14px;
    padding-top: 19px;
    border-top: 1px solid rgba(255, 255, 255, .58);
}

.footer-about p {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
}

.footer-about p + p {
    margin-top: 21px;
}

/* =========================================
   SOCIAL ICONS
========================================= */

.footer-socials {
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social-link {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 19px;
    font-weight: 700;
    transition: .25s ease;
}

.footer-social-link i {
    font-size: 18px;
}

.footer-social-link:hover {
    background: #ff4b08;
    border-color: #ff4b08;
    transform: translateY(-3px);
}

/* =========================================
   RIGHT IMAGE
========================================= */

.footer-right {
    width: 48%;
    min-height: 440px;
    padding-top: 30px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex: 1 1 420px;
}

.footer-typewriter-image {
    width: 100%;
    max-width: 570px;
    height: auto;
    display: block;
    object-fit: contain;
    transform: rotate(-1deg);
}

/* =========================================
   FOOTER BOTTOM
========================================= */

.footer-bottom {
    width: 100%;
    min-height: 92px;
    position: relative;
    display: flex;
    justify-content: center;
    background: #171916;
}

.footer-logo-divider {
    width: 100%;
    position: absolute;
    top: -28px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-divider-left,
.footer-divider-right {
    width: auto;
    height: 1px;
    display: block;
    flex: 1 1 auto;
    background: rgba(255, 255, 255, .65);
}

.footer-logo {
    width: 115px;
    min-width: 115px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    background: #171916;
}

.footer-logo img {
    width: 105px;
    height: auto;
    display: block;
}

.footer-bottom-inner {
    width: min(1180px, 88%);
    min-height: 92px;
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom-inner p {
    margin: 0;
    color: #fff;
    font-size: 12px;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

.footer-legal-links a,
.footer-legal-links span {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.footer-legal-links a:hover {
    color: #ff4b08;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1050px) {
    .footer-testimonial-card {
        width: var(--iner-container);
        gap: 28px;
        padding: 28px 30px;
    }

    .footer-testimonial-slide p,
    .footer-testimonial-content > p {
        max-width: 100%;
        font-size: 18px;
        line-height: 1.65;
    }


    .footer-testimonial-content {
        padding-right: 10px;
    }

    .footer-main-inner {
        width: 90%;
        gap: 35px;
    }

    .footer-left {
        width: 52%;
        flex-basis: 52%;
    }

    .footer-right {
        width: 43%;
        flex-basis: 43%;
    }

    .footer-right {
        padding-top: 65px;
    }

    .footer-typewriter-image {
        max-width: 430px;
    }

    .footer-form-row {
        flex-wrap: wrap;
    }

    .footer-form-row input {
        flex: 1 1 calc(50% - 5px);
    }

    .footer-form-row input:last-child {
        flex-basis: 100%;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {
    .footer-testimonial-area {
        height: auto;
        min-height: auto;
        padding: 35px 0;
        display: flex;
        justify-content: center;
    }

    .footer-testimonial-card {
        width: 90%;
        min-height: auto;
        padding: 25px;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        gap: 20px;
        flex-direction: column;
        align-items: stretch;
        margin-bottom: -32vh;
    }

    .footer-testimonial-title {
        height: auto;
        padding: 0 0 18px;
        border-right: 0;
        border-bottom: 1px solid #dedede;
    }

    .footer-testimonial-title h2 {
        text-align: center;
    }

    .footer-testimonial-content {
        min-height: 175px;
        padding: 38px 0 32px;
        overflow: hidden;
    }

    .footer-testimonial-slider {
        min-height: 100px;
    }

    .footer-testimonial-slide p,
    .footer-testimonial-content > p {
        max-width: 100%;
        font-size: 14px;
        line-height: 1.65;
    }

    .footer-testimonial-dots {
        right: 0;
        bottom: 2px;
    }

    .footer-main-inner {
        width: 90%;
        min-height: auto;
        padding: 48px 0 70px;
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .footer-left,
    .footer-right {
        width: 100%;
        max-width: 100%;
        flex-basis: auto;
    }

    .footer-form-row {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .footer-form-row input,
    .footer-form-row input:last-child {
        width: 100%;
        flex: none;
    }

    .footer-message-row {
        flex-direction: column;
    }

    .footer-message-row textarea {
        width: 100%;
        flex: none;
    }

    .footer-contact-form textarea {
        height: 92px;
    }

    .footer-contact-form button {
        width: 180px;
    }

    .footer-contact-double {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .footer-about p {
        font-size: 14px;
    }

    .footer-right {
        min-height: auto;
        padding-top: 0;
    }

    .footer-typewriter-image {
        max-width: 430px;
    }

    .footer-bottom {
        padding: 45px 0 25px;
    }

    .footer-bottom-inner {
        width: 90%;
        min-height: auto;
        padding-top: 15px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-testimonial-card,
    .footer-main-inner,
    .footer-bottom-inner {
        width: var(--iner-container);
    }

    .footer-testimonial-card {
        padding: 22px;
        border-radius: 16px;
    }


    .footer-testimonial-content {
        min-height: 190px;
        padding-top: 36px;
    }

    .footer-testimonial-slide p,
    .footer-testimonial-content > p {
        font-size: 13px;
    }

    .footer-quote-icon {
        top: -15px;
        font-size: 70px;
    }

    .footer-form-heading {
        font-size: 18px;
    }

    .footer-contact-list a,
    .footer-address {
        font-size: 13px;
    }

    .footer-contact-icon {
        width: 25px;
        min-width: 25px;
        font-size: 21px;
    }

    .footer-typewriter-image {
        max-width: 330px;
    }

    .footer-logo-divider {
        gap: 10px;
    }

    .footer-logo {
        width: 92px;
        min-width: 92px;
    }

    .footer-logo img {
        width: 82px;
    }

    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
