/* =====================================================================
   EVNAME — YENİ FOOTER + E-BÜLTEN BANDI
   Tema Ayarları → Footer (Yeni Tasarım). Yalnızca "Yeni tasarım" seçiliyken
   yüklenir (config.php). Şablonlar: partials/footer/modern.blade.php,
   widgets/newsletter/templates/frontend.blade.php (.evn).
   Koyu = A · Kurumsal Koyu, Açık = B · Açık ve Ferah. Neon/blur/fare takibi yok.
   ===================================================================== */

.evf, .evn {
    --evf-red: #d71b0c;
    --evf-red-dark: #b51509;
}

.evf--dark {
    --evf-bg: #0f1720;
    --evf-bg2: #141f2b;
    --evf-text: #b9c2cd;
    --evf-muted: #8f9aa8;
    --evf-head: #ffffff;
    --evf-line: rgba(255, 255, 255, .08);
    --evf-chip: rgba(255, 255, 255, .16);
    --evf-hover: #ffffff;
    --evf-accent-text: #ff7a6e;
    --evf-card: #172331;
    --evf-btn2-line: rgba(255, 255, 255, .22);
    --evf-btn2-bg: transparent;
    --evf-btn2-text: #ffffff;
    --evf-usp-icon-bg: rgba(255, 122, 110, .14);
    --evf-usp-icon: #ff7a6e;
}

.evf--light {
    --evf-bg: #f6f7f9;
    --evf-bg2: #ffffff;
    --evf-text: #3d444d;
    --evf-muted: #5b6470;
    --evf-head: #1f2328;
    --evf-line: #e7e9ee;
    --evf-chip: #e1e4ea;
    --evf-hover: #b51509;
    --evf-accent-text: #b51509;
    --evf-card: #ffffff;
    --evf-btn2-line: #e1e4ea;
    --evf-btn2-bg: #ffffff;
    --evf-btn2-text: #1f2328;
    --evf-usp-icon-bg: #fdeceb;
    --evf-usp-icon: #d71b0c;
}

/* ---------- Footer ---------- */
.evf {
    background: var(--evf-bg);
    color: var(--evf-text);
    font-size: 15px;
    line-height: 1.6;
}
.evf--dark { border-top: 3px solid #0b1118; }
.evf a { color: var(--evf-text); text-decoration: none; transition: color .2s; }
.evf a:hover, .evf a:focus-visible { color: var(--evf-hover); }
.evf a:focus-visible, .evf button:focus-visible { outline: 2px solid var(--evf-accent-text); outline-offset: 3px; border-radius: 4px; }

/* Hizmet şeridi */
.evf-usp { background: var(--evf-bg2); border-bottom: 1px solid var(--evf-line); }
.evf-usp__grid { list-style: none; margin: 0; padding: 24px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.evf-usp__item { display: flex; align-items: center; gap: 14px; min-width: 0; }
.evf-usp__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--evf-usp-icon-bg); color: var(--evf-usp-icon); display: flex; align-items: center; justify-content: center; flex: none; }
.evf-usp__title { display: block; color: var(--evf-head); font-weight: 600; font-size: 16px; line-height: 1.3; }
.evf-usp__sub { display: block; color: var(--evf-muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }

/* Ana ızgara: marka | 1. menü | 2. menü | şubeler | iletişim */
.evf-main { display: grid; grid-template-columns: 1.45fr 1fr 1.15fr 1fr 1.25fr; gap: 44px; padding: 56px 0 44px; }
.evf-brand { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.evf-logo img { width: 172px; max-width: 100%; height: auto; }
.evf-brand p { margin: 0; color: var(--evf-muted); font-size: 14.5px; line-height: 1.7; }
.evf-social { display: flex; flex-wrap: wrap; gap: 10px; }
.evf .evf-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--evf-chip); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; }
.evf--light .evf-social a { background: #ffffff; }
.evf-social svg { width: 18px; height: 18px; }

.evf .evf-title { margin: 0 0 14px; color: var(--evf-head); font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.evf-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: default; }
.evf-chev { display: none; transition: transform .2s; }
.evf-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.evf-links li { margin: 0; }
.evf .evf-more { color: var(--evf-accent-text); font-weight: 600; }

.evf-contact { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.evf .evf-contact .evf-title { margin-bottom: 0; }
.evf .evf-phone { display: flex; flex-direction: column; gap: 2px; }
.evf-phone small { font-size: 13px; color: var(--evf-muted); }
.evf-phone strong { color: var(--evf-head); font-size: 22px; font-weight: 600; letter-spacing: .01em; line-height: 1.3; }
.evf .evf-mail { display: inline-flex; align-items: center; gap: 8px; }
.evf-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.evf .evf-btn { min-height: 46px; padding: 0 16px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; line-height: 1.2; text-align: center; transition: background-color .2s, border-color .2s, color .2s, transform .2s; }
.evf .evf-btn:hover { transform: translateY(-1px); }
.evf .evf-btn--cta { background: var(--evf-red); color: #ffffff; }
.evf .evf-btn--cta:hover, .evf .evf-btn--cta:focus-visible { background: var(--evf-red-dark); color: #ffffff; }
.evf .evf-btn--line { background: var(--evf-btn2-bg); border: 1px solid var(--evf-btn2-line); color: var(--evf-btn2-text); }
.evf .evf-btn--line:hover { border-color: var(--evf-btn2-text); color: var(--evf-btn2-text); }

/* "Limitini Öğren": dışa yayılan halka */
.evf-pulse { animation: evfPulse 2s ease-out infinite; }
@keyframes evfPulse {
    0% { box-shadow: 0 0 0 0 rgba(215, 27, 12, .6); }
    70% { box-shadow: 0 0 0 14px rgba(215, 27, 12, 0); }
    100% { box-shadow: 0 0 0 0 rgba(215, 27, 12, 0); }
}

/* Alt çubuk */
.evf-bottom { border-top: 1px solid var(--evf-line); }
.evf--light .evf-bottom { background: #ffffff; }
.evf-bottom__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.evf-bottom__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.evf-copy { color: var(--evf-muted); font-size: 14px; }
.evf-copy b, .evf-copy strong { color: var(--evf-head); font-weight: 600; }
.evf-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; }
.evf-pay img { width: 234px; max-width: 100%; height: auto; display: block; }
.evf--light .evf-pay img { filter: brightness(0) opacity(.55); }

/* Tablet: marka üstte tam satır, altında dört (dar tablette iki) sütun */
@media (max-width: 1199px) {
    .evf-main { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 32px; }
    .evf-brand { grid-column: 1 / -1; }
    .evf-usp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
}
@media (max-width: 991px) {
    .evf-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* Telefonun alt gezinme çubuğu (.tp-mobile-menu, ~63 px) son satırı örtmesin */
    .evf-bottom { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* Telefon: masaüstüyle aynı sıra, bağlantı sütunları açılır bölüm */
@media (max-width: 767px) {
    .evf-usp__grid { gap: 14px 12px; padding: 18px 0; }
    .evf-usp__item { gap: 10px; }
    .evf-usp__icon { width: 38px; height: 38px; border-radius: 10px; }
    .evf-usp__icon svg { width: 18px; height: 18px; }
    .evf-usp__title { font-size: 13.5px; }
    .evf-usp__sub { display: none; }

    .evf-main { display: flex; flex-direction: column; gap: 0; padding: 28px 0 0; }
    .evf-brand { padding-bottom: 22px; }
    .evf-logo img { width: 150px; }
    .evf .evf-social a { width: 44px; height: 44px; }

    .evf-group { border-top: 1px solid var(--evf-line); }
    .evf .evf-group .evf-title { margin: 0; }
    .evf-toggle { min-height: 56px; cursor: pointer; font-size: 16px; }
    .evf-chev { display: inline-flex; }
    .evf-group.is-open .evf-chev { transform: rotate(180deg); }
    .evf-js .evf-group:not(.is-open) .evf-group__body { display: none; }
    .evf-group__body { padding-bottom: 18px; }

    .evf-contact { border-top: 1px solid var(--evf-line); padding: 24px 0; gap: 12px; }
    .evf .evf-phone { padding: 14px 16px; border-radius: 12px; background: var(--evf-card); border: 1px solid var(--evf-line); }
    .evf-phone strong { font-size: 19px; }
    .evf-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .evf .evf-btn { min-height: 48px; padding: 0 10px; }

    .evf-bottom__in { flex-direction: column; text-align: center; gap: 14px; padding: 22px 0 26px; }
    .evf-bottom__text { align-items: center; }
    .evf-legal { justify-content: center; margin-top: 4px; }
}

/* ---------- E-bülten bandı ---------- */
.evn { position: relative; overflow: hidden; background: var(--evf-red); color: #ffffff; padding: 56px 0; isolation: isolate; }
.evn__decor { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.evn__blob { position: absolute; border-radius: 50%; }
.evn__blob--1 { left: -120px; top: -170px; width: 420px; height: 420px; background: rgba(255, 255, 255, .06); }
.evn__blob--2 { right: -90px; bottom: -240px; width: 540px; height: 540px; background: rgba(0, 0, 0, .08); }
.evn__mark { display: none; }
.evn__fly { position: absolute; left: 52%; top: 0; width: 520px; height: 70px; }
.evn__trail { position: absolute; left: 0; top: 0; overflow: visible; }
.evn__trail--m { display: none; }
.evn__trail path { stroke-dasharray: 2 9; animation: evnTrail 5s linear infinite; }
.evn__plane { position: absolute; left: 0; top: 0; width: 24px; height: 24px; color: #ffffff; offset-path: path('M0 62 C 110 8, 230 70, 340 28 S 470 4, 520 8'); offset-rotate: auto 45deg; animation: evnFly 7s ease-in-out infinite; }
.evn__plane svg { display: block; }

.evn__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 48px; }
.evn__lead { display: flex; align-items: center; gap: 22px; min-width: 0; }
.evn__icon { position: relative; width: 68px; height: 68px; flex: none; }
.evn__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); animation: evnRing 2.4s ease-out infinite; }
.evn__ring--2 { animation-delay: 1.2s; }
.evn__disc { position: absolute; inset: 0; border-radius: 50%; background: #ffffff; color: var(--evf-red); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.evn__text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.evn__eyebrow { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #ffffff; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; }
.evn .evn__title { margin: 0; color: #ffffff; font-size: 34px; font-weight: 800; line-height: 1.1; text-wrap: balance; }
.evn__note { margin: 0; color: rgba(255, 255, 255, .88); font-size: 16px; }

/* Botble bülten formu (aynı form, yeni kılık) */
.evn .subscribe-form { margin: 0; }
.evn .tp-subscribe-input { position: relative; display: flex; gap: 6px; padding: 6px; background: #ffffff; border-radius: 14px; box-shadow: 0 16px 40px rgba(80, 8, 2, .28); }
.evn .tp-subscribe-input input { flex: 1; min-width: 0; width: auto; height: 54px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; box-shadow: none; color: #1f2328; font-size: 15.5px; }
.evn .tp-subscribe-input input:focus { outline: none; box-shadow: none; }
.evn .tp-subscribe-input:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 16px 40px rgba(80, 8, 2, .28); }
.evn .tp-subscribe-input button { position: static; top: auto; right: auto; flex: none; height: 54px; padding: 0 26px; border: 0; border-radius: 10px !important; background: #0f1720; color: #ffffff; font-size: 15px; font-weight: 600; box-shadow: none; transition: background-color .2s; }
.evn .tp-subscribe-input button:hover { background: #000000; }
.evn .newsletter-message { margin-top: 10px; color: #ffffff; font-weight: 500; }

@keyframes evnTrail { to { stroke-dashoffset: -110; } }
@keyframes evnFly {
    0% { offset-distance: 0%; opacity: 0; }
    10% { opacity: 1; }
    85% { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}
@keyframes evnRing {
    0% { transform: scale(1); opacity: .6; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Büyük indirim oranı ("%20"): yalnızca sığdığı genişlikte, formun sağında kendi
   sütununda — bant kenarında kesilmez, form kutusu örtmez. Oran widget alt başlığından. */
@media (min-width: 1200px) {
    .evn__in--mark { grid-template-columns: auto minmax(360px, 1fr) auto; gap: 40px; }
    .evn__mark { display: block; font-size: 112px; font-weight: 800; line-height: .8; letter-spacing: -.02em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .34); user-select: none; }
}

@media (max-width: 991px) {
    .evn__in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .evn__fly { left: auto; right: 0; }
}

@media (max-width: 767px) {
    .evn { padding: 40px 0 26px; }
    .evn__blob--1 { left: -110px; top: -140px; width: 270px; height: 270px; }
    .evn__blob--2 { right: -90px; bottom: -170px; width: 320px; height: 320px; }
    .evn__fly { left: 84px; right: auto; top: 6px; width: 300px; height: 30px; }
    .evn__trail--d { display: none; }
    .evn__trail--m { display: block; }
    .evn__plane { width: 18px; height: 18px; offset-path: path('M0 24 C 60 4, 120 30, 180 14 S 260 2, 300 8'); }
    .evn__in { gap: 18px; }
    .evn__lead { align-items: flex-start; gap: 14px; }
    .evn__icon { width: 48px; height: 48px; margin-top: 2px; }
    .evn__disc svg { width: 21px; height: 21px; }
    .evn__eyebrow { font-size: 11.5px; padding: 3px 9px; }
    .evn .evn__title { font-size: 23px; line-height: 1.2; }
    .evn__note { font-size: 14.5px; }
    .evn .tp-subscribe-input { padding: 5px; border-radius: 12px; }
    .evn .tp-subscribe-input input { height: 48px; padding: 0 12px; font-size: 15px; }
    .evn .tp-subscribe-input button { height: 48px; padding: 0 18px; border-radius: 9px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .evf-pulse, .evn__trail path, .evn__plane, .evn__ring { animation: none; }
    .evn__plane { offset-distance: 62%; }
}
