/*
 * GLOB360 visual refresh (2026-11-24). Loaded after css/styles.css (the static site's stylesheet, kept as it is) and
 * css/glob360.css. Photo-led heroes, background photos on the dark blocks, calmer cards and a tighter type scale.
 * Colours stay the brand's (styles.css :root).
 */

:root {
  --shade-strong: rgba(6, 31, 55, 0.92);
  --shade-mid: rgba(10, 53, 88, 0.72);
  --shade-soft: rgba(10, 53, 88, 0.18);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Type: tighter display headings ---------- */
h1, h2 { letter-spacing: -0.022em; }
h1 { line-height: 1.06; }
h2 { line-height: 1.12; }
.lead { line-height: 1.65; }

/* ---------- Photo-led heroes (home + inner pages) ---------- */
.hero-immersive--photo,
.hero-split--photo {
  position: relative;
  isolation: isolate;
  background: var(--navy-night);
  color: #fff;
  overflow: hidden;
}
.hero-immersive--photo::before,
.hero-split--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: g360-drift 24s var(--easing) both;
  border-radius: 0;
  width: auto; height: auto; top: 0; right: 0;
}
.hero-immersive--photo::after,
.hero-split--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--shade-strong) 0%, rgba(6,31,55,0.80) 38%, rgba(10,53,88,0.38) 70%, rgba(10,53,88,0.10) 100%),
    linear-gradient(180deg, rgba(6,31,55,0.35) 0%, transparent 30%, transparent 70%, rgba(6,31,55,0.55) 100%);
}
@keyframes g360-drift {
  from { transform: scale(1.10); }
  to { transform: scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-immersive--photo::before,
  .hero-split--photo::before { animation: none; transform: none; }
}

/* home hero */
.hero-immersive--photo { min-height: min(94vh, 900px); display: flex; align-items: center; }
.hero-immersive--photo > .container { width: 100%; }
.hero-immersive--photo .hero-immersive__backdrop { display: none; }
.hero-immersive--photo .hero-immersive__copy h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); max-width: 15ch; }
.hero-immersive--photo .hero-immersive__copy .lead { color: rgba(255,255,255,0.9); }
.hero-immersive--photo .hero-immersive__visual { height: 460px; }
.hero-immersive--photo .hero-card--stat {
  top: auto; bottom: 96px; left: auto; right: 0;
  width: min(360px, 100%);
  background: rgba(6,31,55,0.42);
  border-color: rgba(255,255,255,0.22);
  backdrop-filter: blur(16px) saturate(140%);
}
.hero-immersive--photo .hero-card--chips {
  top: auto; bottom: 0; left: auto; right: 0;
  background: rgba(255,255,255,0.94);
}
@media (max-width: 960px) {
  .hero-immersive--photo::after {
    background: linear-gradient(180deg, rgba(6,31,55,0.78) 0%, rgba(6,31,55,0.70) 55%, rgba(6,31,55,0.9) 100%);
  }
  .hero-immersive--photo .hero-immersive__visual { height: auto; display: grid; gap: 14px; }
  .hero-immersive--photo .hero-card { position: static; width: 100%; }
}

/* inner page hero */
.hero-split--photo { padding: 96px 0 0; background-color: var(--navy-night); }
.hero-split--photo .hero-split__layout { padding-block: 90px 110px; align-items: end; }
.hero-split--photo .hero-split__copy h1 { color: #fff; font-size: clamp(2.4rem, 4.6vw, 3.8rem); }
.hero-split--photo .hero-split__copy .lead { color: rgba(255,255,255,0.88); }
.hero-split--photo .eyebrow { color: var(--sky); }
.hero-split--photo .eyebrow::before { background: var(--sky); }
.hero-split--photo .button--link { color: #fff; }
.hero-split--photo .button--link:hover { color: var(--sky); }
.hero-split--photo .hero-quick a {
  color: #fff;
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}
.hero-split--photo .hero-quick a:hover { background: rgba(255,255,255,0.18); }
.hero-split--photo .hero-split__visual { height: auto; display: flex; justify-content: flex-end; }
.hero-split--photo .hero-split__visual .hero-statement {
  position: static;
  width: min(440px, 100%);
  background: rgba(6,31,55,0.46);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-xl);
}
.hero-split--photo .hero-split__visual .hero-statement::before { display: none; }
@media (max-width: 960px) {
  .hero-split--photo::after {
    background: linear-gradient(180deg, rgba(6,31,55,0.82) 0%, rgba(6,31,55,0.72) 60%, rgba(6,31,55,0.92) 100%);
  }
  .hero-split--photo .hero-split__layout { padding-block: 56px 64px; }
  .hero-split--photo .hero-split__visual { justify-content: stretch; }
}

/* ---------- Dark photo blocks: let the photo breathe ---------- */
.final-cta--with-image {
  background-image:
    linear-gradient(90deg, rgba(6,31,55,0.90) 0%, rgba(10,53,88,0.70) 55%, rgba(10,53,88,0.45) 100%),
    var(--bg-image);
  background-attachment: scroll;
}
.stats-band--with-image {
  background-image:
    linear-gradient(135deg, rgba(6,31,55,0.90) 0%, rgba(10,53,88,0.74) 60%, rgba(15,76,129,0.62) 100%),
    var(--bg-image);
}
.audience-panel--with-image {
  background-image:
    linear-gradient(180deg, rgba(6,31,55,0.40) 0%, rgba(6,31,55,0.80) 42%, rgba(6,31,55,0.94) 100%),
    var(--bg-image);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .5s var(--easing), box-shadow .5s var(--easing);
}
.audience-panel--with-image:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.operations-panel--photo {
  background-image:
    linear-gradient(180deg, rgba(6,31,55,0.25) 0%, rgba(6,31,55,0.55) 45%, rgba(6,31,55,0.92) 100%),
    var(--bg-image);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* ---------- Cards ---------- */
.service-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform .45s var(--easing), box-shadow .45s var(--easing), border-color .45s var(--easing);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card__media { aspect-ratio: 4 / 3; }
.service-card__media img { transition: transform .9s var(--easing); }
.service-card:hover .service-card__media img { transform: scale(1.07); }

/* ---------- Mosaic and feature photos ---------- */
.feature-photo,
.hero-figure { border-radius: var(--radius-xl); }

/* ---------- Header over the photo heroes ---------- */
.site-header:not(.is-scrolled) { transition: background-color .3s ease, box-shadow .3s ease; }

/* ---------- Top bar on phones: one line ----------
 * The fixed header sits 40px below the top of the page (one top-bar line). On narrow screens the agency title and the
 * TÜRSAB number wrapped into two lines (61px), so the header covered the second line and left a white strip above the
 * hero. Phones show the two credentials on one line, smaller; only the licence keeps its label. */
@media (max-width: 600px) {
  .top-bar { padding: 0; height: 40px; display: flex; align-items: center; overflow: hidden; }
  .top-bar .container { width: 100%; }
  .top-bar__inner { flex-wrap: nowrap; justify-content: center; }
  .top-bar__credentials { flex-wrap: nowrap; gap: 8px; white-space: nowrap; font-size: 0.72rem; }
  .top-bar__credentials > span:first-child strong { display: none; }
  .top-bar__credentials strong { font-size: 0.58rem; letter-spacing: 0.1em; }
  .top-bar__credentials em { font-size: 0.72rem; }
  .top-bar__phone { display: none; }
}

/* Photo heroes start under the fixed header (main keeps a 96px offset; the header is shorter on phones, which left a
 * white strip): the photo runs up behind the header, the content keeps its place. */
.page-main > .hero-split--photo:first-child,
.page-main > .hero-immersive--photo:first-child { margin-top: -96px; }
.page-main > .hero-split--photo:first-child { padding-top: 192px; }
.page-main > .hero-immersive--photo:first-child { padding-top: 236px; }
@media (max-width: 960px) {
  .page-main > .hero-split--photo:first-child { padding-top: 150px; }
  .page-main > .hero-immersive--photo:first-child { padding-top: 200px; }
}
