/* HiFiTurk — /iletisim/
   Contact details as huge clickable type with copy buttons (signature), the map as a full-bleed dark band,
   and a minimal message composer that hands off to WhatsApp / e-mail. Accents use the mood vars only. */

[hidden] { display: none !important; }

/* ---------- hero + huge contact lines ---------- */
.ct-hero { padding-block: clamp(72px, 9vw, 128px) clamp(56px, 7vw, 104px); }
.ct-hero__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 40px); align-items: end; margin-bottom: clamp(32px, 5vw, 72px); }
.ct-hero__head h1 { grid-column: 1 / span 7; margin: 0; font-size: var(--display-2); }
.ct-hero__lede { grid-column: 8 / span 5; margin: 0; color: var(--muted); font-size: var(--step-1); line-height: 1.45; max-width: 32ch; }

.ct-lines { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--brass-line); }
.ct-line {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 9fr) auto; column-gap: clamp(16px, 3vw, 40px); align-items: center;
  padding-block: clamp(14px, 2.2vw, 30px); border-top: 1px solid var(--brass-line);
}
.ct-line__k { color: var(--muted); font-size: var(--step--1); }
.ct-line__v {
  position: relative; justify-self: start; display: inline-block;
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.05rem, .6rem + 6.2vw, 7rem);
  line-height: 1.04; letter-spacing: -.035em; white-space: nowrap; font-variant-numeric: lining-nums;
  color: var(--fg); text-decoration: none;
}
.ct-line__t { display: block; transition: opacity .6s; }
/* the accent copy is wiped over the text on hover/focus and when the value is copied */
.ct-line__fill {
  position: absolute; inset: 0; color: var(--accent-soft); font-style: italic; pointer-events: none;
  clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.76,0,.24,1);
}
.ct-line__v:hover .ct-line__fill, .ct-line__v:focus-visible .ct-line__fill, .ct-line.is-copied .ct-line__fill { clip-path: inset(0 0 0 0); }
.ct-line__v:hover .ct-line__t, .ct-line__v:focus-visible .ct-line__t, .ct-line.is-copied .ct-line__t { opacity: 0; }
.ct-line__v:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 4px; }

/* copy button: a round key that opens into "Kopyalandı" */
.ct-copy {
  position: relative; display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px;
  height: 52px; min-width: 52px; padding: 0 15px; border-radius: 999px;
  border: 1px solid rgba(232, 235, 238, .22); background: transparent; color: var(--fg);
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; overflow: hidden;
  transition: border-color .3s, background .4s var(--ease), color .3s, padding .5s cubic-bezier(.16,1,.3,1);
}
.ct-copy:hover { border-color: var(--accent); }
.ct-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ct-copy__i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ct-copy__i--ok { display: none; stroke-width: 2.2; stroke-dasharray: 24; stroke-dashoffset: 24; }
.ct-copy__t { max-width: 0; opacity: 0; white-space: nowrap; transition: max-width .55s cubic-bezier(.16,1,.3,1), opacity .3s; order: -1; }
.ct-line.is-copied .ct-copy { background: var(--accent); border-color: var(--accent); color: #0F1114; }
.ct-line.is-copied .ct-copy__t { max-width: 8em; opacity: 1; }
.ct-line.is-copied .ct-copy__i--copy { display: none; }
.ct-line.is-copied .ct-copy__i--ok { display: block; animation: ct-tick .5s cubic-bezier(.65,0,.35,1) .1s forwards; }
@keyframes ct-tick { to { stroke-dashoffset: 0; } }

@media (max-width: 760px) {
  .ct-hero__head h1, .ct-hero__lede { grid-column: 1 / -1; }
  .ct-hero__lede { margin-top: 14px; }
  .ct-line { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; padding-block: 16px 18px; }
  .ct-line__k { grid-column: 1; grid-row: 1; }
  .ct-line__v { grid-column: 1 / -1; grid-row: 2; font-size: clamp(1.9rem, 11.2vw, 3.6rem); }
  .ct-copy { grid-column: 2; grid-row: 1; height: 40px; min-width: 40px; padding: 0 10px; }
  .ct-copy__i { width: 18px; height: 18px; }
}

/* ---------- map: a full-bleed dark band ---------- */
.ct-map { position: relative; min-height: clamp(460px, 72vh, 760px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.ct-map__frame { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--surface); }
.ct-map__frame iframe {
  position: absolute; inset: -60px 0; width: 100%; height: calc(100% + 120px); border: 0; display: block;
  filter: grayscale(1) invert(.94) contrast(.92) brightness(.78);
}
/* the room's light falls on the map, and its edges fade into the page */
.ct-map__frame::before, .ct-map__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.ct-map__frame::before { z-index: 1; background: color-mix(in srgb, var(--glow) 16%, transparent); mix-blend-mode: color; }
.ct-map__frame::after {
  z-index: 2;
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 55%, color-mix(in srgb, var(--bg) 92%, transparent) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 85%, transparent) 0%, transparent 55%);
  transition: opacity .6s;
}
.ct-map__shield { position: absolute; inset: 0; z-index: 3; border: 0; background: transparent; cursor: pointer; }
.ct-map__shield:focus-visible { outline: 2px solid var(--accent); outline-offset: -6px; }
.ct-map.is-live .ct-map__shield { display: none; }
.ct-map.is-live .ct-map__frame::after { opacity: .35; }
.ct-map__pin { position: absolute; z-index: 2; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; pointer-events: none; }
.ct-map__pin::before, .ct-map__pin i { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.ct-map__pin i { background: var(--accent); box-shadow: 0 0 22px 4px color-mix(in srgb, var(--glow) 60%, transparent); }
.ct-map__pin::before { border: 1px solid var(--accent); animation: ct-ping 2.6s cubic-bezier(.16,1,.3,1) infinite; }
@keyframes ct-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(5); opacity: 0; } }
.ct-map.is-live .ct-map__pin { display: none; }

.ct-map__card { position: relative; z-index: 4; padding-block: clamp(40px, 6vw, 88px); pointer-events: none; }
.ct-map__card > * { pointer-events: auto; max-width: 30rem; }
.ct-map__card h2 { margin: 0 0 .25em; font-size: var(--display-2); }
.ct-map__card p { margin: 0; color: var(--fg); font-size: var(--step-1); }
.ct-map__card .ct-map__note { margin: 10px 0 24px; color: var(--muted); font-size: var(--step-0); max-width: 34ch; }
@media (max-width: 760px) {
  .ct-map { min-height: 0; flex-direction: column; align-items: stretch; }
  .ct-map__frame { position: relative; inset: auto; height: 62vw; min-height: 260px; }
  .ct-map__frame::after { background: linear-gradient(180deg, var(--bg) 0%, transparent 22%, transparent 70%, var(--bg) 100%); }
  .ct-map__card { padding-block: 8px 48px; }
}

/* ---------- composer: sleek and minimal ---------- */
.ct-compose { padding-bottom: clamp(96px, 11vw, 150px); }  /* room for the radio dock */
.ct-compose__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 40px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.ct-compose__head h2 { grid-column: 1 / span 7; margin: 0; font-size: var(--display-3); }
.ct-compose__head p { grid-column: 8 / span 5; margin: 0; color: var(--muted); max-width: 34ch; }

/* topic: three words, the chosen one underlined */
.mode { display: flex; flex-wrap: wrap; gap: 6px clamp(18px, 3vw, 40px); margin: 0 0 clamp(28px, 4vw, 48px); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mode__opt {
  position: relative; padding: 6px 0; border: 0; background: none; color: var(--muted); cursor: pointer;
  font-family: var(--serif); font-weight: 400; font-size: var(--step-2); letter-spacing: -.015em; line-height: 1.2;
  transition: color .3s;
}
.mode__opt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -15px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.mode__opt:hover { color: var(--fg); }
.mode__opt[aria-pressed="true"] { color: var(--fg); }
.mode__opt[aria-pressed="true"]::after { transform: none; }
.mode__opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.composer { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ct-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px clamp(20px, 3vw, 36px); }
.ct-form .field { gap: 6px; }
.ct-form .field:has(textarea), .ct-form .composer__actions, .ct-form .composer__status { grid-column: 1 / -1; }
.ct-form .field label { color: var(--muted); font-weight: 500; font-size: var(--step--1); }
.ct-form .field label .opt { color: var(--muted); }
.ct-form .field input, .ct-form .field select, .ct-form .field textarea {
  width: 100%; min-width: 0; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(232, 235, 238, .2); border-radius: 0;
  background: transparent; color: var(--fg); font: inherit; font-size: var(--step-1); box-shadow: none;
  transition: border-color .3s;
}
.ct-form .field select { appearance: none; -webkit-appearance: none; padding-right: 26px; cursor: pointer;
  background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 8px center / 6px 6px no-repeat,
              linear-gradient(-45deg, transparent 50%, var(--muted) 50%) right 2px center / 6px 6px no-repeat; }
.ct-form .field select option { background: var(--surface); color: var(--fg); }
.ct-form .field textarea { min-height: 7.5em; resize: vertical; line-height: 1.5; }
.ct-form .field input:focus, .ct-form .field select:focus, .ct-form .field textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.ct-form .field input:focus-visible, .ct-form .field select:focus-visible, .ct-form .field textarea:focus-visible { outline: none; }
.ct-form ::placeholder { color: color-mix(in srgb, var(--muted) 65%, transparent); }
.ct-form .field .hint { color: var(--muted); font-size: var(--step--1); }
.ct-form .field .error { color: #FF8A70; font-size: var(--step--1); }
.ct-form .field .error:empty { display: none; }
.ct-form .field [aria-invalid="true"] { border-bottom-color: #FF8A70; }
.composer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 8px; }
.ct-textbtn { padding: 4px 0; border: 0; background: none; color: var(--fg); font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--brass-line); text-underline-offset: 4px; transition: text-decoration-color .3s; }
.ct-textbtn:hover { text-decoration-color: var(--accent); }
.ct-textbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.composer__status { margin: 0; min-height: 1.6em; font-size: var(--step--1); }
.composer__status:empty { min-height: 0; }
.composer__status a { color: inherit; }
.composer__status[data-state="ok"] { color: var(--accent-soft); }
.composer__status[data-state="error"] { color: #FF8A70; }

/* preview: the message as it will arrive, a chat bubble */
.composer__preview { position: sticky; top: 100px; display: grid; gap: 12px; }
.composer__plabel { margin: 0; color: var(--muted); font-size: var(--step--1); }
.bubble {
  position: relative; padding: 18px 20px 30px; border-radius: 18px 18px 4px 18px;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid var(--brass-line);
  transition: background 1.6s;
}
.bubble textarea {
  display: block; width: 100%; min-height: 9em; resize: none; overflow: hidden; border: 0; background: transparent; color: var(--fg);
  font: inherit; font-size: var(--step-0); line-height: 1.55; padding: 0;
}
.bubble textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 4px; }
.bubble__meta { position: absolute; right: 16px; bottom: 9px; font-size: .74rem; color: var(--muted); }
.composer__note { margin: 0; color: var(--muted); font-size: var(--step--1); max-width: 40ch; }

@media (max-width: 900px) {
  .ct-compose__head h2, .ct-compose__head p { grid-column: 1 / -1; }
  .ct-compose__head p { margin-top: 10px; }
  .composer { grid-template-columns: minmax(0, 1fr); }
  .composer__preview { position: static; }
}
@media (max-width: 560px) {
  .ct-form { grid-template-columns: minmax(0, 1fr); }
  .mode { flex-direction: column; align-items: flex-start; gap: 2px; border-bottom: 0; padding-bottom: 0; }
  .mode__opt::after { bottom: 2px; }
  .composer__actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-map__pin::before { animation: none; }
  .ct-line__fill, .ct-copy__t { transition: none; }
}
