/**
 * BS Marjinal — site geneli tema (tasarım jetonları, CMYK çizgisi, başlıklar, butonlar)
 * Sayfa özel stilleri: index.css / page-layout.css
 */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Nunito+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --font-heading: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --brand-009ee3: #009ee3;
  --brand-009ee3-soft: rgba(0, 158, 227, 0.45);
  --brand-009ee3-glow: rgba(0, 200, 255, 0.55);
  --cmyk-c: #00b4d8;
  --cmyk-m: #e91e8c;
  --cmyk-y: #ffdc2e;
  --cmyk-k: #2a2a2a;
  /* Tüm CMYK şeritleri (başlık ::after, hero blok, iletişim, nav alt çizgi) */
  --cmyk-stripe-gradient: linear-gradient(
    90deg,
    var(--cmyk-c) 0%,
    var(--cmyk-c) 19%,
    var(--cmyk-m) 31%,
    var(--cmyk-m) 44%,
    var(--cmyk-y) 56%,
    var(--cmyk-y) 69%,
    var(--cmyk-k) 81%,
    var(--cmyk-k) 100%
  );
  --color-accent: #009ee3;
  /* İç sayfalar (body.page-site) — nötr profesyonel zemin */
  --page-bg-inner: #f3f5f9;
  --slant-band-height: clamp(3rem, 10vw, 6.25rem);
  --hero-footer-slant-height: var(--slant-band-height);
  --slant-shadow-room: 26px;
  /* Hero alt şerit + gölge alanı (kart margin, footer, içerik örtüşmesi) */
  --hero-slant-outer-h: calc(var(--hero-footer-slant-height) + var(--slant-shadow-room));
  --hero-card-slant-height: clamp(2rem, 5.5vw, 3.5rem);
  --hero-inner-gap: clamp(1rem, 2.5vw, 1.35rem);
  --section-padding-y: clamp(2.5rem, 5vw, 3.75rem);
  --section-head-margin-bottom: clamp(1.35rem, 3.2vw, 2rem);
  --section-title-line-space: 0.85rem;
  --section-body-margin-top: clamp(1rem, 2.5vw, 1.5rem);
  --section-lead-margin-top: clamp(1.35rem, 3vw, 2rem);
  /* CMYK alt çizgi — tüm başlıklar / hero H1 (mobil ve masaüstü aynı) */
  --cmyk-line-height: 2px;
  --cmyk-line-radius: 100px;
  --cmyk-line-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  --cmyk-line-offset: 0.72rem;
  --page-hero-title-padding-underline: 0.65rem;
  /* Hero kart: üst padding ile aynı ek alt boşluk (şerit + eğim öncesi) */
  --hero-card-padding-y: 2rem;
  --hero-card-padding-x: 2rem;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: #111827;
  background-color: #ffffff;
  overflow-x: hidden;
  max-width: 100%;
}

/* :has() ile ek güvence (eski tarayıcılar html/body kurallarını kullanır) */
html:has(body.page-site) {
  overflow-x: hidden;
  max-width: 100%;
}

body.page-site {
  overflow-x: hidden;
  max-width: 100%;
}


.page-content {
  padding-bottom: 0;
}

/* ——— Başlıklar (h1–h6) + CMYK alt çizgi ——— */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: #0f172a;
  margin-top: 0;
  font-weight: 400;
}

.title-line {
  position: relative;
}

.title-line::after,
.page-hero-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--cmyk-line-height);
  transform: none;
  border-radius: var(--cmyk-line-radius);
  background: var(--cmyk-stripe-gradient);
  box-shadow: var(--cmyk-line-shadow);
}

.title-line::after {
  bottom: calc(-0.5 * var(--cmyk-line-offset));
}

.page-hero-title::after {
  bottom: 0;
}

.section-title {
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f172a;
  line-height: 1.25;
}

.section-title.title-line {
  margin-bottom: var(--section-title-line-space);
}

/* İç sayfa hero H1 (breadcrumb kartı) — çizgi hizası padding-bottom ile */
.page-hero-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f8fafc;
  margin: 0;
  line-height: 1.2;
  display: inline-block;
  position: relative;
  max-width: 100%;
  padding-bottom: var(--page-hero-title-padding-underline);
}

/* Makale giriş H1 (ortada, .title-line ile CMYK) */
.page-h1-intro {
  text-align: center;
}

.page-h1-intro .page-service-h1 {
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  margin: 0 auto clamp(0.5rem, 1.5vw, 0.75rem);
  line-height: 1.2;
  display: inline-block;
  text-align: center;
}

/* Hero kart / blok CMYK şeridi — boyut; margin sayfa (page-layout) ile override edilebilir */
.seo-cmyk-stripe--hero-card {
  display: block;
  width: 100%;
  max-width: 100%;
  height: var(--cmyk-line-height);
  margin: 0.65rem auto 0;
  border: 0;
  border-radius: var(--cmyk-line-radius);
  background: var(--cmyk-stripe-gradient);
  box-shadow: var(--cmyk-line-shadow);
}

/* ——— Butonlar: primary + secondary — çerçeve yok; arka plan & hover davranışı önceki gibi ——— */
.btn-site-primary {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.85rem;
  margin-top: 0.25rem;
  border-radius: 50px;
  border: 2px solid #000000;
  background-color: transparent;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.35s ease;
  box-shadow: none;
}

.btn-site-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  background-color: #009ee3;
  border-radius: inherit;
  box-sizing: border-box;
  z-index: -1;
  transition: width 0.35s ease;
}

.btn-site-primary:hover,
.btn-site-primary:focus-visible {
  color: #ffffff;
  border: 2px solid #009ee3;
}

.btn-site-primary:hover::before,
.btn-site-primary:focus-visible::before {
  width: 100%;
}

.btn-site-primary:focus-visible {
  outline: 2px solid #009ee3;
  outline-offset: 3px;
}

/* Hero koyu kart: açık metin + aynı dolgu animasyonu */
.btn-site-primary--on-dark {
  color: #f8fafc;
}

.btn-site-primary--on-dark:hover,
.btn-site-primary--on-dark:focus-visible {
  color: #ffffff;
}

.btn-site-primary--on-dark::before {
  background-color: #009ee3;
}

.btn-site-secondary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  margin-top: 0.25rem;
  border: none;
  border-radius: 999px;
  background-color: #009ee3 !important;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
  box-shadow: none;
}

.btn-site-secondary::after {
  content: "";
  position: absolute;
  inset: 0;
  left: -40%;
  width: 35%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  transform: translateX(-120%) skewX(-12deg);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

.btn-site-secondary:hover::after,
.btn-site-secondary:focus-visible::after {
  opacity: 1;
  animation: theme-btn-shine 0.65s ease forwards;
}

.btn-site-secondary:hover,
.btn-site-secondary:focus-visible {
  background-color: #009ee3 !important;
  color: #ffffff;
  border: none;
}

.btn-site-secondary:focus-visible {
  outline: 2px solid rgba(0, 158, 227, 0.55);
  outline-offset: 2px;
}

@keyframes theme-btn-shine {
  from {
    transform: translateX(-140%) skewX(-12deg);
  }
  to {
    transform: translateX(380%) skewX(-12deg);
  }
}

@media (max-width: 575.98px) {
  .section-title.title-line {
    padding-bottom: 0.38rem;
    margin-bottom: 0.7rem;
  }

  /* Butonlar — mobil */
  .btn-site-primary {
    padding: 0.5rem 1.35rem;
    font-size: 0.88rem;
  }

  .btn-site-secondary {
    padding: 0.48rem 1.1rem;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  /* Genel başlık / gövde — mobil */
  .section-title {
    font-size: clamp(1.05rem, 4.2vw, 1.35rem);
    letter-spacing: 0.05em;
  }

  .section-subtitle {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
  }
}

.font-heading {
  font-family: var(--font-heading);
}

/* ——— Sabit WhatsApp + Yukarı çık (tüm sayfalar) ——— */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background-color: #007953;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.35);
  z-index: 40;
  border: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transform: translateY(8px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-float,
.whatsapp-button {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background-color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.4);
  z-index: 40;
}

.whatsapp-float {
  color: #ffffff;
}

.whatsapp-button {
  text-decoration: none;
  color: #ffffff;
}

.whatsapp-icon {
  width: 100%;
  height: 100%;
  display: block;
  color: #ffffff;
}

.whatsapp-button svg {
  width: 26px;
  height: 26px;
  display: block;
}

@media (max-width: 767.98px) {
  .whatsapp-float,
  .whatsapp-button {
    width: 50px;
    height: 50px;
    left: 1.25rem;
    bottom: 1.25rem;
  }

  .whatsapp-icon {
    width: 26px;
    height: 26px;
  }

  .whatsapp-button svg {
    width: 24px;
    height: 24px;
  }
}

/* Google Translate: widget script’in body’ye verdiği üst boşluğu sıfırla */
body {
  top: 0 !important;
}
