/* ==========================================================================
   İLETİŞİM SAYFASI — başlık + canlı durum, kanal kartları, form + yan bilgi, harita
   Form bileşeni contact.css'ten gelir.
   ========================================================================== */

/* ---------- Başlık ---------- */
.cp-hero { padding-bottom: clamp(40px, 5vw, 72px); }
.cp-hero__head {
  display: grid;
  justify-items: center;
  gap: 20px;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

/* Canlı açık/kapalı durumu */
.open-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.open-status__dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}
.open-status.is-open .open-status__dot { background: var(--green-500); }
.open-status.is-open .open-status__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--green-500);
  animation: pulse 2.4s var(--ease-out) infinite;
}
.open-status.is-closed .open-status__dot { background: var(--amber-500); }

/* ---------- Kanal kartları ---------- */
.channels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(36px, 5vw, 56px);
}
.channel {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .25s, transform .35s var(--ease-out);
}
.channel:hover { border-color: var(--navy-200); box-shadow: var(--shadow); transform: translateY(-3px); }
.channel__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 13px;
  background: var(--navy-50);
  color: var(--navy-800);
  box-shadow: inset 0 0 0 1px var(--navy-100);
  transition: background-color .25s, color .25s;
}
.channel__icon .i { width: 21px; height: 21px; }
.channel:hover .channel__icon { background: var(--navy-900); color: #fff; box-shadow: none; }
.channel--wa .channel__icon { background: #e3f6ea; color: #1a9c4f; box-shadow: none; }
.channel--wa:hover .channel__icon { background: #1fa855; color: #fff; }

.channel__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.channel strong {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.channel small { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.channel__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-2);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-600);
}
.channel__meta .i { width: 14px; height: 14px; }

/* ---------- Form + yan bilgi ---------- */
.cp-main { padding-top: 0; }
.cp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.cp-form { display: grid; gap: 28px; }
.cp-form__intro { display: grid; gap: 14px; }
.cp-form__intro .section-title { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }

.cp-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 16px;
}
.cp-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.cp-card__title { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; }
.cp-card__title .i { color: var(--red-600); }
.cp-card__note { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.cp-card address { font-style: normal; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* Çalışma saatleri tablosu; bugün vurgulanır */
.hours { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  font-size: 14px;
}
.hours li + li { border-top: 1px solid var(--line); }
.hours li span { color: var(--ink-2); }
.hours li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.hours li.is-closed b { color: var(--muted); font-weight: 500; }
.hours li.is-today { background: var(--navy-50); }
.hours li.is-today span { font-weight: 700; color: var(--ink); }
.hours li.is-today span::after {
  content: "Bugün";
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* Harita: tıklanınca iframe yüklenir */
.map-embed {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: #eef2f8;
  overflow: hidden;
  isolation: isolate;
}
.map-embed__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(11 31 69 / .06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(11 31 69 / .06) 1px, transparent 1px);
  background-size: 26px 26px;
}
.map-embed__pin {
  position: absolute;
  left: 50%;
  top: 38%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50% 50% 50% 4px;
  background: var(--red-600);
  color: #fff;
  transform: translate(-50%, -50%) rotate(-45deg);
  box-shadow: 0 10px 20px -8px rgb(211 20 28 / .7);
}
.map-embed__pin .i { width: 19px; height: 19px; transform: rotate(45deg); }
.map-embed__btn { position: absolute; bottom: 14px; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-embed.is-loaded .map-embed__pin,
.map-embed.is-loaded .map-embed__btn,
.map-embed.is-loaded .map-embed__grid { display: none; }

/* ---------- Kısa SSS: tek sütun, ortalı ---------- */
.cp-main + .faq-section .accordion { grid-template-columns: 1fr; max-width: 860px; margin-inline: auto; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1100px) {
  .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .cp-grid { grid-template-columns: 1fr; }
  .cp-side { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .cp-hero__head { text-align: left; justify-items: start; }
  .channels { grid-template-columns: 1fr; gap: 10px; }
  .channel { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .channel__icon { grid-row: span 3; margin-bottom: 0; }
  .channel__meta { grid-column: 1 / -1; }
  .cp-side { grid-template-columns: 1fr; }
}
