/* Kitap Köprüsü — editable footer, reference canvas: 1894 × 830.
   All component styles are scoped. The host page keeps its own reset/layout. */
@font-face {
  font-family: "KK Footer Inter";
  src: url("../fonts/footer-20261112/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.kk-footer {
  --kk-ink: #050f5e;
  --kk-blue: #0054fd;
  --kk-orange: #ff6633;
  --kk-muted: #52649b;
  --kk-rule: #9bbfff;
  --kk-gutter: 5.279831cqw;
  --kk-hero-height: 23.706441cqw;
  --kk-art-top: 0px;
  width: 100%;
  min-width: 0;
  margin: 0;
  position: relative;
  isolation: isolate;
  container: kk-footer / inline-size;
  overflow: hidden;
  background: #ecf5fe;
  color: var(--kk-ink);
  font-family: "KK Footer Inter", Inter, Arial, sans-serif;
  font-optical-sizing: auto;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.kk-footer__surface {
  position: relative;
  width: 100%;
  min-width: 0;
  background:
    radial-gradient(ellipse at 80% 43%, #dceeff 0%, transparent 49%),
    radial-gradient(ellipse at 12% 54%, #e5f3ff 0%, transparent 53%),
    linear-gradient(180deg, #f4f9ff 0%, #e9f4ff 63%, #eef7ff 100%);
}

/* The page layers, spine, ribbon and logo are SVG paths, never a screenshot. */
.kk-footer__art {
  position: absolute;
  z-index: 0;
  inset-inline: 0;
  top: var(--kk-art-top);
  width: 100%;
  height: auto;
  aspect-ratio: 1894 / 830;
  display: block;
  pointer-events: none;
  overflow: visible;
}

.kk-footer__hero,
.kk-footer__main,
.kk-footer__legal {
  position: relative;
  z-index: 1;
}

.kk-footer__hero {
  min-height: var(--kk-hero-height);
  padding: 1.900739cqw var(--kk-gutter) 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3cqw;
}

.kk-footer__intro { min-width: 0; }

.kk-footer__eyebrow {
  margin: 0;
  color: var(--kk-blue);
  font-size: 1.425554cqw;
  font-weight: 780;
  line-height: 1.28;
  letter-spacing: .105em;
  white-space: nowrap;
}

.kk-footer__title {
  margin: .211193cqw 0 0;
  color: var(--kk-ink);
  font-size: 6.758184cqw;
  line-height: .90;
  font-weight: 900;
  letter-spacing: -.054em;
  text-wrap: nowrap;
}

.kk-footer__title-line { display: block; }
.kk-footer__title-line + .kk-footer__title-line { margin-top: .158395cqw; }
.kk-footer__title-line--blue { color: var(--kk-blue); letter-spacing: -.0254em; }

.kk-footer a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.kk-footer a:focus-visible,
.kk-footer button:focus-visible {
  outline: 3px solid var(--kk-blue);
  outline-offset: 7px;
  border-radius: 5px;
}

.kk-footer a::selection,
.kk-footer ::selection {
  background: #bfd8ff;
  color: #090d50;
}

.kk-footer__actions {
  display: flex;
  flex-direction: column;
  gap: .686378cqw;
  width: 18.268216cqw;
  flex: 0 0 auto;
  padding-top: .686378cqw;
}

.kk-footer__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.267159cqw;
  width: 100%;
  min-width: 0;
  font-size: 2.111932cqw;
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: -.005em;
  white-space: nowrap;
}

.kk-footer__arrow {
  width: 3.484688cqw;
  height: 3.484688cqw;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: max(1.5px, .158395cqw) solid var(--kk-blue);
  border-radius: 50%;
  color: var(--kk-blue);
  transition: background-color 160ms ease, color 160ms ease;
}

.kk-footer__arrow svg {
  display: block;
  width: 60%;
  height: 60%;
  transition: transform 160ms ease;
}

.kk-footer__action:hover .kk-footer__arrow {
  background: var(--kk-blue);
  color: #fff;
}
.kk-footer__action:hover .kk-footer__arrow svg { transform: translateX(2px); }

.kk-footer__main {
  padding-inline: var(--kk-gutter);
  display: grid;
  grid-template-columns: 47.6% 25.7% 26.7%;
  align-items: start;
  min-width: 0;
}

.kk-footer__brand {
  min-width: 0;
  padding-top: 1.267159cqw;
}

.kk-footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: .527983cqw;
  max-width: 100%;
}

.kk-footer__brand-mark {
  display: block;
  width: 9.081309cqw;
  height: 4.792325cqw;
  flex: 0 0 auto;
  overflow: visible;
}

.kk-footer__wordmark {
  color: var(--kk-ink);
  font-size: 2.745512cqw;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.023em;
  white-space: nowrap;
}

.kk-footer__wordmark-accent { color: var(--kk-orange); }

.kk-footer__mission {
  margin: .950369cqw 0 0 .211193cqw;
  max-width: 36.430834cqw;
  color: var(--kk-muted);
  font-size: 1.636748cqw;
  line-height: 1.30;
  font-weight: 400;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 14;
  letter-spacing: 0;
}
.kk-footer__mission-line { display: block; }

.kk-footer__nav { min-width: 0; }
.kk-footer__nav-title {
  margin: 0 0 .63358cqw;
  color: var(--kk-ink);
  font-size: 1.795143cqw;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

.kk-footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.kk-footer__nav-link {
  display: inline-block;
  font-size: 1.689546cqw;
  font-weight: 400;
  line-height: 2.323126cqw;
  letter-spacing: 0;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 5px;
}

.kk-footer__nav-link:hover,
.kk-footer__legal a:hover {
  color: var(--kk-blue);
  text-decoration-line: underline;
}

.kk-footer__legal {
  margin: 2.534319cqw 3.695882cqw 0;
  padding: 1.055966cqw 0 2.639916cqw;
  border-top: max(1px, .079197cqw) solid var(--kk-rule);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2.111932cqw;
  color: var(--kk-ink);
  font-size: 1.161563cqw;
  line-height: 1.363636;
  font-weight: 400;
  letter-spacing: -.02em;
}

.kk-footer__copyright,
.kk-footer__notice { margin: 0; }
.kk-footer__notice { justify-self: end; }
.kk-footer__legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.956705cqw;
}

/* Tablet: maintain readable type and let content grow in normal flow. */
@container kk-footer (max-width: 1000px) {
  .kk-footer__surface {
    --kk-gutter: 5cqw;
    --kk-hero-height: 350px;
    --kk-art-top: calc(350px - 23.706441cqw);
  }
  .kk-footer__hero { padding-top: 30px; }
  .kk-footer__eyebrow { font-size: clamp(11px, 1.5cqw, 15px); }
  .kk-footer__title { font-size: clamp(56px, 7.7cqw, 76px); margin-top: 12px; line-height: .99; }
  .kk-footer__title-line + .kk-footer__title-line { margin-top: 0; }
  .kk-footer__actions { width: max(27cqw, 180px); padding-top: 14px; gap: 14px; }
  .kk-footer__action { font-size: clamp(18px, 2.5cqw, 24px); gap: 12px; }
  .kk-footer__arrow { width: 44px; height: 44px; border-width: 2px; }
  .kk-footer__main { grid-template-columns: 1fr 1fr; gap: 30px 48px; padding-top: 14px; }
  .kk-footer__brand { grid-column: 1 / -1; padding-top: 0; }
  .kk-footer__brand-link { gap: 10px; }
  .kk-footer__brand-mark { width: 112px; height: 59.12px; }
  .kk-footer__wordmark { font-size: 36px; }
  .kk-footer__mission { margin: 14px 0 0; max-width: 620px; font-size: 19px; line-height: 1.55; }
  .kk-footer__nav-title { font-size: 22px; margin-bottom: 12px; }
  .kk-footer__nav-link { font-size: 18px; line-height: 40px; }
  .kk-footer__legal { margin: 34px var(--kk-gutter) 0; padding: 22px 0 28px; font-size: 13px; grid-template-columns: 1fr 1fr; gap: 20px; }
  .kk-footer__legal-links { gap: 22px; justify-content: end; }
  .kk-footer__notice { grid-column: 1 / -1; justify-self: start; }
}

/* Phones: two compact action rows and a stable, readable two-column sitemap. */
@container kk-footer (max-width: 600px) {
  .kk-footer__surface {
    --kk-gutter: 24px;
    --kk-hero-height: 390px;
    --kk-art-top: calc(390px - 23.706441cqw);
  }
  .kk-footer__hero { display: block; padding-top: 27px; }
  .kk-footer__eyebrow { font-size: clamp(9px, 2.65cqw, 13px); letter-spacing: .085em; }
  .kk-footer__title { font-size: clamp(44px, 11.8cqw, 69px); margin-top: 16px; line-height: 1; }
  .kk-footer__actions { width: min(100%, 300px); padding-top: 0; margin-top: 25px; gap: 9px; }
  .kk-footer__action { font-size: 19px; letter-spacing: -.025em; }
  .kk-footer__arrow { width: 42px; height: 42px; }
  .kk-footer__main { padding-top: 12px; gap: 29px 20px; }
  .kk-footer__brand-mark { width: 81px; height: 42.75px; }
  .kk-footer__brand-link { gap: 8px; }
  .kk-footer__wordmark { font-size: clamp(26px, 7cqw, 35px); }
  .kk-footer__mission { max-width: 100%; margin-top: 18px; font-size: 15px; line-height: 1.65; letter-spacing: -.015em; }
  .kk-footer__mission-line { display: inline; }
  .kk-footer__mission-line + .kk-footer__mission-line::before { content: " "; }
  .kk-footer__nav-title { font-size: 18px; line-height: 1.35; margin-bottom: 11px; letter-spacing: -.025em; }
  .kk-footer__nav-link { font-size: 15px; line-height: 38px; letter-spacing: -.025em; }
  .kk-footer__legal { margin-top: 30px; padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 16px 24px; font-size: 12px; line-height: 1.55; }
  .kk-footer__copyright { width: 100%; }
  .kk-footer__legal-links { justify-content: flex-start; gap: 22px; }
  .kk-footer__notice { width: 100%; }
}

@container kk-footer (max-width: 360px) {
  .kk-footer__surface { --kk-gutter: 18px; }
  .kk-footer__wordmark { font-size: 25px; }
  .kk-footer__brand-mark { width: 72px; height: 38px; }
  .kk-footer__main { column-gap: 14px; }
  .kk-footer__nav-title { font-size: 16px; }
  .kk-footer__nav-link { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .kk-footer *, .kk-footer *::before, .kk-footer *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .kk-footer__art { display: none; }
  .kk-footer__arrow, .kk-footer__legal { border-color: CanvasText; }
  .kk-footer__title-line--blue, .kk-footer__wordmark-accent { color: LinkText; }
}
