/* ============ Buttons & links ============ */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 7px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.text-link .arrow { transition: transform .3s var(--ease-out); display: inline-block; }
.text-link:hover .arrow { transform: translate(3px, -3px); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.btn-invert { border-color: var(--on-dark); }
.btn.btn-invert:hover { background: var(--on-dark); color: var(--dark); }
.btn.btn-solid { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.btn.btn-solid:hover { background: var(--brand-blue-deep); border-color: var(--brand-blue-deep); }

/* Slightly-magnetic button: transform only, kept subtle (see js/animations/header.js magnetic()) */
.btn-magnetic { will-change: transform; }

/* ============ Real media frames ============ */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--dark-soft);
  isolation: isolate;
}
.media-frame img,
.media-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.media-frame.ratio-hero { aspect-ratio: 16 / 9; }
.media-frame.ratio-wide { aspect-ratio: 21 / 9; }
.media-frame.ratio-story { aspect-ratio: 16 / 10; }
.media-frame.ratio-card { aspect-ratio: 4 / 3; }
.media-frame.ratio-service { aspect-ratio: 4 / 5; }
.media-caption {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

/* Temporary editorial visual — used only when a high-res service photo is unavailable.
   Swap by replacing the .temp-visual block with a .media-frame > img of the same slot name. */
.temp-visual {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  background:
    radial-gradient(120% 80% at 12% 18%, rgba(31, 63, 143, 0.55), transparent 55%),
    linear-gradient(155deg, #161c18 0%, #0e1210 48%, #142a63 130%);
  color: var(--on-dark);
}
.temp-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 18px);
  opacity: .55;
  pointer-events: none;
}
.temp-visual-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 10px;
  padding: 24px;
}
.temp-visual-mark strong {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -.04em;
  font-weight: 600;
}
.temp-visual-mark span {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

/* Legacy placeholder kept for any remaining slots */
.media-placeholder {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px),
    linear-gradient(155deg, #1b2420 0%, #0e1210 62%, #142a63 140%);
  color: var(--on-dark);
  display: flex;
  align-items: flex-end;
}
.media-placeholder.tone-paper {
  background:
    repeating-linear-gradient(135deg, rgba(20,20,15,.035) 0 2px, transparent 2px 14px),
    linear-gradient(155deg, #e4e0d5 0%, #d8d3c4 100%);
  color: var(--ink);
}
.media-placeholder-tag {
  margin: 20px;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: .82;
  backdrop-filter: blur(2px);
}
.media-placeholder-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: .16;
  font-size: clamp(40px, 8vw, 96px);
  font-family: var(--font-display);
  pointer-events: none;
}

/* ============ Reveal / stagger primitives (initial state; JS animates) ============ */
.reveal-line { overflow: hidden; display: block; }
.reveal-line > span { display: block; will-change: transform; }
.reveal { will-change: transform, opacity; }
.js-off .reveal-line > span,
.js-off .reveal { transform: none !important; opacity: 1 !important; }

/* ============ Marquee (references) ============ */
.marquee-wrap {
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 46px 0;
}
.marquee-wrap:focus-within .marquee-track,
.marquee-wrap.is-paused .marquee-track { animation-play-state: paused; }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 90px;
  width: max-content;
  animation: marquee 46s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: -.01em;
}
.marquee-pause-btn {
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--paper);
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.marquee-pause-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ============ Service rows (dark, sticky storytelling) ============ */
.services-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.18fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.services-visual {
  position: sticky;
  top: 110px;
  height: calc(100svh - 150px);
  min-height: 420px;
}
.services-visual-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #121612;
}
/* Scoped through .services-visual so it outranks Elementor's own
   `.elementor img { height: auto }` (same specificity, loaded later), which
   otherwise shrinks the image to its intrinsic ratio inside the frame. */
.services-visual .services-visual-frame img,
.services-visual-frame .temp-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.services-visual-frame img.is-active,
.services-visual-frame .temp-visual.is-active {
  opacity: 1;
  pointer-events: auto;
}
.services-visual-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-dark);
  border: 1px solid rgba(244, 242, 236, 0.35);
  background: rgba(14, 18, 16, 0.45);
  backdrop-filter: blur(8px);
}
.services-list-col { min-width: 0; }
.service-row {
  display: grid;
  grid-template-columns: 64px 1fr 56px;
  gap: 22px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-dark);
  cursor: pointer;
  transition: opacity .35s var(--ease-out);
}
.services-list-col:has(.service-row.is-active) .service-row:not(.is-active) { opacity: .48; }
.service-row.is-active { opacity: 1; }
.service-row .num { font-size: 12px; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.service-row h3 { font-size: clamp(26px, 3.2vw, 48px); line-height: .98; font-weight: 500; }
.service-row p {
  grid-column: 2 / 3;
  color: var(--on-dark-muted);
  line-height: 1.65;
  max-width: 540px;
  font-size: 15px;
  margin-top: -6px;
}
.service-arrow {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: grid;
  place-items: center;
  justify-self: end;
  transition: background-color .3s var(--ease-out), transform .3s var(--ease-out), border-color .3s;
}
.service-row:hover .service-arrow,
.service-row:focus-visible .service-arrow,
.service-row.is-active .service-arrow {
  background: var(--on-dark);
  color: var(--dark);
  border-color: var(--on-dark);
  transform: rotate(-35deg);
}
@media (max-width: 980px) {
  .services-showcase { grid-template-columns: 1fr; }
  .services-visual {
    position: relative;
    top: auto;
    height: 56vw;
    min-height: 260px;
    max-height: 420px;
  }
  .services-list-col:has(.service-row.is-active) .service-row:not(.is-active) { opacity: 1; }
}
/* ============ Values ============ */
.value-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 26px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.value-item .num { font-size: 13px; color: var(--muted); }
.value-item h3 { font-size: 24px; margin-bottom: 8px; font-weight: 600; font-family: var(--font-display); }
.value-item p { color: var(--muted); line-height: 1.65; }

/* ============ News ============ */
.news-card { border-top: 1px solid var(--line); padding-top: 20px; }
.news-card .date { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.news-card h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.12; margin: 16px 0 14px; font-weight: 600; }
.news-card p { color: var(--muted); line-height: 1.65; margin-bottom: 18px; }
.news-card .news-media {
  aspect-ratio: 1 / 1;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.news-card .news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* News frames are square; portrait images (often captioned social posts)
   would lose their top or bottom to a cover crop - show them whole instead. */
.news-media:has(img.is-portrait) { background: var(--dark); }
.news-media img.is-portrait { object-fit: contain; }

/* ============ Contact meta ============ */
.contact-meta { border-top: 1px solid var(--line-strong); }
.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line-strong);
  padding: 18px 0;
  font-size: 15px;
}
.meta-row span:first-child { color: var(--muted); }
.meta-row a:hover { text-decoration: underline; text-underline-offset: 4px; }
.todo-flag {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(185,29,51,.12);
  color: var(--brand-red);
}

/* ============ Breadcrumb (service/inner pages) ============ */
.breadcrumb { display: flex; gap: 10px; font-size: 12px; color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: .08em; }
.breadcrumb a:hover { text-decoration: underline; }

/* ============ Stat block (real, verifiable numbers only) ============ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; border-top: 1px solid var(--line-dark); padding-top: 40px; }
.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.2vw, 64px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stat-item .stat-label { margin-top: 10px; font-size: 13px; color: var(--on-dark-muted); line-height: 1.5; }
.stat-item .stat-source { margin-top: 6px; font-size: 11px; color: rgba(244, 242, 236, 0.8); }

/* Related services on light pages */
.related-services .service-row {
  border-bottom-color: var(--line);
}
.related-services .service-row .num { color: var(--muted); }
.related-services .service-row h3 { color: var(--ink); }
.related-services .service-row p { color: var(--muted); }
.related-services .service-arrow {
  border-color: var(--line-strong);
  color: var(--ink);
}
.related-services .service-row:hover .service-arrow,
.related-services .service-row:focus-visible .service-arrow {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.related-services .services-list {
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .service-row { grid-template-columns: 46px 1fr 52px; }
  .service-row p { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
}

/* ============ Contact Form 7 (Tırtaş Teklif Formu widget) - the demo never
   shipped a working form, so this follows the same token/spacing system as
   .contact-meta/.btn rather than any framework default. ============ */
.tirtas-form .wpcf7-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.tirtas-form .wpcf7-form p { margin: 0; grid-column: span 1; }
.tirtas-form .wpcf7-form p:has(textarea),
.tirtas-form .wpcf7-form p:has(.wpcf7-acceptance),
.tirtas-form .wpcf7-form p:has(.wpcf7-submit) { grid-column: 1 / -1; }
.tirtas-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.tirtas-form input[type="text"],
.tirtas-form input[type="email"],
.tirtas-form input[type="tel"],
.tirtas-form select,
.tirtas-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 15px;
}
.tirtas-form textarea { min-height: 130px; resize: vertical; }
.tirtas-form input:focus,
.tirtas-form select:focus,
.tirtas-form textarea:focus { outline: 2px solid var(--brand-blue); outline-offset: 1px; }
.tirtas-form .wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 400; color: var(--muted); }
.tirtas-form .wpcf7-submit { cursor: pointer; }
.tirtas-form .wpcf7-not-valid-tip { display: block; font-size: 12px; color: var(--brand-red); margin-top: 6px; font-weight: 600; }
.tirtas-form .wpcf7-response-output { margin-top: 20px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 14px; }
@media (max-width: 700px) {
  .tirtas-form .wpcf7-form { grid-template-columns: 1fr; }
}
