/* ============================================================================
   Okan Soğutma — siteye özel ince ayarlar (düşük öncelikli, sonradan yüklenebilir)
   Bu dosya şablondan bağımsızdır; Tailwind/Vite build gerektirmez.
   ============================================================================ */

/* --- WhatsApp yüzen butonu -------------------------------------------------
   position:fixed olduğu için sayfa akışına HIÇBOŞLUK eklemez; footer altında
   boşluk oluşmasını engeller. (Eskiden Tailwind sınıfları yüklenmediği için
   buton akışta satır olarak görünüyordu.) */
.wa-fab {
    position: fixed;
    right: calc(1.25rem + env(safe-area-inset-right, 0px));
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: #25d366;
    color: #fff;
    box-shadow: 0 18px 35px -12px rgba(37, 211, 102, .9);
    transition: transform .3s ease, background-color .3s ease;
}

@media (min-width: 640px) {
    .wa-fab {
        right: calc(1.75rem + env(safe-area-inset-right, 0px));
        bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
    }
}

.wa-fab:hover {
    transform: scale(1.05);
    background: #1fbe5a;
}

.wa-fab:focus-visible {
    outline: 2px solid #25d366;
    outline-offset: 4px;
}

.wa-fab > svg {
    width: 1.75rem;
    height: 1.75rem;
}

/* Nabız halkası — sayfayı etkilemez, yalnızca butonun arkasında döner */
.wa-fab::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: #25d366;
    animation: wa-pulse 3s ease-out infinite;
    z-index: -1;
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: .55;
    }

    70%,
    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

/* Masaüstünde hover ile beliren etiket */
.wa-fab__label {
    pointer-events: none;
    position: absolute;
    right: 100%;
    margin-right: .75rem;
    white-space: nowrap;
    border-radius: .5rem;
    background: #0f172a;
    padding: .5rem .75rem;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.25rem;
    color: #fff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, .25);
    opacity: 0;
    transition: opacity .2s ease;
}

@media (min-width: 640px) {
    .wa-fab:hover .wa-fab__label,
    .wa-fab:focus-visible .wa-fab__label {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-fab,
    .wa-fab__label {
        transition: none;
    }

    .wa-fab::before {
        animation: none;
    }
}

/* --- WhatsApp etkileşimli mesaj paneli --------------------------------------
   FAB'a tıklanınca açılan mini sohbet penceresi; yazılan metin wa.me
   bağlantısıyla WhatsApp'a aktarılır. JS yoksa [hidden] kalır, hiç görünmez. */
.wa-chat[hidden] {
    display: none;
}

.wa-chat {
    position: fixed;
    inset: 0;
    z-index: 1060;
}

.wa-chat__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(2px);
    animation: wa-chat-fade .2s ease;
}

.wa-chat__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    max-height: min(85vh, 560px);
    border-radius: 1rem 1rem 0 0;
    background: #fff;
    box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .3);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    animation: wa-chat-up .25s ease;
}

@media (min-width: 640px) {
    .wa-chat__panel {
        left: auto;
        right: 1.75rem;
        bottom: 6.5rem;
        width: 22rem;
        border-radius: 1rem;
        animation: wa-chat-pop .2s ease;
    }
}

.wa-chat__header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .875rem 1rem;
    background: #25d366;
    color: #fff;
    border-radius: 1rem 1rem 0 0;
}

@media (min-width: 640px) {
    .wa-chat__header {
        border-radius: 1rem 1rem 0 0;
    }
}

.wa-chat__avatar {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .2);
}

.wa-chat__avatar svg {
    width: 1.25rem;
    height: 1.25rem;
}

.wa-chat__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wa-chat__title {
    font-size: .9375rem;
    line-height: 1.25rem;
}

.wa-chat__status {
    font-size: .75rem;
    opacity: .9;
}

.wa-chat__close {
    margin-left: auto;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s ease;
}

.wa-chat__close:hover {
    background: rgba(255, 255, 255, .3);
}

.wa-chat__close svg {
    width: 1.125rem;
    height: 1.125rem;
}

.wa-chat__body {
    padding: 1rem;
    overflow-y: auto;
}

.wa-chat__label {
    display: block;
    margin-bottom: .375rem;
    font-size: .8125rem;
    font-weight: 600;
    color: #334155;
}

.wa-chat__textarea {
    display: block;
    width: 100%;
    resize: vertical;
    border: 1px solid #cbd5e1;
    border-radius: .5rem;
    background: #f8fafc;
    color: #0f172a;
    padding: .625rem .75rem;
    font-size: .9375rem;
    line-height: 1.5;
    font-family: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.wa-chat__textarea:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, .2);
    background: #fff;
}

.wa-chat__footer {
    padding: 0 1rem 1rem;
}

.wa-chat__send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    min-height: 2.75rem;
    border: 0;
    border-radius: .5rem;
    background: #25d366;
    color: #fff;
    font-size: .9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.wa-chat__send:hover {
    background: #1fbe5a;
}

.wa-chat__send:active {
    transform: scale(.98);
}

.wa-chat__send svg {
    width: 1.125rem;
    height: 1.125rem;
}

@keyframes wa-chat-fade {
    from {
        opacity: 0;
    }
}

@keyframes wa-chat-up {
    from {
        transform: translateY(1.5rem);
        opacity: 0;
    }
}

@keyframes wa-chat-pop {
    from {
        transform: scale(.95) translateY(.5rem);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-chat__backdrop,
    .wa-chat__panel {
        animation: none;
    }
}

/* --- Erişilebilirlik ------------------------------------------------------- */

/* Klavye ile atlanan "İçeriğe atla" bağlantısı: odak gelene kadar gizli */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 30000;
    border-radius: 0 0 .5rem 0;
    background: #234982;
    color: #fff;
    padding: .75rem 1.25rem;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

/* Görünür klavye odak halkası (şablonda genel görünür odak yoktu) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--primary-color, #234982);
    outline-offset: 2px;
}

/* Hamburger menü: <button> olarak çalışır, tıklama alanı 48px'e çıkar
   (görsel boyut değişmez) */
#menu-btn {
    position: relative;
    background: none;
    border: 0;
    appearance: none;
}

#menu-btn::after {
    content: '';
    position: absolute;
    inset: -8px;
}

/* Sosyal ikonlar: aynı görsel boyut, genişletilmiş dokunma alanı */
.social-icons a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icons a::after {
    content: '';
    position: absolute;
    inset: -12px;
}

/* --- Küçük görsel/teknik düzeltmeler --------------------------------------- */

/* Mobil adres çubuğu zıplamasına karşı tam ekran hero (destekleyici
   tarayıcılarda 100vh yerine dinamik yükseklik) */
@supports (min-height: 100dvh) {
    .v-center {
        min-height: 100dvh;
    }
}

/* Hero Swiper yükseklik zinciri: .swiper-inner position:absolute olduğu için
   slide'lar normal akışta yükseklik vermez; .swiper'in yüksekliği hiçbir
   kuralda tanımlı olmadığından auto → 0 kalır ve .v-center içindeki
   align-items:center child'ı stretch etmediği için hero tamamen boş görünür.
   height ile wrapper/slide/inner zinciri (%100) çözümlenir; dvh, mobil
   adres çubuğu için .v-center ile eşleştirilir. */
/* style.css'de [.swiper, .sw-overlay] { height:100% !important } var; .v-center'in
   yüksekliği definite (min-height) olmadığından %100 çözülemiyor ve slide'lar
   0px'e düşüyor. Bu nedenle !important ile %100'ün ÖNÜNE geçilir. */
.v-center > .swiper {
    width: 100%;
    height: 100vh !important;
}

@supports (min-height: 100dvh) {
    .v-center > .swiper {
        height: 100dvh !important;
    }
}

/* --- SSS (FAQ) akordeonu ----------------------------------------------------
   style.css'te genel `details { display:none }` kuralı bulunduğu için native
   <details> akordeonu burada görünür hâle getirilir. Alpine/JS gerekmez. */
.faq-accordion details {
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.faq-accordion summary {
    list-style: none;
    cursor: pointer;
}

.faq-accordion summary::-webkit-details-marker {
    display: none;
}

.faq-accordion summary::marker {
    content: '';
}

/* Tema ok işareti kapalıyken aşağı, açıkken yukarı bakar. */
.faq-accordion details[open] > summary.accordion-section-title::before {
    content: "\f106";
}

.faq-accordion .accordion-section-content {
    display: none;
}

.faq-accordion details[open] > .accordion-section-content {
    display: block;
}

/* --- Zengin Metin (Rich-text) & Taşma Koruması -----------------------------
   Referans detay, hizmet detay ve sözleşmelerdeki serbest metin alanlarının
   mobilde ve masaüstünde container dışına taşmasını engeller. */
.rich-text {
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.rich-text img,
.rich-text iframe,
.rich-text video {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
}

.rich-text table {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
    display: block;
}

.rich-text pre,
.rich-text code {
    white-space: pre-wrap;
    word-break: break-all;
}

/* --- Referans Galeri Görselleri (Responsive & Lightbox) -------------------- */
.gallery-image-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background-color: #f3f4f6;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform .3s ease, box-shadow .3s ease;
}

.gallery-image-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.gallery-image-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.gallery-image-card:hover img {
    transform: scale(1.05);
}

.gallery-image-card .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(35, 73, 130, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}

.gallery-image-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-image-card .gallery-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: #234982;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transform: scale(0.8);
    transition: transform .3s ease;
}

.gallery-image-card:hover .gallery-icon {
    transform: scale(1);
}

/* --- Tema Uyumlu Fotoğraf Galerisi (Reference & Service Detail) ------------- */
.gallery-photo-item {
    background-color: #f8fafc;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-photo-item img {
    transition: transform .4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-photo-item:hover img {
    transform: scale(1.06);
}

.gallery-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(35, 73, 130, 0.85) 0%, rgba(35, 73, 130, 0.3) 50%, rgba(35, 73, 130, 0.1) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity .3s ease;
}

.gallery-photo-item:hover .gallery-photo-overlay {
    opacity: 1;
}

.gallery-zoom-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    color: #234982;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(10px) scale(0.9);
    transition: transform .3s ease;
}

.gallery-photo-item:hover .gallery-zoom-btn {
    transform: translateY(0) scale(1);
}

.gallery-badge-txt {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* --- Modern İletişim Formu (Theme Aesthetic) ------------------------------- */
.modern-contact-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .modern-contact-card {
        padding: 24px 16px;
    }
}

.modern-form-group {
    margin-bottom: 20px;
}

.modern-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.modern-form-label i {
    color: #234982;
    font-size: 16px;
}

.modern-input {
    width: 100%;
    border-radius: 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    background-color: #f8fafc !important;
    color: #1e293b !important;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease !important;
}

.modern-input:focus {
    background-color: #ffffff !important;
    border-color: #234982 !important;
    box-shadow: 0 0 0 4px rgba(35, 73, 130, 0.12) !important;
    outline: none !important;
}

.modern-kvkk-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

