/* =========================================================
   Som Tuna V2 – Footer redesign (frontend only).
   Data is CMS-driven; this file styles the new 4-column layout.
   ========================================================= */

.somtuna-footer {
    --ft-navy: #1b3a6b;
    --ft-cyan: #4bbfe5;
    --ft-text: #7d838d;
    --ft-heading: #1b3a6b;
    --ft-muted: #8593a8;
    --ft-bottom-bg: #f0f7ff;
    position: relative;
    background: #ffffff;
    padding-top: 69px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.somtuna-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4bbfe5 0%, #0890b2 50%, #1b3b6c 100%);
}

.somtuna-footer a {
    text-decoration: none;
    transition: color 0.16s ease;
}

/* Same 1231px content width as the homepage sections above it. */
.somtuna-footer__grid,
.somtuna-footer__bottom-inner {
    max-width: 1232px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Grid ---------- */
.somtuna-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    padding-bottom: 64px;
}

.somtuna-footer__title {
    margin: 0 0 22px;
    color: var(--ft-heading);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ---------- Col 1: brand ---------- */
.somtuna-footer__logo {
    display: block;
    width: fit-content;
    margin-bottom: 20px;
}

.somtuna-footer__logo img {
    display: block;
    height: 48px;
    width: auto;
}

.somtuna-footer__tagline {
    margin: 0;
    max-width: 270px;
    color: var(--ft-text);
    font-size: 14px;
    line-height: 23px;
}

.somtuna-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.somtuna-footer__social li {
    list-style: none;
    margin: 0;
}

.somtuna-footer__social li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ft-navy);
    color: #ffffff;
    font-size: 14px;
}

.somtuna-footer__social li a:hover {
    background: var(--ft-cyan);
    color: #ffffff;
}

/* ---------- Cols 2 & 3: link lists ---------- */
.somtuna-footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.somtuna-footer__links li {
    position: relative;
    margin: 0 0 12px;
    padding-left: 12px;
    line-height: 18px;
}

.somtuna-footer__links li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(75, 191, 229, 0.5);
}

.somtuna-footer__links li a {
    color: var(--ft-text);
    font-size: 14px;
    line-height: 18px;
}

.somtuna-footer__links li a:hover {
    color: var(--ft-navy);
}

/* ---------- Col 4: contact ---------- */
.somtuna-footer__contact {
    margin: 0;
    padding: 0;
    list-style: none;
}

.somtuna-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 0 0 16px;
    color: var(--ft-text);
    font-size: 14px;
    line-height: 20px;
}

.somtuna-footer__contact li svg {
    flex: none;
    margin: 2px 0 0 2px;
    color: var(--ft-cyan);
}

.somtuna-footer__contact li a {
    color: var(--ft-text);
}

.somtuna-footer__contact li a:hover {
    color: var(--ft-navy);
}

/* ---------- Newsletter ---------- */
.somtuna-footer__newsletter {
    margin-top: 23px;
}

.somtuna-footer__subtitle {
    margin: 0 0 10px;
    color: var(--ft-muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.somtuna-footer__news-row {
    display: flex;
    height: 38px;
}

.somtuna-footer__news-row .newsletter-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-right: none;
    border-radius: 0;
    background: #f0f7ff;
    color: var(--ft-navy);
    font-family: inherit;
    font-size: 14px;
}

.somtuna-footer__news-row .newsletter-input::placeholder {
    color: #a3aab5;
    opacity: 1;
}

.somtuna-footer__news-row .newsletter-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--ft-cyan);
}

.somtuna-footer__news-row .newsletter-button {
    flex: none;
    width: 47px;
    height: 38px;
    border: none;
    border-radius: 0;
    background: var(--ft-navy);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.16s ease;
}

.somtuna-footer__news-row .newsletter-button:hover {
    background: var(--ft-cyan);
}

/* Honeypot: keep it in the DOM (bots fill it) but out of sight for humans. */
.somtuna-footer .form-newsletter input[name="url"] {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

#form_newsletter_response {
    margin-top: 10px;
    font-size: 13px;
}

#form_newsletter_response:empty {
    margin-top: 0;
}

/* ---------- Bottom bar ---------- */
.somtuna-footer__bottom {
    background: var(--ft-bottom-bg);
    padding: 21px 0;
}

.somtuna-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.somtuna-footer__copy {
    margin: 0;
    color: #a3acb8;
    font-size: 12px;
    line-height: 16px;
}

.somtuna-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.somtuna-footer__legal li a {
    color: #a3acb8;
    font-size: 12px;
}

.somtuna-footer__legal li a:hover {
    color: var(--ft-navy);
}

/* ---------- Responsive ---------- */
@media only screen and (max-width: 991px) {
    .somtuna-footer {
        padding-top: 56px;
    }

    .somtuna-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px 30px;
        padding-bottom: 44px;
    }

    .somtuna-footer__col--brand {
        grid-column: 1 / -1;
    }
}

@media only screen and (max-width: 600px) {
    .somtuna-footer__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .somtuna-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .somtuna-footer__legal {
        gap: 18px;
    }
}
