/* ══════════════════════════════════════════════════════════════════════════
   Food Art Studio – Custom Fixes & Overrides
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Hero Section Adjustments ────────────────────────────────────────────── */
.hero-360 {
    padding: 60px 0 40px 0 !important;
    min-height: auto !important;
}

/* ── Service Cards - More Compact ─────────────────────────────────────────── */
.service-box .card-body {
    padding: 1.5rem 1rem !important;
}

.service-box p {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    max-height: 60px !important;
    overflow: hidden !important;
    margin-bottom: 0.5rem !important;
}

.service-box h4 {
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.75rem !important;
}

.service-box .icon-circle {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 1rem !important;
}

.service-box .btn {
    margin-top: 0.5rem !important;
    font-size: 0.8rem !important;
}

/* ── Center Header Navigation ─────────────────────────────────────────────── */
.header-bottom .container {
    display: flex !important;
    justify-content: center !important;
}

.main-nav {
    width: 100% !important;
}

.main-nav > ul {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* ── Case Studies Section Fix ─────────────────────────────────────────────── */
.case-studies-section .row {
    align-items: stretch;
}

.case-study-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-study-card .card-body {
    flex-grow: 1;
}

/* ══════════════════════════════════════════════════════════════════════════
   SCROLL TITREME DÜZELTMESI
   Lenis + GSAP ScrollTrigger en alta scroll edildiğinde body/html yüksekliği
   hesabı nedeniyle oluşan "jitter" (titreme) hatasını giderir.
   ══════════════════════════════════════════════════════════════════════════ */

/* 1. html & body height: Lenis'in scroll height'ı doğru hesaplamayı sağla */
html,
html.lenis,
html.lenis body {
    height: auto !important;
    /* overflow-y'yi lenis kendi yönetir; body'de fixed etme */
}

/* 2. main içindeki son section'a margin yerine padding kullan —
      margin bottom, lenis scroll height'ını yanlış ölçtürüyor */
main > section:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 6rem !important;
}

/* 3. Contact sayfasındaki özel form section zaten padding kullanıyor,
      margin bırakma (footer'a çarpmasın) */
.contact-form-section {
    margin-bottom: 0 !important;
}

/* ── Footer Stability Fixes ───────────────────────────────────────────────── */
/* GPU compositing layer: Lenis/GSAP'ın footer'ı titrememesi için */
.footer {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: auto;
    /* Footer her zaman görünür kalmalı */
    opacity: 1 !important;
    visibility: visible !important;
    /* İzole stacking context — Lenis scroll yüksekliğini etkileyen margin'i sıfırla */
    position: relative;
    z-index: 1;
}

/* Footer container max-width sınırlama */
.footer > .container {
    max-width: 1400px !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* GSAP'ın footer .animate-up elemanlarını gizlememesi */
.footer .animate-up {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Footer link geçiş titremesini önle */
.footer-links a {
    display: block;
    will-change: auto;
}

/* ── Lenis Scroll – Son Sayfa Titreme Önleme ──────────────────────────────── */
/* ScrollTrigger ve Lenis'in en aşağıda layout reflow
   tetiklemesini engellemek için tüm büyük section'larda */
section {
    /* GPU layer: reflow yerine compositor katmanında işle */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}