/* ================================
   Oak Tree Antiques Footer
   Reworked elegant footer + mobile-friendly refinement
   Prefix: ota-footer-
================================ */

.ota-footer {
    --ota-footer-green: #0e2a1e;
    --ota-footer-green-2: #123828;
    --ota-footer-green-3: #061b13;
    --ota-footer-gold: #b88645;
    --ota-footer-gold-2: #cfa260;
    --ota-footer-gold-soft: #e2b478;
    --ota-footer-paper: #f1e4c8;
    --ota-footer-paper-2: #f8eed8;
    --ota-footer-mahogany: #4a230b;
    --ota-footer-muted: rgba(248, 238, 216, 0.72);
    --ota-footer-border: rgba(226, 180, 120, 0.26);
    --ota-footer-shadow: 0 -18px 50px rgba(6, 27, 19, 0.22);
    --ota-footer-serif: var(--site-font-heading, "Cinzel", Georgia, "Times New Roman", serif);
    --ota-footer-body: var(--site-font-body, "Cormorant Garamond", Georgia, "Times New Roman", serif);

    position: relative;
    color: var(--ota-footer-paper-2);
    font-family: var(--ota-footer-body);
    background:
        radial-gradient(circle at 16% 0%, rgba(226, 180, 120, 0.12), transparent 28%),
        radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.06), transparent 24%),
        linear-gradient(180deg, var(--ota-footer-green-2) 0%, var(--ota-footer-green-3) 100%);
    border-top: 1px solid rgba(226, 180, 120, 0.68);
    box-shadow: var(--ota-footer-shadow);
    overflow: hidden;
}

.ota-footer *,
.ota-footer *::before,
.ota-footer *::after {
    box-sizing: border-box;
}

.ota-footer__shell {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ota-footer__top {
    padding: clamp(42px, 6vw, 68px) 0 clamp(34px, 5vw, 52px);
    border-bottom: 1px solid rgba(226, 180, 120, 0.22);
}

.ota-footer__grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.3fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) minmax(280px, 1.2fr);
    gap: clamp(26px, 4vw, 54px);
    align-items: start;
}

.ota-footer__brand,
.ota-footer__column,
.ota-footer__newsletter-card {
    position: relative;
    z-index: 1;
}

.ota-footer__brand {
    display: grid;
    gap: 14px;
}

.ota-footer__crest {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(226, 180, 120, 0.40);
    background: rgba(6, 27, 19, 0.30);
    color: var(--ota-footer-gold-soft);
    font-size: 22px;
    line-height: 1;
}

.ota-footer__brand-name {
    max-width: 330px;
    color: var(--ota-footer-paper-2);
    font-family: var(--ota-footer-serif);
    font-size: clamp(24px, 2.8vw, 34px);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.ota-footer__tagline {
    max-width: 340px;
    margin: 0;
    color: var(--ota-footer-muted);
    font-size: 16px;
    line-height: 1.72;
}

.ota-footer__heading {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 12px;
    color: var(--ota-footer-gold-soft);
    font-family: var(--ota-footer-serif);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.ota-footer__heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 1px;
    background: rgba(226, 180, 120, 0.52);
}

.ota-footer__links {
    display: grid;
    gap: 10px;
}

.ota-footer__links a {
    width: fit-content;
    color: rgba(248, 238, 216, 0.74);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.45;
    transition: color 0.22s ease, transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.ota-footer__links a:hover {
    color: var(--ota-footer-gold-soft);
    transform: translateX(4px);
}

.ota-footer__newsletter-card {
    padding: 22px;
    border: 1px solid rgba(226, 180, 120, 0.22);
    background: rgba(6, 27, 19, 0.26);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.10);
}

.ota-footer__newsletter-card::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(226, 180, 120, 0.12);
    pointer-events: none;
}

.ota-footer__newsletter-text {
    position: relative;
    z-index: 1;
    margin: 0 0 16px;
    color: var(--ota-footer-muted);
    font-size: 15px;
    line-height: 1.65;
}

.ota-footer__newsletter {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    width: 100%;
    border: 1px solid rgba(226, 180, 120, 0.36);
    background: rgba(248, 238, 216, 0.08);
}

.ota-footer__newsletter input {
    min-width: 0;
    min-height: 44px;
    border: 0;
    background: transparent;
    padding: 0 14px;
    color: var(--ota-footer-paper-2);
    font-family: var(--ota-footer-body);
    font-size: 15px;
    outline: none;
}

.ota-footer__newsletter input::placeholder {
    color: rgba(248, 238, 216, 0.50);
}

.ota-footer__newsletter button {
    min-height: 44px;
    border: 0;
    border-left: 1px solid rgba(226, 180, 120, 0.30);
    background: var(--ota-footer-gold);
    color: var(--ota-footer-green-3);
    padding: 0 18px;
    font-family: var(--ota-footer-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease;
}

.ota-footer__newsletter button:hover {
    background: var(--ota-footer-gold-soft);
    color: var(--ota-footer-green-3);
}

.ota-footer__socials {
    position: relative;
    z-index: 1;
    display: none;
    gap: 9px;
    margin-top: 16px;
}

.ota-footer__socials a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(226, 180, 120, 0.34);
    background: rgba(248, 238, 216, 0.08);
    color: var(--ota-footer-gold-soft);
    text-decoration: none;
    font-family: var(--ota-footer-serif);
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.ota-footer__socials a:hover {
    background: var(--ota-footer-gold);
    color: var(--ota-footer-green-3);
    transform: translateY(-2px);
}

.ota-footer__bottom {
    position: relative;
    z-index: 1;
    background: rgba(6, 27, 19, 0.78);
}

.ota-footer__bottom-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: rgba(248, 238, 216, 0.68);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.ota-footer__bottom p {
    margin: 0;
}

.ota-footer__legal {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.ota-footer__legal a {
    color: rgba(226, 180, 120, 0.86);
    text-decoration: none;
    transition: color 0.22s ease;
}

.ota-footer__legal a:hover {
    color: var(--ota-footer-paper-2);
}

.ota-footer__ornament {
    color: var(--ota-footer-gold-soft);
}

@media (max-width: 980px) {
    .ota-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .ota-footer__brand {
        grid-column: 1 / -1;
        max-width: 620px;
    }

    .ota-footer__newsletter-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .ota-footer {
        text-align: center;
    }

    .ota-footer::after {
        inset: 9px;
    }

    .ota-footer__shell {
        width: min(100% - 26px, 1240px);
    }

    .ota-footer__top {
        padding: 34px 0 28px;
    }

    .ota-footer__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ota-footer__brand {
        justify-items: center;
        padding: 4px 8px 16px;
        border-bottom: 1px solid rgba(226, 180, 120, 0.18);
    }

    .ota-footer__brand-name {
        max-width: 100%;
        font-size: clamp(22px, 7vw, 30px);
        letter-spacing: 0.10em;
    }

    .ota-footer__tagline {
        max-width: 34rem;
        font-size: 15px;
        line-height: 1.62;
    }

    .ota-footer__column {
        padding: 18px;
        border: 1px solid rgba(226, 180, 120, 0.18);
        background: rgba(6, 27, 19, 0.18);
    }

    .ota-footer__heading {
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .ota-footer__heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

    .ota-footer__links a {
        width: 100%;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 9px 10px;
        border: 1px solid rgba(226, 180, 120, 0.18);
        background: rgba(248, 238, 216, 0.06);
        color: rgba(248, 238, 216, 0.82);
        font-size: 14px;
        line-height: 1.25;
    }

    .ota-footer__links a:hover {
        transform: none;
        border-color: rgba(226, 180, 120, 0.42);
        background: rgba(226, 180, 120, 0.10);
    }

    .ota-footer__newsletter-card {
        grid-column: auto;
        padding: 20px 18px;
        text-align: center;
    }

    .ota-footer__newsletter-card .ota-footer__heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .ota-footer__newsletter-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .ota-footer__newsletter {
        grid-template-columns: 1fr;
    }

    .ota-footer__newsletter input {
        min-height: 48px;
        text-align: center;
        font-size: 16px;
    }

    .ota-footer__newsletter button {
        min-height: 48px;
        border-left: 0;
        border-top: 1px solid rgba(226, 180, 120, 0.30);
        width: 100%;
    }

    .ota-footer__bottom-inner {
        min-height: auto;
        flex-direction: column;
        justify-content: center;
        padding: 18px 0;
        text-align: center;
        gap: 14px;
    }

    .ota-footer__legal {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .ota-footer__legal a {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 12px;
        border: 1px solid rgba(226, 180, 120, 0.18);
        background: rgba(248, 238, 216, 0.05);
    }
}

@media (max-width: 420px) {
    .ota-footer__shell {
        width: min(100% - 22px, 1240px);
    }

    .ota-footer__column,
    .ota-footer__newsletter-card {
        padding: 16px 14px;
    }

    .ota-footer__links {
        grid-template-columns: 1fr;
    }

    .ota-footer__brand-name {
        font-size: 22px;
    }

    .ota-footer__legal {
        display: grid;
        grid-template-columns: 1fr;
    }
}
