/* ==========================================================================
   Onan Sigorta — style.css
   Tek dosya, derleme adımı yok. Renkler logodan örneklenmiştir.
   ========================================================================== */

/* --- 1. Değişkenler ------------------------------------------------------ */
:root {
  --teal:       #28C1BC;   /* ana marka rengi */
  --teal-600:   #17A29D;
  --teal-700:   #0E7C78;   /* beyaz üstünde okunabilir teal (AA) */
  --teal-800:   #0A5F5C;
  --teal-50:    #EAF9F8;

  --ink:        #202423;
  --ink-800:    #2E3538;
  --body:       #4A5560;
  --muted:      #6B7680;
  --line:       #E3E9EA;
  --bg:         #FFFFFF;
  --bg-soft:    #F5F8F9;
  --hata:       #C0392B;

  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 1px 2px rgba(32,36,35,.05), 0 8px 24px rgba(32,36,35,.06);
  --shadow-lg:  0 2px 4px rgba(32,36,35,.06), 0 18px 44px rgba(32,36,35,.11);

  --wrap:       1140px;
  --gutter:     20px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

/* --- 2. Temel ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 750; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.15rem); }
h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: -.005em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-800); }

img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .35em; }

:focus-visible { outline: 3px solid var(--teal-600); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.lead { font-size: 1.12rem; color: var(--muted); }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0; text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- 3. Butonlar --------------------------------------------------------- */
.btn {
  --btn-bg: var(--teal); --btn-fg: var(--ink); --btn-bd: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8rem 1.4rem;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  border-radius: 999px; font: inherit; font-weight: 650; font-size: .97rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(23,162,157,.28); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--ghost  { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--teal); box-shadow: none; background: var(--teal-50); }
.btn--lg { padding: .95rem 1.75rem; font-size: 1.02rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* --- 4. Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.93);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 74px; }

.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.logo-text {
  font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--ink); line-height: 1; white-space: nowrap;
}
.logo-text span { font-weight: 500; color: var(--muted); }

.site-nav ul { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block; padding: .55rem .8rem; border-radius: 8px;
  color: var(--ink-800); font-weight: 550; font-size: .96rem; text-decoration: none;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.site-nav a[aria-current] { color: var(--teal-700); background: var(--teal-50); }

@media (max-width: 720px) {
  .header-inner { min-height: 62px; }
  .site-nav { display: none; }          /* alttaki sabit çubuk bu işi görüyor */
  .header-cta { padding: .6rem 1rem; font-size: .9rem; }
}
@media (max-width: 380px) {
  .header-cta .btn-label { display: none; }
  .logo-text { font-size: 1rem; }
}

/* --- 5. Hero ------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(172deg, #FCFEFE 0%, #EFFAF9 46%, #D8F0EF 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { position: relative; z-index: 1; padding: clamp(2.6rem, 6vw, 4.6rem) 0; max-width: 660px; }

/* --- Deniz sahnesi (dekoratif) ------------------------------------------- */
/* Yunuslar eski sitenin header görselinden kesildi; gökyüzü ve dalgalar
   CSS/SVG. Böylece tek raster öğe yunuslar, gerisi her ekranda keskin. */
.deniz-sahne { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.yunuslar {
  position: absolute;
  right: clamp(-30px, 1.5vw, 40px);
  bottom: 54px;
  width: clamp(260px, 45vw, 540px);
  height: auto;
  will-change: transform;
}

.dalgalar {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: clamp(72px, 11vw, 132px);
  will-change: transform;
}
/* Öteleme .dalga yollarının kendisine uygulanıyor; SVG içinde CSS px = kullanıcı
   birimi olduğundan -1440px tam bir desen genişliği eder ve döngü dikişsiz
   kapanır. Yol 3 desen boyunca çizili olduğu için iki uçta da boşluk açılmaz. */
.dalga {
  fill: var(--teal);
  animation: dalgaKay 20s linear infinite;
  transform-box: view-box; transform-origin: 0 0;
}
.dalga-1 { opacity: .13; animation-duration: 27s; }
.dalga-2 { opacity: .18; animation-duration: 19s; }
.dalga-3 { opacity: .30; animation-duration: 13s; }

@keyframes dalgaKay {
  from { transform: translateX(0); }
  to   { transform: translateX(-1440px); }
}

/* Metnin arkasını soldan sağa açılan bir örtüyle yumuşat — başlık ve telefon
   bloğunun kontrastı sahne üstünde de AA seviyesinde kalsın. */
.deniz-sahne::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    #F8FCFC 0%, rgba(248,252,252,.9) 30%, rgba(248,252,252,.45) 50%, rgba(248,252,252,0) 66%);
}

@media (max-width: 720px) {
  .yunuslar { width: 82vw; right: -12%; bottom: 68px; opacity: .4; }
  .deniz-sahne::after {
    background: linear-gradient(180deg,
      rgba(248,252,252,.62) 0%, rgba(248,252,252,.82) 52%, rgba(248,252,252,.3) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dalga { animation: none; }
}
.hero h1 { margin-bottom: .55rem; }
.hero .lead { font-size: clamp(1.05rem, .97rem + .35vw, 1.2rem); color: var(--ink-800); max-width: 44ch; }
.hero .btn-row { margin-top: 1.4rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  background: #fff; border: 1px solid var(--line);
  padding: .42rem .95rem; border-radius: 999px;
  font-size: .82rem; font-weight: 650; letter-spacing: .02em;
  color: var(--teal-800); margin-bottom: 1.15rem; box-shadow: var(--shadow);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; }

/* Telefon bloğu — sitenin 1. amacı */
.tel-blok {
  display: inline-block; margin-top: 1.9rem; padding: 1.1rem 1.7rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.tel-blok:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #BFE7E5; color: inherit; }
.tel-blok-ust {
  display: flex; align-items: center; gap: .5em;
  font-size: .82rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--teal-800);
}
.tel-blok-ust svg { width: 15px; height: 15px; }
.tel-blok-no {
  display: block; margin: .15rem 0 .1rem;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); font-weight: 800;
  letter-spacing: -.02em; color: var(--ink); line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.tel-blok-alt { display: block; font-size: .87rem; color: var(--muted); }

/* --- 6. Bölümler --------------------------------------------------------- */
.section { padding: clamp(3rem, 6.5vw, 5rem) 0; }
.section--soft { background: var(--bg-soft); }

.section-head { max-width: 62ch; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: .4rem; }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* --- 7. Kartlar ---------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-800);
}
.card-icon svg { width: 24px; height: 24px; }

/* --- 8. Teklif sihirbazı ------------------------------------------------- */
.sihirbaz { max-width: 720px; margin-inline: auto; }
.sihirbaz-kutu {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: clamp(1.4rem, 4vw, 2.2rem);
}

.sihirbaz-ust { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.sihirbaz-geri {
  display: inline-flex; align-items: center; gap: .35em;
  background: none; border: 0; padding: .3rem .1rem;
  font: inherit; font-size: .9rem; font-weight: 600;
  color: var(--muted); cursor: pointer; border-radius: 6px;
}
.sihirbaz-geri:hover { color: var(--ink); }
.sihirbaz-geri svg { width: 1em; height: 1em; }
.sihirbaz-sayac { font-size: .84rem; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }

.sihirbaz-bar { height: 5px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; margin-bottom: 1.5rem; }
.sihirbaz-bar span { display: block; height: 100%; background: var(--teal); border-radius: 99px; transition: width .3s ease; }

.sihirbaz-etiket {
  margin: 0 0 .3rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--teal-800);
}
.sihirbaz-soru { margin: 0 0 .3rem; font-size: clamp(1.2rem, 1.05rem + .7vw, 1.55rem); font-weight: 750; color: var(--ink); line-height: 1.28; letter-spacing: -.015em; text-wrap: balance; }
.sihirbaz-aciklama { margin: 0 0 1.3rem; font-size: .95rem; color: var(--muted); }
.sihirbaz-soru + .secim-grid,
.sihirbaz-soru + .alan-grid,
.sihirbaz-soru + .urun-grid { margin-top: 1.4rem; }

/* Ürün seçim kartları */
.urun-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: .8rem; }
.urun-kart {
  display: flex; flex-direction: column; align-items: flex-start; gap: .1rem;
  padding: 1.15rem; text-align: left; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  font: inherit; color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}
.urun-kart:hover { transform: translateY(-2px); border-color: var(--teal); box-shadow: var(--shadow); background: #fff; }
.urun-kart .card-icon { margin-bottom: .75rem; }
.urun-kart-ad { font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.urun-kart-aciklama { font-size: .86rem; color: var(--muted); line-height: 1.45; }

/* Tek/çok seçim düğmeleri */
.secim-grid { display: grid; gap: .6rem; }
.secim-dugme {
  display: flex; align-items: center; gap: .7rem;
  width: 100%; padding: .95rem 1.15rem; text-align: left; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-weight: 550; font-size: 1rem; color: var(--ink-800);
  transition: border-color .14s ease, background-color .14s ease, transform .14s ease;
}
.secim-dugme:hover { border-color: var(--teal); background: var(--teal-50); transform: translateX(2px); }
.secim-dugme.secili { border-color: var(--teal); background: var(--teal-50); color: var(--ink); font-weight: 650; }
.secim-coklu input { width: 19px; height: 19px; accent-color: var(--teal-600); flex: none; margin: 0; }

/* Form alanları */
.alan-grid { display: grid; gap: 1.1rem; }
.alan label { display: block; margin-bottom: .35rem; font-size: .9rem; font-weight: 650; color: var(--ink-800); }
.alan input, .alan select, .alan textarea {
  width: 100%; padding: .8rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.alan textarea { resize: vertical; min-height: 96px; }
.alan input:focus, .alan select:focus, .alan textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(40,193,188,.18);
}
.alan [aria-invalid="true"] { border-color: var(--hata); }
.alan-hata { margin: .35rem 0 0; font-size: .87rem; color: var(--hata); font-weight: 550; }

.onay {
  display: flex; align-items: flex-start; gap: .7rem; margin-top: 1.3rem;
  font-size: .92rem; line-height: 1.5; color: var(--body); cursor: pointer;
}
.onay input { width: 19px; height: 19px; accent-color: var(--teal-600); flex: none; margin: .15rem 0 0; }

.sihirbaz-ileri { width: 100%; margin-top: 1.5rem; }
.gonderim-hata { margin-top: 1.2rem; }

/* Teşekkür ekranı */
.sihirbaz-bitti { text-align: center; }
.bitti-ikon {
  width: 62px; height: 62px; margin: .3rem auto 1.2rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--teal-50); color: var(--teal-800);
}
.bitti-ikon svg { width: 30px; height: 30px; stroke-width: 2.4; }
.sihirbaz-bitti h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.sihirbaz-bitti p { color: var(--muted); max-width: 44ch; margin-inline: auto; }
.bitti-referans { margin-top: 1rem !important; font-size: .95rem; }
.bitti-referans strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.sihirbaz-bitti .btn-row { margin-top: 1.8rem; }

.teklif-not {
  max-width: 60ch; margin: 1.6rem auto 0; text-align: center;
  font-size: .88rem; color: var(--muted);
}

/* --- 9. İletişim / konum ------------------------------------------------- */
/* Not: <dl> içindeki <div> yalnızca <dt>/<dd> barındırabildiği için ikon
   <dt> içinde duruyor; <dd> ise ikon genişliği kadar içeriden başlıyor. */
.contact-list { margin: 0; padding: 0; }
.contact-list > div { margin: 0 0 1.35rem; }
.contact-list > div:last-child { margin-bottom: 0; }
.contact-ico {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; background: var(--teal-50); color: var(--teal-800);
}
.contact-ico svg { width: 20px; height: 20px; }
.contact-list dt {
  display: flex; align-items: center; gap: .9rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .45rem;
}
.contact-list dd { margin: 0 0 0 calc(40px + .9rem); color: var(--ink); font-size: 1.02rem; }
.contact-list dd a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-list dd a:hover { color: var(--teal-700); text-decoration: underline; }
.contact-list dd small { display: block; font-size: .87rem; color: var(--muted); font-weight: 400; margin-top: .15rem; }

/* --- WhatsApp ------------------------------------------------------------
   Numara main.js'te (WA_NUMARA) tanımlanana kadar bütün WhatsApp öğeleri
   gizli durur; numara varsa main.js <html>'e .wa-var sınıfını ekler.
   Marka yeşili yalnızca ikonda kullanılır, butonlar sitenin kendi
   .btn / .btn--ghost kalıbıyla çizilir. */
html:not(.wa-var) .wa-oge { display: none !important; }
.contact-ico--wa { background: #E4F7EC; color: #128C7E; }
.wa-ikon { color: #25D366; }

.map-frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--bg-soft); line-height: 0;
  min-height: 340px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

.notice {
  background: var(--teal-50); border: 1px solid #CFE9E8; border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; font-size: .95rem; color: var(--ink-800);
}
.notice strong { color: var(--ink); }

/* --- 10. Footer ---------------------------------------------------------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.footer-brand .logo { margin-bottom: .9rem; margin-right: 0; }
.footer-brand p { font-size: .92rem; color: var(--muted); max-width: 34ch; }
.site-footer h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: var(--ink-800); text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: var(--teal-700); text-decoration: underline; }
.footer-note { font-size: .87rem; color: var(--muted); }

.footer-bottom {
  margin-top: 2.5rem; border-top: 1px solid var(--line);
  padding: 1.3rem 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  align-items: center; justify-content: space-between;
  font-size: .87rem; color: var(--muted);
}
.footer-bottom p { margin: 0; }

/* --- 11. Mobil hızlı erişim çubuğu --------------------------------------- */
.mobil-cubuk { display: none; }

@media (max-width: 720px) {
  .mobil-cubuk {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 150;
    /* Öğe sayısı WhatsApp'a göre 3 veya 4 olabiliyor; sütunlar kendiliğinden
       bölüşsün diye sabit sayı yerine otomatik akış kullanılıyor. */
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    background: rgba(255,255,255,.97);
    backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 14px rgba(32,36,35,.07);
  }
  .mobil-cubuk a {
    display: flex; flex-direction: column; align-items: center; gap: .2rem;
    padding: .6rem .3rem .65rem; text-decoration: none;
    font-size: .74rem; font-weight: 650; color: var(--ink-800);
  }
  .mobil-cubuk a:hover { color: var(--teal-800); }
  .mobil-cubuk svg { width: 21px; height: 21px; }
  body { padding-bottom: 4.7rem; }
}

/* --- 12. 404 ------------------------------------------------------------- */
.error-page { padding: clamp(4rem, 12vw, 8rem) 0; text-align: center; }
.error-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; color: var(--teal); letter-spacing: -.04em; margin: 0 0 .5rem; }
