/* OFA — Hizmetler page (page-hizmetler.php), in the site's own type (Inter, weight 550, tight tracking)
   and scale: the offer with one question that picks the plan beside a window onto real sites; two plans
   as two colour fields meeting at a hard edge, one service per line; the projects as two cards; four
   steps in order; a closing question. Warm stone ground, ink, OFA blue on the actions and the list dots.
   Surfaces are told apart by tone, never by lines or shadows. */

.sv {
	/* colour: one ground, its tone steps, ink, one accent (and its dark shade for the list dots on light) */
	--sv-ground: #f1f0ec;
	--sv-step: #e6e4de;
	--sv-shell: #dbd8d0;
	--sv-core: #f7f7f5;
	--sv-ink: #111318;
	--sv-ink-2: #1d2027;
	--sv-ink-shell: #2a2d35;
	--sv-soft: #55575e;
	--sv-on-ink: #f3f3f1;
	--sv-on-ink-soft: #a9abb2;
	--sv-accent: #005efb;
	--sv-accent-press: #004ed4;
	--sv-mark: #0b4fd6;
	/* type: the site's scale */
	--sv-h1: clamp(28px, 2.4vw, 36px);
	--sv-h2: clamp(22px, 1.9vw, 27px);
	--sv-price: var(--sv-h1);
	--sv-h3: 18px;
	--sv-body: 16px;
	--sv-small: 14px;
	/* space and motion */
	--sv-gap: clamp(24px, 3vw, 48px);
	--sv-section: clamp(48px, 5.5vw, 84px);
	--sv-out: cubic-bezier(.22, 1, .36, 1);
	--sv-expo: cubic-bezier(.16, 1, .3, 1);
	--sv-in-out: cubic-bezier(.76, 0, .24, 1);
	--sv-soft-ease: cubic-bezier(.33, 1, .68, 1);
	color: var(--sv-ink);
	background: var(--sv-ground);
	font-family: var(--font);
}
body:has(.sv) { background: var(--sv-ground); }
.sv :where(h1, h2, h3, h4, p, ul, ol) { margin: 0; }
.sv :where(h1, h2, h3) { font-weight: 550; letter-spacing: -.03em; text-wrap: balance; }

/* ---------- buttons: one pill shape, the arrow in its own circle ---------- */
.sv-btn {
	--b-bg: var(--sv-accent); --b-fg: #fff; --b-ic: rgb(255 255 255 / .18); --b-hover: var(--sv-accent-press);
	display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 5px 5px 5px 20px; border-radius: 999px;
	background: var(--b-bg); color: var(--b-fg); font: 600 var(--sv-body)/1.2 var(--font); text-decoration: none; white-space: nowrap;
	transition: transform 140ms var(--sv-out), background-color 180ms var(--sv-out);
}
.sv-btn__ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--b-ic); transition: transform 400ms var(--sv-out); }
.sv-btn__ic svg { width: 17px; height: 17px; stroke-width: 1.6; }
.sv-btn:active { transform: scale(.97); }
.sv-btn:focus-visible { outline: 2px solid var(--sv-accent); outline-offset: 3px; }
.sv-btn--ink { --b-bg: var(--sv-ink); --b-ic: rgb(255 255 255 / .14); --b-hover: #2a2d35; }
.sv-btn--light { --b-bg: #fff; --b-fg: var(--sv-ink); --b-ic: rgb(17 19 24 / .07); --b-hover: #e9e8e3; }
@media (hover: hover) and (pointer: fine) {
	.sv-btn:hover { background: var(--b-hover); }
	.sv-btn:hover .sv-btn__ic { transform: translateX(3px) scale(1.05); }
}
.sv-link {
	color: inherit; font-size: var(--sv-body); font-weight: 600; text-decoration: underline; text-underline-offset: .22em;
	text-decoration-thickness: .07em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color 180ms var(--sv-out);
}
.sv-link:hover { text-decoration-color: currentColor; }
.sv-link:focus-visible { outline: 2px solid var(--sv-accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- services, one per line: a solid accent dot in front of each ---------- */
.sv-list { display: grid; gap: 5px; padding: 0; list-style: none; }
.sv-list li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.42; }
.sv-list li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 7px; height: 7px; border-radius: 50%; background: var(--sv-mark); }

/* ---------- 1. the offer, the question, a window onto real sites ---------- */
.sv-hero { padding: clamp(24px, 3vw, 44px) 0 clamp(32px, 3.6vw, 56px); overflow-x: clip; }
.sv-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: var(--sv-gap); }
.sv-hero__title { font-size: var(--sv-h1); line-height: 1.06; letter-spacing: -.032em; }
.sv-hero__title span { display: block; }
.sv-hero__lead { max-width: 42ch; margin-top: 12px !important; font-size: 17px; line-height: 1.55; }

/* each answer is a core sitting in a shell one tone darker */
.sv-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: clamp(20px, 2.2vw, 28px); }
.sv-pick__q { grid-column: 1 / -1; margin-bottom: 2px !important; font-size: var(--sv-body); font-weight: 600; }
.sv-pick__opt { display: block; padding: 5px; border-radius: 24px; background: var(--sv-shell); color: inherit; text-decoration: none; transition: background-color 180ms var(--sv-out), transform 140ms var(--sv-out); }
.sv-pick__core {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "answer ic" "plan ic" "price ic"; align-items: center;
	column-gap: 10px; padding: 10px 10px 10px 16px; border-radius: 19px; background: var(--sv-core);
}
.sv-pick__answer { grid-area: answer; font-size: var(--sv-small); font-weight: 600; color: var(--sv-soft); }
.sv-pick__plan { grid-area: plan; font-size: var(--sv-h3); font-weight: 600; letter-spacing: -.02em; }
.sv-pick__price { grid-area: price; font-size: var(--sv-body); font-weight: 600; font-variant-numeric: tabular-nums; }
.sv-pick .sv-btn__ic { grid-area: ic; width: 36px; height: 36px; background: var(--sv-ink); color: #fff; }
.sv-pick__opt:active { transform: scale(.985); }
.sv-pick__opt:focus-visible { outline: 2px solid var(--sv-accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
	.sv-pick__opt:hover { background: var(--sv-ink); }
	.sv-pick__opt:hover .sv-btn__ic { transform: translateX(3px) scale(1.05); background: var(--sv-accent); }
}

/* the window: real sites in a shell, turning every few seconds */
.sv-window { padding: 8px; border-radius: 28px; background: var(--sv-shell); }
@media (min-width: 1081px) {
	.sv-window { margin-right: calc(-1 * max(var(--gut), (100vw - var(--wrap)) / 2 + var(--gut))); padding-right: 0; border-radius: 28px 0 0 28px; }
	.sv-window__view { aspect-ratio: 16 / 10; max-height: min(460px, calc(100svh - var(--head) - 120px)); border-radius: 21px 0 0 21px; }
	.js .sv-window__view { clip-path: inset(0 100% 0 0 round 21px 0 0 21px); }
	.js .sv-window__view.is-open { clip-path: inset(0 round 21px 0 0 21px); }
}
.sv-window__view { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 21px; background: var(--sv-step); }
.sv-window__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; opacity: 0; transition: opacity 1.2s var(--sv-soft-ease); }
.sv-window__img.is-on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
	/* signature move: the window opens from its left edge while the picture settles from 1.12 */
	.js .sv-window__view { clip-path: inset(0 100% 0 0 round 21px); transition: clip-path 1100ms var(--sv-in-out) 200ms; }
	.js .sv-window__view .sv-window__img { transform: scale(1.12); transition: opacity 1.2s var(--sv-soft-ease), transform 1500ms var(--sv-soft-ease) 200ms; }
	.js .sv-window__view.is-open { clip-path: inset(0 round 21px); }
	.js .sv-window__view.is-open .sv-window__img { transform: none; }
	.js .sv-hero__copy > * { animation: sv-rise 800ms var(--sv-expo) both; }
	.js .sv-hero__copy > :nth-child(2) { animation-delay: 80ms; }
	.js .sv-hero__copy > :nth-child(3) { animation-delay: 160ms; }
}
@keyframes sv-rise { from { opacity: 0; transform: translateY(20px); } }

/* ---------- 2. plans: two fields that bleed to the edges and meet at a hard edge ---------- */
/* E-ticaret holds more, so it takes the wider field (5:7). --edge lines each field's outer text up with the
   page margin: a percentage here is of the field, which is 5/12 or 7/12 of the screen. */
.sv-plans { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.sv-plan { position: relative; display: flex; flex-direction: column; scroll-margin-top: var(--head); }
.sv-plan__in { flex: 1; padding-block: clamp(28px, 3.2vw, 48px) clamp(16px, 2vw, 28px); }
.sv-plan--kurumsal { --edge: max(var(--gut), calc(120% - var(--wrap) / 2 + var(--gut))); background: var(--sv-step); }
.sv-plan--kurumsal .sv-plan__in { padding-inline: var(--edge) var(--sv-gap); }
.sv-plan--e-ticaret { --edge: max(var(--gut), calc(85.714% - var(--wrap) / 2 + var(--gut))); --sv-mark: #8db8ff; background: var(--sv-ink); color: var(--sv-on-ink); }
.sv-plan--e-ticaret .sv-plan__in { padding-inline: var(--sv-gap) var(--edge); }
/* a plan picked from the question gets a bar of the accent along its top edge */
.sv-plan::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 5px; background: var(--sv-accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 900ms var(--sv-expo); }
.sv-plan.is-picked::before { transform: none; }

.sv-plan__name { font-size: var(--sv-h2); line-height: 1.1; }
.sv-plan__line { max-width: 46ch; margin-top: 10px !important; font-size: var(--sv-body); line-height: 1.6; }

.sv-plan__deal { margin-top: 16px; padding: 5px; border-radius: 24px; background: var(--sv-shell); }
.sv-plan--e-ticaret .sv-plan__deal { background: var(--sv-ink-shell); }
.sv-plan__deal-core { padding: clamp(14px, 1.4vw, 18px); border-radius: 19px; background: var(--sv-core); }
.sv-plan--e-ticaret .sv-plan__deal-core { background: var(--sv-ink-2); }
.sv-plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .3em; }
.sv-plan__price strong { font-size: var(--sv-price); font-weight: 650; line-height: 1.05; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.sv-plan__price span { font-size: var(--sv-h3); font-weight: 600; }
.sv-plan__note { max-width: 52ch; margin-top: 8px !important; font-size: var(--sv-small); line-height: 1.5; color: var(--sv-soft); }
.sv-plan--e-ticaret .sv-plan__note { color: var(--sv-on-ink-soft); }
.sv-plan__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 12px !important; }
.sv-plan--e-ticaret .sv-btn:focus-visible, .sv-plan--e-ticaret .sv-link:focus-visible { outline-color: #fff; }

.sv-plan__lead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 20px !important; font-size: var(--sv-h3); font-weight: 600; letter-spacing: -.02em; }
.sv-plan__groups { margin-top: 20px; }
.sv-plan__lead + .sv-plan__groups { margin-top: 12px; }
.sv-plan__group { break-inside: avoid; padding-bottom: 14px; }
.sv-plan__group h4 { margin-bottom: 6px; font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
/* E-ticaret lists more, so only its services flow into two columns; the two fields come out about level */
@media (min-width: 1180px) {
	.sv-plan__groups { columns: 2; column-gap: 28px; }
}
@media (prefers-reduced-motion: no-preference) {
	.js .sv-plan__group.reveal { transform: translateY(22px); }
	.js .sv-plan__group.reveal.is-in { transform: none; }
}

/* ---------- 3. projects on a quote: two cards, each a core in a shell ---------- */
.sv-work { padding-block: var(--sv-section); background: var(--sv-step); scroll-margin-top: var(--head); }
.sv-work__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 12px var(--sv-gap); }
.sv-work__title { font-size: var(--sv-h2); line-height: 1.1; }
.sv-work__sub { font-size: var(--sv-h3); line-height: 1.5; }
.sv-work__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(20px, 2.4vw, 32px); }
.sv-job { display: flex; padding: 5px; border-radius: 26px; background: var(--sv-shell); scroll-margin-top: calc(var(--head) + 24px); }
.sv-job__in { display: flex; flex-direction: column; width: 100%; padding: clamp(16px, 1.6vw, 22px); border-radius: 21px; background: var(--sv-core); }
.sv-job__name { font-size: 20px; line-height: 1.2; }
.sv-job__line { max-width: 52ch; margin-top: 8px !important; font-size: var(--sv-body); line-height: 1.6; }
.sv-job__items { margin-top: 12px; }
.sv-job__price { margin-top: auto !important; padding-top: 14px; font-size: var(--sv-small); line-height: 1.5; color: var(--sv-soft); }
.sv-job__price strong { display: block; margin-bottom: 2px; color: var(--sv-ink); font-size: var(--sv-h3); font-weight: 650; letter-spacing: -.02em; }
.sv-job__acts { margin-top: 10px !important; }

/* ---------- 4. how we work: four steps, in order ---------- */
.sv-steps { padding-block: var(--sv-section); }
.sv-steps__title { font-size: var(--sv-h2); line-height: 1.1; }
.sv-steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(18px, 2vw, 28px) !important; padding: 0; list-style: none; }
.sv-steps__step { padding: 14px 16px 16px; border-radius: 18px; background: var(--sv-step); }
.sv-steps__step h3 { font-size: var(--sv-h3); line-height: 1.25; }
.sv-steps__step p { margin-top: 6px !important; font-size: 15px; line-height: 1.5; }

/* ---------- 5. the close ---------- */
.sv-close { padding-block: var(--sv-section); background: var(--sv-ink); color: var(--sv-on-ink); }
.sv-close__in { display: grid; justify-items: center; text-align: center; }
.sv-close__q { font-size: var(--sv-h1); line-height: 1.08; letter-spacing: -.032em; }
.sv-close__note { max-width: 46ch; margin-top: 14px !important; font-size: var(--sv-h3); line-height: 1.55; color: var(--sv-on-ink-soft); }
.sv-close__acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 22px !important; }
.sv-close__or { font-size: var(--sv-body); color: var(--sv-on-ink-soft); }
.sv-close .sv-btn:focus-visible { outline-color: #fff; }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
	.sv-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.sv-window__view { aspect-ratio: 16 / 10; }
	.sv-hero__title { font-size: clamp(30px, 4.6vw, 36px); }
	.sv-plans { grid-template-columns: minmax(0, 1fr); }
	.sv-plan--kurumsal .sv-plan__in, .sv-plan--e-ticaret .sv-plan__in { padding-inline: var(--gut); }
	.sv-work__head { grid-template-columns: minmax(0, 1fr); }
	.sv-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
	.sv-pick { grid-template-columns: minmax(0, 1fr); }
	.sv-window { padding: 6px; border-radius: 22px; }
	.sv-window__view { aspect-ratio: 16 / 11; border-radius: 17px; }
	.sv-plan__acts .sv-btn { width: 100%; justify-content: space-between; }
	.sv-work__cards { grid-template-columns: minmax(0, 1fr); }
	.sv-job__acts .sv-btn { width: 100%; justify-content: space-between; }
	.sv-steps__list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.sv-close__acts { flex-direction: column; gap: 10px; }
	.sv-close__acts .sv-btn { width: min(100%, 320px); justify-content: space-between; }
}
