* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth; 
}

body {
    color: #222;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

header {
    background: #0b2c48;
    padding: 10px 0;
    position: sticky; 
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); 
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    border-radius: 15px;
}

.logo {
    height: 100px;
    width: auto;
    border-radius: 15px;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
    display: block;
    transition: height 0.3s ease;
}

nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #25d366;
}

.hero {
    position: relative;
    isolation: isolate; /* negatif z-index katmanları hero içinde kalsın */
    background: #222; /* görsel yüklenemezse yedek zemin */
    padding: 100px 0;
    text-align: center;
    color: #fff;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}

/* Görsel üzerindeki %65 siyah örtü */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: -1;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.buttons {
    margin-top: 25px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    margin: 5px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
}

.call {
    background: #0b2c48;
    color: #fff;
    border: 2px solid #0b2c48;
}

.call:hover {
    background: transparent;
    border: 2px solid #fff;
}

.whatsapp {
    background: #25d366;
    color: #0b2c48;
    border: 2px solid #25d366;
    /* zemin geçişi yok: yazı ve zemin birlikte değişir, ara karede kontrast düşmez */
    transition: transform 0.3s ease;
}

.whatsapp:hover {
    background: transparent;
    color: #fff; /* koyu örtü üzerinde */
    border: 2px solid #25d366;
}

/* WhatsApp Sabit Buton */
.wpstickty {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.wpstickty a {
    background-color: #25d366;
    color: #0b2c48;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s;
}

.wpstickty a:hover {
    transform: scale(1.1);
}

.section {
    padding: 80px 0;
    text-align: center;
}

.section h2 {
    margin-bottom: 40px;
    font-size: 28px;
    color: #0b2c48;
}

.section p {
    max-width: 800px;
    margin: auto;
    font-size: 1.1rem;
    color: #555;
}

.gray {
    background: #f4f6f8;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.3);
}

.card-img {
    width: 100%;
    aspect-ratio: 1 / 1; 
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.1); 
}

.card h3 {
    padding: 15px;
    font-size: 18px;
    text-align: center;
    color: #333;
}

.logopng {
    height: 100px;
    width: auto;
    display: block;
    margin: 0 auto 20px auto;
}

.reasons {
    list-style: none;
    font-size: 18px;
    max-width: 600px;
    margin: auto;
    text-align: left;
}

.reasons li {
    margin: 15px 0;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

footer {
    background: #0b2c48;
    color: #fff;
    text-align: center;
    padding: 20px;
}


@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        height: 70px;
    }

    nav a {
        margin: 0 10px;
        font-size: 14px;
    }

    .hero {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 26px;
    }
    
    .section {
        padding: 50px 0;
    }
}


.call-sticky {
    position: fixed;
    bottom: 20px;
    left: 20px; 
    z-index: 9999;
}

.call-sticky a {
    background-color: #0b2c48;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 2px solid #ffffff; 
}

.call-sticky a:hover {
    transform: scale(1.1);
}


@media (max-width: 768px) {
    .call-sticky {
        bottom: 15px;
        left: 15px;
    }
    .wpstickty {
        bottom: 15px;
        right: 15px;
    }
    .call-sticky a, .wpstickty a {
        padding: 10px 15px;
        font-size: 14px;
    }
    footer {
        padding-bottom: 80px; /* sabit butonlar footer yazısını örtmesin */
    }
}

/* Yorumlar Bölümü Tasarımı (Masaüstü) */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #0b2c48; /* Sitenizin ana lacivert rengi */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stars {
    font-size: 16px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.review-author {
    color: #0b2c48;
    font-weight: bold;
    font-size: 1rem;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: auto;
}

/* 📱 Mobil ve Tablet için Sağa-Sola Kaydırma Ayarları (Max 768px) */
@media (max-width: 768px) {
    .reviews-grid {
        display: flex; /* Grid yapısından yatay esnek yapıya geçiş */
        overflow-x: auto; /* Sağa sola kaydırmayı aktif et */
        scroll-snap-type: x mandatory; /* Kaydırırken kartların tam oturmasını sağla */
        scroll-behavior: smooth;
        padding: 20px 5px; /* Kart gölgelerinin kesilmemesi için iç boşluk */
        gap: 15px;
        
        /* Mobil tarayıcılarda çirkin duran scrollbar'ı gizle */
        -webkit-overflow-scrolling: touch;
    }
    
    .reviews-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari ve Opera için scrollbar gizleme */
    }

    .review-card {
        min-width: 280px; /* Kartların mobilde küçülmesini engelle */
        max-width: 300px;
        scroll-snap-align: center; /* Kartı kaydırınca ekrana ortala */
        padding: 20px;
    }
}

/* Yorum Kaynağı Bilgilendirme Yazısı */
.reviews-source {
    text-align: center;
    margin-top: 30px;
}

.reviews-source p {
    font-size: 0.9rem !important;
    color: #666 !important;
}

.reviews-source a {
    color: #0b2c48;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.reviews-source a:hover {
    color: #12722f; /* Üzerine gelindiğinde koyu yeşil (beyaz zeminde okunur) */
}

/* İletişim adresi */
#iletisim address {
    font-style: normal;
}

/* İkonlar (satır içi SVG) */
.icon {
    vertical-align: -0.125em;
    flex-shrink: 0;
}

/* Klavye odağı */
:focus-visible {
    outline: 3px solid #0b2c48;
    outline-offset: 3px;
}

header a:focus-visible,
.hero a:focus-visible {
    outline-color: #fff;
}

/* Sabit butonlar her zeminin üstünde durduğu için iki renkli halka */
.call-sticky a:focus-visible,
.wpstickty a:focus-visible {
    outline-offset: 2px;
    box-shadow: 0 0 0 7px #fff, 0 4px 12px rgba(0,0,0,0.3);
}

/* İçeriğe geç bağlantısı: yalnız odaklanınca görünür */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 10000;
    width: auto;
    height: auto;
    clip-path: none;
    padding: 10px 16px;
    border-radius: 6px;
    background: #fff;
    color: #0b2c48;
    font-weight: bold;
    outline: 3px solid #25d366;
    outline-offset: 0;
}

/* Çapa hedefleri yapışkan başlığın altında kalmasın (değerler başlık yüksekliği) */
main,
section[id] {
    scroll-margin-top: 120px;
}

@media (max-width: 768px) {
    main,
    section[id] {
        scroll-margin-top: 72px;
    }
}

main:focus {
    outline: none;
}

/* Hareket azaltma tercihi: yumuşak kaydırma, geçiş ve hover hareketleri kapalı */
@media (prefers-reduced-motion: reduce) {
    html,
    .reviews-grid {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }

    .btn:hover,
    .wpstickty a:hover,
    .call-sticky a:hover,
    .card:hover,
    .card:hover .card-img img,
    .review-card:hover {
        transform: none;
    }
}

/* ===== Faz 1 ===== */

/* Google puanı satırı */
.hero .rating {
    margin-top: 14px;
}

.rating a {
    display: inline-block;
    min-height: 44px;
    padding: 10px 8px;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rating-star {
    color: #ffc83d;
}

.rating-date {
    white-space: nowrap;
}

/* Dokunma alanları (en az 44px) */
nav a {
    display: inline-block;
    padding: 10px 0;
}

#iletisim p a,
.reviews-source a {
    display: inline-block;
    min-height: 44px;
    padding: 8px 6px;
    line-height: 28px;
}

.directions {
    color: #0b2c48;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Yorum gezinme düğmeleri: yalnız mobil (JavaScript ekler) */
.reviews-nav {
    display: none;
}

@media (max-width: 768px) {
    /* Kısa üst çubuk: logo solda, menü sağda, tek satır */
    .header {
        flex-direction: row;
        gap: 8px;
    }

    header {
        padding: 6px 0;
    }

    .logo {
        height: 60px;
        border-radius: 10px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    nav a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        margin: 0;
        padding: 0 7px;
    }

    .hero {
        padding: 36px 0 28px;
    }

    /* Hero düğmeleri ekrandayken sabit düğmeler gizlenir (sınıfı JavaScript ekler) */
    .hero-actions-visible .wpstickty,
    .hero-actions-visible .call-sticky {
        visibility: hidden;
    }

    /* Yorumlar: sıradaki kartın kenarı görünür */
    .reviews-grid {
        margin-top: 0;
        padding: 12px 5px;
        gap: 12px;
        scroll-padding-left: 5px;
    }

    .review-card {
        flex: 0 0 calc(100% - 40px);
        min-width: 0;
        max-width: none;
        scroll-snap-align: start;
    }

    .reviews-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-top: 8px;
    }

    .reviews-nav button {
        min-width: 96px;
        min-height: 44px;
        border: 2px solid #0b2c48;
        border-radius: 22px;
        background: #fff;
        color: #0b2c48;
        font-size: 15px;
        font-weight: bold;
        cursor: pointer;
    }

    .reviews-nav button[aria-disabled="true"] {
        border-color: #767676;
        color: #5f5f5f;
        cursor: default;
    }

    .reviews-count {
        min-width: 52px;
        font-size: 15px;
        color: #444;
    }

    .reviews-source {
        margin-top: 12px;
    }
}

/* Telefon: hizmet kartları iki sütun */
@media (max-width: 600px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .card {
        border-radius: 12px;
    }

    .card-img {
        aspect-ratio: 4 / 3;
    }

    .card h3 {
        padding: 10px 6px;
        font-size: 15px;
        line-height: 1.35;
    }
}

/* Sabit düğmeler de en az 44px */
.call-sticky a,
.wpstickty a {
    min-height: 44px;
}

@media (max-width: 768px) {
    /* Hero düğmeleri yan yana sığsın */
    .hero .buttons {
        margin-top: 20px;
    }

    .hero .btn {
        margin: 4px 3px;
        padding: 12px 14px;
    }

    /* Kısa yorumlarda metin yıldızların hemen altında dursun */
    .review-card {
        justify-content: flex-start;
    }

    /* ".section p" kuralındaki otomatik boşluk metni ortalıyordu */
    .review-card .review-text {
        margin: 0 0 15px;
    }
}
