:root {
  --beyaz: #FFFFFF;
  --font-hand: "Caveat", "Segoe Script", cursive;
}

/* ---------- sayfa çerçevesi ---------- */
.ab-page {
  position: relative;
  background: var(--beyaz);
  overflow: hidden;
}

.ab-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- sulu boya figürleri (sadece "Neden Artı Eğitim" arka planı) ---------- */
.ab-bg-figure {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: .38;
  filter: url(#abWatercolor);
}

.fig-why-1 { top: 2%;    left: 1%;   width: 150px; height: 180px; color: var(--turkuaz); transform: rotate(-18deg); }
.fig-why-2 { top: 4%;    right: 3%;  width: 170px; height: 170px; color: var(--kirmizi); transform: rotate(12deg); }
.fig-why-3 { top: 38%;   left: -2%;  width: 160px; height: 160px; color: var(--hardal);  transform: rotate(-6deg); }
.fig-why-4 { top: 42%;   right: -2%; width: 150px; height: 180px; color: var(--mor);      transform: rotate(20deg); }
.fig-why-5 { bottom: 3%; left: 4%;   width: 170px; height: 170px; color: var(--turuncu);  transform: rotate(8deg); }
.fig-why-6 { bottom: 1%; right: 1%;  width: 155px; height: 186px; color: var(--turkuaz); transform: rotate(-14deg); }
.fig-why-7 { top: 47%;   left: 47%;  width: 65px;  height: 65px;  color: var(--sari);    opacity: .2; transform: rotate(10deg); }
.fig-why-8 { top: 76%;   left: 51%;  width: 55px;  height: 82px;  color: var(--kirmizi); opacity: .2; transform: rotate(-12deg); }

/* ---------- ortak blok/hizalama yardımcıları ---------- */
.ab-section {
  position: relative;
  padding: var(--space-8) 0;
}

.spine-block {
  max-width: 46%;
  position: relative;
}

.spine-block.align-left  { margin-right: auto; }
.spine-block.align-right { margin-left: auto; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.ab-page a:focus-visible,
.ab-page button:focus-visible {
  outline-color: var(--turkuaz);
}

/* ---------- biz kimiz ---------- */
.ab-whoweare {
  background: var(--beyaz);
  padding-top: calc(var(--space-8) * 1.1);
  padding-bottom: calc(var(--space-8) * 2);
}

.ab-wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 70px;
  display: block;
  z-index: 0;
}

.ab-wave-fill {
  fill: var(--brand-50);
}

.ab-whoweare-text {
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}

.ab-whoweare-text h1 {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(3.8rem, 2.6rem + 4vw, 6.2rem);
  -webkit-text-stroke: 1px var(--turkuaz);
  color: var(--turkuaz);
  text-align: center;
  margin-bottom: var(--space-5);
}

.ab-chip {
  display: inline-block;
  padding: 1px 12px 3px;
  border-radius: var(--radius-full);
  color: var(--beyaz);
  font-weight: 700;
  white-space: nowrap;
}
.ab-chip-mor     { background: var(--mor); }
.ab-chip-turkuaz { background: var(--turkuaz); }

.ab-whoweare-text p {
  text-align: left;
  font-size: 1.15rem;
  line-height: var(--leading-normal);
  color: var(--antrasit);
  margin: 0 0 var(--space-4);
}

/* ---------- neden artı eğitim ---------- */
.ab-why {
  position: relative;
  overflow: hidden;
  background: var(--brand-50);
}

.ab-why-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  color: var(--antrasit);
  text-align: center;
  margin-bottom: var(--space-7);
}

.ab-highlight {
  position: relative;
  display: inline-block;
}

.ab-highlight::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: 6px;
  height: .32em;
  background: var(--sari);
  opacity: .65;
  transform: rotate(-1deg);
  border-radius: 2px;
  z-index: -1;
}

.ab-why-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.ab-why-item {
  background: var(--beyaz);
  border: 1px solid rgba(55, 71, 79, .07);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: 0 8px 22px rgba(55, 71, 79, .12);
  transition: transform .25s ease, box-shadow .25s ease;
}

.ab-why-item:hover {
  transform: rotate(-1deg);
  box-shadow: 0 12px 28px rgba(55, 71, 79, .18);
}

.ab-why-item.accent-left   { border-left: 6px solid var(--accent-color); }
.ab-why-item.accent-bottom { border-bottom: 6px solid var(--accent-color); }

.ab-why-item:nth-of-type(1) { --accent-color: var(--turkuaz); }
.ab-why-item:nth-of-type(2) { --accent-color: var(--kirmizi); }
.ab-why-item:nth-of-type(3) { --accent-color: var(--hardal); }
.ab-why-item:nth-of-type(4) { --accent-color: var(--mor); }

.ab-why-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-color);
  color: var(--beyaz);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.ab-why-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.ab-why-item p {
  margin: 0;
  color: var(--text-secondary);
}

/* ---------- markalarımız: section'ın tamamı renk sahnesi ---------- */
.ab-brands {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--turkuaz), #00A0AF, var(--turkuaz), #1DC8D6);
  background-size: 300% 300%;
  animation: abBrandWave 14s ease-in-out infinite;
  padding: var(--space-6) 0 calc(var(--space-8) * 1.5);
  margin-bottom: 28px;
}

.ab-brand-sweep {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(120deg, var(--kirmizi), #F0453D, var(--kirmizi), #F2665C);
  background-size: 300% 300%;
  animation: abBrandWave 14s ease-in-out infinite;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.ab-brands.is-kulup .ab-brand-sweep {
  opacity: 1;
}

@keyframes abBrandWave {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.ab-brands .ab-inner {
  position: relative;
  z-index: 1;
}

.ab-brands-heading {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--beyaz);
  text-align: center;
  margin-bottom: var(--space-5);
}

.ab-brand-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.ab-brand-tab {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 10px 24px;
  min-width: 170px;
  text-align: center;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255, 255, 255, .22);
  color: var(--beyaz);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .2s ease;
}

.ab-brand-tab:hover { background: rgba(255, 255, 255, .34); }

.ab-brand-tab.is-active { transform: translateY(-1px); }
.ab-brand-tab[data-brand="arti"].is-active  { background: var(--beyaz); color: var(--turkuaz); }
.ab-brand-tab[data-brand="kulup"].is-active { background: var(--beyaz); color: var(--kirmizi); }

.ab-brand-panels {
  position: relative;
  min-height: 500px;
}

.ab-brand-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: var(--space-7);
  color: var(--beyaz);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease .1s;
}

.ab-brand-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* rozet: her logo kendi oranında, ortak beyaz plaka üstünde */
.ab-brand-logo-plate {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--beyaz);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}

.ab-brand-logo-plate img { display: block; }

.ab-plate-arti  { padding: 4px 6px; }
.ab-plate-arti img { height: 440px; width: auto; }

.ab-plate-kulup { padding: 4px 6px; }
.ab-plate-kulup img { width: 480px; height: auto; }

.ab-brand-copy { flex: 1; min-width: 0; }

.ab-brand-copy p {
  margin: 0 0 var(--space-4);
  max-width: 62ch;
  font-size: 1.25rem;
  opacity: .92;
  line-height: 1.6;
}

.ab-brand-link {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--beyaz);
}

/* ---------- kapanış ---------- */
.ab-closing {
  position: relative;
  background: var(--krem);
  padding: var(--space-8) 0;
  margin-bottom: 28px;
  overflow: hidden;
}

.ab-closing-doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ab-closing-doodles span {
  position: absolute;
  color: rgba(55, 71, 79, .14);
  font-family: var(--font-hand);
  font-size: 2rem;
}

.ab-closing-doodles span:nth-child(1) { top: 18%; left: 8%;  transform: rotate(-8deg); }
.ab-closing-doodles span:nth-child(2) { top: 65%; left: 14%; font-size: 1.5rem; }
.ab-closing-doodles span:nth-child(3) { top: 25%; left: 88%; transform: rotate(10deg); }
.ab-closing-doodles span:nth-child(4) { top: 70%; left: 82%; font-size: 1.6rem; }

.ab-closing-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.ab-closing-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  color: var(--antrasit);
  max-width: 760px;
  margin: 0 auto var(--space-3);
}

.ab-closing-author {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--kirmizi);
  margin: 0 0 var(--space-6);
}

.ab-closing-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ---------- mobil ---------- */
@media (max-width: 760px) {
  .ab-whoweare { padding-top: calc(var(--space-8) * .6); }

  .spine-block,
  .spine-block.align-left,
  .spine-block.align-right {
    max-width: 100%;
    margin: 0;
    padding-left: 48px;
  }

  .ab-why-heading {
    padding-left: 48px;
    text-align: left;
  }

  .ab-brands-heading {
    text-align: center;
  }

  .ab-brand-tabs {
    justify-content: center;
  }

  .ab-brand-tab {
    padding: 8px 16px;
    font-size: .8rem;
  }

  .ab-brand-panels {
    min-height: 0;
  }

  .ab-brand-panel {
    position: relative;
    inset: auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
  }

  .ab-brand-panel:not(.is-active) {
    display: none;
  }

  .ab-brand-logo-plate {
    order: -1;
  }

  .ab-brand-copy {
    flex: none;
  }

  .ab-plate-arti img { height: 185px; }
  .ab-plate-kulup img { width: 220px; }

  .ab-closing-quote,
  .ab-closing-author {
    padding-left: 48px;
    text-align: left;
  }

  .ab-bg-figure {
    transform: scale(.7) rotate(0deg) !important;
    opacity: .12;
  }
}

/* ---------- azaltılmış hareket ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ab-why-item:hover {
    transform: none;
  }
  .ab-brands,
  .ab-brand-sweep {
    animation: none !important;
  }
}
