/* Altın Teknik - site yardımcı stiller */
:root{
  --at-whatsapp: #25D366; /* icon only; primary still logo-based in UI */
}

/* Aktif menü underline */
a[aria-current="page"]{
  position: relative;
}
a[aria-current="page"]::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-10px;
  height:2px;
  opacity:.8;
  background: currentColor;
}

:root{
  --wa: #25D366;
  --wa-bg: rgba(255,255,255,.92);
  --wa-border: rgba(15, 23, 42, .10);
  --wa-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}

:root{
  --wa: #25D366;
  --wa-bg: rgba(255,255,255,.92);
  --wa-border: rgba(15, 23, 42, .10);
  --wa-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}

/* Premium Floating WhatsApp Button */
.wa-float{
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 9999;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--wa-border);
  background: var(--wa-bg);
  box-shadow: var(--wa-shadow);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  text-decoration: none;
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.wa-float:hover{
  transform: translateY(-2px);
  border-color: rgba(37, 211, 102, .35);
  box-shadow: 0 22px 55px rgba(15, 23, 42, .22);
}

/* Icon container */
.wa-icon{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--wa);
  color: #fff; /* SVG stroke color (currentColor) */

  display: inline-flex;
  align-items: center;
  justify-content: center;

  position: relative;
  overflow: hidden;
}

.wa-icon::after{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius:999px;
  background: radial-gradient(circle, rgba(37, 211, 102, .28), transparent 60%);
  pointer-events:none;
}

/* Outline SVG style */
.wa-svg{
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.05;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wa-body{
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 160px;
}

.wa-title{
  font-weight: 800;
  font-size: 14px;
  color: #0f172a;
  letter-spacing: .2px;
}

.wa-sub{
  margin-top: 2px;
  font-size: 12px;
  color: rgba(15, 23, 42, .62);
  white-space: nowrap;
}

.wa-pill{
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  background: rgba(15, 23, 42, .06);
  border: 1px solid rgba(15, 23, 42, .08);
  padding: 6px 10px;
  border-radius: 999px;
}

.wa-pill::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--wa);
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 0 5px rgba(37, 211, 102, .15);
  vertical-align: middle;
}

/* Mobile: daha kompakt */
@media (max-width: 520px){
  .wa-body{ min-width: unset; }
  .wa-sub{ display:none; }
  .wa-pill{ display:none; }
  .wa-float{ padding: 10px; }
  .wa-icon{ width: 48px; height: 48px; }
  .wa-svg{ width: 24px; height: 24px; }
}


/* Gutenberg bloklarının varsayılan dikey boşluklarını bastır */
.entry-content > *{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* HTML bloğu wrapper’ından gelebilecek boşluklar */
.entry-content .wp-block-html{
  margin: 0 !important;
}

/* ✅ Hizmet Alanları: 4 kart (desktop) – stabil */
#at-services-grid{
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  margin: -12px !important; /* gutter */
}

#at-services-grid .at-service-col{
  box-sizing: border-box !important;
  padding: 12px !important;
  width: 100% !important;
  flex: none !important;
  max-width: none !important;
}

@media (min-width: 640px){
  #at-services-grid .at-service-col{ width: 50% !important; }
}

@media (min-width: 1024px){
  #at-services-grid .at-service-col{ width: 25% !important; }
}

/* ✅ REFERANSLAR: 8 logo – desktop 4x2 (kesin) */
/* Hem id hem class ile yakala (cache/override fark etmesin) */
#at-ref-wall,
.at-ref-wall{
  display: grid !important;
  grid-auto-flow: row !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* mobil/tablet: 2 */
  gap: 18px !important;
  align-items: stretch !important;
}

/* Desktop: 4 kolon (4 logo x 2 satır) */
@media (min-width: 768px){
  #at-ref-wall,
  .at-ref-wall{
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* KRİTİK: Her item 1 kolon kaplasın (1 dolu 1 boş bug’ını bitirir) */
#at-ref-wall .at-ref-item,
.at-ref-wall .at-ref-item{
  grid-column: auto !important;        /* span varsa ezer */
  width: 100% !important;              /* hücreyi doldur */
  min-width: 0 !important;             /* grid shrink fix */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px 20px !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.78) !important;
  border: 1px solid rgba(0,0,0,.06) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.06) !important;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}

#at-ref-wall .at-ref-item:hover,
.at-ref-wall .at-ref-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0,0,0,.10);
  border-color: rgba(59,130,246,.22);
}

#at-ref-wall .at-ref-item img,
.at-ref-wall .at-ref-item img{
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 44px !important;
  object-fit: contain !important;
  filter: grayscale(100%) contrast(1.05);
  opacity: .78;
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}

#at-ref-wall .at-ref-item:hover img,
.at-ref-wall .at-ref-item:hover img{
  filter: grayscale(0%) contrast(1.05);
  opacity: 1;
  transform: scale(1.02);
}

@media (max-width: 420px){
  #at-ref-wall .at-ref-item,
  .at-ref-wall .at-ref-item{
    padding: 14px 14px !important;
    border-radius: 16px !important;
  }
  #at-ref-wall .at-ref-item img,
  .at-ref-wall .at-ref-item img{
    max-height: 36px !important;
  }
}
