/* Sahager — sahager.com */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/plus-jakarta-sans.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #0b2e4f;
  --navy-deep: #082340;
  --petrol: #0e7490;
  --petrol-light: #3db8d4;
  --amber: #fbbf24;
  --paper: #f3f7f9;
  --white: #ffffff;
  --ink: #10212f;
  --muted: #52636f;
  --line: #d6e1e7;
  --on-dark: #c9d8e3;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --measure: 66ch;
  --page: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--petrol);
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: var(--gutter);
  top: 12px;
  z-index: 10;
  background: var(--white);
  padding: 8px 14px;
}

/* Üst menü ------------------------------------------------------------------ */

.masthead {
  padding: 22px 0;
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.masthead img {
  height: 40px;
  width: auto;
}

.masthead nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  font-size: 0.95rem;
  font-weight: 600;
}

.masthead nav a {
  color: inherit;
  text-decoration: none;
}

.masthead nav a:hover,
.masthead nav a[aria-current='page'] {
  text-decoration: underline;
}

.on-dark {
  background: var(--navy);
  color: var(--white);
}

/* Ana görsel ------------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 55%, rgba(14, 116, 144, 0.55), transparent 70%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}

/* Soluk harita ızgarası */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(8px, 3vw, 40px);
  padding-top: clamp(24px, 5vw, 56px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.hero h1 {
  max-width: 15.5ch;
}

.hero .lede {
  margin-top: 22px;
  max-width: 38ch;
  color: var(--on-dark);
  font-size: 1.15rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 34px;
}

.button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: #e4f3f7;
}

.link-light {
  color: var(--white);
  font-weight: 600;
}

/* Rota: kesikli çizgi planı, düz çizgi günün ilerleyişi */

.route {
  position: relative;
  aspect-ratio: 780 / 700;
  width: 100%;
  margin: 0;
}

.route-stops {
  margin: 0;
  padding: 0;
  list-style: none;
}

.route svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route .planned {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-dasharray: 2 16;
}

.route .progress {
  stroke: var(--petrol-light);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.6s linear 0.3s forwards;
}

.route .stop,
.route .pin,
.stop-label {
  opacity: 0;
  animation: arrive 0.45s ease-out forwards;
  animation-delay: calc(0.3s + var(--at) * 2.6s);
}

.stop-label {
  position: absolute;
  top: var(--y);
  transform: translateY(-50%);
  font-size: clamp(0.72rem, 1.35vw, 0.92rem);
  line-height: 1.35;
  color: var(--on-dark);
  white-space: nowrap;
}

.stop-label time {
  display: block;
  color: var(--white);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stop-label.left {
  right: calc(100% - var(--x) + 5%);
  text-align: right;
}

.stop-label.right {
  left: calc(var(--x) + 5%);
}

.stop-label.above {
  left: var(--x);
  transform: translate(-50%, -135%);
  text-align: center;
}

.stop-label.arrival time {
  color: var(--amber);
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes arrive {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route .progress {
    animation: none;
    stroke-dashoffset: 0;
  }

  .route .stop,
  .route .pin,
  .stop-label {
    animation: none;
    opacity: 1;
  }
}

/* Bölümler --------------------------------------------------------------------- */

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.split .intro p {
  margin-top: 18px;
  max-width: 44ch;
  color: var(--muted);
}

.phone {
  justify-self: center;
  width: min(300px, 78vw);
  border-radius: 40px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(11, 46, 79, 0.45);
}

.features {
  margin: 36px 0 0;
  display: grid;
  gap: 28px;
}

.features div {
  padding-left: 20px;
  border-left: 3px solid var(--petrol);
}

.features dt {
  font-weight: 700;
  font-size: 1.1rem;
}

.features dd {
  margin: 4px 0 0;
  color: var(--muted);
  max-width: 48ch;
}

.plain-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.plain-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  max-width: 52ch;
}

.plain-list svg {
  margin-top: 5px;
  color: var(--petrol);
}

.note {
  margin-top: 26px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact {
  padding: clamp(56px, 8vw, 96px) 0;
}

.contact .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.contact p {
  margin-top: 12px;
  color: var(--on-dark);
  max-width: 48ch;
}

/* Metin sayfaları (gizlilik, destek) ---------------------------------------------- */

.page-head {
  padding-top: clamp(36px, 6vw, 64px);
  padding-bottom: clamp(28px, 4vw, 44px);
}

.page-head p {
  margin-top: 14px;
  color: var(--on-dark);
  max-width: 60ch;
}

.prose {
  max-width: var(--measure);
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.prose h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin-top: 44px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose ul {
  margin-top: 14px;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 8px;
}

.prose strong {
  font-weight: 700;
}

.qa h2 {
  margin-top: 40px;
}

/* Alt bilgi ------------------------------------------------------------------ */

.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer img {
  height: 30px;
  width: auto;
}

.footer nav {
  display: flex;
  gap: 22px;
}

.footer nav a {
  color: inherit;
}

/* Dar ekran -------------------------------------------------------------------- */

@media (max-width: 860px) {
  .hero-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1 {
    max-width: 16ch;
  }

  .route {
    margin: 0 -4%;
    width: 108%;
  }

  .split .phone {
    order: 2;
  }
}

@media (max-width: 520px) {
  .stop-label .detail {
    display: none;
  }

  .masthead nav {
    gap: 14px;
    font-size: 0.88rem;
  }

  .masthead img {
    height: 32px;
  }

  .masthead nav .optional {
    display: none;
  }
}
