/* =========================================================
   PENTA — İletişim sayfası (iletisim.html)
   Ön ek: .ct-  ·  Renkler yalnızca style.css tokenlarından
   ========================================================= */

.ct-hero, .ct-info, .ct-booking, .ct-map, .ct-visit, .ct-faq { --ct-error: #a1453b; }

/* ---------- Ortak: 3D sahne kutuları ---------- */
.ct-stage { position: relative; overflow: hidden; }
.ct-stage > canvas { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.ct-stage.is-live > canvas, .ct-stage > .ct-ghost { opacity: 1; }
/* Paylaşılan WebGL tuvali başka sahneye geçince, eski sahnede son karenin 2D kopyası kalır */
.ct-ghost { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ct-stage.is-live > .ct-ghost { visibility: hidden; }

.ct-head { margin-bottom: clamp(48px, 7vw, 96px); display: grid; gap: 20px; }
.ct-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .ct-head--split { grid-template-columns: 1.2fr 1fr; gap: 64px; } }

.ct-btn-icon { width: 18px; height: 18px; flex: none; }

/* =========================================================
   1) HERO
   ========================================================= */
.ct-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + clamp(40px, 8vh, 96px)) 0 clamp(28px, 5vh, 56px);
  background: var(--cream);
}
.ct-stage--hero { position: absolute; inset: 0; z-index: -1; }
/* Başlığın okunurluğu için sol tarafa yumuşak krem perde */
.ct-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--cream) 0%, rgba(245, 241, 234, 0.75) 32%, rgba(245, 241, 234, 0) 62%);
}
.ct-hero__inner, .ct-hero__meta { position: relative; z-index: 1; }
.ct-hero__inner { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.ct-hero__title { margin: 28px 0 32px; max-width: 9ch; }
.ct-hero__title .italic { color: var(--teal); }
.ct-hero__lead { margin-bottom: 40px; max-width: 46ch; }
.ct-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* Çizgilerin üstünde okunur kalsın diye ikincil butona yarı saydam krem zemin */
.ct-hero__actions .btn:not(.btn-primary) { --btn-bg: rgba(245, 241, 234, 0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.ct-hero__meta {
  display: grid; grid-template-columns: repeat(3, auto) 1fr; align-items: end; gap: 16px clamp(24px, 4vw, 64px);
  margin-top: clamp(48px, 8vh, 96px); padding-top: 24px; position: relative;
}
.ct-hero__meta::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.ct-hero__meta-item { display: grid; gap: 4px; font-size: 0.95rem; }
.ct-hero__meta-label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--teal-soft); }
.ct-hero__hint {
  justify-self: end; margin: 0; display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.ct-hero__hint-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.ct-hero__hint-dot::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--teal);
  animation: ct-ping 2.4s var(--ease-out) infinite;
}

/* WebGL yedeği: eşmerkezli gravür halkaları (yalnız .no-webgl iken) */
.ct-hero__fallback {
  display: none; position: absolute; inset: 0;
  background: repeating-radial-gradient(circle at 72% 58%, transparent 0 21px, var(--line) 21px 22px);
  -webkit-mask-image: radial-gradient(circle at 72% 58%, #000 0%, rgba(0, 0, 0, 0.6) 30%, transparent 62%);
          mask-image: radial-gradient(circle at 72% 58%, #000 0%, rgba(0, 0, 0, 0.6) 30%, transparent 62%);
  animation: ct-breathe 7s ease-in-out infinite;
}
.no-webgl .ct-hero__fallback { display: block; }

@keyframes ct-ping { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes ct-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* =========================================================
   2) İLETİŞİM KARTLARI
   ========================================================= */
.ct-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.ct-cards__item { display: flex; min-width: 0; }
.ct-cards__item--third { grid-column: span 2; }
.ct-cards__item--half { grid-column: span 3; }

.ct-card {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden; flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: clamp(26px, 3vw, 40px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transform-style: preserve-3d; will-change: transform;
  transition: border-color 0.5s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.ct-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
/* İnce ışık: imleci izleyen yumuşak parıltı + üst kenarda ince ışık çizgisi */
.ct-card__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.6s var(--ease-out);
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(201, 214, 220, 0.55), transparent 55%),
    radial-gradient(160px circle at var(--mx) 0%, rgba(47, 95, 120, 0.14), transparent 70%);
}
.ct-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: radial-gradient(200px circle at var(--mx) 0, var(--teal-soft), transparent 70%);
  opacity: 0; transition: opacity 0.6s var(--ease-out);
}
.ct-card:hover .ct-card__glow, .ct-card:hover::after { opacity: 1; }

.ct-card__icon { width: 46px; height: 46px; color: var(--teal); margin-bottom: 22px; transition: transform 0.8s var(--ease-out); }
.ct-card:hover .ct-card__icon { transform: rotate(-6deg) scale(1.05); }
.ct-card__label { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--teal); }
.ct-card__value {
  font-family: var(--font-display); font-size: clamp(1.45rem, 2.1vw, 1.95rem); line-height: 1.2; color: var(--ink);
  font-style: normal; overflow-wrap: anywhere;
}
.ct-card__address { display: block; }
.ct-card__note { margin: 6px 0 0; font-size: 0.92rem; color: var(--muted); }
.ct-card__hours { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-family: var(--font-display); font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.3; }
.ct-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }

.ct-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s;
}
.ct-chip svg { width: 16px; height: 16px; }
.ct-chip:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* =========================================================
   3) RANDEVU
   ========================================================= */
.ct-booking__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.ct-booking__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; }
.ct-booking__aside .lead { margin: 0; }

.ct-stage--spiral { width: min(100%, 380px); aspect-ratio: 1 / 1; margin-block: 4px; }
.ct-spiral__fallback { display: none; position: absolute; inset: 18%; width: 64%; height: 64%; opacity: 0.8; animation: ct-spin 40s linear infinite; }
.no-webgl .ct-spiral__fallback { display: block; }
@keyframes ct-spin { to { transform: rotate(360deg); } }

.ct-assure { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.95rem; color: var(--muted); }
.ct-assure span { color: var(--teal); margin-right: 6px; }

.ct-form-wrap {
  position: relative; padding: clamp(28px, 4vw, 56px);
  background: var(--cream); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-soft);
}
.ct-form__intro { font-size: 0.85rem; color: var(--muted); margin-bottom: 28px; }
.ct-form__intro span, .ct-form label > span[aria-hidden] { color: var(--teal); }
.ct-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px clamp(20px, 3vw, 40px); }
.ct-form__full { grid-column: 1 / -1; }
.ct-optional { text-transform: none; letter-spacing: 0.02em; color: var(--muted); font-weight: 400; }
.ct-hint { font-size: 0.8rem; color: var(--muted); margin-top: -2px; }

.ct-form .field input::placeholder, .ct-form .field textarea::placeholder { color: var(--teal-soft); opacity: 0.75; }
.ct-form .field select {
  -webkit-appearance: none; appearance: none; padding-right: 28px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%232f5f78' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; background-size: 12px 8px;
}
.ct-form .field select:invalid { color: var(--muted); }
.ct-form .field option { color: var(--ink); }
.ct-form .field input[type="date"] { color-scheme: light; min-height: 52px; }
.ct-form .field input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0.55; cursor: pointer; }

.ct-form .field.is-invalid input,
.ct-form .field.is-invalid select,
.ct-form .field.is-invalid textarea { border-bottom-color: var(--ct-error); }
.ct-form .field.is-valid input,
.ct-form .field.is-valid select { border-bottom-color: var(--teal-soft); }
.ct-form .error:empty { min-height: 0; }

/* KVKK onayı */
.ct-consent { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start; font-size: 0.92rem; color: var(--muted); }
.ct-consent label { cursor: pointer; line-height: 1.55; }
.ct-consent label a { color: var(--teal); }
.ct-consent input {
  -webkit-appearance: none; appearance: none; margin: 1px 0 0; width: 22px; height: 22px; flex: none; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 6px; background: var(--paper) center / 14px no-repeat;
  transition: background-color 0.3s, border-color 0.3s;
}
.ct-consent input:checked {
  background-color: var(--teal); border-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='m2.5 7.2 3 3 6-6.4' stroke='%23f5f1ea' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ct-consent input:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.ct-consent input[aria-invalid="true"] { border-color: var(--ct-error); }
.ct-consent .error { grid-column: 2; font-size: 0.8rem; color: var(--ct-error); }

.ct-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 40px; }
.ct-submit[aria-busy="true"] { pointer-events: none; }
.ct-submit[aria-busy="true"] .arrow { animation: ct-nudge 0.9s ease-in-out infinite; }
@keyframes ct-nudge { 50% { transform: translateX(6px); } }

/* Başarı */
.ct-success { display: grid; justify-items: center; text-align: center; gap: 18px; padding: clamp(24px, 5vw, 64px) 0; outline: none; }
.ct-success[hidden] { display: none; }
.ct-success__art { width: 160px; height: 160px; color: var(--teal); overflow: visible; }
.ct-success__ring, .ct-success__core { transform-box: fill-box; transform-origin: center; }
.ct-success__ring { opacity: 0.4; }
.ct-success__check { stroke-dasharray: 40; stroke-dashoffset: 0; }
.ct-success__title { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.ct-success__text { max-width: 42ch; color: var(--muted); margin: 0; }
.ct-success__again { margin-top: 10px; }

/* =========================================================
   4) HARİTA
   ========================================================= */
.ct-map__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.ct-map__text { display: grid; gap: 24px; justify-items: start; }
.ct-map__address { font-style: normal; font-family: var(--font-display); font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.3; }
.ct-map__hours { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; color: var(--muted); width: 100%; }
.ct-map__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.ct-map__actions [aria-disabled="true"] { opacity: 0.4; pointer-events: none; cursor: default; }
.ct-map__soon { font-size: 0.8rem; color: var(--muted); }

.ct-map__frame {
  position: relative; overflow: hidden; aspect-ratio: 16 / 11; width: 100%;
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.ct-map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.35) sepia(0.12); }
.ct-map__placeholder { position: absolute; inset: 0; }
.ct-map__svg { width: 100%; height: 100%; }
.ct-map__pin { position: absolute; left: 50%; top: 50%; width: 34px; height: 44px; transform: translate(-50%, -100%); }
.ct-map__pin svg { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 10px 12px rgba(28, 52, 68, 0.25)); animation: ct-bob 3.2s ease-in-out infinite; }
.ct-map__pulse {
  position: absolute; left: 50%; bottom: -10px; width: 80px; height: 30px; margin-left: -40px; border-radius: 50%;
  border: 1px solid var(--teal); animation: ct-pulse 2.8s var(--ease-out) infinite;
}
.ct-map__pulse:nth-child(2) { animation-delay: 1.4s; }
.ct-map__note {
  position: absolute; left: 50%; bottom: clamp(14px, 3vw, 28px); transform: translateX(-50%); margin: 0;
  width: max-content; max-width: calc(100% - 32px); text-align: center;
  padding: 10px 18px; border-radius: 999px; background: rgba(251, 249, 245, 0.9); border: 1px solid var(--line);
  font-size: 0.82rem; color: var(--muted); backdrop-filter: blur(6px);
}
@keyframes ct-pulse { 0% { transform: scale(0.2); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes ct-bob { 50% { transform: translateY(-6px); } }

/* =========================================================
   5) ZİYARET ÖNCESİ
   ========================================================= */
.ct-visit .ct-head .lead { margin: 0; }
.ct-visit .italic { color: var(--teal-soft); } /* koyu zeminde .italic (teal) kontrastı düşük kalıyor */
.ct-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(201, 214, 220, 0.18); }
.ct-step { padding: 32px clamp(16px, 2vw, 32px) 8px 0; display: grid; align-content: start; gap: 14px; position: relative; }
.ct-step + .ct-step { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid rgba(201, 214, 220, 0.18); }
.ct-step__num { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--teal-soft); }
.ct-step__title { font-size: clamp(1.4rem, 1.9vw, 1.75rem); line-height: 1.15; }
.ct-step p { margin: 0; color: var(--mist); font-size: 0.98rem; }
.ct-bring { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--mist); font-size: 0.98rem; }
.ct-bring li { position: relative; padding-left: 22px; }
.ct-bring li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 1px; background: var(--sand); }

/* =========================================================
   6) SSS — akordeon
   ========================================================= */
.ct-faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.ct-faq__intro { display: grid; gap: 22px; justify-items: start; }
.ct-faq__phone { color: var(--teal); white-space: nowrap; }
.ct-accordion { border-top: 1px solid var(--line); }
.ct-acc { border-bottom: 1px solid var(--line); }
.ct-acc__heading { font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 500; line-height: 1.25; }
.ct-acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; text-align: left; font: inherit; color: var(--ink); transition: color 0.4s;
}
.ct-acc__btn:hover { color: var(--teal); }
.ct-acc__icon { position: relative; flex: none; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%; transition: background-color 0.4s, border-color 0.4s; }
.ct-acc__icon::before, .ct-acc__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; margin-left: -6px; background: currentColor;
  transition: transform 0.6s var(--ease-out);
}
.ct-acc__icon::after { transform: rotate(90deg); }
.ct-acc.is-open .ct-acc__icon { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.ct-acc.is-open .ct-acc__icon::after { transform: rotate(0deg); }
.ct-acc__inner p { margin: 0; padding: 0 56px 28px 0; color: var(--muted); max-width: 62ch; }

/* JS varken kapalı başlar; yükseklik animasyonu grid-rows hilesiyle.
   visibility ile kapalı içerik sekme sırasından ve ekran okuyuculardan çıkar. */
.js .ct-acc__panel {
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows 0.6s var(--ease-out), visibility 0s linear 0.6s;
}
.js .ct-acc__panel > .ct-acc__inner { overflow: hidden; min-height: 0; }
.js .ct-acc.is-open .ct-acc__panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.6s var(--ease-out), visibility 0s; }

/* ---------- Toast ---------- */
.ct-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 250; transform: translate(-50%, 140%);
  max-width: calc(100vw - 32px); padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: var(--cream); font-size: 0.88rem; letter-spacing: 0.04em;
  box-shadow: 0 18px 40px -18px rgba(28, 52, 68, 0.6);
  opacity: 0; pointer-events: none; transition: transform 0.6s var(--ease-out), opacity 0.4s;
}
.ct-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.ct-toast:empty { visibility: hidden; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .ct-cards__item--third { grid-column: span 3; }
  .ct-cards__item--third:nth-child(3) { grid-column: span 6; }
  .ct-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-step:nth-child(3) { padding-left: 0; border-left: 0; }
  .ct-step:nth-child(n + 3) { border-top: 1px solid rgba(201, 214, 220, 0.18); }
}
@media (max-width: 900px) {
  .ct-booking__grid, .ct-map__grid, .ct-faq__grid { grid-template-columns: 1fr; }
  .ct-booking__aside { position: relative; top: 0; }
  .ct-stage--spiral { width: min(100%, 300px); justify-self: center; }
  .ct-hero::before { background: linear-gradient(180deg, rgba(245, 241, 234, 0.9) 0%, rgba(245, 241, 234, 0.55) 45%, rgba(245, 241, 234, 0) 75%); }
  .ct-hero__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-hero__hint { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 760px) {
  .ct-form__grid { grid-template-columns: 1fr; }
  .ct-cards { grid-template-columns: 1fr; }
  .ct-cards__item--third, .ct-cards__item--half, .ct-cards__item--third:nth-child(3) { grid-column: auto; }
  .ct-form__actions .btn { width: 100%; }
  .ct-acc__inner p { padding-right: 0; }
}
@media (max-width: 560px) {
  .ct-steps { grid-template-columns: 1fr; }
  .ct-step, .ct-step + .ct-step { padding-left: 0; border-left: 0; }
  .ct-step + .ct-step { border-top: 1px solid rgba(201, 214, 220, 0.18); }
  .ct-hero__meta { grid-template-columns: 1fr; }
  .ct-hero__actions .btn { flex: 1 1 100%; }
  .ct-map__frame { aspect-ratio: 4 / 5; }
  .ct-map__note { border-radius: 14px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-hero__fallback, .ct-spiral__fallback, .ct-map__pin svg, .ct-map__pulse, .ct-hero__hint-dot::after { animation: none; }
}
