/* =========================================================
   Kalyon Balık · ortak stil (tüm sayfalar)
   Sayfa CSS'leri buradaki sınıfları yeniden tanımlamaz.
   ========================================================= */

/* ---------- Değişkenler ---------- */
:root {
    --lacivert: #0A2342;
    --mavi: #175676;
    --acik-mavi: #4BA3E3;
    --beyaz: #fff;
    --gri: #F4F7F6;
    --metin: #22303c;
    --metin-soluk: #5b6b79;
    --cizgi: #dfe6ea;
    --yaricap: 14px;
    --golge: 0 10px 30px rgba(10,35,66,.10);
    --baslik-yuk: 72px;
    --kap: 1180px;

    /* yardımcılar (ortak.css içi) */
    --lacivert-koyu: #071a33;
    --acik-metin: #a9cdea;
    --yazi: "Playfair Display", Georgia, "Times New Roman", serif;
    --gecis: .25s ease;
}

/* ---------- Sıfırlama ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--baslik-yuk) + 16px);
}

body {
    min-height: 100svh;
    padding-top: var(--baslik-yuk);
    font-family: var(--yazi);
    font-size: 1.0625rem;          /* 17px */
    line-height: 1.75;
    color: var(--metin);
    background: var(--beyaz);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
p, h1, h2, h3, h4, h5, h6, li, dd, dt { overflow-wrap: break-word; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

/* ---------- Dil ---------- */
html:not([data-dil]) .lang-en,
html[data-dil="tr"] .lang-en,
html[data-dil="en"] .lang-tr { display: none !important; }

/* ---------- Tipografi ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--yazi);
    font-weight: 500;
    line-height: 1.2;
    color: var(--lacivert);
    letter-spacing: -.005em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { text-wrap: pretty; }
p + p { margin-top: 1em; }
strong, b { font-weight: 600; }
em, i { font-style: italic; }

a { color: var(--mavi); text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color var(--gecis); }
a:hover { color: var(--lacivert); }

::selection { background: var(--acik-mavi); color: var(--beyaz); }

/* ---------- Odak ---------- */
:focus { outline: none; }
:focus-visible {
    outline: 3px solid var(--acik-mavi);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- İçeriğe geç ---------- */
.atla {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 2000;
    padding: 12px 18px;
    background: var(--beyaz);
    color: var(--lacivert);
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: var(--golge);
    transform: translateY(-160%);
    transition: transform var(--gecis);
}
.atla:focus, .atla:focus-visible { transform: none; }

/* ---------- Yerleşim ---------- */
.kap {
    width: 100%;
    max-width: var(--kap);
    margin-inline: auto;
    padding-inline: 20px;
}

.bolum { padding-block: clamp(48px, 8vw, 96px); }

.bolum-koyu {
    background: var(--lacivert);
    color: rgba(255,255,255,.88);
}
.bolum-koyu h1, .bolum-koyu h2, .bolum-koyu h3, .bolum-koyu h4 { color: var(--beyaz); }
.bolum-koyu a:not(.btn) { color: var(--beyaz); }
.bolum-koyu a:not(.btn):hover { color: var(--acik-metin); }

.bolum-baslik {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    margin-bottom: clamp(16px, 2.4vw, 24px);
}

.ust-yazi {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: .8125rem;          /* 13px */
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mavi);
}
.ust-yazi::before {
    content: "";
    flex: none;
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: .7;
}
.bolum-koyu .ust-yazi,
.sayfa-basi .ust-yazi,
.site-alt .ust-yazi { color: var(--acik-metin); }

.izgara-2, .izgara-3 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(20px, 3vw, 32px);
}
@media (min-width: 760px) {
    .izgara-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .izgara-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Düğmeler ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 26px;
    border: 1.5px solid transparent;
    border-radius: 6px;
    font-family: var(--yazi);
    font-size: .9375rem;          /* 15px */
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--gecis), color var(--gecis), border-color var(--gecis), box-shadow var(--gecis);
    -webkit-tap-highlight-color: transparent;
}

.btn-birincil { background: var(--lacivert); border-color: var(--lacivert); color: var(--beyaz); }
.btn-birincil:hover { background: var(--mavi); border-color: var(--mavi); color: var(--beyaz); }

.btn-cizgi { background: transparent; border-color: currentColor; color: var(--lacivert); }
.btn-cizgi:hover { background: var(--lacivert); border-color: var(--lacivert); color: var(--beyaz); }
.bolum-koyu .btn-cizgi, .sayfa-basi .btn-cizgi { color: var(--beyaz); }
.bolum-koyu .btn-cizgi:hover, .sayfa-basi .btn-cizgi:hover { background: var(--beyaz); border-color: var(--beyaz); color: var(--lacivert); }

.btn-acik { background: var(--beyaz); border-color: var(--beyaz); color: var(--lacivert); }
.btn-acik:hover { background: transparent; border-color: var(--beyaz); color: var(--beyaz); }

.btn-ara { background: var(--mavi); border-color: var(--mavi); color: var(--beyaz); }
.btn-ara:hover { background: var(--acik-mavi); border-color: var(--acik-mavi); color: var(--lacivert); }
.btn-ara::before {
    content: "";
    flex: none;
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Kart ---------- */
.kart {
    background: var(--beyaz);
    color: var(--metin);
    border-radius: var(--yaricap);
    box-shadow: var(--golge);
    padding: clamp(20px, 3vw, 32px);
}
.kart h2, .kart h3, .kart h4 { color: var(--lacivert); }
.kart a:not(.btn) { color: var(--mavi); }

/* ---------- İç sayfa başı ---------- */
.sayfa-basi {
    position: relative;
    padding: clamp(56px, 9vw, 104px) 20px clamp(48px, 7vw, 80px);
    background: var(--lacivert);
    color: rgba(255,255,255,.85);
    text-align: center;
    overflow: hidden;
}
.sayfa-basi::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 64px;
    height: 2px;
    background: var(--acik-mavi);
    transform: translateX(-50%);
    opacity: .7;
}
.sayfa-basi h1 { color: var(--beyaz); margin-bottom: 14px; }
.sayfa-basi p { max-width: 640px; margin-inline: auto; font-size: clamp(1rem, 1.6vw, 1.125rem); }
.sayfa-basi .ust-yazi { justify-content: center; }
.sayfa-basi .ust-yazi::after {
    content: "";
    flex: none;
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: .7;
}

/* Fotoğraflı sayfa başı (menü, iletişim): fotoğraf arkada, üstünde lacivert katman */
.sayfa-basi-gorselli { isolation: isolate; }
.sayfa-basi-gorsel {
    position: absolute;
    inset: 0;
    z-index: -2;
    margin: 0;
}
.sayfa-basi-gorsel img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}
.sayfa-basi-gorselli::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10,35,66,.80) 0%, rgba(10,35,66,.66) 45%, rgba(10,35,66,.86) 100%);
}

/* ---------- Belirme ---------- */
.js .belir {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
}
.js .belir.gorundu { opacity: 1; transform: none; }

/* ---------- Site başlığı ---------- */
.site-baslik {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    height: var(--baslik-yuk);
    padding-inline: max(16px, calc((100% - var(--kap)) / 2 + 20px));
    background: var(--lacivert);
    color: var(--beyaz);
    transition: box-shadow var(--gecis);
}
.site-baslik.kaydirildi { box-shadow: 0 6px 24px rgba(4,15,30,.28); }

.site-logo {
    display: inline-flex;
    align-items: center;
    flex: none;
    min-height: 44px;
    margin-right: auto;
    border-radius: 4px;
}
/* logo-kucuk.png geniş saydam boşluk içerir; yazı kısmı kırpılarak gösterilir */
.site-logo img,
.site-alt-kol img {
    width: 110px;
    height: 44px;
    object-fit: cover;
    object-position: 50% 47%;
}

.site-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.site-nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    color: var(--beyaz);
    font-size: .9375rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}
.site-nav a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 8px;
    height: 1px;
    background: var(--acik-mavi);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--gecis);
}
.site-nav a:hover { color: var(--acik-metin); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--beyaz); }

.dil-secici { display: flex; align-items: center; flex: none; }
.dil-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0 6px;
    color: rgba(255,255,255,.55);
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: .1em;
    border-radius: 4px;
    transition: color var(--gecis);
}
.dil-btn + .dil-btn { border-left: 1px solid rgba(255,255,255,.2); border-radius: 0 4px 4px 0; }
.dil-btn:hover { color: var(--beyaz); }
.dil-btn[aria-pressed="true"] { color: var(--beyaz); text-decoration: underline; text-decoration-color: var(--acik-mavi); text-underline-offset: .35em; }

.baslik-ara { flex: none; min-height: 44px; padding: 8px 18px; font-size: .8125rem; }
.baslik-ara::before { width: 16px; height: 16px; }

.hamburger {
    display: none;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    border-radius: 6px;
    -webkit-tap-highlight-color: transparent;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--beyaz);
    border-radius: 2px;
    transition: transform var(--gecis), opacity var(--gecis);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* masaüstü: logo solda, menü ortada */
@media (min-width: 860px) {
    .site-baslik { gap: 16px; }
    .site-logo { margin-right: 0; }
    .site-nav { margin-inline: auto; }
}
@media (min-width: 860px) and (max-width: 1080px) {
    .site-baslik { gap: 10px; }
    .site-nav ul { gap: 0; }
    .site-nav a { padding: 0 8px; font-size: .875rem; letter-spacing: .06em; }
    .site-nav a::after { left: 8px; right: 8px; }
    .baslik-ara { padding: 8px 14px; letter-spacing: .05em; }
}

/* mobil: hamburger + açılır panel */
@media (max-width: 859.98px) {
    .hamburger { display: flex; }

    .site-nav {
        position: fixed;
        top: var(--baslik-yuk);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        padding: 12px 20px calc(112px + env(safe-area-inset-bottom));
        background: var(--lacivert);
        border-top: 1px solid rgba(255,255,255,.1);
        overflow-y: auto;
        overscroll-behavior: contain;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity var(--gecis), transform var(--gecis), visibility 0s linear .25s;
    }
    .site-nav.acik {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: opacity var(--gecis), transform var(--gecis), visibility 0s;
    }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; max-width: 560px; margin-inline: auto; }
    .site-nav li { border-bottom: 1px solid rgba(255,255,255,.12); }
    .site-nav a {
        min-height: 60px;
        padding: 0 4px;
        font-size: 1.375rem;
        letter-spacing: .04em;
        text-transform: none;
    }
    .site-nav a::after { left: 4px; right: auto; width: 32px; bottom: 12px; }

    html.menu-acik, html.menu-acik body { overflow: hidden; }
}

/* dar ekran: başlıktaki Rezervasyon düğmesi menü panelinin altına taşınır */
@media (max-width: 519.98px) {
    .baslik-ara { display: none; }
    html.menu-acik .baslik-ara {
        display: flex;
        position: fixed;
        left: 20px;
        right: 20px;
        bottom: calc(24px + env(safe-area-inset-bottom));
        z-index: 1001;
        min-height: 52px;
        font-size: .9375rem;
    }
}
@media (max-width: 379.98px) {
    .site-baslik { gap: 4px; padding-inline: 12px; }
    .site-logo img { width: 96px; }
    .dil-btn { min-width: 44px; padding: 0 4px; }
}

/* betik yoksa: mobilde menü başlığın altında yatay şerit olarak görünür */
@media (max-width: 859.98px) {
    html:not(.js) .hamburger { display: none; }
    html:not(.js) body { padding-top: calc(var(--baslik-yuk) + 52px); }
    html:not(.js) .site-nav {
        top: var(--baslik-yuk);
        bottom: auto;
        height: 52px;
        padding: 0 12px;
        visibility: visible;
        opacity: 1;
        transform: none;
        overflow-x: auto;
    }
    html:not(.js) .site-nav ul { flex-direction: row; max-width: none; }
    html:not(.js) .site-nav li { border: 0; }
    html:not(.js) .site-nav a { min-height: 50px; font-size: 1rem; }
}

/* ---------- Site alt bilgisi ---------- */
.site-alt {
    background: var(--lacivert-koyu);
    color: rgba(255,255,255,.78);
    padding: clamp(48px, 7vw, 72px) 0 calc(clamp(32px, 5vw, 48px) + env(safe-area-inset-bottom));
    font-size: 1rem;
    line-height: 1.7;
}
.site-alt-ic {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    width: 100%;
    max-width: var(--kap);
    margin-inline: auto;
    padding-inline: 20px;
}
@media (min-width: 600px) { .site-alt-ic { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .site-alt-ic { grid-template-columns: 1.1fr 1fr 1.3fr 1fr; gap: 40px; } }

.site-alt-kol h2 {
    margin-bottom: 12px;
    color: var(--acik-metin);
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.site-alt-kol p + p { margin-top: 4px; }
.site-alt-kol img { margin: -4px 0 10px; }
.site-alt a { color: var(--beyaz); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.site-alt a:hover { color: var(--acik-metin); text-decoration: underline; }
.site-alt-kol p:has(> a) + p:has(> a) { margin-top: 0; }

/* ---------- Dalga geçiş perdesi (eski sitedeki çift katmanlı deniz dalgası) ----------
   Kapanış: js/ortak.js .gecis-perdesi öğesini oluşturur; site içi bağlantıya
   tıklanınca dalga alttan yükselip ekranı kaplar, sonra sayfa değişir.
   Açılış: yeni sayfanın <head>'indeki tek satırlık betik html'e .perde-gelis
   ekler; lacivert perde yukarı çekilerek içeriği açar. Açılış saf CSS
   animasyonudur, betik takılsa da kendiliğinden biter; içerik hiç gizlenmez. */
.gecis-perdesi {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: none;
    width: 100%;
    height: 140vh;
    background: var(--lacivert);
    pointer-events: none;
    transform: translateY(150vh);
}
.gecis-perdesi svg {
    position: absolute;
    left: 0;
    top: -138px;
    width: 100%;
    height: 140px;
}
.gecis-perdesi .dalga-arka { z-index: 1; }
.gecis-perdesi .dalga-on { z-index: 2; }
.gecis-perdesi.kapaniyor {
    display: block;
    pointer-events: auto;
    animation: perdeKapan .5s cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes perdeKapan {
    from { transform: translateY(150vh); }
    to { transform: translateY(0); }
}

html.perde-gelis body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 140vh;
    background: var(--lacivert);
    pointer-events: none;
    animation: perdeCekil .5s cubic-bezier(.4, 0, .2, 1) .05s both;
}
@keyframes perdeCekil {
    from { transform: translateY(0); }
    to { transform: translateY(-150vh); }
}

/* ---------- Balık imleci (eski sitedeki) ----------
   Yalnız gerçek fareli cihazda ve betik çalışınca: js/ortak.js öğeyi oluşturur
   ve html'e .balik-imlec-acik ekler. Betik yoksa normal imleç kalır. */
.balik-imlec {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10001;
    width: 38px;
    height: 38px;
    margin: -12px 0 0 -12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
    will-change: transform;
}
.balik-imlec[popover] { inset: 0 auto auto 0; overflow: visible; padding: 0; border: 0; background: none; }
.balik-imlec-ic {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: 12px 12px;
    transition: transform .2s ease;
}
.balik-imlec svg { width: 100%; height: 100%; transform: rotate(35deg); overflow: visible; }
.balik-imlec path {
    fill: var(--lacivert);
    stroke: rgba(255,255,255,.9);       /* lacivert zeminde (başlık, alt bilgi) kaybolmasın */
    stroke-width: 2.5;
    paint-order: stroke;
    transition: fill .3s ease;
}
.balik-imlec.ustunde .balik-imlec-ic { transform: scale(1.5); }
.balik-imlec.ustunde path { fill: var(--acik-mavi); }
html.balik-imlec-acik .balik-imlec.gorunur { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
    html.balik-imlec-acik,
    html.balik-imlec-acik body,
    html.balik-imlec-acik a,
    html.balik-imlec-acik button,
    html.balik-imlec-acik [role="button"],
    html.balik-imlec-acik label,
    html.balik-imlec-acik .menu-kart-dugme,
    html.balik-imlec-acik dialog { cursor: none !important; }
    /* yazı alanlarında normal metin imleci (balık o sırada gizlenir) */
    html.balik-imlec-acik input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
    html.balik-imlec-acik textarea,
    html.balik-imlec-acik select,
    html.balik-imlec-acik [contenteditable="true"] { cursor: auto !important; }
}
@media not all and (hover: hover) and (pointer: fine) {
    .balik-imlec { display: none !important; }
}

/* ---------- Hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }
    .js .belir { opacity: 1; transform: none; }
    .gecis-perdesi, html.perde-gelis body::after { display: none !important; }
}

/* ---------- Yazdırma ---------- */
@media print {
    body { padding-top: 0; }
    .site-baslik, .hamburger, .atla, .dil-secici, .gecis-perdesi, .balik-imlec { display: none !important; }
    html.perde-gelis body::after { display: none !important; }
    .bolum-koyu, .sayfa-basi, .site-alt { background: none; color: #000; }
    .bolum-koyu h1, .bolum-koyu h2, .sayfa-basi h1 { color: #000; }
}
