/* =====================================================================
   Akıl Yazılım — Site Extra Styles
   WhatsApp floating button + References (Referanslar) pages
   Design tokens inherited from custom.css:
   --primary-color #15161B  --secondary-color #F7F8FD
   --text-color #9C9FA6  --accent-color #e7983d  --white-color #FFFFFF
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* WhatsApp Floating Button                                            */
/* ------------------------------------------------------------------ */
.wa-float {
	position: fixed;
	bottom: 28px;
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}
.wa-float--left { left: 28px; flex-direction: row-reverse; }
.wa-float--right { right: 28px; }

.wa-float__icon {
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #25D366;
	color: #fff;
	box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
	transition: transform .25s ease, box-shadow .25s ease;
	position: relative;
}
.wa-float__icon::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: #25D366;
	opacity: .55;
	z-index: -1;
	animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
	0% { transform: scale(1); opacity: .55; }
	70% { transform: scale(1.7); opacity: 0; }
	100% { transform: scale(1.7); opacity: 0; }
}
.wa-float:hover .wa-float__icon {
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 14px 32px rgba(37, 211, 102, .6);
}
.wa-float__tooltip {
	background: var(--primary-color, #15161B);
	color: #fff;
	font-family: var(--default-font, "Manrope", sans-serif);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	padding: 10px 16px;
	border-radius: 10px;
	white-space: nowrap;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
	position: relative;
	opacity: 0;
	transform: translateX(8px);
	transition: opacity .25s ease, transform .25s ease;
	pointer-events: none;
}
.wa-float--left .wa-float__tooltip::after {
	content: "";
	position: absolute;
	right: -6px; top: 50%;
	transform: translateY(-50%);
	border: 6px solid transparent;
	border-left-color: var(--primary-color, #15161B);
}
.wa-float--right .wa-float__tooltip { transform: translateX(-8px); }
.wa-float--right .wa-float__tooltip::after {
	content: "";
	position: absolute;
	left: -6px; top: 50%;
	transform: translateY(-50%);
	border: 6px solid transparent;
	border-right-color: var(--primary-color, #15161B);
}
.wa-float:hover .wa-float__tooltip { opacity: 1; transform: translateX(0); }

@media (max-width: 767px) {
	.wa-float { bottom: 20px; }
	.wa-float--left { left: 18px; }
	.wa-float--right { right: 18px; }
	.wa-float__icon { width: 52px; height: 52px; flex-basis: 52px; }
	.wa-float__tooltip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.wa-float__icon::after { animation: none; }
}

/* ------------------------------------------------------------------ */
/* References — list grid                                              */
/* ------------------------------------------------------------------ */
.references-list { padding: 100px 0; }
.reference-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--white-color, #fff);
	border: 1px solid var(--divider-color, #E1E4EB);
	border-radius: 20px;
	overflow: hidden;
	transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
	margin-bottom: 30px;
}
.reference-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 50px rgba(21, 22, 27, .12);
	border-color: var(--accent-color, #e7983d);
}
.reference-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--secondary-color, #F7F8FD);
}
.reference-card__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}
.reference-card:hover .reference-card__media img { transform: scale(1.06); }
/* Logo treatment for cards that provide a brand logo instead of a photo */
.reference-card__media--logo {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #ffffff 0%, #eef2f9 100%);
	padding: 22px;
}
.reference-card__media--logo .reference-card__logo {
	width: auto;
	height: auto;
	max-width: 74%;
	max-height: 74%;
	object-fit: contain;
	transition: transform .5s ease;
}
.reference-card:hover .reference-card__media--logo .reference-card__logo { transform: scale(1.05); }
.reference-card__badge {
	position: absolute;
	top: 16px; left: 16px;
	background: rgba(21, 22, 27, .82);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .3px;
	padding: 7px 14px;
	border-radius: 30px;
	backdrop-filter: blur(4px);
}
.reference-card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.reference-card__body h3 { font-size: 22px; margin: 0 0 12px; color: var(--primary-color, #15161B); }
.reference-card__body p { color: var(--text-color, #9C9FA6); margin: 0 0 20px; flex: 1; }
.reference-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.reference-card__tags span {
	font-size: 12px; font-weight: 600;
	color: var(--accent-color, #e7983d);
	background: rgba(231, 152, 61, .12);
	padding: 6px 12px; border-radius: 30px;
}
.reference-card__link {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 700; color: var(--primary-color, #15161B);
	text-decoration: none; margin-top: auto;
}
.reference-card__link i { transition: transform .3s ease; color: var(--accent-color, #e7983d); }
.reference-card:hover .reference-card__link i { transform: translateX(5px); }

/* ------------------------------------------------------------------ */
/* Reference detail                                                    */
/* ------------------------------------------------------------------ */
.ref-detail { overflow: hidden; }
.ref-section { padding: 90px 0; }
.ref-section--tight { padding: 60px 0; }
.ref-section--alt { background: var(--secondary-color, #F7F8FD); }
.ref-eyebrow {
	display: inline-block;
	font-size: 15px; font-weight: 700;
	color: var(--accent-color, #e7983d);
	text-transform: uppercase; letter-spacing: 1px;
	margin-bottom: 14px;
}
.ref-heading { font-size: clamp(28px, 4vw, 44px); color: var(--primary-color, #15161B); margin-bottom: 22px; line-height: 1.15; }
.ref-lead { font-size: 18px; color: var(--text-color, #9C9FA6); max-width: 760px; }

/* Hero */
.ref-hero {
	position: relative;
	padding: 70px 0 80px;
	background:
		linear-gradient(120deg, rgba(21,22,27,.94) 0%, rgba(21,22,27,.78) 55%, rgba(21,22,27,.55) 100%),
		var(--primary-color, #15161B);
	color: #fff;
}
.ref-hero--image { background-size: cover; background-position: center; }
.ref-hero__inner { position: relative; z-index: 2; }
.ref-hero__eyebrow {
	display: inline-block;
	background: rgba(231, 152, 61, .18);
	color: var(--accent-color, #e7983d);
	font-weight: 700; font-size: 14px; letter-spacing: .6px;
	padding: 8px 18px; border-radius: 30px; margin-bottom: 22px;
}
.ref-hero h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.08; margin-bottom: 22px; color: #fff; }
.ref-hero p { font-size: 19px; color: rgba(255, 255, 255, .82); max-width: 720px; margin-bottom: 30px; }
.ref-hero__logo { max-height: 64px; width: auto; margin-bottom: 26px; background:#fff; padding:10px 16px; border-radius:12px; }
.ref-hero__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.ref-hero__tags span {
	font-size: 13px; font-weight: 600; color: #fff;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .2);
	padding: 8px 16px; border-radius: 30px;
}
.ref-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.ref-hero__actions .btn-default.ghost {
	background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .4);
}
.ref-hero__actions .btn-default.ghost::before { background: #fff; }
.ref-hero__actions .btn-default.ghost:hover { color: var(--primary-color, #15161B); }

/* Overview */
.ref-overview p { color: var(--text-color, #9C9FA6); font-size: 17px; line-height: 1.85; margin-bottom: 20px; }
.ref-overview h2, .ref-overview h3 { color: var(--primary-color, #15161B); margin: 30px 0 16px; }

/* Stats */
.ref-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ref-stat {
	text-align: center; padding: 34px 20px;
	background: var(--white-color, #fff);
	border: 1px solid var(--divider-color, #E1E4EB);
	border-radius: 18px;
}
.ref-stat__value { font-size: 44px; font-weight: 700; color: var(--accent-color, #e7983d); line-height: 1; }
.ref-stat__value small { font-size: 26px; }
.ref-stat__label { margin-top: 12px; color: var(--text-color, #9C9FA6); font-size: 15px; }

/* Feature / module grid */
.ref-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ref-feature {
	background: var(--white-color, #fff);
	border: 1px solid var(--divider-color, #E1E4EB);
	border-radius: 18px;
	padding: 32px 28px;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
	height: 100%;
}
.ref-feature:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(21,22,27,.1); border-color: var(--accent-color, #e7983d); }
.ref-feature__icon {
	width: 60px; height: 60px; border-radius: 14px;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(231, 152, 61, .12); color: var(--accent-color, #e7983d);
	font-size: 26px; margin-bottom: 20px;
}
.ref-feature__icon img { width: 32px; height: 32px; }
.ref-feature h3 { font-size: 20px; color: var(--primary-color, #15161B); margin-bottom: 12px; }
.ref-feature p { color: var(--text-color, #9C9FA6); margin: 0; line-height: 1.7; }

/* Tech chips */
.ref-tech { display: flex; flex-wrap: wrap; gap: 12px; }
.ref-tech span {
	font-size: 15px; font-weight: 600;
	color: var(--primary-color, #15161B);
	background: var(--white-color, #fff);
	border: 1px solid var(--divider-color, #E1E4EB);
	padding: 11px 20px; border-radius: 12px;
	transition: border-color .3s ease, color .3s ease;
}
.ref-tech span:hover { border-color: var(--accent-color, #e7983d); color: var(--accent-color, #e7983d); }

/* Sites / deployments */
.ref-sites { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.ref-site {
	display: flex; gap: 22px; align-items: flex-start;
	background: var(--white-color, #fff);
	border: 1px solid var(--divider-color, #E1E4EB);
	border-radius: 18px; padding: 26px; height: 100%;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ref-site:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(21,22,27,.1); border-color: var(--accent-color, #e7983d); }
.ref-site__thumb {
	flex: 0 0 96px; width: 96px; height: 96px; border-radius: 14px; overflow: hidden;
	background: var(--secondary-color, #F7F8FD); display: flex; align-items: center; justify-content: center;
}
.ref-site__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ref-site__thumb img.logo { object-fit: contain; padding: 12px; }
.ref-site__body h3 { font-size: 20px; margin: 0 0 8px; color: var(--primary-color, #15161B); }
.ref-site__body p { color: var(--text-color, #9C9FA6); margin: 0 0 12px; line-height: 1.6; }
.ref-site__body a {
	display: inline-flex; align-items: center; gap: 7px;
	font-weight: 700; color: var(--accent-color, #e7983d); text-decoration: none; font-size: 15px;
}
.ref-site__body a i { transition: transform .3s ease; }
.ref-site:hover .ref-site__body a i { transform: translateX(4px); }

/* Highlights */
.ref-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; }
.ref-highlight {
	display: flex; gap: 16px; align-items: flex-start;
	padding: 18px 0; border-bottom: 1px solid var(--divider-color, #E1E4EB);
}
.ref-highlight i {
	flex: 0 0 auto; margin-top: 2px;
	width: 26px; height: 26px; border-radius: 50%;
	background: var(--accent-color, #e7983d); color: #fff;
	display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}
.ref-highlight span { color: var(--primary-color, #15161B); font-weight: 500; font-size: 16px; }

/* Gallery */
.ref-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ref-gallery figure { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.ref-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ref-gallery figure:hover img { transform: scale(1.06); }

/* CTA */
.ref-cta {
	background: linear-gradient(120deg, var(--primary-color, #15161B), #24252d);
	border-radius: 24px; padding: 60px; text-align: center; color: #fff;
}
.ref-cta h2 { color: #fff; font-size: clamp(26px, 3.5vw, 40px); margin-bottom: 16px; }
.ref-cta p { color: rgba(255, 255, 255, .8); font-size: 18px; max-width: 640px; margin: 0 auto 30px; }

/* Home references teaser link on work cards */
.works-item { position: relative; }
.works-item a.works-link { position: absolute; inset: 0; z-index: 3; }

/* Responsive */
@media (max-width: 991px) {
	.ref-stats { grid-template-columns: repeat(2, 1fr); }
	.ref-features { grid-template-columns: repeat(2, 1fr); }
	.ref-sites { grid-template-columns: 1fr; }
	.ref-highlights { grid-template-columns: 1fr; }
	.ref-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
	.ref-section { padding: 60px 0; }
	.ref-stats, .ref-features, .ref-gallery { grid-template-columns: 1fr; }
	.ref-cta { padding: 40px 24px; }
	.ref-site { flex-direction: column; }
}
