/* KARAYANA homepage styles. Loaded only on the homepage. */

/* =========================================================
           KARAYANA BANNER
        ========================================================= */

.ky-banner {
  position: relative;
  isolation: isolate;

  overflow: hidden;

  width: 100%;
  min-height: 100vh;

  box-sizing: border-box;

  background: linear-gradient(180deg, #ffffff 0%, #fffdf6 48%, #f3f3f1 100%);

  font-family: inherit;

  color: #151515;

  padding: 78px clamp(24px, 8vw, 120px) 0;

  display: flex;

  align-items: flex-start;
}

/* =========================================================
           BACKGROUND GLOW
        ========================================================= */

.ky-sky-glow {
  position: absolute;

  width: 520px;
  height: 520px;

  right: -130px;
  top: -260px;

  border-radius: 50%;

  background: rgba(247, 181, 0, 0.13);

  filter: blur(2px);

  z-index: -1;
}

/* =========================================================
           CONTENT
        ========================================================= */

.ky-content {
  position: relative;

  z-index: 8;

  max-width: 680px;
  top:50px;
}

/* =========================================================
           SMALL LABEL
        ========================================================= */

.ky-kicker {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  background: #111111;

  color: #ffffff;

  padding: 9px 16px;

  border-radius: 999px;

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 1.5px;

  margin-bottom: 20px;
}

/* =========================================================
           HEADING
        ========================================================= */

.ky-banner h1 {
  font-size: clamp(43px, 5.4vw, 76px);

  line-height: 0.99;

  letter-spacing: -3px;

  margin: 0;

  font-weight: 850;
}

.ky-banner h1 em {
  font-style: normal;

  color: #e9aa00;
}

/* =========================================================
           DESCRIPTION
        ========================================================= */

.ky-banner p {
  font-size: 18px;

  color: #666666;

  margin: 23px 0 28px;
}

/* =========================================================
           BUTTON AREA
        ========================================================= */

.ky-actions {
  display: flex;

  align-items: center;

  gap: 20px;

  flex-wrap: wrap;
}

/* =========================================================
           BUTTON
        ========================================================= */

.ky-btn {
  display: inline-flex;

  align-items: center;

  gap: 20px;

  padding: 15px 21px;

  background: #f4b400;

  color: #111111;

  text-decoration: none;

  font-weight: 800;

  border-radius: 9px;

  box-shadow: 0 8px 25px rgba(244, 180, 0, 0.2);

  transition: 0.25s ease;
}

.ky-btn:hover {
  background: #111111;

  color: #ffffff;

  transform: translateY(-2px);
}

.ky-btn span {
  font-size: 22px;
}

/* =========================================================
           SMALL NOTE
        ========================================================= */

.ky-note {
  font-size: 12px;

  color: #777777;

  font-weight: 650;
}

/* =========================================================
           CITY / BUILDINGS
        ========================================================= */

.ky-city {
  position: absolute;

  bottom: 83px;

  left: 0;

  width: 100%;

  height: 180px;

  opacity: 0.42;

  z-index: 1;

  display: block;
}

.ky-city i {
  position: absolute;

  bottom: 0;

  left: var(--x);

  width: var(--w);

  height: var(--h);

  background: #d9d9d5;

  border-radius: 3px 3px 0 0;
}

/* Building windows */

.ky-city i::after {
  content: "";

  position: absolute;

  left: 12px;

  top: 15px;

  width: 5px;

  height: 5px;

  background: #f4b400;

  box-shadow: 15px 0 #f4b400, 30px 0 #f4b400, 0 15px #f4b400, 15px 15px #f4b400,
    30px 15px #f4b400, 0 30px #f4b400, 30px 30px #f4b400;

  opacity: 0.5;
}

/* =========================================================
           ROAD
        ========================================================= */

.ky-road {
  position: absolute;

  left: 0;
  right: 0;

  bottom: 57px;

  height: 38px;

  background: #222222;

  z-index: 3;

  transform: skewY(-1deg);
}

/* Yellow road edge */

.ky-road::before {
  content: "";

  position: absolute;

  left: 0;
  right: 0;

  top: -3px;

  height: 3px;

  background: #f4b400;
}

/* Moving road marking */

.ky-road-line {
  position: absolute;

  top: 17px;

  left: 0;

  width: 200%;

  height: 3px;

  background: repeating-linear-gradient(
    90deg,
    transparent 0 65px,
    #f4b400 65px 125px
  );

  animation: kyRoad 1s linear infinite;
}

/* Bottom road edge */

.ky-road::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;

  bottom: -8px;

  height: 8px;

  background: #d8d8d4;
}

/* =========================================================
           CAR CONTAINER
        ========================================================= */

.ky-car-wrap {
  position: absolute;

  z-index: 6;

  left: -430px;

  bottom: 86px;

  width: 410px;

  height: 175px;

  animation: kyDrive 8.5s linear infinite;
}

/* =========================================================
           CAR SHADOW
        ========================================================= */

.ky-shadow {
  position: absolute;

  width: 365px;

  height: 18px;

  bottom: 2px;

  left: 25px;

  background: rgba(0, 0, 0, 0.2);

  filter: blur(9px);

  border-radius: 50%;
}

/* =========================================================
           CAR
        ========================================================= */

.ky-car {
  position: absolute;

  width: 100%;

  height: 100%;

  bottom: -30px;
}

/* =========================================================
           CAR BODY
        ========================================================= */

.ky-body {
  position: absolute;

  left: 28px;

  bottom: 42px;

  width: 350px;

  height: 70px;

  background: linear-gradient(180deg, #f7c323, #e5a900);

  border-radius: 32px 48px 16px 13px;

  box-shadow: inset 0 -9px rgba(0, 0, 0, 0.1);
}

/* =========================================================
           CAR ROOF
        ========================================================= */

.ky-roof {
  position: absolute;

  left: 98px;

  bottom: 93px;

  width: 190px;

  height: 67px;

  background: #eab100;

  border-radius: 82px 100px 0 0;

  transform: skewX(-9deg);
}

/* =========================================================
           WINDOWS
        ========================================================= */

.ky-window {
  position: absolute;

  bottom: 103px;

  height: 43px;

  background: #20272b;

  border: 3px solid #dca700;
}

.ky-window-1 {
  left: 119px;

  width: 73px;

  border-radius: 42px 5px 4px 4px;

  transform: skewX(-9deg);
}

.ky-window-2 {
  left: 198px;

  width: 70px;

  border-radius: 5px 42px 4px 4px;

  transform: skewX(-9deg);
}

/* =========================================================
           LIGHTS
        ========================================================= */

.ky-headlight {
  position: absolute;

  right: 27px;

  bottom: 75px;

  width: 19px;

  height: 12px;

  background: #fff8c7;

  border-radius: 7px;

  box-shadow: 0 0 16px #ffe47a;
}

.ky-taillight {
  position: absolute;

  left: 30px;

  bottom: 72px;

  width: 14px;

  height: 17px;

  background: #d93725;

  border-radius: 5px;
}

/* =========================================================
           BUMPER
        ========================================================= */

.ky-bumper {
  position: absolute;

  right: 8px;

  bottom: 44px;

  width: 25px;

  height: 12px;

  background: #222222;

  border-radius: 0 7px 7px 0;
}

/* =========================================================
           WHEELS
        ========================================================= */

.ky-wheel {
  position: absolute;

  bottom: 22px;

  width: 57px;

  height: 57px;

  background: #171717;

  border: 6px solid #444444;

  border-radius: 50%;

  box-sizing: border-box;

  animation: kyWheel 0.45s linear infinite;
}

.ky-wheel span {
  position: absolute;

  left: 12px;

  top: 12px;

  width: 21px;

  height: 21px;

  border-radius: 50%;

  background: #c4c4c4;

  border: 4px dotted #555555;
}

.ky-wheel-a {
  left: 82px;
}

.ky-wheel-b {
  right: 53px;
}

/* =========================================================
           MOTION LINES
        ========================================================= */

.ky-motion {
  position: absolute;

  height: 3px;

  background: #bbbbbb;

  border-radius: 3px;

  opacity: 0;

  animation: kyMotion 0.8s linear infinite;
}

.m1 {
  left: -42px;

  bottom: 74px;

  width: 34px;
}

.m2 {
  left: -70px;

  bottom: 61px;

  width: 48px;

  animation-delay: 0.18s;
}

.m3 {
  left: -38px;

  bottom: 49px;

  width: 23px;

  animation-delay: 0.34s;
}

.car-carousel-img {
  width: 100%;
  height: 230px; /* fixed height for uniformity */
  object-fit: cover;
}
.offers_car_carousel .card {
  transition: transform 0.3s ease;
}
.offers_car_carousel .card:hover {
  transform: translateY(-5px);
}
.item_price {
  font-size: 14px;
  font-weight: 600;
}

/* =========================================================
           ANIMATIONS
        ========================================================= */

@keyframes kyDrive {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(100vw + 850px));
  }
}

@keyframes kyRoad {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-125px);
  }
}

@keyframes kyWheel {
  to {
    transform: rotate(360deg);
  }
}

@keyframes kyMotion {
  0%,
  20% {
    opacity: 0;

    transform: translateX(12px);
  }

  40% {
    opacity: 0.7;
  }

  100% {
    opacity: 0;

    transform: translateX(-18px);
  }
}

/* =========================================================
           MOBILE
        ========================================================= */

@media (max-width: 700px) {
  .ky-banner {
    min-height:100vh;

    padding: 48px 22px 0;
  }

  .ky-banner h1 {
    font-size: 43px;

    letter-spacing: -2px;
  }

  .ky-banner p {
    font-size: 15px;

    max-width: 330px;
  }

  .ky-note {
    display: none;
  }

  .ky-car-wrap {
    width: 330px;

    height: 145px;

    bottom: 89px;
  }

  .ky-road {
    bottom: 55px;
  }

  .ky-city {
    bottom: 82px;
  }

  .ky-body {
    transform: scale(0.8);

    transform-origin: left bottom;
  }

  .ky-wheel {
    transform: scale(0.8);
  }

  .ky-wheel-a {
    left: 68px;
  }

  .ky-wheel-b {
    right: 49px;
  }
}

/* =========================================================
           REDUCED MOTION ACCESSIBILITY
        ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .ky-car-wrap,
  .ky-road-line,
  .ky-wheel,
  .ky-motion {
    animation: none;
  }

  .ky-car-wrap {
    left: 50%;

    transform: translateX(-50%);
  }
}

/* Kilometer notice (scoped) */
.ky-km-notice :root {
  --bg1: #ff6b6b;
  --bg2: #ffd166;
  --text: #0f172a;
  --accent: #ffffff;
}
.ky-km-notice body {
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial;
  margin: 0;
  padding: 0;
}
.ky-km-notice /* wrapper to center and keep responsive */
                .notice-wrap {
  display: flex;
  justify-content: center;
  padding: 18px;
}
.ky-km-notice .notice {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 12px;
  padding: 12px 18px;
  min-width: 320px;
  max-width: 1200px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
  background: linear-gradient(90deg, var(--bg1), var(--bg2));
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.2px;
}
.ky-km-notice /* moving gradient strip */
                .notice::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.12)
  );
  transform: translateX(-100%);
  animation: slide 6s linear infinite;
  mix-blend-mode: overlay;
  pointer-events: none;
}

@keyframes slide {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}
.ky-km-notice /* blinking emphasis for "UNLIMITED KMs" */
                .badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  margin-left: 12px;
}
.ky-km-notice .pulse {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-weight: 800;
  margin-left: 10px;
  animation: pulseColor 1.2s ease-in-out infinite;
}
@keyframes pulseColor {
  0% {
    filter: brightness(1);
    transform: scale(1);
  }
  50% {
    filter: brightness(1.25);
    transform: scale(1.03);
  }
  100% {
    filter: brightness(1);
    transform: scale(1);
  }
}
.ky-km-notice /* small helper for mobile wrap */
                .note-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ky-km-notice /* accessible reduced motion */
                @media (prefers-reduced-motion:reduce) {
  .notice::before,
  .pulse {
    animation: none;
  }
}

/* How KARAYANA Works (scoped to avoid conflicts with Bootstrap/site styles) */
.ky-how-it-works * {
  box-sizing: border-box;
}
.ky-how-it-works body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: linear-gradient(180deg, #fff8f2, #f5f3ff 55%, #f4fbff);
  color: #17171a;
}
.ky-how-it-works .wrap {
  max-width: 1150px;
  margin: auto;
  padding: 30px 18px 70px;
}
.ky-how-it-works .hero {
  text-align: center;
  padding: 28px 8px;
}
.ky-how-it-works .eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff572f, #ff9d18);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.ky-how-it-works .hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  margin: 16px 0 10px;
  letter-spacing: -0.045em;
  background: linear-gradient(90deg, #ef4b25, #ff8d16, #6650d8);
  -webkit-background-clip: text;
  color: transparent;
}
.ky-how-it-works .hero p {
  max-width: 690px;
  margin: auto;
  color: #687078;
  line-height: 1.6;
}
.ky-how-it-works .switch {
  margin: 28px auto 40px;
  max-width: 620px;
  background: #fff;
  padding: 6px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border: 1px solid #e7e5ef;
  box-shadow: 0 10px 30px #392b7612;
}
.ky-how-it-works .switch button {
  border: 0;
  background: transparent;
  border-radius: 13px;
  padding: 14px 10px;
  font-weight: 800;
  color: #687078;
  cursor: pointer;
}
.ky-how-it-works .switch button.active {
  background: linear-gradient(135deg, #ff5b2e, #ff9b17);
  color: #fff;
  box-shadow: 0 7px 18px #ff713533;
}
.ky-how-it-works .panel {
  display: none;
}
.ky-how-it-works .panel.active {
  display: block;
}
.ky-how-it-works .panel-head h2 {
  margin: 0;
  font-size: 28px;
}
.ky-how-it-works .panel-head p {
  color: #707780;
  margin: 5px 0 20px;
}
.ky-how-it-works .flow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.ky-how-it-works .card {
  background: #fff;
  border: 1px solid #e7e5ef;
  border-radius: 22px;
  padding: 22px;
  min-height: 205px;
  box-shadow: 0 12px 30px #302a6010;
  position: relative;
  overflow: hidden;
}
.ky-how-it-works .card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff5a2b, #ff9f1c, #6655e8);
}
.ky-how-it-works .num {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ff5a2b, #ff9d18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 17px;
  box-shadow: 0 7px 15px #ff71352b;
}
.ky-how-it-works .card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.ky-how-it-works .card p {
  margin: 0;
  color: #666d75;
  line-height: 1.55;
  font-size: 14px;
}
.ky-how-it-works .tag {
  display: inline-block;
  margin-top: 15px;
  font-size: 11px;
  font-weight: 800;
  color: #554b91;
  background: #f0edff;
  padding: 7px 10px;
  border-radius: 8px;
}
.ky-how-it-works .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.ky-how-it-works .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ff5b2e, #ff9215);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 6px 15px #ff713526;
}
.ky-how-it-works .btn.light {
  background: #eeeaff;
  color: #4c3e98;
  box-shadow: none;
}
.ky-how-it-works .note {
  margin-top: 20px;
  padding: 17px 18px;
  background: linear-gradient(135deg, #fff7ef, #f3f0ff);
  border: 1px dashed #d8cfee;
  border-radius: 16px;
  color: #626870;
  font-size: 13px;
  line-height: 1.55;
}
.ky-how-it-works .cta {
  margin-top: 36px;
  background: linear-gradient(120deg, #f04b23, #ff8b16 48%, #6250d8);
  color: #fff;
  border-radius: 26px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 18px 45px #5c4ac52b;
}
.ky-how-it-works .cta h3 {
  margin: 0 0 6px;
  font-size: 22px;
}
.ky-how-it-works .cta p {
  margin: 0;
  color: #fff;
  font-size: 13px;
  opacity: 0.9;
}
.ky-how-it-works .cta .btn {
  background: #fff;
  color: #e65327;
  box-shadow: none;
}
.ky-how-it-works .small {
  font-size: 12px;
  color: #858b93;
  margin-top: 12px;
}
@media (max-width: 700px) {
  .ky-how-it-works .flow {
    grid-template-columns: 1fr;
  }
  .ky-how-it-works .cta {
    display: block;
  }
  .ky-how-it-works .cta .btn {
    margin-top: 18px;
    width: 100%;
  }
  .ky-how-it-works .switch {
    margin-bottom: 28px;
  }
}

/* Homepage component safety */
.ky-home {
  position: relative;
}
.ky-km-notice .notice-wrap {
  box-sizing: border-box;
}
.ky-km-notice .notice {
  box-sizing: border-box;
}
.ky-how-it-works,
.ky-how-it-works * {
  box-sizing: border-box;
}
@media (max-width: 575.98px) {
  .ky-km-notice .notice {
    min-width: 0;
    width: 100%;
  }
}
