/* ==================================================
   FOOTER — RENKLER VE ORTAK YAZI AYARLARI
   ================================================== */

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

.yc-footer {
    --footer-heading: #476e70;
    --footer-text: #444;
    --footer-surface: #e5f0f0;

    /* Büyük masaüstünde 18px, dar masaüstünde en az 14px.
       Menü, açıklama ve iletişim aynı ölçeği kullanır. */
    --footer-font-size: clamp(14px, 0.9375vw, 18px);
    --footer-letter-spacing: -0.02em;

    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--footer-text);
    font-family: "Poppins", sans-serif;
    font-size: var(--footer-font-size);
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: var(--footer-letter-spacing);
}

/* ==================================================
   ARKA PLAN VE İÇERİK GENİŞLİĞİ
   Yalnızca dekoratif görsel absolute konumlandırılır.
   ================================================== */

.yc-footer__main {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(56px, 6vw, 115px)
                   clamp(48px, 5vw, 96px);
}

.yc-footer__background {
    position: absolute;
    z-index: -1;
    inset: 0 auto auto 0;
    display: block;
    width: 100%;
    height: 125%;
    max-width: none;
    margin: 0;
    object-fit: fill;
    pointer-events: none;
}

/* Tasarımdaki soldan geniş, sağdan daha dar boşluk.
   Üst sıra, menüler ve ajans şeridi aynı hizayı kullanır. */
.yc-footer__container,
.yc-footer__credit-inner {
    width: 78%;
    max-width: 1500px;
    margin-left: 16%;
    margin-right: 6%;
}

.yc-footer__container {
    display: block;
}

/* ==================================================
   ÜST SIRA — LOGO / AÇIKLAMA / SOSYAL MEDYA
   ================================================== */

.yc-footer__top {
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, 1.2fr)
        minmax(156px, 0.65fr);
    align-items: center;
    gap: clamp(24px, 3vw, 58px);
    margin: 0 0 clamp(32px, 3vw, 58px);
    padding: 0;
    border: 0;
}

.yc-footer__top > *,
.yc-footer__grid > * {
    min-width: 0;
}

.yc-footer .yc-footer__logo {
    display: block;
    width: 100%;
    max-width: 460px;
    margin: 0;
    padding: 0;
    color: var(--footer-heading);
    text-decoration: none;
}

.yc-footer__logo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
}

/* Paragrafların tema genelindeki font ayarlarını geçersiz kılar. */
.yc-footer .yc-footer__description,
.yc-footer .yc-footer__description p {
    color: var(--footer-text);
    font-family: inherit;
    font-size: var(--footer-font-size);
    font-weight: 400;
    font-style: normal;
    line-height: 1.3;
    letter-spacing: var(--footer-letter-spacing);
    overflow-wrap: break-word;
}

.yc-footer .yc-footer__description p {
    margin: 0 0 8px;
}

.yc-footer .yc-footer__description p:last-child {
    margin-bottom: 0;
}

/* ==================================================
   SOSYAL MEDYA İKONLARI
   ================================================== */

.yc-footer__socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(8px, 0.8vw, 15px);
}

.yc-footer .yc-footer__social {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: clamp(32px, 2.5vw, 48px);
    height: clamp(32px, 2.5vw, 48px);
    margin: 0;
    padding: 0;
    border: 1px solid #88a9ab;
    border-radius: 50%;
    color: var(--footer-heading);
    background: transparent;
    text-decoration: none;
    transition:
        color 160ms ease,
        background-color 160ms ease;
}

.yc-footer__social svg {
    display: block;
    width: 42%;
    height: 42%;
}

/* PHP'deki SVG fill/stroke değerleri korunur.
   Bağlantısız ikonlara tıklanabilir görünüm verilmez. */
.yc-footer a.yc-footer__social:hover {
    color: #fff;
    background-color: var(--footer-heading);
}

/* ==================================================
   ALT SIRA — DÖRT ANA BÖLÜM
   ================================================== */

.yc-footer__grid {
    display: grid;
    grid-template-columns:
        minmax(0, 0.7fr)
        minmax(0, 1.45fr)
        minmax(0, 1.45fr)
        minmax(0, 1.25fr);
    align-items: start;
    gap: clamp(20px, 2vw, 38px);
}

.yc-footer__column {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.yc-footer .yc-footer__title {
    margin: 0 0 clamp(16px, 1.6vw, 30px);
    padding: 0;
    border: 0;
    color: var(--footer-heading);
    font-family: inherit;
    font-size: var(--footer-font-size);
    font-weight: 600;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: var(--footer-letter-spacing);
    text-transform: none;
}

.yc-footer__title::before,
.yc-footer__title::after {
    content: none;
}

/* ==================================================
   WORDPRESS MENÜLERİ
   Hizmetler masaüstünde kendi içinde iki sütundur.
   ================================================== */

.yc-footer .yc-footer__links {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.yc-footer .yc-footer__links--double {
    column-count: 2;
    column-gap: clamp(16px, 1.5vw, 28px);
}

.yc-footer .yc-footer__links li {
    display: block;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
    break-inside: avoid;
}

.yc-footer .yc-footer__links li::before,
.yc-footer .yc-footer__links li::after,
.yc-footer .yc-footer__links a::before,
.yc-footer .yc-footer__links a::after {
    content: none;
}

.yc-footer .yc-footer__links a {
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 2px 0;
    color: var(--footer-text);
    background: transparent;
    font-family: inherit;
    font-size: var(--footer-font-size);
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: var(--footer-letter-spacing);
    text-decoration: none;
    text-transform: none;
    white-space: normal;
    overflow-wrap: break-word;
}

.yc-footer .yc-footer__links a:hover {
    color: var(--footer-heading);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==================================================
   İLETİŞİM — ÜÇ SATIR AYNI FONT VE ÖLÇÜDE
   ================================================== */

.yc-footer__contact {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0;
    padding: 0;
    color: var(--footer-text);
    font-style: normal;
}

.yc-footer .yc-footer__contact-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: var(--footer-text);
    text-decoration: none;
}

.yc-footer .yc-footer__contact-row,
.yc-footer .yc-footer__contact-row span {
    font-family: inherit;
    font-size: var(--footer-font-size);
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: var(--footer-letter-spacing);
}

.yc-footer__contact-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* İkonlar ilk metin satırının ortasına hizalanır. */
.yc-footer .yc-footer__contact-row svg {
    display: block;
    flex: 0 0 1em;
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    color: var(--footer-heading);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.yc-footer a.yc-footer__contact-row:hover {
    color: var(--footer-heading);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==================================================
   TELİF VE CRABS MEDIA
   ================================================== */

.yc-footer__credit {
    margin: 0;
    padding: 0;
    color: #fff;
    background-color: var(--footer-heading);
}

.yc-footer__credit-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 14px;
}

.yc-footer__copyright {
    min-width: 0;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
    overflow-wrap: anywhere;
}

.yc-footer .yc-footer__copyright p {
    margin: 0;
    font: inherit;
    color: inherit;
}

.yc-footer__copyright a {
    color: inherit;
}

.yc-footer .yc-footer__agency {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: none;
}

.yc-footer__agency img {
    display: block;
    width: 100px;
    max-width: 100%;
    height: auto;
    margin: 0;
}

/* Klavye ile gezinme. */
.yc-footer a:focus-visible {
    outline: 2px solid var(--footer-heading);
    outline-offset: 4px;
}

.yc-footer__credit a:focus-visible {
    outline-color: #fff;
}

.footer-bottom {
    padding: 15px 0;
    background: #44696b;
}

/* ==================================================
   TABLET
   Dört ana bölüm iki sütuna geçer.
   Hizmet listeleri kendi içinde iki sütun kalır.
   ================================================== */

@media (max-width: 1199px) {
    .yc-footer {
        --footer-font-size: 14px;
    }

    .yc-footer__container,
    .yc-footer__credit-inner {
        width: calc(100% - 64px);
        max-width: none;
        margin-inline: auto;
    }

    .yc-footer__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        margin-bottom: 36px;
    }

    .yc-footer__socials {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .yc-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    .yc-footer .yc-footer__social {
        width: 44px;
        height: 44px;
    }

    .yc-footer .yc-footer__links a {
        padding-block: 5px;
    }
}

/* ==================================================
   MOBİL
   Tek ana sütun, rahat dokunma alanları.
   ================================================== */

@media (max-width: 767px) {
    .yc-footer__main {
        padding-block: 40px;
        border-radius: 28px 28px 0 0;
        background-color: var(--footer-surface);
    }

    /* Uzun mobil içerikte dekoratif görsel esnetilmez. */
    .yc-footer__background {
        display: none;
    }

    .yc-footer__container,
    .yc-footer__credit-inner {
        width: calc(100% - 40px);
    }

    .yc-footer__top {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        margin-bottom: 36px;
    }

    .yc-footer .yc-footer__logo {
        max-width: 320px;
    }

    .yc-footer .yc-footer__description,
    .yc-footer .yc-footer__description p {
        line-height: 1.6;
    }

    .yc-footer__socials {
        grid-column: auto;
    }

    .yc-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .yc-footer .yc-footer__title {
        margin-bottom: 12px;
        font-size: 16px;
    }

    .yc-footer .yc-footer__links a {
        padding-block: 7px;
        line-height: 1.5;
    }

    .yc-footer__contact {
        gap: 14px;
    }

    .yc-footer__credit-inner {
        gap: 16px;
    }

    .yc-footer__agency img {
        width: 88px;
    }
}

/* Dar telefonlarda uzun hizmet isimlerine tam genişlik. */
@media (max-width: 479px) {
    .yc-footer .yc-footer__links--double {
        column-count: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yc-footer .yc-footer__social {
        transition: none;
    }
}

/* MASAÜSTÜ: menü satırlarındaki fazladan boşlukları kaldırır. */
@media (min-width: 1200px) {
    .yc-footer .yc-footer__links li {
        margin: 0;
        padding: 0;
    }

    .yc-footer .yc-footer__links a {
        padding: 0;
        line-height: 1.2;
    }

    /* Başlık ile ilk bağlantı arasındaki mesafe. */
    .yc-footer .yc-footer__title {
        margin-bottom: 16px;
    }

    /* Adres, telefon ve e-posta arasındaki mesafe. */
    .yc-footer__contact {
        gap: 6px;
    }

    .yc-footer .yc-footer__contact-row,
    .yc-footer .yc-footer__contact-row span {
        line-height: 1.2;
    }

    .yc-footer .yc-footer__contact-row svg {
        margin-top: 0.1em;
    }
}