/* ==========================================================================
   BMG GRUP | Digital Link Hub
   Mobil öncelikli; 375–430px telefonlar için optimize edilmiştir.
   ========================================================================== */

:root {
  --bg: #F4F4F1;
  --surface: #FFFFFF;
  --ink: #0F1217;
  --ink-2: #3A3F47;
  --muted: #646A73;
  --line: #E2E2DC;
  --line-strong: #CFCFC8;
  --accent: #1D4F91;

  --radius: 16px;
  --radius-sm: 10px;
  --gutter: 20px;
  --wrap: 600px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-left)) 0 max(var(--gutter), env(safe-area-inset-right));
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 14px;
}
.skip-link:focus { top: 12px; }

.wordmark {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .08em;
  line-height: 1;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: max(12px, env(safe-area-inset-top)) 0 24px;
  background: var(--bg); /* logo--knockout karışımı için gerekli zemin */
  isolation: isolate;
}

/* Mühendislik kâğıdı hissi veren ince nokta ızgarası */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 18, 23, .13) 1px, transparent 0);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(120% 90% at 100% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(120% 90% at 100% 0%, #000 0%, transparent 70%);
}

.hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
}

.hero__logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.hero__logo img { height: 32px; width: auto; max-width: 180px; object-fit: contain; object-position: left center; }

/* Beyaz/açık zeminli logolarda zemini görünmez kılar (links.json → "logoRemoveWhite": true).
   Şeffaf PNG'lerde etkisi yoktur; en temiz sonuç için yine de şeffaf PNG önerilir. */
.logo--knockout { mix-blend-mode: multiply; }

.hero__host {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.hero__host::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2E9D5B;
  box-shadow: 0 0 0 3px rgba(46, 157, 91, .15);
}

.hero__body { padding-top: 22px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--ink);
}

.hero__title {
  margin-top: 10px;
  font-size: clamp(28px, 7.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 700;
  text-wrap: balance;
}

.hero__intro {
  margin-top: 10px;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Bölümler
   -------------------------------------------------------------------------- */

.section { padding: 0 0 32px; }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section__title {
  font-size: 13px;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section__count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Marka kartları
   -------------------------------------------------------------------------- */

.brands {
  display: grid;
  gap: 12px;
}

.card {
  --accent: #1D4F91;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(15, 18, 23, .04);
  scroll-margin-top: 16px;
}

/* Marka rengini taşıyan ince işaret çizgisi */
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 16px;
  width: 44px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent);
}

/* Kartları birbirine bağlayan ekosistem hattı (mobil) */
.card + .card::after {
  content: "";
  position: absolute;
  top: -13px;
  left: 37px;
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.card__meta b { font-weight: 500; color: var(--ink); }
.card__meta i {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Logo + ad satırı: sabit yükseklik; logo eklense de kart boyu değişmez */
.card__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 12px;
}

/* Her orandaki logo 40px yükseklik / 140px genişlik kutusuna orantılı sığdırılır */
.card__logo {
  flex: none;
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
}

/* "hideNameWithLogo": true — logo adı içeriyorsa ad yalnızca ekran okuyuculara kalır */
/* 36px × en fazla 192px: kare/yatay/çok geniş logolar görsel olarak denk ağırlıkta görünür */
.card__identity--logo-only .card__logo { height: 36px; max-width: 192px; }
.card__identity--logo-only .card__name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.card__name {
  min-width: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
}

.card__desc {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.card__actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 8px;
}

/* Katalog / demo gibi ek bağlantılar: yer varsa yan yana, dar ekranda alt alta */
.card__extras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 152px), 1fr));
  gap: 8px;
}
.card__extras .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }

.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 12px 16px 12px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.985); }
.btn .icon { transition: transform .25s var(--ease); }

.btn__label { display: flex; flex-direction: column; line-height: 1.25; }
.btn__sub {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  opacity: .72;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary { min-height: 54px; }

.btn--secondary {
  min-height: 44px;
  padding: 10px 12px 10px 14px;
  font-size: 14px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--secondary .icon { width: 16px; height: 16px; }

@media (hover: hover) {
  .btn--primary:hover { background: var(--accent); }
  .btn--secondary:hover { border-color: var(--ink); }
  .btn:hover .icon { transform: translate(2px, -2px); }
  .btn--secondary:hover .icon[data-dir="right"] { transform: translateX(3px); }
}

/* Sosyal medya: eşit genişlikte ikon kutuları. Kutu yeterince genişse
   ikonun yanında platform adı da görünür (container query). */
.social {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  gap: 8px;
  margin-top: auto;
}

.social a {
  container-type: inline-size;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 44px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 550;
  text-decoration: none;
  transition: color .2s, border-color .2s, transform .15s var(--ease);
}
.social a:active { transform: scale(.97); }
.social .icon { width: 17px; height: 17px; }

.social__label {
  display: none;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* İçerik genişliği (padding hariç): ikon + "Instagram" etiketi ≈ 78px */
@container (min-width: 78px) {
  .social__label { display: inline; }
}

@media (hover: hover) {
  .social a:hover { color: var(--accent); border-color: currentColor; }
}

/* --------------------------------------------------------------------------
   Biz size ulaşalım (harici form çağrısı)
   Pafta başlık kutusu gibi: ince çerçeve, işaret çizgisi, köşede nokta ızgarası.
   -------------------------------------------------------------------------- */

.lead {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-areas:
    "icon eyebrow"
    "title title"
    "text text"
    "action action";
  align-items: center;
  column-gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  isolation: isolate;
  overflow: hidden;
}

.lead::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 16px;
  width: 44px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent);
}

.lead::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 18, 23, .11) 1px, transparent 0);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(70% 90% at 100% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(70% 90% at 100% 0%, #000 0%, transparent 70%);
}

.lead__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--accent);
}

.lead__eyebrow {
  grid-area: eyebrow;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead__title {
  grid-area: title;
  margin-top: 14px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.lead__text {
  grid-area: text;
  margin-top: 6px;
  max-width: 40em;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.lead__action { grid-area: action; margin-top: 14px; }
.lead__btn { min-height: 58px; }

/* --------------------------------------------------------------------------
   İletişim
   -------------------------------------------------------------------------- */

.section--contact { padding-top: 0; }

.contact {
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .35));
}

.contact__text {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--ink-2);
}

/* Mobilde tam genişlik satırlar; geniş ekranda öne çıkan (featured) öğe iki sütun kaplar */
.contact__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}

.contact__item a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  min-height: 62px;
  padding: 10px 14px 10px 10px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.contact__item a:active { transform: scale(.985); }

.contact__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.contact__icon .icon { width: 20px; height: 20px; }

.contact__body { flex: 1; min-width: 0; }

.contact__label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.contact__value {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.contact__arrow {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform .25s var(--ease);
}

/* Öne çıkan seçenek (WhatsApp): koyu birincil buton + WhatsApp yeşili ikon */
.contact__item--featured a {
  min-height: 72px;
  padding: 12px 18px 12px 12px;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.contact__item--featured .contact__icon {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: #25D366;
  color: var(--ink);
}
.contact__item--featured .contact__icon .icon { width: 24px; height: 24px; stroke-width: 1.9; }
.contact__item--featured .contact__label { font-size: 16.5px; }
.contact__item--featured .contact__value { font-size: 14px; color: rgba(255, 255, 255, .78); }
.contact__item--featured .contact__arrow { width: 20px; height: 20px; color: #fff; }

@media (hover: hover) {
  .contact__item a:hover { border-color: var(--ink); }
  .contact__item a:hover .contact__arrow { transform: translate(2px, -2px); }
  .contact__item a:hover .contact__arrow[data-dir="right"] { transform: translateX(3px); }
  .contact__item--featured a:hover { background: #075E54; border-color: #075E54; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  padding: 28px 0 max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}

.footer__brand {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .1em;
}

/* İsteğe bağlı kurumsal sosyal ikonlar: yalnızca ikon, kenarlıksız, 44px dokunma alanı */
.footer__social { display: flex; margin-right: -12px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--muted);
  border-radius: 50%;
  transition: color .2s;
}
.footer__social .icon { width: 18px; height: 18px; }
.footer__social .social__label { display: none; }
.footer__social a:hover { color: var(--ink); }

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.footer__meta a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}
.footer__meta a:hover { color: var(--ink); border-color: var(--ink); }

.notice {
  padding: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 15px;
}
.notice a { font-weight: 600; }

.fallback { display: grid; gap: 8px; }
.fallback a { display: block; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; text-decoration: none; }

/* --------------------------------------------------------------------------
   Giriş animasyonu (yalnızca JS yüklendiğinde ve hareket tercihi izin verdiğinde)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: reveal .6s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 70ms);
  }
  @keyframes reveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* --------------------------------------------------------------------------
   Küçük telefonlar
   -------------------------------------------------------------------------- */

@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .hero__host { display: none; }
  .contact__item a { padding-right: 12px; }
}

/* --------------------------------------------------------------------------
   Geniş telefonlar / küçük tabletler: telefon butonları yan yana
   -------------------------------------------------------------------------- */

@media (min-width: 560px) {
  .contact__list { grid-template-columns: 1fr 1fr; }
  .contact__item--featured { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Tablet ve masaüstü
   -------------------------------------------------------------------------- */

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hero { padding-bottom: 36px; }
  .hero__body { padding-top: 40px; }
  .hero__intro { font-size: 16px; }
  .card { padding: 22px 22px 20px; }
  .card::before { left: 22px; }
  .card + .card::after { left: 43px; }
  .contact { padding: 28px; }
  .lead { padding: 22px; }
  .lead::before { left: 22px; }
  .lead__title { font-size: 23px; }
}

@media (min-width: 1024px) {
  :root { --wrap: 1160px; --gutter: 40px; }

  .hero { padding-bottom: 44px; }
  .hero__body { padding-top: 56px; }
  .hero__intro { font-size: 17px; }

  .section { padding-bottom: 48px; }

  .brands {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
  .card + .card::after {
    top: 29px;
    left: -21px;
    width: 20px;
    height: 1px;
  }

  /* Sosyal satırları kart altlarında hizalı kalsın */
  .card__actions { margin-bottom: 16px; }

  .contact { padding: 32px; }
  .contact__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 32px;
  }
  .contact__text { margin-top: 0; }
  .contact__list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 24px;
  }
  .contact__item--featured { grid-column: span 2; }

  /* Form çağrısı: ikon | metin | buton tek satırda */
  .lead {
    grid-template-columns: 48px 1fr minmax(280px, auto);
    grid-template-areas:
      "icon eyebrow action"
      "icon title action"
      "icon text action";
    column-gap: 20px;
    padding: 28px 32px;
  }
  .lead::before { left: 32px; }
  .lead__icon { align-self: start; width: 48px; height: 48px; border-radius: 12px; }
  .lead__icon .icon { width: 22px; height: 22px; }
  .lead__title { margin-top: 6px; font-size: 24px; }
  .lead__action { margin: 0 0 0 16px; }
}
