/* ==========================================================================
   Mak Gıda — kurumsal özelleştirmeler
   Craftô temasının üzerine biner; tema dosyaları değiştirilmez.
   Renk değişkenleri layout içinde panel ayarlarından basılır.
   ========================================================================== */

/* --- marka zeminleri --- */
.bg-brand-navy       { background-color: var(--brand-navy) !important; }
.bg-brand-navy-light { background-color: var(--brand-navy-light) !important; }
.text-brand-navy     { color: var(--brand-navy) !important; }

.bg-brand-gradient {
    background-image: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
}

/* --- logo ölçüleri (kare logo, tema varsayılanı yatay logolara göre ayarlı) ---
   Logo revizeyle küçültüldü (menü bandı incelsin diye), ancak kırılma
   noktalarında zıplamak yerine ekran genişliğiyle birlikte akışkan ölçeklenir
   (clamp: alt sınır – vw – üst sınır). Kaynak dosya 600×488 (@2x) olduğundan
   her ölçüde net basılır.

   Menü sabit (position: fixed) olduğundan iç sayfaların üst boşluğu bu yüksekliğe
   bağlıdır; ölçü tek yerden --header-logo-h ile verilir ki logo değişince sayfa
   başlıkları menünün altında kalmasın. Boyutu değiştirmek için yalnızca aşağıdaki
   üç satırı güncellemek yeterlidir.

   Yaklaşık karşılıklar — 1920px: 88px · 1440px: 78px · 1280px: 69px
                          1024px: 55px ·  768px: 52px · telefon: 52px */
:root {
    --header-logo-h: clamp(52px, 5.4vw, 88px);
    --page-hero-gap: clamp(96px, 9vw, 146px);
    --page-top-gap:  clamp(60px, 6.5vw, 106px);
}

header .navbar-brand img {
    max-height: var(--header-logo-h);
    /* Dar sütunda menünün üstüne taşmasın diye genişlik sütunla sınırlı;
       sığmadığında yükseklik oransal olarak kendiliğinden küçülür. */
    max-width: 100%;
    width: auto;
    transition: max-height .35s cubic-bezier(.25, .46, .45, .94);
}
header .navbar {
    padding-top: 5px;
    padding-bottom: 5px;
    transition: padding .35s ease, box-shadow .35s ease, transform .3s ease;
}

/* Sayfa kaydırılıp menü üstten geri geldiğinde daralır.
   Sınıf tema JS'i tarafından <header> elementine eklenir. */
header.sticky-active .navbar { padding-top: 2px; padding-bottom: 2px; }
/* Kaydırma sonrası daralmış menüde logo ölçünün yaklaşık %70'ine iner. */
header.sticky-active .navbar-brand img { max-height: calc(var(--header-logo-h) * .7); }
header.sticky-active .navbar-brand { padding-top: 6px; padding-bottom: 6px; }

/* --- mega menü: ürün grupları üç sütunda --- */
.navbar .submenu-content .mega-menu { min-width: 640px; padding: 10px 0; }
.navbar .submenu-content .mega-menu > ul.col { padding: 0 22px; }
.navbar .submenu-content .mega-menu > ul.col > li > a {
    display: block;
    padding: 7px 0;
    font-size: 16px;
    line-height: 22px;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    transition: color .25s ease, padding-left .25s ease;
}
.navbar .submenu-content .mega-menu > ul.col > li:last-child > a { border-bottom: 0; }
.navbar .submenu-content .mega-menu > ul.col > li > a:hover {
    color: var(--brand-navy);
    padding-left: 6px;
}

/* --- teklif sepeti sayacı --- */
.quote-count {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    vertical-align: middle;
}

/* --- ürün listesi (kategori sayfası) --- */
.product-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid #ececec;
    border-radius: 6px;
    background: #fff;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.product-list-item:hover {
    border-color: var(--brand-navy);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}
.product-list-item .product-name {
    font-size: 17px;
    line-height: 24px;
    margin: 0;
}

/* eklendi durumundaki buton */
.btn-add-quote.is-added {
    background-color: #2f7d32 !important;
    border-color: #2f7d32 !important;
    color: #fff !important;
}

/* --- faaliyet alanı / kategori kartları --- */
.makgida-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    height: 100%;
}
.makgida-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.25, .46, .45, .94);
}
.makgida-card:hover img { transform: scale(1.06); }
.makgida-card .card-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to top, rgba(22, 40, 75, .92) 0%, rgba(22, 40, 75, .25) 55%, transparent 100%);
}
.makgida-card .card-content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 22px 24px;
    color: #fff;
}
.makgida-card .card-content h3 {
    font-size: 21px;
    line-height: 27px;
    margin-bottom: 4px;
    color: #fff;
}
.makgida-card .card-content p {
    font-size: 15px;
    line-height: 22px;
    margin: 0;
    opacity: .85;
}
/* Grup adının altındaki ikincil ibare (örn. "Kullan At Ürünleri") —
   addan belirgin şekilde küçük durur ki kart başlığıyla karışmasın. */
.makgida-card .card-content .card-subtitle {
    display: block;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: .3px;
    margin-bottom: 3px;
    opacity: .8;
}

/* görseli olmayan kayıtlar için yer tutucu */
.makgida-card .card-placeholder {
    height: 260px;
    background-image: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
}

/* --- iç sayfa başlık alanı ---
   Header sayfanın üstüne bindiği için üst boşluk header yüksekliğini
   (logo + dikey padding) karşılayacak kadar geniş tutulur; aksi hâlde
   başlık menünün altında kalıyor. */
/* Üst boşluk sabit menünün yüksekliğinden türetilir (bkz. --header-logo-h). */
.makgida-page-hero {
    padding-top: calc(var(--header-logo-h) + var(--page-hero-gap));
    padding-bottom: 110px;
    display: flex;
    align-items: center;
    min-height: 480px;
}
@media (max-width: 1199px) {
    .makgida-page-hero { padding-bottom: 90px; min-height: 430px; }
}
@media (max-width: 991px) {
    .makgida-page-hero { padding-bottom: 70px; min-height: 360px; }
}
@media (max-width: 575px) {
    .makgida-page-hero { padding-bottom: 60px; min-height: 310px; }
}
.makgida-page-hero h1 { font-size: 3.2rem; line-height: 3.5rem; }
@media (max-width: 991px) {
    .makgida-page-hero h1 { font-size: 2.4rem; line-height: 2.7rem; }
}
@media (max-width: 575px) {
    .makgida-page-hero h1 { font-size: 1.9rem; line-height: 2.2rem; }
}
.makgida-page-hero .breadcrumb { background: transparent; padding: 0; }
.makgida-page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }

/* --- görsel yakınlaşma animasyonu --- */
.img-zoom {
    display: block;
    transition: transform .8s cubic-bezier(.25, .46, .45, .94);
}
.overflow-hidden:hover > .img-zoom,
a:hover .img-zoom { transform: scale(1.06); }

/* --- kart üzerindeki ok --- */
.makgida-card .card-arrow {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .35s ease, transform .35s ease, background-color .35s ease;
}
.makgida-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
    background: rgba(255, 255, 255, .3);
}

/* --- marka şeridi --- */
.brands-strip .brand-item {
    padding: 14px 10px;
    transition: transform .35s ease;
}
.brands-strip .brand-item:hover { transform: translateY(-4px); }
.brands-strip .brand-logo {
    max-height: 64px;
    width: auto;
    filter: grayscale(100%);
    opacity: .65;
    transition: filter .35s ease, opacity .35s ease;
}
.brands-strip .brand-item:hover .brand-logo {
    filter: grayscale(0);
    opacity: 1;
}
.brands-strip .brand-name {
    display: inline-block;
    padding: 12px 18px;
    border: 1px solid #ececec;
    border-radius: 6px;
    transition: border-color .35s ease, color .35s ease;
}
.brands-strip .brand-item:hover .brand-name {
    border-color: var(--brand-navy);
    color: var(--brand-navy) !important;
}

/* --- teklif çağrısı --- */
.cta-section { padding: 70px 0; }

/* ---- arka plan: tedarikten teslimata akışı ---- */
.cta-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

/* yumuşak ışık lekeleri — derinlik hissi verir */
.cta-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    background: rgba(255, 255, 255, .10);
    will-change: transform;
}
.cta-glow-1 {
    width: 380px;
    height: 380px;
    top: -140px;
    right: -60px;
    animation: cta-drift-a 22s ease-in-out infinite;
}
.cta-glow-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: 8%;
    background: rgba(255, 255, 255, .07);
    animation: cta-drift-b 28s ease-in-out infinite;
}
.cta-section.bg-very-light-gray .cta-glow { background: rgba(22, 40, 75, .10); }

/* ---- zincir: aşamalar sırayla tamamlanır ----
   Her aşama önce "zonk" diye büyür, ikonu belirir, üstüne onay işareti gelir;
   ardından bir sonrakine giden kesikli çizgi çizilir ve sıra devam eder.
   Zamanlama tamamen CSS gecikmeleriyle kurulur: --i her adımın sırasıdır. */
.process-chain {
    --step: 1.9s;                 /* bir aşamanın süresi */
    --cycle: 7.6s;                /* 4 aşama × 1.9s = tam tur */

    position: relative;
    display: flex;
    align-items: flex-start;
    margin-top: 55px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    /* CTA dışında da kullanılabilsin diye ayırıcı ve üst boşluk kapatılabilir */

    /* çizginin çizilmemiş ve çizilmiş hâli */
    --line-idle: rgba(255, 255, 255, .22);
    --line-done: #fff;
}
/* hero altındaki bant: kendi başına duran şerit, ayırıcı çizgiye gerek yok */
.process-chain.no-divider {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
/* Not: Hero videosunun üzerindeki şerit ve yönlendirme butonları müşteri
   revizesiyle kaldırıldı; ilgili .hero-chain-band / .hero-actions kuralları da
   birlikte silindi. Video artık üzerinde hiçbir öğe olmadan gösterilir. */

.process-chain.is-light {
    color: var(--brand-navy);
    border-top-color: rgba(22, 40, 75, .12);
    --line-idle: rgba(22, 40, 75, .2);
    --line-done: var(--brand-navy);
}

.chain-step {
    display: flex;
    align-items: flex-start;
    flex: 1 1 auto;
}
.chain-step:last-child { flex: 0 0 auto; }

/* daire + etiket */
.chain-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}
.chain-label {
    font-size: 14px;
    line-height: 18px;
    letter-spacing: .3px;
    white-space: nowrap;
    opacity: .45;
    transition: opacity .4s ease;
    animation: chain-label-in var(--cycle) ease-in-out infinite;
    animation-delay: calc(var(--i) * var(--step));
}

/* ---- aşama dairesi ---- */
.chain-circle {
    position: relative;
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    opacity: .3;
    will-change: transform, opacity;
    animation: chain-pop var(--cycle) ease-in-out infinite;
    animation-delay: calc(var(--i) * var(--step));
}

/* dışa doğru dağılan zonk halkası */
.chain-circle::after {
    content: '';
    position: absolute;
    inset: -7px;
    border: 2px solid currentColor;
    border-radius: 50%;
    opacity: 0;
    animation: chain-ring var(--cycle) ease-out infinite;
    animation-delay: calc(var(--i) * var(--step));
}

.chain-ico,
.chain-check {
    position: absolute;
    font-size: 31px;
    line-height: 1;
}

/* aşama ikonu belirir, onay gelince yerini bırakır */
.chain-ico {
    opacity: 0;
    animation: chain-icon-in var(--cycle) ease-in-out infinite;
    animation-delay: calc(var(--i) * var(--step));
}

/* "başarılı" onayı */
.chain-check {
    opacity: 0;
    animation: chain-check-in var(--cycle) cubic-bezier(.34, 1.56, .64, 1) infinite;
    animation-delay: calc(var(--i) * var(--step) + .72s);
}

/* ---- aşamalar arası kesikli çizgi ---- */
.chain-line {
    position: relative;
    flex: 1 1 auto;
    height: 2px;
    margin: 37px 14px 0;          /* dairenin dikey ortasına hizalanır */
    overflow: hidden;
    background-image: repeating-linear-gradient(to right, var(--line-idle) 0 9px, transparent 9px 19px);
}
/* çizginin soldan sağa çizilen parlak kısmı */
.chain-line-fill {
    position: absolute;
    inset: 0;
    width: 0;
    /* kesikleri kırpmadan açılsın diye desen sabit genişlikte tutulur */
    background-image: repeating-linear-gradient(to right, var(--line-done) 0 9px, transparent 9px 19px);
    background-size: 19px 100%;
    background-repeat: repeat-x;
    animation: chain-draw var(--cycle) ease-in-out infinite;
    animation-delay: calc(var(--i) * var(--step) + 1.02s);
}

@keyframes chain-pop {
    0%    { transform: scale(.86); opacity: .25; }
    5%    { transform: scale(1.16); opacity: 1; }   /* zonk */
    10%   { transform: scale(1);   opacity: .9; }
    86%   { transform: scale(1);   opacity: .9; }   /* tamamlanmış bekler */
    100%  { transform: scale(.86); opacity: .25; }  /* tur başa sarar */
}
@keyframes chain-ring {
    0%   { transform: scale(.9); opacity: .85; }
    9%   { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}
@keyframes chain-icon-in {
    0%   { opacity: 0;   transform: scale(.5); }
    4%   { opacity: 0;   transform: scale(.5); }
    7%   { opacity: .95; transform: scale(1); }     /* asıl ikon belirir */
    9%   { opacity: .95; transform: scale(1); }
    11%  { opacity: 0;   transform: scale(.8); }    /* onay devralır */
    16%  { opacity: 0;   transform: scale(.8); }
    19%  { opacity: .95; transform: scale(1); }     /* asıl ikon geri döner */
    86%  { opacity: .95; transform: scale(1); }     /* tur sonuna kadar kalır */
    100% { opacity: 0;   transform: scale(.5); }
}
/* Onay yalnızca kısa bir an görünür; ardından ikon geri gelir. */
@keyframes chain-check-in {
    0%   { opacity: 0; transform: scale(.3); }
    2%   { opacity: 1; transform: scale(1.2); }
    4%   { opacity: 1; transform: scale(1); }
    8%   { opacity: 1; transform: scale(1); }
    11%  { opacity: 0; transform: scale(.7); }
    100% { opacity: 0; transform: scale(.7); }
}
@keyframes chain-label-in {
    0%   { opacity: .35; }
    8%   { opacity: 1; }
    86%  { opacity: 1; }
    100% { opacity: .35; }
}
@keyframes chain-draw {
    0%   { width: 0; }
    9%   { width: 100%; }
    86%  { width: 100%; }
    100% { width: 0; }
}

/* dar ekranda daha sade ve hafif */

@media (max-width: 991px) {
    .process-chain { margin-top: 45px; padding-top: 32px; }
    .chain-circle { width: 56px; height: 56px; }
    .chain-ico, .chain-check { font-size: 23px; }
    .chain-line { margin: 27px 6px 0; }
    .chain-label { font-size: 12px; }
}

/*  Dar ekran: dört aşama da ekrana sığdırılır ve ORTALANIR.
    Yatay kaydırma kullanılmıyor — kaydırma, büyüyen dairelerin dikey olarak
    kırpılmasına yol açıyordu (overflow-x, overflow-y'yi de zorunlu kılar). */
@media (max-width: 575px) {
    .process-chain {
        justify-content: center;
        align-items: flex-start;
        /* zonk animasyonunda daire %16 büyüyor; kırpılmaması için pay */
        padding-top: 14px;
        padding-bottom: 10px;
        overflow: visible;
    }
    .chain-step { flex: 1 1 0; min-width: 0; }
    .chain-step:last-child { flex: 0 0 auto; }

    .chain-node { width: auto; min-width: 0; }
    .chain-circle { width: 44px; height: 44px; border-width: 1.5px; }
    .chain-ico, .chain-check { font-size: 17px; }

    .chain-line { flex: 1 1 auto; min-width: 10px; margin: 21px 4px 0; }

    .chain-label {
        font-size: 10px;
        line-height: 13px;
        letter-spacing: 0;
        white-space: normal;
        text-align: center;
        word-break: break-word;
    }
    .chain-node { gap: 7px; }

    .cta-glow { filter: blur(50px); }
}

/* çok dar ekranlarda etiketler daha da küçülür */
@media (max-width: 360px) {
    .chain-circle { width: 38px; height: 38px; }
    .chain-ico, .chain-check { font-size: 15px; }
    .chain-label { font-size: 9px; line-height: 12px; }
    .chain-line { margin-top: 18px; }
}

/* hareketi azalt tercihi: animasyonlar durur, tasarım korunur */
@media (prefers-reduced-motion: reduce) {
    .cta-glow,
    .chain-circle,
    .chain-circle::after,
    .chain-ico,
    .chain-check,
    .chain-label,
    .chain-line-fill { animation: none; }

    /* animasyon durduğunda tamamlanmış hâli gösterilir */
    .chain-circle { opacity: .9; transform: none; }
    .chain-ico { opacity: 0; }
    .chain-check { opacity: 1; transform: none; }
    .chain-label { opacity: 1; }
    .chain-line-fill { width: 100%; }
}

/* Avantaj rozetleri — metin satır ortasında kalmalı, ikon metinden kopmamalı */
.cta-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    justify-content: center;
}
@media (min-width: 992px) {
    .cta-benefits { justify-content: flex-start; }
}
.cta-benefits li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    line-height: 22px;
    white-space: nowrap;        /* "Ücretsiz ve bağlayıcı / değil" şeklinde bölünmesin */
    opacity: .85;
}
.cta-benefits li i {
    flex: 0 0 auto;
    font-size: 17px;
    line-height: 1;
}

/* dar ekranda alt alta ve sola hizalı, ama kelime bölünmeden */
@media (max-width: 575px) {
    .cta-benefits {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .cta-benefits li { white-space: normal; align-items: flex-start; }
    .cta-benefits li i { margin-top: 3px; }
}

@media (max-width: 767px) {
    .cta-section { padding: 50px 0; }
    .cta-section::after { display: none; }
}

/* --- hero video --- */
.hero-video-wrap {
    position: relative;
    overflow: hidden;
    background-color: var(--brand-navy);
    line-height: 0;             /* iframe'in satır kutusundan doğan alt boşluğu keser */
}
/* içerik dikey ortalı; üstteki header kadar pay bırakılır ki başlık menüye girmesin */

.hero-video-wrap iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /*
       Videoyu alanı tam dolduracak şekilde ölçekler (object-fit: cover benzeri).
       16:9 oranı ile ekran oranı birebir tutmadığından kenarlarda birkaç piksellik
       zemin sızıyordu; scale ile taşma payı bırakılıyor.
    */
    width: 100vw;
    height: 56.25vw;            /* 16:9 */
    min-height: 100%;
    min-width: 177.78vh;
    transform: translate(-50%, -50%) scale(1.03);
    display: block;
    border: 0;
    pointer-events: none;
}
/* iframe'in kendi satır yüksekliğini sıfırladığımız için içerik hizasını geri veriyoruz */
.hero-video-wrap > .container,
.hero-video-wrap > .hero-overlay {
    line-height: normal;
}
.hero-video-wrap .hero-overlay {
    position: absolute;
    inset: 0;
    /* Üzerinde artık öğe durmadığı için perde yalnızca üstte, menünün okunması
       için hafifçe koyulaşır; videonun geri kalanı açık kalır. */
    background-image: linear-gradient(
        to bottom,
        rgba(22, 40, 75, .30) 0%,
        rgba(22, 40, 75, .12) 35%,
        rgba(22, 40, 75, .12) 100%
    );
}

/* --- üst üste binen ikili görsel (örnek sayfadaki düzen) ---
   Arkadaki görsel akışta durur ve kutunun yüksekliğini belirler; öndeki görsel
   sağ alta mutlak konumlanıp arkadakinin köşesine biner. Ölçüler yüzdeyle
   verildiği için her en–boy oranında aynı kompozisyon korunur. */
.stacked-media {
    position: relative;
    padding-bottom: 18%;
}
.stacked-media-back {
    position: relative;
    z-index: 1;
    width: 72%;
}
.stacked-media-front {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 62%;
    border: 6px solid #fff;
    box-shadow: 0 18px 40px rgba(22, 40, 75, .18);
}
/* arkadaki görselin sağ üstünde duran nokta deseni (dekoratif) */
.stacked-media-dots {
    position: absolute;
    top: 4%;
    right: 6%;
    z-index: 0;
    width: 26%;
    padding-bottom: 15%;
    color: rgba(22, 40, 75, .22);
    background-image: radial-gradient(currentColor 1.6px, transparent 1.7px);
    background-size: 14px 14px;
}

/* Dar ekranda bindirme okunaklı olmuyor; görseller alt alta sıralanır. */
@media (max-width: 575px) {
    .stacked-media { padding-bottom: 0; }
    .stacked-media-back,
    .stacked-media-front {
        position: static;
        width: 100%;
    }
    .stacked-media-front {
        margin-top: 16px;
        border: 0;
        box-shadow: none;
    }
    .stacked-media-dots { display: none; }
}

/* --- değerlerimiz şeridi (hakkımızda) --- */
.values-strip .value-item {
    border-right: 1px solid rgba(0, 0, 0, .08);
    transition: transform .3s ease;
}
.values-strip .col:last-child .value-item { border-right: 0; }
.values-strip .value-item:hover { transform: translateY(-6px); }

@media (max-width: 991px) {
    .values-strip .value-item { border-right: 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
}

/* --- footer --- */
.footer-dark ul li a,
.footer-dark .footer-contact span { color: rgba(255, 255, 255, .72); }
.footer-dark ul li a:hover { color: #fff; }
.footer-dark ul li { margin-bottom: 8px; }

/* Alt logo revizeyle belirgin biçimde büyütüldü (önceki ölçü 80px). Menüdeki
   logo gibi ekran genişliğine göre akışkan ölçeklenir; footer'da daha çok yer
   olduğu için üst sınır menüdekinden yüksek tutulur.
   Yaklaşık — 1920px: 140px · 1440px: 130px · 1024px: 96px · telefon: 96px */
.footer-dark .footer-logo img {
    max-height: clamp(96px, 9vw, 140px);
    width: auto;
}

/* --- ajans kredisi (footer sağ alt) --- */
.agency-credit img {
    height: 30px;
    width: auto;
    opacity: .55;
    transition: opacity .3s ease;
}
.agency-credit:hover img { opacity: 1; }
.agency-credit:hover span { opacity: .8 !important; }

/* --- formlar --- */
.form-error { color: #d9534f; font-size: 14px; margin-top: 5px; display: block; }
.alert-makgida {
    border-radius: 6px;
    padding: 16px 20px;
    font-size: 16px;
    line-height: 24px;
}

/* ==========================================================================
   MOBİL DENEYİM — uygulama tarzı alt menü ve açılır paneller
   ========================================================================== */

.mobile-bottom-nav,
.mobile-sheet { display: none; }

@media (max-width: 991px) {

    /* ---- sabit alt menü ---- */
    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        display: flex;
        align-items: flex-end;
        justify-content: space-around;
        gap: 2px;
        padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .94);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-top: 1px solid rgba(0, 0, 0, .07);
        box-shadow: 0 -6px 24px rgba(0, 0, 0, .09);
    }

    .mnav-item {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 6px 2px;
        border: 0;
        background: transparent;
        color: #6b7280;
        font-size: 11px;
        line-height: 14px;
        text-align: center;
        transition: color .25s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .mnav-item i { font-size: 21px; line-height: 1; }
    .mnav-item.is-active,
    .mnav-item:active { color: var(--brand-navy); }

    /* ortadaki vurgulu eylem — yüzen daire */
    .mnav-primary { position: relative; color: var(--brand-navy); }
    .mnav-fab {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        margin-top: -22px;
        border-radius: 50%;
        background: var(--brand-navy);
        color: #fff;
        box-shadow: 0 6px 16px rgba(22, 40, 75, .38);
    }
    .mnav-fab i { font-size: 22px; }
    .mnav-badge {
        position: absolute;
        top: -3px;
        right: -3px;
        min-width: 19px;
        height: 19px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
        border-radius: 10px;
        background: #e0a800;
        color: #1a1a1a;
        font-size: 11px;
        font-weight: 600;
        border: 2px solid #fff;
    }

    /* içerik alt menünün altında kalmasın */
    body { padding-bottom: 74px; }

    /* tema tarafından sağ altta konumlanan "yukarı çık" alt menüyle çakışmasın */
    .scroll-progress { bottom: 92px !important; }

    /* ---- açılır panel (bottom sheet) ---- */
    .mobile-sheet {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1040;
    }
    .mobile-sheet[hidden] { display: none; }

    .sheet-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(15, 23, 42, .5);
        opacity: 0;
        transition: opacity .3s ease;
    }
    .mobile-sheet.is-open .sheet-backdrop { opacity: 1; }

    .sheet-panel {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 82vh;
        display: flex;
        flex-direction: column;
        padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
        background: #fff;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, .22);
        transform: translateY(100%);
        transition: transform .34s cubic-bezier(.32, .72, 0, 1);
    }
    .mobile-sheet.is-open .sheet-panel { transform: translateY(0); }

    /* üstteki tutamaç — aşağı sürükleyerek kapatma ipucu */
    .sheet-grip {
        width: 42px;
        height: 4px;
        margin: 4px auto 12px;
        border-radius: 4px;
        background: #d7dbe2;
        flex: 0 0 auto;
    }

    .sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 12px;
        border-bottom: 1px solid #eef0f3;
        flex: 0 0 auto;
    }
    .sheet-head h2 {
        margin: 0;
        font-size: 19px;
        line-height: 26px;
        color: var(--brand-navy);
    }
    .sheet-close {
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 50%;
        background: #f3f4f6;
        color: #4b5563;
        font-size: 18px;
    }

    .sheet-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: 8px;
        flex: 1 1 auto;
    }

    .sheet-list { list-style: none; margin: 0; padding: 0; }
    .sheet-list li + li { border-top: 1px solid #f1f2f4; }
    .sheet-list a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 2px;
        color: #2b3445;
        font-size: 16px;
        line-height: 22px;
    }
    .sheet-list a > span {
        display: inline-flex;
        align-items: center;
        gap: 12px;
    }
    .sheet-list a > span i { font-size: 19px; color: var(--brand-navy); opacity: .8; }
    .sheet-list a > i { font-size: 17px; color: #b6bcc7; }
    .sheet-list a.is-active { color: var(--brand-navy); font-weight: 600; }

    /* hızlı iletişim kutuları */
    .sheet-contact {
        display: grid;
        gap: 8px;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #eef0f3;
    }
    .sheet-contact-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 10px;
        background: #f6f7f9;
        color: #2b3445;
        font-size: 15px;
    }
    .sheet-contact-item i { font-size: 18px; color: var(--brand-navy); }

    /* panel açıkken arka plan kaymasın */
    body.sheet-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    .sheet-panel,
    .sheet-backdrop { transition: none; }
}

/* ---- teklif listesi: dar ekranda tablo yerine kart düzeni ---- */
@media (max-width: 767px) {
    .quote-table thead { display: none; }

    .quote-table,
    .quote-table tbody,
    .quote-table tr,
    .quote-table td { display: block; width: 100%; }

    .quote-table tr {
        position: relative;
        margin-bottom: 14px;
        padding: 16px 16px 12px;
        border: 1px solid #e8eaee;
        border-radius: 10px;
        background: #fff;
    }

    .quote-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 8px 0;
        border: 0;
    }
    .quote-table td + td { border-top: 1px solid #f3f4f6; }

    /* alan adı solda etiket olarak görünür */
    .quote-table td[data-label]::before {
        content: attr(data-label);
        flex: 0 0 auto;
        font-size: 13px;
        font-weight: 600;
        color: #7a8291;
        text-transform: uppercase;
        letter-spacing: .3px;
    }
    /* ürün adı satırı tam genişlik, etiketsiz */
    .quote-table td:first-child { display: block; padding-top: 0; padding-right: 42px; }
    .quote-table td:first-child::before { display: none; }

    .quote-table td .form-control { max-width: 170px; }

    /* silme butonu kartın sağ üst köşesine taşınır */
    .quote-table .quote-remove-cell {
        position: absolute;
        top: 12px;
        right: 12px;
        width: auto;
        padding: 0;
        border: 0;
    }
    .quote-table .quote-remove-cell::before { display: none; }
}

/* ---- genel mobil düzen rötuşları ---- */
@media (max-width: 767px) {
    /* uzun başlıklar taşmasın */
    .cta-section h2 { font-size: 26px; line-height: 33px; }

    /* kart görselleri dar ekranda daha alçak */
    .makgida-card img,
    .makgida-card .card-placeholder { height: 210px; }
    .makgida-card .card-content { padding: 16px 18px; }
    .makgida-card .card-content h3 { font-size: 18px; line-height: 24px; }
    .makgida-card .card-content .card-subtitle { font-size: 12px; line-height: 17px; }

    /* ürün satırı: ad ve buton alt alta sığsın */
    .product-list-item { padding: 12px 14px; gap: 10px; }
    .product-list-item .product-name { font-size: 16px; line-height: 22px; }

    /* dokunma hedefleri en az 44px */
    .btn { min-height: 44px; }

    /* iOS'ta odaklanınca sayfayı yakınlaştırmasın */
    input, select, textarea { font-size: 16px !important; }
}

/* ==========================================================================
   MOBİL BÖLÜM GEÇİŞLERİ
   Tema, 1199px altında kendi animasyon motorunu kapatıyor (animeBreakPoint).
   Bu yüzden dokunmatik cihazlara özel, hafif bir giriş animasyonu kullanılır:
   yalnızca transform + opacity, kısa mesafe, yumuşak yavaşlama.
   ========================================================================== */
@media (max-width: 1199px) {

    /* tekil blok */
    .mv-reveal {
        opacity: 0;
        transform: translate3d(0, 26px, 0);
        transition: opacity .5s cubic-bezier(.22, .61, .36, 1),
                    transform .55s cubic-bezier(.22, .61, .36, 1);
        will-change: transform, opacity;
    }
    .mv-reveal.is-in {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        will-change: auto;
    }

    /* çocukları sırayla giren ızgara */
    .mv-stagger > * {
        opacity: 0;
        transform: translate3d(0, 22px, 0) scale(.985);
        transition: opacity .45s cubic-bezier(.22, .61, .36, 1),
                    transform .5s cubic-bezier(.22, .61, .36, 1);
    }
    .mv-stagger.is-in > * {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
    /* kademeli gecikme — en fazla 8 öğe, sonrası aynı anda gelir */
    .mv-stagger.is-in > *:nth-child(1) { transition-delay: .00s; }
    .mv-stagger.is-in > *:nth-child(2) { transition-delay: .07s; }
    .mv-stagger.is-in > *:nth-child(3) { transition-delay: .14s; }
    .mv-stagger.is-in > *:nth-child(4) { transition-delay: .21s; }
    .mv-stagger.is-in > *:nth-child(5) { transition-delay: .28s; }
    .mv-stagger.is-in > *:nth-child(6) { transition-delay: .35s; }
    .mv-stagger.is-in > *:nth-child(7) { transition-delay: .42s; }
    .mv-stagger.is-in > *:nth-child(8) { transition-delay: .49s; }

    /* kartlara dokunulduğunda geri bildirim (mobil "basılı" hissi) */
    .makgida-card:active { transform: scale(.985); }
    .makgida-card { transition: transform .2s ease; }

    .product-list-item:active { background-color: #fafbfc; }
}

@media (prefers-reduced-motion: reduce) {
    .mv-reveal,
    .mv-stagger > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* --- hero'su olmayan sayfalar için üst boşluk ---
   Menü sayfanın üstüne bindiği (position: fixed) için, page-hero kullanmayan
   sayfalarda içerik menünün altında kalıyordu. */
.makgida-page-top {
    padding-top: calc(var(--header-logo-h) + var(--page-top-gap));
    padding-bottom: 90px;
}
@media (max-width: 1199px) {
    .makgida-page-top { padding-bottom: 70px; }
}
@media (max-width: 991px) {
    .makgida-page-top { padding-bottom: 60px; }
}
@media (max-width: 575px) {
    .makgida-page-top { padding-bottom: 50px; }
}
