/* ===========================================================
   Tekne Ustası — modern marine kartvizit sitesi
   Palet: derin marine mavi + beyaz (logo: mavi zemin / beyaz)
   Tipografi: Space Grotesk (başlık) + Inter (gövde)
   Düzen: split hero (sol yazı / sağ görsel), çizgi SVG ikonlar.
   Mobil-öncelikli, taşma korumalı, bağımlılıksız.
   =========================================================== */

:root {
  --blue:    #0a2c4d;   /* derin marine mavi (logo zemini) */
  --blue-2:  #0e3c66;
  --blue-3:  #14598a;   /* deniz mavisi */
  --azure:   #2f87c4;   /* parlak aksan */
  --azure-2: #5aa6d8;
  --ink:     #112a3d;   /* ana metin (beyaz üstü) */
  --muted:   #5d7488;
  --bg:      #ffffff;
  --bg-soft: #f3f8fc;   /* açık mavi alternatif bölüm */
  --line:    #e4edf4;
  --white-80:rgba(255,255,255,.84);
  --white-60:rgba(255,255,255,.62);
  --wa:      #25d366;
  --radius:  16px;
  --radius-sm: 11px;
  --shadow:  0 20px 55px rgba(10, 44, 77, .15);
  --shadow-sm: 0 6px 22px rgba(10, 44, 77, .07);
  --maxw:    1180px;
  --display: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  --sans:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }   /* hidden attribute her zaman gizlesin (.btn vb. dahil) */

html, body { max-width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-break: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; color: var(--blue); letter-spacing: -.01em; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-sm);
  font-family: var(--sans); font-weight: 600; font-size: .85rem; letter-spacing: .01em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-2); }
.btn-light { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: var(--shadow-sm); }
.btn-wa:hover { background: #1fb858; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--blue); }
.ico { font-size: 1.05em; display: inline-flex; }

/* ---------- Marka / logo ---------- */
.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.brand-logo { height: 50px; width: auto; display: block; }
@media (max-width: 560px) { .brand-logo { height: 42px; } }

/* footer'da logo beyaz kart içinde (lacivert zeminde beyaz arka plan) */
.footer-logo {
  display: inline-grid; place-items: center;
  background: #fff; border-radius: 16px; padding: 12px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.footer-logo img { height: 64px; width: auto; display: block; }

/* ---------- Üst bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem clamp(.9rem, 4vw, 2.4rem);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topnav { display: none; gap: 1.7rem; }
.topnav a {
  font-family: var(--sans); font-size: .82rem; font-weight: 500; color: var(--muted);
  padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.topnav a:hover { color: var(--blue); border-bottom-color: var(--azure); }
.topbar-right { display: flex; align-items: center; gap: .5rem; }
.topbar-wa { padding: .6rem 1rem; font-size: .8rem; }

/* Dil seçici */
.lang-switch {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .4rem .55rem .4rem .7rem;
}
.lang-globe { font-size: .9rem; line-height: 1; opacity: .8; }
#lang-select {
  border: 0; background: transparent; font-family: var(--sans);
  font-size: .82rem; font-weight: 500; color: var(--blue); cursor: pointer; max-width: 8.5rem;
}
#lang-select:focus { outline: none; }

@media (min-width: 900px) { .topnav { display: flex; } }
/* Mobil/tablet (<900px): üst bardaki WhatsApp'ı gizle — sabit fab-wa zaten var
   (hem dar ekran taşmasını hem mükerrer butonu çözer) */
@media (max-width: 899px) { .topbar-wa { display: none; } }
.brand { min-width: 0; }
.brand-logo { max-width: 100%; }
/* Dar ekran: uzun çevirili butonlar sığsın diye sarmalanabilsin + hero başlık küçülsün */
@media (max-width: 560px) {
  .btn { white-space: normal; }
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  #lang-select { max-width: 6.5rem; }
}

/* ===========================================================
   HERO — split: sol yazı / sağ görsel (beyaz zemin)
   =========================================================== */
.hero { position: relative; background: var(--bg); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 420px at 88% -20%, rgba(47,135,196,.12), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.1rem, 4vw, 2.4rem) clamp(3rem, 8vw, 5.5rem);
  display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; }
}
/* grid öğelerinin min-content'i kolonu viewport'tan geniş yapmasın (yatay taşma fix) */
.hero-text, .hero-visual { min-width: 0; }

.hero-eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; font-weight: 600; color: var(--azure); }
.hero-title { font-family: var(--display); color: var(--blue); font-weight: 700; font-size: clamp(2.4rem, 6.5vw, 4.2rem); line-height: 1.04; margin: 1rem 0 1.1rem; letter-spacing: -.02em; }
.hero-sub { max-width: 520px; font-size: clamp(1rem, 2.2vw, 1.14rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; }
.hero-badges li { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hero-badges strong { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: var(--blue); letter-spacing: -.02em; margin-bottom: .05rem; }

/* sağ görsel paneli (gerçek foto gelene kadar mavi gradient + tekne çizimi) */
.hero-visual { width: 100%; }
.hero-photo {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3.1; border-radius: 22px;
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-2) 50%, var(--blue-3) 120%);
  background-size: cover; background-position: center;
  display: grid; place-items: center; color: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}
.hero-photo::after {  /* hafif doku */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 15%, rgba(255,255,255,.12), transparent 45%);
  pointer-events: none;
}
.hero-boat { width: 72%; max-width: 360px; height: auto; }
.hero-logo { width: 78%; max-width: 380px; height: auto; }
/* gerçek fotoğraf eklenince (.hero-photo'ya inline background-image) çizim/logo gizlenir */
.hero-photo[style] .hero-boat, .hero-photo[style] .hero-logo { display: none; }

/* ---------- Genel section ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 8vw, 5.5rem) clamp(1.1rem, 4vw, 2.4rem); }
.section-alt { max-width: none; background: var(--bg-soft); padding-left: 0; padding-right: 0; }
/* tam-genişlik arka plan ama içerik diğer bölümlerle aynı hizada (sola yaslı başlık) */
.section-alt .section-inner {
  max-width: var(--maxw); margin-left: auto; margin-right: auto;
  padding-left: clamp(1.1rem, 4vw, 2.4rem); padding-right: clamp(1.1rem, 4vw, 2.4rem);
}
.section-head { text-align: left; margin-bottom: 2.4rem; max-width: 640px; }
.section-head::before { content: ""; display: block; width: 46px; height: 3px; background: var(--azure); border-radius: 3px; margin-bottom: 1.1rem; }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin-top: .55rem; font-size: 1.02rem; }

/* ---------- Hizmetler ---------- */
.services-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .services-grid { grid-template-columns: 1fr 1fr 1fr; } }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d6e6f1; }
.service-ico {
  width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(150deg, #eaf3fa, #dceaf5); color: var(--blue); margin-bottom: 1.1rem;
}
.service-ico svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.service-card p { color: var(--muted); font-size: .94rem; }

/* ---------- Tekne kartları ---------- */
.boats-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .boats-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .boats-grid { grid-template-columns: 1fr 1fr 1fr; } }
.loading { text-align: center; color: var(--muted); grid-column: 1 / -1; padding: 2.5rem; }

.boat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.boat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.boat-card:hover .boat-media img { transform: scale(1.05); }
.boat-media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(150deg, #eaf3fa, #d6e6f1); overflow: hidden; }
.boat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.boat-media.placeholder { display: grid; place-items: center; color: #9fc3dc; }
.boat-media.placeholder svg { width: 64px; height: 64px; }

/* görsel sarmalayıcı + diagonal SATILDI kuşağı */
.boat-media-wrap { position: relative; overflow: hidden; }
.boat-sash {
  position: absolute; top: 16px; right: -54px; z-index: 2;
  transform: rotate(45deg);
  background: #d8392f; color: #fff; font-family: var(--sans);
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: .42rem 4rem; box-shadow: 0 4px 12px rgba(0,0,0,.28);
  pointer-events: none;
}
/* satılmış kart: hafif arşiv/referans hissi */
.boat-card--sold .boat-media img { filter: saturate(.85); }
.boat-card--sold .boat-media-wrap::after {
  content: ""; position: absolute; inset: 0; background: rgba(10,44,77,.14); pointer-events: none;
}

.boat-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.boat-title { font-family: var(--display); font-size: 1.2rem; font-weight: 600; color: var(--blue); line-height: 1.18; letter-spacing: -.01em; }
.boat-price { font-family: var(--sans); font-size: 1.1rem; font-weight: 700; color: var(--azure); }
.boat-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .84rem; margin-top: auto; padding-top: .5rem; border-top: 1px solid var(--line); }
.boat-meta span { display: inline-flex; gap: .32rem; align-items: center; }
.boat-meta svg { width: 14px; height: 14px; flex: none; opacity: .75; }

/* ---------- İletişim ---------- */
.contact-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(188px, 1fr)); }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.2rem; text-align: center; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .4rem; align-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.contact-ico {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, #eaf3fa, #dceaf5); color: var(--blue); margin-bottom: .3rem;
}
.contact-ico svg { width: 22px; height: 22px; }
.contact-label { font-family: var(--sans); font-weight: 600; color: var(--blue); font-size: .92rem; }
.contact-val { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.footer { background: var(--blue); color: var(--white-80); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 3rem clamp(1.1rem, 4vw, 2.4rem);
  display: flex; flex-direction: column; align-items: center; gap: .7rem; text-align: center;
}
.footer .brand-badge { background: rgba(255,255,255,.12); }
.footer p { font-size: .95rem; }
.footer strong { color: #fff; font-weight: 700; font-family: var(--display); }
.footer .muted { color: var(--white-60); font-size: .88rem; }
.footer-legal { color: rgba(255,255,255,.42); font-size: .74rem; max-width: 560px; line-height: 1.5; }
.footer .btn { margin-top: 1rem; }

/* ---------- Mobil sabit WhatsApp ---------- */
.fab-wa {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; font-size: 1.6rem;
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37,211,102,.5);
  transition: transform .18s ease;
}
.fab-wa:hover { transform: scale(1.06); }
@media (min-width: 900px) { .fab-wa { display: none; } }

/* ===========================================================
   İlan detay görünümü
   =========================================================== */
.detail-wrap { max-width: var(--maxw); margin: 0 auto; padding: clamp(1.4rem, 4vw, 2.6rem) clamp(1.1rem, 4vw, 2.4rem); }
.detail-back { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--azure); margin-bottom: 1.4rem; }
.detail-back:hover { color: var(--blue); }
.detail-grid { display: grid; gap: 1.8rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1.25fr 1fr; align-items: start; } }

.gallery { display: flex; flex-direction: column; gap: .7rem; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: linear-gradient(150deg, #eaf3fa, #d6e6f1); box-shadow: var(--shadow-sm); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main.placeholder { display: grid; place-items: center; color: #9fc3dc; }
.gallery-main.placeholder svg { width: 96px; height: 96px; }
.gallery-thumbs { display: flex; gap: .55rem; flex-wrap: wrap; }
.gallery-thumbs img { width: 82px; height: 62px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; opacity: .75; transition: opacity .18s ease, border-color .18s ease; }
.gallery-thumbs img:hover { opacity: 1; }
.gallery-thumbs img.active { border-color: var(--azure); opacity: 1; }

.detail-info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.detail-info h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -.02em; }
.detail-price { font-family: var(--sans); font-size: 1.5rem; font-weight: 700; color: var(--azure); margin: .5rem 0 1.3rem; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 1.4rem; }
.spec-table th, .spec-table td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-table th { color: var(--muted); font-weight: 400; width: 42%; }
.spec-table td { color: var(--ink); font-weight: 600; }
.detail-desc { color: var(--ink); white-space: pre-line; margin-bottom: 1.4rem; }
.detail-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.detail-tag { background: var(--bg-soft); color: var(--blue-2); padding: .4rem .85rem; border-radius: 999px; font-size: .8rem; font-weight: 500; border: 1px solid var(--line); }
.detail-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.detail-sahibinden { display: inline-flex; align-items: center; gap: .5rem; background: #ffe800; color: #1f1f1f; border-radius: var(--radius-sm); padding: .85rem 1.4rem; font-family: var(--sans); font-weight: 700; font-size: .85rem; transition: transform .18s ease; }
.detail-sahibinden:hover { transform: translateY(-2px); }

.notfound { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.notfound h2 { margin-bottom: .5rem; }

/* ===========================================================
   Hizmet detay modalı (mobil/tablet/web uyumlu, erişilebilir)
   =========================================================== */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,44,77,.55); backdrop-filter: blur(3px); animation: mdFade .2s ease; }
.modal-dialog {
  position: relative; z-index: 1; width: 100%; max-width: 540px; max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: 18px; padding: 2rem clamp(1.2rem, 5vw, 2.2rem);
  box-shadow: var(--shadow); animation: mdPop .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes mdFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes mdPop { from { opacity: 0; transform: translateY(12px) scale(.98) } to { opacity: 1; transform: none } }
.modal-close {
  position: absolute; top: .7rem; right: .8rem; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: var(--bg-soft); color: var(--blue); font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .15s ease;
}
.modal-close:hover { background: #e1ecf5; }
.modal-ico { width: 60px; height: 60px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(150deg, #eaf3fa, #dceaf5); color: var(--blue); margin-bottom: 1rem; }
.modal-ico svg { width: 30px; height: 30px; }
.modal-title { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: .7rem; padding-right: 2rem; }
.modal-body { color: var(--muted); font-size: 1rem; line-height: 1.7; margin-bottom: 1.5rem; }
.modal-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
body.modal-open { overflow: hidden; }
/* Mobilde alttan açılan sheet */
@media (max-width: 560px) {
  .modal { padding: 0; place-items: end stretch; }
  .modal-dialog { max-width: none; max-height: 92vh; border-radius: 20px 20px 0 0; animation: mdSheet .25s ease; }
}
@keyframes mdSheet { from { transform: translateY(100%) } to { transform: none } }
@media (prefers-reduced-motion: reduce) { .modal-backdrop, .modal-dialog { animation: none; } }
