/* ==========================================================================
   Magna footer (mgf) — yeni header ile aynı dil: üst barla aynı #252525 zemin,
   1280px hizalama, Poppins, ince çizgiler, mor gradyan.
   İşaretleme: resources/views/blocks/footer.blade.php · içerik: panel → Alt Bant (Footer)
   Eski tema dosyalarının (style.min / responsive / custom) .f1 .f2 .max-container
   kuralları bu işaretlemede kullanılmaz; kalan eleman kuralları aşağıda ezilir.
   ========================================================================== */
#footer.mgf {
    --mgf-line: rgba(255, 255, 255, .09);
    --mgf-soft: rgba(255, 255, 255, .045);
    --mgf-text: rgba(255, 255, 255, .78);
    --mgf-mute: rgba(255, 255, 255, .56);
    --mgf-p: #6e4a86;
    --mgf-p2: #6e4a86;
    --mgf-p-light: #c9a3d2;
    --mgf-grad: linear-gradient(135deg, #6e4a86 0%, #6e4a86 100%);
    --mgf-ease: cubic-bezier(.2, .8, .2, 1);
    --mgf-font: Poppins, "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    overflow: hidden; background: #252525; color: var(--mgf-text);
    font-family: var(--mgf-font); font-size: 14px; line-height: 1.6; text-align: left;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

/* Sıfırlamalar: :where() ile öncelik yalnızca eleman düzeyinde; bileşen sınıfları bunları ezmeden çalışır */
:where(#footer.mgf) *, :where(#footer.mgf) *::before, :where(#footer.mgf) *::after { box-sizing: border-box; }
:where(#footer.mgf) ul, :where(#footer.mgf) li { list-style: none; margin: 0; padding: 0; }
:where(#footer.mgf) h3, :where(#footer.mgf) address { margin: 0; }
:where(#footer.mgf) a, :where(#footer.mgf) a:hover, :where(#footer.mgf) a:focus { text-decoration: none; }
:where(#footer.mgf) svg { display: block; flex: none; }
#footer.mgf :focus-visible { outline: 2px solid var(--mgf-p-light); outline-offset: 3px; }

#footer.mgf .mgf-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ─── Ana ızgara: marka + iletişim | site haritası | form ─── */
#footer.mgf .mgf-main {
    display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr) minmax(0, 420px);
    gap: 40px 56px; align-items: start; padding-top: 64px; padding-bottom: 52px;
}
/* Site haritası boşsa (ör. İngilizce footer) ortada boşluk kalmasın */
#footer.mgf.mgf--solo .mgf-main { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); column-gap: 96px; }

/* Marka sütunu */
#footer.mgf .mgf-logo { display: inline-block; margin: 0 0 28px; }
#footer.mgf .mgf-logo img { display: block; width: 170px; height: auto; margin: 0; }
#footer.mgf .mgf-offices { display: grid; gap: 18px; }
#footer.mgf .mgf-row { display: flex; align-items: flex-start; gap: 14px; }
#footer.mgf .mgf-ico {
    width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px;
    border: 1px solid var(--mgf-line); background: var(--mgf-soft); color: var(--mgf-p-light);
    transition: background .25s, color .25s, border-color .25s;
}
#footer.mgf .mgf-ico svg { width: 18px; height: 18px; }
#footer.mgf .mgf-txt { display: block; min-width: 0; }
#footer.mgf .mgf-label { display: block; margin: 0 0 2px; font-size: 12px; font-weight: 600; line-height: 1.5; color: #fff; }
#footer.mgf .mgf-address { display: block; font-size: 14px; font-style: normal; line-height: 1.65; color: var(--mgf-text); }

#footer.mgf .mgf-reach { display: grid; gap: 12px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--mgf-line); }
#footer.mgf .mgf-reach .mgf-row { align-items: center; color: #fff; }
#footer.mgf .mgf-reach .mgf-label { margin: 0; font-weight: 500; color: #fff; }
#footer.mgf .mgf-value { display: block; font-size: 15px; font-weight: 600; line-height: 1.45; color: #fff; overflow-wrap: anywhere; transition: color .2s; }
#footer.mgf .mgf-reach a:hover .mgf-ico { background: var(--mgf-grad); border-color: transparent; color: #fff; }
#footer.mgf .mgf-reach a:hover .mgf-value { color: var(--mgf-p-light); }

#footer.mgf .mgf-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
#footer.mgf .mgf-soc {
    width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
    border: 1px solid var(--mgf-line); color: #fff; transition: transform .25s var(--mgf-ease), background .25s, border-color .25s;
}
#footer.mgf .mgf-soc:hover { background: var(--mgf-grad); border-color: transparent; color: #fff; transform: translateY(-2px); }
#footer.mgf .mgf-soc svg { width: 17px; height: 17px; }

/* İki ofis / iki iletişim yan yana: yalnızca site haritası olmayan geniş düzende */
@media (min-width: 1100px) {
    #footer.mgf.mgf--solo .mgf-offices, #footer.mgf.mgf--solo .mgf-reach { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}

/* Site haritası */
#footer.mgf .mgf-title {
    margin: 10px 0 22px; font-family: var(--mgf-font); font-size: 17px; font-weight: 600; line-height: 1.3;
    letter-spacing: 0; text-transform: none; color: #fff;
}
#footer.mgf .mgf-links { columns: 2; column-gap: 28px; }
#footer.mgf .mgf-links li { break-inside: avoid; }
#footer.mgf .mgf-links a {
    display: inline-block; padding: 7px 0; font-size: 14.5px; line-height: 1.45; color: var(--mgf-text);
    transition: color .2s, transform .25s var(--mgf-ease);
}
#footer.mgf .mgf-links a:hover { color: #fff; transform: translateX(3px); }

/* ─── Form kartı ──────────────────────────────────────────── */
#footer.mgf .mgf-card { padding: 28px; border-radius: 22px; background: #fff; color: #2a2633; }
#footer.mgf .mgf-form { margin: 0; padding: 0; background: none; border-radius: 0; overflow: visible; }
#footer.mgf .mgf-card-title {
    margin: 0 0 18px; font-family: var(--mgf-font); font-size: 20px; font-weight: 700; line-height: 1.3;
    letter-spacing: -.01em; text-transform: none; color: #2a2633;
}
#footer.mgf .mgf-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#footer.mgf .mgf-input--name, #footer.mgf .mgf-input--message { grid-column: 1 / -1; }
#footer.mgf .mgf-input {
    float: none; display: block; width: 100%; height: 46px; margin: 0; padding: 0 14px;
    border: 1px solid #e6e0ea; border-radius: 12px; outline: 0; background: #faf9fb; box-shadow: none;
    font: 400 14px/1.4 var(--mgf-font); color: #2a2633; -webkit-appearance: none; appearance: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
#footer.mgf textarea.mgf-input { height: 88px; min-height: 64px; padding: 12px 14px; resize: vertical; }
#footer.mgf .mgf-input::placeholder { color: #7f7787; opacity: 1; }
#footer.mgf .mgf-input:hover { border-color: #d8cde0; }
#footer.mgf .mgf-input:focus, #footer.mgf .mgf-input:focus-visible { outline: 0; border-color: var(--mgf-p); background: #fff; box-shadow: 0 0 0 3px rgba(110, 74, 134, .18); }

#footer.mgf .mgf-consent { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 16px; }
#footer.mgf .mgf-consent input { position: static; flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--mgf-p2); cursor: pointer; }
#footer.mgf .mgf-consent label { margin: 0; font-size: 12.5px; font-weight: 400; line-height: 1.55; color: #5b5464; cursor: pointer; }
#footer.mgf .mgf-consent a { color: var(--mgf-p2); font-weight: 500; }
#footer.mgf .mgf-consent a:hover { text-decoration: underline; }

#footer.mgf .mgf-submit { position: relative; }
#footer.mgf .mgf-submit input {
    float: none; display: block; width: 100%; height: 50px; margin: 0; padding: 0 52px; border: 0; border-radius: 999px;
    background: var(--mgf-grad); color: #fff; font: 600 15px/1 var(--mgf-font); letter-spacing: .01em; text-transform: none;
    cursor: pointer; -webkit-appearance: none; appearance: none; transition: filter .2s, transform .2s var(--mgf-ease);
}
#footer.mgf .mgf-submit input:hover { filter: brightness(1.08); background: var(--mgf-grad); color: #fff; }
#footer.mgf .mgf-submit input:active { transform: translateY(1px); }
#footer.mgf .mgf-submit-ico {
    position: absolute; top: 7px; right: 7px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
    background: rgba(255, 255, 255, .18); color: #fff; pointer-events: none; transition: transform .3s var(--mgf-ease);
}
#footer.mgf .mgf-submit-ico svg { width: 15px; height: 15px; }
#footer.mgf .mgf-submit:hover .mgf-submit-ico { transform: rotate(-45deg); }

/* ─── İş ortağı rozetleri + telif ─────────────────────────── */
#footer.mgf .mgf-partners { border-top: 1px solid var(--mgf-line); padding: 22px 0; }
#footer.mgf .mgf-plist { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
#footer.mgf .mgf-plogo { display: flex; align-items: center; justify-content: center; width: 136px; height: 52px; padding: 6px 14px; border-radius: 10px; background: #fff; }
#footer.mgf .mgf-plogo a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 6px; }
#footer.mgf .mgf-plogo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 20px; margin: 0; }
#footer.mgf .mgf-plogo--google img { max-height: 40px; }

#footer.mgf .mgf-bottom { border-top: 1px solid var(--mgf-line); padding: 20px 0 22px; text-align: center; }
#footer.mgf .mgf-copy { margin: 0; overflow: visible; font-size: 12.5px; line-height: 1.6; letter-spacing: .04em; color: var(--mgf-mute); }
#footer.mgf .mgf-copy a { color: #fff; font-weight: 600; }
#footer.mgf .mgf-copy a:hover { color: var(--mgf-p-light); }

/* ─── Yukarı çık (functions.min.js kaydırınca .active ekler) ─── */
#back-top.mgf-top {
    position: fixed; left: 20px; bottom: 20px; z-index: 9; width: 46px; height: 46px; margin: 0; padding: 0;
    display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%;
    background: linear-gradient(135deg, #6e4a86 0%, #6e4a86 100%); color: #fff; line-height: 1; cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .3s, transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s, filter .2s;
}
#back-top.mgf-top.active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
#back-top.mgf-top.active:hover { filter: brightness(1.1); }
#back-top.mgf-top:focus-visible { outline: 2px solid #c9a3d2; outline-offset: 3px; }
#back-top.mgf-top svg { width: 20px; height: 20px; }

/* ─── Tablet: iki sütun, form altta tam genişlik ──────────── */
@media (max-width: 1099px) {
    #footer.mgf .mgf-main, #footer.mgf.mgf--solo .mgf-main { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
    #footer.mgf.mgf--solo .mgf-brand { grid-column: 1 / -1; }
    #footer.mgf .mgf-card { grid-column: 1 / -1; }
    #footer.mgf .mgf-form { display: grid; grid-template-columns: minmax(0, 1fr) 240px; column-gap: 24px; align-items: center; }
    #footer.mgf .mgf-card-title, #footer.mgf .mgf-fields { grid-column: 1 / -1; }
    #footer.mgf .mgf-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #footer.mgf .mgf-input--name { grid-column: auto; }
    #footer.mgf .mgf-consent { margin: 14px 0 0; }
    #footer.mgf .mgf-submit { margin-top: 14px; }
}

/* ─── Mobil: tek sütun ────────────────────────────────────── */
@media (max-width: 767px) {
    #footer.mgf .mgf-main, #footer.mgf.mgf--solo .mgf-main { grid-template-columns: minmax(0, 1fr); row-gap: 22px; padding-top: 30px; padding-bottom: 24px; }
    #footer.mgf .mgf-wrap { padding-left: 20px; padding-right: 20px; }
    #footer.mgf .mgf-logo { margin-bottom: 18px; }
    #footer.mgf .mgf-logo img { width: 140px; }
    #footer.mgf .mgf-offices { gap: 12px; }
    #footer.mgf .mgf-row { gap: 12px; }
    #footer.mgf .mgf-ico { width: 36px; height: 36px; border-radius: 11px; }
    #footer.mgf .mgf-ico svg { width: 16px; height: 16px; }
    #footer.mgf .mgf-address { font-size: 13px; line-height: 1.55; }
    #footer.mgf .mgf-reach { gap: 8px; margin-top: 14px; padding-top: 14px; }
    #footer.mgf .mgf-value { font-size: 14.5px; }
    #footer.mgf .mgf-social { margin-top: 16px; }
    #footer.mgf .mgf-sitemap { border-top: 1px solid var(--mgf-line); padding-top: 18px; }
    #footer.mgf .mgf-title { margin: 0 0 4px; font-size: 16px; }
    #footer.mgf .mgf-links { column-gap: 20px; }
    #footer.mgf .mgf-links a { padding: 7px 0; font-size: 13.5px; }
    #footer.mgf .mgf-card { padding: 18px 16px; border-radius: 18px; }
    #footer.mgf .mgf-card-title { margin-bottom: 12px; font-size: 17px; }
    #footer.mgf .mgf-form { display: block; }
    #footer.mgf .mgf-fields { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    #footer.mgf .mgf-input { height: 44px; font-size: 16px; } /* 16px: iOS odaklanınca sayfayı yakınlaştırmasın */
    #footer.mgf textarea.mgf-input { height: 72px; }
    #footer.mgf .mgf-consent { margin: 12px 0 14px; }
    #footer.mgf .mgf-submit { margin-top: 0; }
    #footer.mgf .mgf-submit input { height: 48px; }
    #footer.mgf .mgf-submit-ico { top: 6px; right: 6px; }
    #footer.mgf .mgf-partners { padding: 18px 0; }
    #footer.mgf .mgf-plist { gap: 8px; }
    #footer.mgf .mgf-plogo { width: calc((100% - 16px) / 3); height: 46px; padding: 6px 8px; }
    #footer.mgf .mgf-plogo--google img { max-height: 34px; }
    /* Sabit "yukarı çık" butonu telif satırının üstüne binmesin */
    #footer.mgf .mgf-bottom { padding-top: 14px; padding-bottom: 66px; }
    /* Alttaki sabit "Hemen ara" çubuğunun (#callnowbutton, 42px) üstünde kalsın */
    #back-top.mgf-top { left: 14px; bottom: 52px; z-index: 9998; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    #footer.mgf *, #back-top.mgf-top { transition: none !important; }
}
