/* ============================================
   Footer — Confab 2-row clone (DM renkleri, Confab ruhu)
   Ana renk: primary (yeşil) — tutarlı, sade
   Accent: accent (turuncu) + pink (pembe) — küçük vurgularda
============================================ */

.dm-footer {
    background: var(--dm-dark);
    color: var(--dm-text-light);
    margin-top: auto;
    font-family: var(--dm-font-body);
}

.dm-footer__main {
    padding: clamp(60px, 8vw, 115px) 0 clamp(40px, 5vw, 60px);
}

.dm-footer__container {
    max-width: var(--dm-container-max);
    margin: 0 auto;
    padding-left: var(--dm-container-px);
    padding-right: var(--dm-container-px);
}

/* ── Row 1: Top (logo + social) ──────────── */
.dm-footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding-bottom: clamp(36px, 4vw, 56px);
    margin-bottom: clamp(36px, 4vw, 56px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dm-footer__brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.dm-footer__brand-img {
    max-height: clamp(80px, 9vw, 130px);
    width: auto;
    display: block;
}

/* ── Sosyal ikonlar (Confab .social-icon-custom 55px) ── */
.dm-footer__socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.dm-footer__social-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    border-radius: 500px;
    border: 1px solid var(--dm-white);
    color: var(--dm-white);
    background: transparent;
    transition: all 0.4s ease;
}
.dm-footer__social-link svg { width: 22px; height: 22px; display: block; }
.dm-footer__social-link:hover {
    background: var(--dm-primary);
    border-color: var(--dm-primary);
    color: var(--dm-dark);
}

/* ── Row 2: Middle (nav + subscribe) ──────── */
.dm-footer__middle {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.dm-footer__middle--full {
    grid-template-columns: 1fr;
}

.dm-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(28px, 3vw, 48px);
}

.dm-footer__col { min-width: 0; }

/* ── Heading (Confab tarzı, hepsi tek renkli — tutarlı) ── */
.dm-footer__heading {
    color: var(--dm-primary);
    font-family: var(--dm-font-heading);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.3;
    margin: 0 0 22px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 12px;
}
/* Mini accent bar — 3 renk vurgusu sadece burada */
.dm-footer__heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--dm-primary);
    transition: width 0.4s ease;
}
.dm-footer__col:nth-child(1) .dm-footer__heading::after { background: var(--dm-primary); }
.dm-footer__col:nth-child(2) .dm-footer__heading::after { background: var(--dm-accent); }
.dm-footer__col:nth-child(3) .dm-footer__heading::after { background: var(--dm-pink); }

/* ── Nav links ───────────────────────────── */
.dm-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dm-footer__link {
    color: var(--dm-text-light);
    font-size: 15px;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}
.dm-footer__link:hover {
    color: var(--dm-primary);
    padding-left: 6px;
}

/* ── Contact (Confab .list1-footer — tek renkli, sade) ── */
.dm-footer__contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.dm-footer__contact-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    color: var(--dm-light);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.3s ease;
}
.dm-footer__contact-icon {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 500px;
    border: 1px solid var(--dm-white);
    color: var(--dm-white);
    background: transparent;
    transition: all 0.3s ease;
}
.dm-footer__contact-icon svg { width: 16px; height: 16px; display: block; }
.dm-footer__contact-text { padding-top: 2px; font-size: 14px; color: var(--dm-light); }

.dm-footer__contact-item--address {
    align-items: flex-start;
}

.dm-footer__contact-item--address .dm-footer__contact-text {
    line-height: 1.7;
}

a.dm-footer__contact-item:hover { color: var(--dm-primary); }
a.dm-footer__contact-item:hover .dm-footer__contact-icon {
    background: var(--dm-primary);
    border-color: var(--dm-primary);
    color: var(--dm-dark);
}

/* ── Subscribe (Confab #subscribe — underline input, pill submit) ── */
.dm-footer__subscribe { min-width: 0; }

.dm-footer__sub-title {
    color: var(--dm-white);
    font-family: var(--dm-font-heading);
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.dm-footer__sub-text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--dm-text-light);
    margin: 0 0 22px;
    max-width: 420px;
}

.dm-footer__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 460px;
}

.dm-footer__notice {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px;
    line-height: 1.55;
}

.dm-footer__notice.is-success {
    background: rgba(var(--dm-primary-rgb), 0.12);
    border-color: rgba(var(--dm-primary-rgb), 0.4);
    color: var(--dm-white);
}

.dm-footer__notice.is-info {
    background: rgba(243, 146, 32, 0.12);
    border-color: rgba(243, 146, 32, 0.4);
    color: var(--dm-white);
}

.dm-footer__notice.is-error {
    background: rgba(227, 29, 136, 0.14);
    border-color: rgba(227, 29, 136, 0.4);
    color: var(--dm-white);
}

.dm-footer__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.dm-footer__input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--dm-text-light);
    padding: 12px 2px;
    color: var(--dm-white);
    font-size: 14px;
    outline: none;
    font-family: var(--dm-font-body);
    transition: border-color 0.3s ease;
}
.dm-footer__input::placeholder { color: var(--dm-text-light); }
.dm-footer__input:hover,
.dm-footer__input:focus { border-bottom-color: var(--dm-primary); color: var(--dm-white); }

/* Confab submit: tam pill, primary bg, full width */
.dm-footer__submit {
    background: var(--dm-primary);
    color: var(--dm-dark);
    border: 1px solid var(--dm-primary);
    padding: 18px 28px;
    cursor: pointer;
    font-family: var(--dm-font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    width: 100%;
    display: block;
    transition: all 0.4s ease;
    border-radius: 500px;
}
.dm-footer__submit:hover {
    background: var(--dm-dark);
    color: var(--dm-primary);
    border-color: var(--dm-primary);
}

/* ── Bottom bar (Confab .footer2) ────────── */
.dm-footer__bottom {
    background: var(--dm-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
}

.dm-footer__bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.dm-footer__copyright {
    margin: 0;
    color: var(--dm-text-light);
    font-size: 14px;
    font-weight: 400;
}
.dm-footer__copyright strong {
    color: var(--dm-primary);
    font-weight: 600;
}

.dm-footer__legal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 22px;
    font-size: 14px;
}
.dm-footer__legal li { position: relative; }
.dm-footer__legal li + li::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}
.dm-footer__legal a {
    color: var(--dm-text-light);
    transition: color 0.3s ease;
    text-decoration: none;
}
.dm-footer__legal a:hover { color: var(--dm-primary); }

/* ── ToTop (Confab .button-top) ──────────── */
.dm-footer__totop {
    width: 50px;
    height: 50px;
    border-radius: 500px;
    background: var(--dm-white);
    color: var(--dm-dark);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
}
.dm-footer__totop:hover {
    background: var(--dm-primary);
    color: var(--dm-dark);
    transform: translateY(-4px);
}
.dm-footer__totop svg { width: 20px; height: 20px; display: block; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 1100px) {
    .dm-footer__middle {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .dm-footer__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }
}

@media (max-width: 720px) {
    .dm-footer__nav {
        grid-template-columns: 1fr 1fr;
        gap: 32px 28px;
    }
    .dm-footer__social-link { width: 46px; height: 46px; }
    .dm-footer__social-link svg { width: 18px; height: 18px; }
}

@media (max-width: 560px) {
    .dm-footer__nav { grid-template-columns: 1fr; }
    .dm-footer__bottom-row {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
    .dm-footer__legal { flex-wrap: wrap; justify-content: center; }
    .dm-footer__contact-icon { width: 34px; height: 34px; }
    .dm-footer__contact-icon svg { width: 14px; height: 14px; }
}
