/* ============================================================
   HERO
============================================================ */
.hero {
  height: 100svh;
  min-height: 680px;
  background: var(--dark);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; background: var(--dark); }
.hero-media .hero-poster,
.hero-media .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-media .hero-video {
  z-index: 1;
}
.hero-media .hero-poster {
  z-index: 0;
}
.hero-slide.is-video-ready .hero-poster {
  opacity: 0;
  transition: opacity .6s var(--ease-out);
}
.hero.prefers-still .hero-video {
  display: none;
}

/* Hero slider - the subset of Swiper's core/fade CSS this slider uses,
   inlined instead of loading swiper-bundle.css. */
.hero-swiper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform;
  touch-action: pan-y;
}
.hero-swiper .swiper-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  box-sizing: content-box;
  transition-property: transform;
  transform: translate3d(0, 0, 0);
}
.hero-slide {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--dark);
  transition-property: transform;
}
.hero-swiper.swiper-fade .hero-slide { pointer-events: none; transition-property: opacity; }
.hero-swiper.swiper-fade .swiper-slide-active { pointer-events: auto; }
.hero-swiper:not(.swiper-initialized) .hero-slide:not(:first-child) { display: none; }
.hero-swiper .swiper-notification {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
  z-index: -1000;
}

.hero-slider-nav {
  position: absolute;
  z-index: 3;
  top: 116px;
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--on-dark);
}
.hero-slider-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(6, 8, 6, .28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s;
}
.hero-slider-arrow:hover {
  background: var(--on-dark);
  color: var(--dark);
  border-color: var(--on-dark);
}
.hero-slider-bullets {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 18px;
  border-radius: 23px;
  background: rgba(6, 8, 6, .28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero-slider-bullet {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1;
  color: var(--on-dark-muted);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  transition: color .3s var(--ease-out);
}
.hero-slider-bullet[aria-current="true"],
.hero-slider-bullet:hover { color: var(--on-dark); }
.hero-slider-bar {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--line-dark);
  overflow: hidden;
}
.hero-slider-bar > span {
  display: block;
  height: 100%;
  background: var(--on-dark);
  transform: scaleX(0);
  transform-origin: left center;
}
@media (max-width: 700px) {
  .hero-slider-nav { top: 96px; gap: 10px; }
  .hero-slider-arrow { width: 38px; height: 38px; }
  .hero-slider-bullets { gap: 10px; height: 38px; padding: 0 14px; }
  .hero-slider-bar { width: 36px; }
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(6,8,6,.88) 0%, rgba(6,8,6,.72) 28%, rgba(6,8,6,.28) 58%, rgba(6,8,6,.22) 100%),
    linear-gradient(0deg, rgba(6,8,6,.55) 0%, transparent 42%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 56px;
}
/* The copy layer covers the whole hero; let drags/swipes on it reach the
   slider underneath, keeping only its own links clickable. */
.hero-grid { pointer-events: none; }
.hero-grid a, .hero-grid button { pointer-events: auto; }
.hero-copy { max-width: 1100px; }
.hero h1 {
  font-family: var(--font-hero);
  font-size: clamp(46px, 7.2vw, 108px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0 0 34px;
  max-width: 14ch;
  text-wrap: balance;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 10px 36px rgba(0, 0, 0, 0.4);
}
.hero h1 .reveal-line {
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero h1 .reveal-line > span {
  display: block;
  padding-bottom: 0.06em;
}
.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
}
.hero-bottom p { max-width: 620px; font-size: 18px; line-height: 1.6; color: var(--on-dark-muted); }
.hero-index { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.scroll-indicator {
  position: absolute;
  right: var(--gutter);
  bottom: 34px;
  z-index: 3;
  width: 56px; height: 56px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--on-dark);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s;
}
.scroll-indicator:hover {
  background: var(--on-dark);
  color: var(--dark);
  border-color: var(--on-dark);
}
.scroll-indicator svg { animation: scrollBob 1.8s ease-in-out infinite; }
@keyframes scrollBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .scroll-indicator svg { animation: none; } }

/* ============================================================
   INTRO / EDITORIAL LEAD
============================================================ */
.intro-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: start; }
.intro-title { font-size: clamp(42px, 6vw, 92px); line-height: .94; max-width: 900px; }
.intro-copy { padding-top: 6px; }
.intro-copy p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; margin-bottom: 34px; max-width: 700px; color: var(--ink-soft); }

/* ============================================================
   STORY / 1980 YEAR REVEAL
============================================================ */
.year-wrap { background: var(--brand-blue); color: #fff; overflow: hidden; }
.year-num {
  font-family: var(--font-display);
  font-size: clamp(140px, 30vw, 480px);
  line-height: .72;
  font-weight: 600;
  white-space: nowrap;
  margin-left: -.03em;
  padding: 70px 0 34px;
  will-change: transform;
  backface-visibility: hidden;
}
.year-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-bottom: 90px;
}
.year-info h2 { font-size: clamp(28px, 3.6vw, 56px); line-height: 1.04; }
.year-info p { font-size: 18px; line-height: 1.7; max-width: 600px; }

/* ============================================================
   SERVICES
============================================================ */
.services-section { background: var(--dark); color: var(--on-dark); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 22px;
  margin-bottom: 10px;
  gap: 24px;
}
.section-head h2 { font-size: clamp(42px, 5.6vw, 88px); line-height: .92; }
.services-list { border-top: 1px solid var(--line-dark); margin-top: 14px; }

/* ============================================================
   VISUAL STORY (full-bleed panel with pinned copy)
============================================================ */
.visual-story { height: 92svh; min-height: 620px; position: relative; overflow: hidden; }
.visual-story .media-frame,
.visual-story .media-placeholder {
  position: absolute;
  inset: 0;
  height: 116%;
  aspect-ratio: auto;
}
/* Two-video crossfade sequence (media.js initVideoSequences). */
/* Scoped so it outranks Elementor's `.elementor img { height: auto }`,
   which otherwise leaves the poster at its intrinsic ratio inside the
   (taller) frame. */
.visual-story .media-frame img { height: 100%; }
.video-sequence,
.media-frame .media-over-poster { position: absolute; inset: 0; }
.media-frame .video-sequence video { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.media-frame .video-sequence video.is-active { opacity: 1; }
.visual-story-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,10,8,.72), rgba(8,10,8,.08) 58%); pointer-events: none; }
.visual-story-copy { position: absolute; left: 0; right: 0; bottom: 0; color: var(--on-dark); padding-bottom: 60px; z-index: 2; }
.visual-story-copy h2 { font-size: clamp(36px, 6vw, 100px); line-height: .9; max-width: 1150px; }
.visual-story-copy p { max-width: 540px; font-size: 17px; line-height: 1.65; margin-top: 26px; color: var(--on-dark-muted); }

/* ============================================================
   VALUES
============================================================ */
.values-section { background: var(--surface); }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.values-copy h2 { font-size: clamp(40px, 5.6vw, 88px); line-height: .92; margin-bottom: 30px; }
.values-copy p { font-size: 19px; line-height: 1.7; color: var(--muted); max-width: 620px; }
.values-list { border-top: 1px solid var(--line); }

/* ============================================================
   NEWS
============================================================ */
.news-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; gap: 20px; flex-wrap: wrap; }
.news-top h2 { font-size: clamp(40px, 5.6vw, 88px); line-height: .92; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

/* ============================================================
   REFERENCES
============================================================ */
.refs-lead { max-width: 780px; }
.refs-lead h2 { font-size: clamp(38px, 5vw, 72px); line-height: .96; margin-bottom: 24px; }
.refs-lead p { font-size: 18px; line-height: 1.65; color: var(--muted); }
.refs-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 60px; }
.refs-grid-item {
  background: var(--surface);
  aspect-ratio: 3/2;
  display: grid;
  place-items: center;
  padding: 24px;
}
.refs-grid-item span {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 18px);
  text-transform: none;
  letter-spacing: -.02em;
  color: var(--ink-soft);
  text-align: center;
  font-weight: 600;
  line-height: 1.25;
}

/* ============================================================
   CONTACT
============================================================ */
.contact-section { background: var(--brand-blue); color: #fff; padding: 100px 0 0; overflow: hidden; }
.contact-section .eyebrow { color: rgba(255,255,255,.72); }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; padding-bottom: 90px; }
.contact-grid h1, .contact-grid h2 { font-size: clamp(56px, 9vw, 148px); line-height: .8; }
.contact-aside p { font-size: 19px; line-height: 1.6; max-width: 480px; }
.contact-section .contact-meta { border-top-color: rgba(255,255,255,.28); }
.contact-section .meta-row { border-bottom-color: rgba(255,255,255,.28); }
.contact-section .meta-row span:first-child { color: rgba(255,255,255,.7); }
.contact-section .todo-flag { background: #fff; color: var(--brand-blue-deep); }
.contact-section .btn { border-color: #fff; }
.contact-section .btn:hover { background: #fff; color: var(--brand-blue); }

/* ============================================================
   INNER-PAGE HERO (kurumsal, hizmet detay, haberler, iletişim, referanslar)
============================================================ */
.page-hero {
  padding: 168px 0 70px;
  background: var(--dark);
  color: var(--on-dark);
}
.page-hero h1 { font-size: clamp(44px, 7vw, 104px); line-height: .9; margin-top: 20px; }
.page-hero .breadcrumb { margin-bottom: 10px; }
.page-hero p { margin-top: 26px; max-width: 640px; font-size: 18px; line-height: 1.65; color: var(--on-dark-muted); }

.service-detail-media {
  aspect-ratio: 16 / 8;
  margin: 0 0 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.service-detail-media.media-frame { aspect-ratio: 16 / 8; }

.map-embed {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 21 / 9;
  background: var(--paper-dim);
  border: 1px solid var(--line);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.kurumsal-media {
  margin: 0 0 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.news-feature {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.news-feature:first-child { border-top: 0; padding-top: 0; }
.news-feature .news-media { margin: 0; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; }
/* Scoped past Elementor's `.elementor img { height: auto }` so the image fills
   the 16:10 frame instead of leaving an empty band under landscape shots. */
.news-feature .news-media img { width: 100%; height: 100%; object-fit: cover; }
.news-feature .news-media img.is-portrait { object-fit: contain; }
.news-feature .date { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }

.page-hero-media {
  margin-top: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 21 / 9;
}
/* Scoped past Elementor's `.elementor img { height: auto }`, which otherwise
   lets the image overflow the frame and crop to its top edge only. */
.page-hero .page-hero-media img { height: 100%; object-position: center 58%; }
.service-detail-body { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.service-detail-body p { font-size: 18px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 24px; }
.service-detail-facts { border-top: 1px solid var(--line); }

.service-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 80px;
}
.service-gallery-item { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; }
.service-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .service-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; } }
@media (max-width: 560px) { .service-gallery { grid-template-columns: 1fr; gap: 12px; } }

.kurumsal-block { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; padding: 70px 0; border-top: 1px solid var(--line); }
.kurumsal-block h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1; }
.kurumsal-block p { font-size: 18px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 20px; max-width: 680px; }

.news-article-body { max-width: 760px; }
.news-article-body p { font-size: 18px; line-height: 1.8; color: var(--ink-soft); margin-bottom: 22px; }
.news-article-body a { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 3px; }
.news-article-body a:hover { color: var(--brand-blue-deep); }
.news-article-body blockquote { margin: 34px 0; padding-left: 24px; border-left: 3px solid var(--brand-red); }
.news-article-body blockquote p { font-size: 20px; color: var(--ink); }
.news-article-body blockquote p:last-child { margin-bottom: 0; }
.news-article-body .news-source { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.7; color: var(--muted); }

@media (max-width: 980px) {
  .intro-grid, .values-grid, .contact-grid,
  .service-detail-body, .kurumsal-block, .news-feature { grid-template-columns: 1fr; }
  .kurumsal-block { padding: 50px 0; }
  .year-info { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .refs-grid { grid-template-columns: repeat(3, 1fr); }
  .map-embed { aspect-ratio: 4 / 3; }
}
@media (max-width: 620px) {
  .hero { min-height: 640px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .hero-bottom p { margin-bottom: 18px; }
  .news-grid { grid-template-columns: 1fr; }
  .refs-grid { grid-template-columns: repeat(2, 1fr); }
  .visual-story { height: 78svh; }
  /* On narrow screens the copy wraps to cover ~half the panel, so the
     desktop gradient fades out too early behind it (bright trailers in the
     story video made the title hard to read). */
  .visual-story-overlay { background: linear-gradient(0deg, rgba(8,10,8,.9), rgba(8,10,8,.66) 45%, rgba(8,10,8,.12) 80%); }
  .page-hero { padding: 140px 0 50px; }
  .page-hero-media { margin-top: 36px; aspect-ratio: 4 / 3; }
}
